blob: 95f2587da12262f6fb279ef55a72a3f4fe7447de [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 Julliard471a7ed2005-06-28 14:39:19 +00003# Generated by GNU Autoconf 2.59 for Wine 20050628.
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 Julliard471a7ed2005-06-28 14:39:19 +0000272PACKAGE_VERSION='20050628'
273PACKAGE_STRING='Wine 20050628'
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 Leidekkerea524de2005-07-15 16:39:42 +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 DLLDEFS build build_cpu build_vendor build_os host host_cpu host_vendor host_os WIN16_FILES WIN16_INSTALL 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 FONTFORGE LIBPTHREAD XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS GLUT_LIBS GLUT32FILES NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS LCMSLIBS LDAPLIBS ft_devel ft_devel2 FREETYPELIBS FREETYPEINCL FONTSSUBDIRS ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDSHARED LDDLLFLAGS LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS LDLIBWINEFLAGS COREFOUNDATIONLIB IOKITLIB CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS SOCKETLIBS WINE_BINARIES MAIN_BINARY LDD ALLOCA LIBOBJS LTLIBOBJS'
Alexandre Julliard117436e2003-05-01 00:39:29 +0000315ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000316
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000317# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000318ac_init_help=
319ac_init_version=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000320# The variables have the same names as the options, with
321# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000322cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000323exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000324no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000325no_recursion=
326prefix=NONE
327program_prefix=NONE
328program_suffix=NONE
329program_transform_name=s,x,x,
330silent=
331site=
332srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000333verbose=
334x_includes=NONE
335x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000336
337# Installation directory options.
338# These are left unexpanded so users can "make install exec_prefix=/foo"
339# and all the variables that are supposed to be based on exec_prefix
340# by default will actually change.
341# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000342bindir='${exec_prefix}/bin'
343sbindir='${exec_prefix}/sbin'
344libexecdir='${exec_prefix}/libexec'
345datadir='${prefix}/share'
346sysconfdir='${prefix}/etc'
347sharedstatedir='${prefix}/com'
348localstatedir='${prefix}/var'
349libdir='${exec_prefix}/lib'
350includedir='${prefix}/include'
351oldincludedir='/usr/include'
352infodir='${prefix}/info'
353mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000354
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000355ac_prev=
356for ac_option
357do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000358 # If the previous option needs an argument, assign it.
359 if test -n "$ac_prev"; then
360 eval "$ac_prev=\$ac_option"
361 ac_prev=
362 continue
363 fi
364
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000365 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000366
367 # Accept the important Cygnus configure options, so we can diagnose typos.
368
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000369 case $ac_option in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000370
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000371 -bindir | --bindir | --bindi | --bind | --bin | --bi)
372 ac_prev=bindir ;;
373 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000374 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000375
376 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000377 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000378 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000379 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000380
381 -cache-file | --cache-file | --cache-fil | --cache-fi \
382 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
383 ac_prev=cache_file ;;
384 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
385 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000386 cache_file=$ac_optarg ;;
387
388 --config-cache | -C)
389 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000390
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000391 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
392 ac_prev=datadir ;;
393 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
394 | --da=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000395 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000396
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000397 -disable-* | --disable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000398 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000399 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000400 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
401 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
402 { (exit 1); exit 1; }; }
403 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
404 eval "enable_$ac_feature=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000405
406 -enable-* | --enable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000407 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000408 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000409 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
410 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
411 { (exit 1); exit 1; }; }
412 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
413 case $ac_option in
414 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000415 *) ac_optarg=yes ;;
416 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000417 eval "enable_$ac_feature='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000418
419 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
420 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
421 | --exec | --exe | --ex)
422 ac_prev=exec_prefix ;;
423 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
424 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
425 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000426 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000427
428 -gas | --gas | --ga | --g)
429 # Obsolete; use --with-gas.
430 with_gas=yes ;;
431
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000432 -help | --help | --hel | --he | -h)
433 ac_init_help=long ;;
434 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
435 ac_init_help=recursive ;;
436 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
437 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000438
439 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000440 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000441 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000442 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000443
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000444 -includedir | --includedir | --includedi | --included | --include \
445 | --includ | --inclu | --incl | --inc)
446 ac_prev=includedir ;;
447 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
448 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000449 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000450
451 -infodir | --infodir | --infodi | --infod | --info | --inf)
452 ac_prev=infodir ;;
453 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000454 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000455
456 -libdir | --libdir | --libdi | --libd)
457 ac_prev=libdir ;;
458 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000459 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000460
461 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
462 | --libexe | --libex | --libe)
463 ac_prev=libexecdir ;;
464 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
465 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000466 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000467
468 -localstatedir | --localstatedir | --localstatedi | --localstated \
469 | --localstate | --localstat | --localsta | --localst \
470 | --locals | --local | --loca | --loc | --lo)
471 ac_prev=localstatedir ;;
472 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
473 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
474 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000475 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000476
477 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
478 ac_prev=mandir ;;
479 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000480 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000481
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000482 -nfp | --nfp | --nf)
483 # Obsolete; use --without-fp.
484 with_fp=no ;;
485
486 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000487 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000488 no_create=yes ;;
489
490 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
491 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
492 no_recursion=yes ;;
493
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000494 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
495 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
496 | --oldin | --oldi | --old | --ol | --o)
497 ac_prev=oldincludedir ;;
498 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
499 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
500 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000501 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000502
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000503 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
504 ac_prev=prefix ;;
505 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000506 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000507
508 -program-prefix | --program-prefix | --program-prefi | --program-pref \
509 | --program-pre | --program-pr | --program-p)
510 ac_prev=program_prefix ;;
511 -program-prefix=* | --program-prefix=* | --program-prefi=* \
512 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000513 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000514
515 -program-suffix | --program-suffix | --program-suffi | --program-suff \
516 | --program-suf | --program-su | --program-s)
517 ac_prev=program_suffix ;;
518 -program-suffix=* | --program-suffix=* | --program-suffi=* \
519 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000520 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000521
522 -program-transform-name | --program-transform-name \
523 | --program-transform-nam | --program-transform-na \
524 | --program-transform-n | --program-transform- \
525 | --program-transform | --program-transfor \
526 | --program-transfo | --program-transf \
527 | --program-trans | --program-tran \
528 | --progr-tra | --program-tr | --program-t)
529 ac_prev=program_transform_name ;;
530 -program-transform-name=* | --program-transform-name=* \
531 | --program-transform-nam=* | --program-transform-na=* \
532 | --program-transform-n=* | --program-transform-=* \
533 | --program-transform=* | --program-transfor=* \
534 | --program-transfo=* | --program-transf=* \
535 | --program-trans=* | --program-tran=* \
536 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000537 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000538
539 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
540 | -silent | --silent | --silen | --sile | --sil)
541 silent=yes ;;
542
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000543 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
544 ac_prev=sbindir ;;
545 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
546 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000547 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000548
549 -sharedstatedir | --sharedstatedir | --sharedstatedi \
550 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
551 | --sharedst | --shareds | --shared | --share | --shar \
552 | --sha | --sh)
553 ac_prev=sharedstatedir ;;
554 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
555 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
556 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
557 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000558 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000559
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000560 -site | --site | --sit)
561 ac_prev=site ;;
562 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000563 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000564
565 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
566 ac_prev=srcdir ;;
567 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000568 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000569
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000570 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
571 | --syscon | --sysco | --sysc | --sys | --sy)
572 ac_prev=sysconfdir ;;
573 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
574 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000575 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000576
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000577 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000578 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000579 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000580 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000581
582 -v | -verbose | --verbose | --verbos | --verbo | --verb)
583 verbose=yes ;;
584
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000585 -version | --version | --versio | --versi | --vers | -V)
586 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000587
588 -with-* | --with-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000589 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000590 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000591 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
592 { echo "$as_me: error: invalid package name: $ac_package" >&2
593 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000594 ac_package=`echo $ac_package| sed 's/-/_/g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000595 case $ac_option in
596 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000597 *) ac_optarg=yes ;;
598 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000599 eval "with_$ac_package='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000600
601 -without-* | --without-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000602 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000603 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000604 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
605 { echo "$as_me: error: invalid package name: $ac_package" >&2
606 { (exit 1); exit 1; }; }
607 ac_package=`echo $ac_package | sed 's/-/_/g'`
608 eval "with_$ac_package=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000609
610 --x)
611 # Obsolete; use --with-x.
612 with_x=yes ;;
613
614 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
615 | --x-incl | --x-inc | --x-in | --x-i)
616 ac_prev=x_includes ;;
617 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
618 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000619 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000620
621 -x-libraries | --x-libraries | --x-librarie | --x-librari \
622 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
623 ac_prev=x_libraries ;;
624 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
625 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000626 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000627
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000628 -*) { echo "$as_me: error: unrecognized option: $ac_option
629Try \`$0 --help' for more information." >&2
630 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000631 ;;
632
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000633 *=*)
634 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
635 # Reject names that are not valid shell variable names.
636 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
637 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
638 { (exit 1); exit 1; }; }
639 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
640 eval "$ac_envvar='$ac_optarg'"
641 export $ac_envvar ;;
642
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000643 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000644 # FIXME: should be removed in autoconf 3.0.
645 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
646 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
647 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
648 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000649 ;;
650
651 esac
652done
653
654if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000655 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
656 { echo "$as_me: error: missing argument to $ac_option" >&2
657 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000658fi
659
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000660# Be sure to have absolute paths.
661for ac_var in exec_prefix prefix
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000662do
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000663 eval ac_val=$`echo $ac_var`
664 case $ac_val in
665 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000666 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000667 { (exit 1); exit 1; }; };;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000668 esac
669done
670
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000671# Be sure to have absolute paths.
672for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
Alexandre Julliard875927f2004-01-02 01:55:29 +0000673 localstatedir libdir includedir oldincludedir infodir mandir
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000674do
675 eval ac_val=$`echo $ac_var`
676 case $ac_val in
677 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000678 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000679 { (exit 1); exit 1; }; };;
680 esac
681done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000682
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000683# There might be people who depend on the old broken behavior: `$host'
684# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000685# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000686build=$build_alias
687host=$host_alias
688target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000689
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000690# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000691if test "x$host_alias" != x; then
692 if test "x$build_alias" = x; then
693 cross_compiling=maybe
694 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
695 If a cross compiler is detected then cross compile mode will be used." >&2
696 elif test "x$build_alias" != "x$host_alias"; then
697 cross_compiling=yes
698 fi
699fi
700
701ac_tool_prefix=
702test -n "$host_alias" && ac_tool_prefix=$host_alias-
703
704test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000705
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000706
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000707# Find the source files, if location was not specified.
708if test -z "$srcdir"; then
709 ac_srcdir_defaulted=yes
710 # Try the directory containing this script, then its parent.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000711 ac_confdir=`(dirname "$0") 2>/dev/null ||
712$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +0000713 X"$0" : 'X\(//\)[^/]' \| \
714 X"$0" : 'X\(//\)$' \| \
715 X"$0" : 'X\(/\)' \| \
716 . : '\(.\)' 2>/dev/null ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000717echo X"$0" |
718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
719 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
720 /^X\(\/\/\)$/{ s//\1/; q; }
721 /^X\(\/\).*/{ s//\1/; q; }
722 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000723 srcdir=$ac_confdir
724 if test ! -r $srcdir/$ac_unique_file; then
725 srcdir=..
726 fi
727else
728 ac_srcdir_defaulted=no
729fi
730if test ! -r $srcdir/$ac_unique_file; then
731 if test "$ac_srcdir_defaulted" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000733 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000734 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000735 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000736 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000737 fi
738fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000739(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
740 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
741 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000742srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
743ac_env_build_alias_set=${build_alias+set}
744ac_env_build_alias_value=$build_alias
745ac_cv_env_build_alias_set=${build_alias+set}
746ac_cv_env_build_alias_value=$build_alias
747ac_env_host_alias_set=${host_alias+set}
748ac_env_host_alias_value=$host_alias
749ac_cv_env_host_alias_set=${host_alias+set}
750ac_cv_env_host_alias_value=$host_alias
751ac_env_target_alias_set=${target_alias+set}
752ac_env_target_alias_value=$target_alias
753ac_cv_env_target_alias_set=${target_alias+set}
754ac_cv_env_target_alias_value=$target_alias
755ac_env_CC_set=${CC+set}
756ac_env_CC_value=$CC
757ac_cv_env_CC_set=${CC+set}
758ac_cv_env_CC_value=$CC
759ac_env_CFLAGS_set=${CFLAGS+set}
760ac_env_CFLAGS_value=$CFLAGS
761ac_cv_env_CFLAGS_set=${CFLAGS+set}
762ac_cv_env_CFLAGS_value=$CFLAGS
763ac_env_LDFLAGS_set=${LDFLAGS+set}
764ac_env_LDFLAGS_value=$LDFLAGS
765ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
766ac_cv_env_LDFLAGS_value=$LDFLAGS
767ac_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_env_CPPFLAGS_value=$CPPFLAGS
769ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
770ac_cv_env_CPPFLAGS_value=$CPPFLAGS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +0000771ac_env_CXX_set=${CXX+set}
772ac_env_CXX_value=$CXX
773ac_cv_env_CXX_set=${CXX+set}
774ac_cv_env_CXX_value=$CXX
775ac_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_env_CXXFLAGS_value=$CXXFLAGS
777ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
778ac_cv_env_CXXFLAGS_value=$CXXFLAGS
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000779ac_env_CPP_set=${CPP+set}
780ac_env_CPP_value=$CPP
781ac_cv_env_CPP_set=${CPP+set}
782ac_cv_env_CPP_value=$CPP
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000783
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000784#
785# Report the --help message.
786#
787if test "$ac_init_help" = "long"; then
788 # Omit some internal or obsolete options to make the list less imposing.
789 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000790 cat <<_ACEOF
Alexandre Julliard471a7ed2005-06-28 14:39:19 +0000791\`configure' configures Wine 20050628 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 Julliard471a7ed2005-06-28 14:39:19 +0000856 short | recursive ) echo "Configuration of Wine 20050628:";;
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 Julliard471a7ed2005-06-28 14:39:19 +0000987Wine configure 20050628
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 Julliard471a7ed2005-06-28 14:39:19 +00001001It was created by Wine $as_me 20050628, 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
Vincent BĂ©ron1f504142004-10-19 23:06:11 +00001407DLLDEFS=""
1408
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001409if test "x$enable_debug" = "xno"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001410then
Vincent BĂ©ron1f504142004-10-19 23:06:11 +00001411 DLLDEFS="$DLLDEFS -DWINE_NO_DEBUG_MSGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001412fi
1413if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001414then
Vincent BĂ©ron1f504142004-10-19 23:06:11 +00001415 DLLDEFS="$DLLDEFS -DWINE_NO_TRACE_MSGS"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001416fi
1417
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001418# Make sure we can run config.sub.
1419$ac_config_sub sun4 >/dev/null 2>&1 ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001420 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001421echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1422 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001423
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001424echo "$as_me:$LINENO: checking build system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001425echo $ECHO_N "checking build system type... $ECHO_C" >&6
1426if test "${ac_cv_build+set}" = set; then
1427 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001428else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001429 ac_cv_build_alias=$build_alias
1430test -z "$ac_cv_build_alias" &&
1431 ac_cv_build_alias=`$ac_config_guess`
1432test -z "$ac_cv_build_alias" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001433 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001434echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1435 { (exit 1); exit 1; }; }
1436ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001437 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1438echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001439 { (exit 1); exit 1; }; }
1440
1441fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001442echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001443echo "${ECHO_T}$ac_cv_build" >&6
1444build=$ac_cv_build
1445build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1446build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1447build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1448
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001449
1450echo "$as_me:$LINENO: checking host system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001451echo $ECHO_N "checking host system type... $ECHO_C" >&6
1452if test "${ac_cv_host+set}" = set; then
1453 echo $ECHO_N "(cached) $ECHO_C" >&6
1454else
1455 ac_cv_host_alias=$host_alias
1456test -z "$ac_cv_host_alias" &&
1457 ac_cv_host_alias=$ac_cv_build_alias
1458ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001459 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001460echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1461 { (exit 1); exit 1; }; }
1462
1463fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001464echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001465echo "${ECHO_T}$ac_cv_host" >&6
1466host=$ac_cv_host
1467host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1468host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1469host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1470
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001471
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001472case $host in
1473 x86_64*linux*)
1474 if test "x$enable_win64" != "xyes"
1475 then
1476 test -n "$CC" || CC="gcc -m32"
1477 test -n "$LD" || LD="ld -m elf_i386"
1478 test -n "$AS" || AS="as --32"
Alex Woodsbbcf9862005-02-10 19:09:08 +00001479 host_cpu="i386"
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001480 fi
1481 ;;
1482esac
1483
Alexandre Julliard71440f32005-05-19 14:28:17 +00001484case $host_cpu in
1485 *i[3456789]86*)
1486 if test "x$enable_win16" != "xno"
1487 then
1488 enable_win16="yes"
1489 fi
1490 ;;
1491esac
1492
1493WIN16_FILES="\$(WIN16_FILES)"
1494
1495WIN16_INSTALL="\$(WIN16_INSTALL)"
1496
1497if test "x$enable_win16" != "xyes"
1498then
1499 WIN16_FILES=""
1500 WIN16_INSTALL=""
1501fi
1502
1503
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001504echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1505echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Alexandre Julliard875927f2004-01-02 01:55:29 +00001506set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001507if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1508 echo $ECHO_N "(cached) $ECHO_C" >&6
1509else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001510 cat >conftest.make <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001511all:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001512 @echo 'ac_maketemp="$(MAKE)"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001513_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001514# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001515eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001516if test -n "$ac_maketemp"; then
1517 eval ac_cv_prog_make_${ac_make}_set=yes
1518else
1519 eval ac_cv_prog_make_${ac_make}_set=no
1520fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001521rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001522fi
1523if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001524 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001525echo "${ECHO_T}yes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001526 SET_MAKE=
1527else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001528 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001529echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001530 SET_MAKE="MAKE=${MAKE-make}"
1531fi
1532
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001533ac_ext=c
1534ac_cpp='$CPP $CPPFLAGS'
1535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1537ac_compiler_gnu=$ac_cv_c_compiler_gnu
1538if test -n "$ac_tool_prefix"; then
1539 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1540set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001541echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001542echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1543if test "${ac_cv_prog_CC+set}" = set; then
1544 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001545else
1546 if test -n "$CC"; then
1547 ac_cv_prog_CC="$CC" # Let the user override the test.
1548else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1550for as_dir in $PATH
1551do
1552 IFS=$as_save_IFS
1553 test -z "$as_dir" && as_dir=.
1554 for ac_exec_ext in '' $ac_executable_extensions; do
1555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1556 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1558 break 2
1559 fi
1560done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001561done
1562
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001563fi
1564fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001565CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001566if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001567 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001568echo "${ECHO_T}$CC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001569else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001570 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001571echo "${ECHO_T}no" >&6
1572fi
1573
1574fi
1575if test -z "$ac_cv_prog_CC"; then
1576 ac_ct_CC=$CC
1577 # Extract the first word of "gcc", so it can be a program name with args.
1578set dummy gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001579echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001580echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1581if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1583else
1584 if test -n "$ac_ct_CC"; then
1585 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1586else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588for as_dir in $PATH
1589do
1590 IFS=$as_save_IFS
1591 test -z "$as_dir" && as_dir=.
1592 for ac_exec_ext in '' $ac_executable_extensions; do
1593 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1594 ac_cv_prog_ac_ct_CC="gcc"
1595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1596 break 2
1597 fi
1598done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001599done
1600
1601fi
1602fi
1603ac_ct_CC=$ac_cv_prog_ac_ct_CC
1604if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001605 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001606echo "${ECHO_T}$ac_ct_CC" >&6
1607else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001608 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001609echo "${ECHO_T}no" >&6
1610fi
1611
1612 CC=$ac_ct_CC
1613else
1614 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001615fi
1616
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001617if test -z "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001618 if test -n "$ac_tool_prefix"; then
1619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1620set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001621echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001622echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1623if test "${ac_cv_prog_CC+set}" = set; then
1624 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001625else
1626 if test -n "$CC"; then
1627 ac_cv_prog_CC="$CC" # Let the user override the test.
1628else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1630for as_dir in $PATH
1631do
1632 IFS=$as_save_IFS
1633 test -z "$as_dir" && as_dir=.
1634 for ac_exec_ext in '' $ac_executable_extensions; do
1635 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1636 ac_cv_prog_CC="${ac_tool_prefix}cc"
1637 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1638 break 2
1639 fi
1640done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001641done
1642
1643fi
1644fi
1645CC=$ac_cv_prog_CC
1646if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001647 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001648echo "${ECHO_T}$CC" >&6
1649else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001650 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001651echo "${ECHO_T}no" >&6
1652fi
1653
1654fi
1655if test -z "$ac_cv_prog_CC"; then
1656 ac_ct_CC=$CC
1657 # Extract the first word of "cc", so it can be a program name with args.
1658set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001659echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001660echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1661if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1662 echo $ECHO_N "(cached) $ECHO_C" >&6
1663else
1664 if test -n "$ac_ct_CC"; then
1665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1666else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001667as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1668for as_dir in $PATH
1669do
1670 IFS=$as_save_IFS
1671 test -z "$as_dir" && as_dir=.
1672 for ac_exec_ext in '' $ac_executable_extensions; do
1673 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1674 ac_cv_prog_ac_ct_CC="cc"
1675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1676 break 2
1677 fi
1678done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001679done
1680
1681fi
1682fi
1683ac_ct_CC=$ac_cv_prog_ac_ct_CC
1684if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001685 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001686echo "${ECHO_T}$ac_ct_CC" >&6
1687else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001688 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001689echo "${ECHO_T}no" >&6
1690fi
1691
1692 CC=$ac_ct_CC
1693else
1694 CC="$ac_cv_prog_CC"
1695fi
1696
1697fi
1698if test -z "$CC"; then
1699 # Extract the first word of "cc", so it can be a program name with args.
1700set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001701echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001702echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1703if test "${ac_cv_prog_CC+set}" = set; then
1704 echo $ECHO_N "(cached) $ECHO_C" >&6
1705else
1706 if test -n "$CC"; then
1707 ac_cv_prog_CC="$CC" # Let the user override the test.
1708else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001709 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711for as_dir in $PATH
1712do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 for ac_exec_ext in '' $ac_executable_extensions; do
1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1717 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1718 ac_prog_rejected=yes
1719 continue
1720 fi
1721 ac_cv_prog_CC="cc"
1722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1723 break 2
1724 fi
1725done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001726done
1727
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001728if test $ac_prog_rejected = yes; then
1729 # We found a bogon in the path, so make sure we never use it.
1730 set dummy $ac_cv_prog_CC
1731 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001732 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001733 # We chose a different compiler from the bogus one.
1734 # However, it has the same basename, so the bogon will be chosen
1735 # first if we set CC to just the basename; use the full file name.
1736 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001737 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001738 fi
1739fi
1740fi
1741fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001742CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001743if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001744 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001745echo "${ECHO_T}$CC" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001746else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001747 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001748echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001749fi
1750
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001751fi
1752if test -z "$CC"; then
1753 if test -n "$ac_tool_prefix"; then
1754 for ac_prog in cl
1755 do
1756 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1757set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001758echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760if test "${ac_cv_prog_CC+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001762else
1763 if test -n "$CC"; then
1764 ac_cv_prog_CC="$CC" # Let the user override the test.
1765else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767for as_dir in $PATH
1768do
1769 IFS=$as_save_IFS
1770 test -z "$as_dir" && as_dir=.
1771 for ac_exec_ext in '' $ac_executable_extensions; do
1772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1773 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1775 break 2
1776 fi
1777done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001778done
1779
Eric Pouech18ad24a2000-01-16 22:16:33 +00001780fi
1781fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001782CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00001783if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001784 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001785echo "${ECHO_T}$CC" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001786else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001787 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001788echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001789fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001790
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001791 test -n "$CC" && break
1792 done
1793fi
1794if test -z "$CC"; then
1795 ac_ct_CC=$CC
1796 for ac_prog in cl
1797do
1798 # Extract the first word of "$ac_prog", so it can be a program name with args.
1799set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001800echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001801echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1803 echo $ECHO_N "(cached) $ECHO_C" >&6
1804else
1805 if test -n "$ac_ct_CC"; then
1806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1807else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809for as_dir in $PATH
1810do
1811 IFS=$as_save_IFS
1812 test -z "$as_dir" && as_dir=.
1813 for ac_exec_ext in '' $ac_executable_extensions; do
1814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815 ac_cv_prog_ac_ct_CC="$ac_prog"
1816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817 break 2
1818 fi
1819done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001820done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001821
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001822fi
1823fi
1824ac_ct_CC=$ac_cv_prog_ac_ct_CC
1825if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001826 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001827echo "${ECHO_T}$ac_ct_CC" >&6
1828else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001829 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001830echo "${ECHO_T}no" >&6
1831fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001832
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001833 test -n "$ac_ct_CC" && break
1834done
Eric Pouech18ad24a2000-01-16 22:16:33 +00001835
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001836 CC=$ac_ct_CC
1837fi
1838
1839fi
1840
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001841
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001842test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1843See \`config.log' for more details." >&5
1844echo "$as_me: error: no acceptable C compiler found in \$PATH
1845See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001846 { (exit 1); exit 1; }; }
1847
1848# Provide some information about the compiler.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001849echo "$as_me:$LINENO:" \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001850 "checking for C compiler version" >&5
1851ac_compiler=`set X $ac_compile; echo $2`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001852{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001853 (eval $ac_compiler --version </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); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001862{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001863 (eval $ac_compiler -V </dev/null >&5) 2>&5
1864 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001866 (exit $ac_status); }
1867
1868cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001869/* confdefs.h. */
1870_ACEOF
1871cat confdefs.h >>conftest.$ac_ext
1872cat >>conftest.$ac_ext <<_ACEOF
1873/* end confdefs.h. */
Eric Pouech18ad24a2000-01-16 22:16:33 +00001874
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001875int
1876main ()
1877{
1878
1879 ;
1880 return 0;
1881}
1882_ACEOF
1883ac_clean_files_save=$ac_clean_files
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001884ac_clean_files="$ac_clean_files a.out a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001885# Try to create an executable without -o first, disregard a.out.
1886# It will help us diagnose broken compilers, and finding out an intuition
1887# of exeext.
Alexandre Julliard875927f2004-01-02 01:55:29 +00001888echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1889echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001890ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001891if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001892 (eval $ac_link_default) 2>&5
1893 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001895 (exit $ac_status); }; then
1896 # Find the output, starting from the most likely. This scheme is
1897# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1898# resort.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001899
1900# Be careful to initialize this variable, since it used to be cached.
1901# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1902ac_cv_exeext=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001903# b.out is created by i960 compilers.
1904for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1905do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001906 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001907 case $ac_file in
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001908 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001909 ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001910 conftest.$ac_ext )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001911 # This is the source file.
1912 ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001913 [ab].out )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001914 # We found the default executable, but exeext='' is most
1915 # certainly right.
1916 break;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001917 *.* )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001918 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1919 # FIXME: I believe we export ac_cv_exeext for Libtool,
1920 # but it would be cool to find out if it's true. Does anybody
1921 # maintain Libtool? --akim.
1922 export ac_cv_exeext
1923 break;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001924 * )
Alexandre Julliard875927f2004-01-02 01:55:29 +00001925 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001926 esac
1927done
1928else
1929 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001930sed 's/^/| /' conftest.$ac_ext >&5
1931
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001932{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001933See \`config.log' for more details." >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001934echo "$as_me: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001935See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001936 { (exit 77); exit 77; }; }
1937fi
1938
1939ac_exeext=$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001940echo "$as_me:$LINENO: result: $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001941echo "${ECHO_T}$ac_file" >&6
1942
1943# Check the compiler produces executables we can run. If not, either
1944# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001945echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001946echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1947# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1948# If not cross compiling, check that we can run a simple program.
1949if test "$cross_compiling" != yes; then
1950 if { ac_try='./$ac_file'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001952 (eval $ac_try) 2>&5
1953 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001955 (exit $ac_status); }; }; then
1956 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001957 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001958 if test "$cross_compiling" = maybe; then
1959 cross_compiling=yes
1960 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001961 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001962If you meant to cross compile, use \`--host'.
1963See \`config.log' for more details." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001964echo "$as_me: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001965If you meant to cross compile, use \`--host'.
1966See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001967 { (exit 1); exit 1; }; }
1968 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001969 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001970fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001971echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001972echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001973
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001974rm -f a.out a.exe conftest$ac_cv_exeext b.out
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001975ac_clean_files=$ac_clean_files_save
1976# Check the compiler produces executables we can run. If not, either
1977# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001978echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001979echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001980echo "$as_me:$LINENO: result: $cross_compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001981echo "${ECHO_T}$cross_compiling" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001982
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001983echo "$as_me:$LINENO: checking for suffix of executables" >&5
1984echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1985if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001986 (eval $ac_link) 2>&5
1987 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001989 (exit $ac_status); }; then
1990 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1991# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1992# work properly (i.e., refer to `conftest.exe'), while it won't with
1993# `rm'.
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001994for ac_file in conftest.exe conftest conftest.*; do
1995 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001996 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001998 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Alexandre Julliard875927f2004-01-02 01:55:29 +00001999 export ac_cv_exeext
2000 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002001 * ) break;;
2002 esac
2003done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002004else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002005 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2006See \`config.log' for more details." >&5
2007echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2008See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002009 { (exit 1); exit 1; }; }
2010fi
2011
2012rm -f conftest$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002013echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002014echo "${ECHO_T}$ac_cv_exeext" >&6
2015
2016rm -f conftest.$ac_ext
2017EXEEXT=$ac_cv_exeext
2018ac_exeext=$EXEEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002019echo "$as_me:$LINENO: checking for suffix of object files" >&5
2020echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002021if test "${ac_cv_objext+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002025/* confdefs.h. */
2026_ACEOF
2027cat confdefs.h >>conftest.$ac_ext
2028cat >>conftest.$ac_ext <<_ACEOF
2029/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002030
2031int
2032main ()
2033{
2034
2035 ;
2036 return 0;
2037}
2038_ACEOF
2039rm -f conftest.o conftest.obj
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002040if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002041 (eval $ac_compile) 2>&5
2042 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002044 (exit $ac_status); }; then
2045 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2046 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002048 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2049 break;;
2050 esac
2051done
2052else
2053 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002054sed 's/^/| /' conftest.$ac_ext >&5
2055
2056{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2057See \`config.log' for more details." >&5
2058echo "$as_me: error: cannot compute suffix of object files: cannot compile
2059See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002060 { (exit 1); exit 1; }; }
2061fi
2062
2063rm -f conftest.$ac_cv_objext conftest.$ac_ext
2064fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002065echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002066echo "${ECHO_T}$ac_cv_objext" >&6
2067OBJEXT=$ac_cv_objext
2068ac_objext=$OBJEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002069echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002070echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2071if test "${ac_cv_c_compiler_gnu+set}" = set; then
2072 echo $ECHO_N "(cached) $ECHO_C" >&6
2073else
2074 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002075/* confdefs.h. */
2076_ACEOF
2077cat confdefs.h >>conftest.$ac_ext
2078cat >>conftest.$ac_ext <<_ACEOF
2079/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002080
2081int
2082main ()
2083{
2084#ifndef __GNUC__
2085 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002086#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002087
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002088 ;
2089 return 0;
2090}
2091_ACEOF
2092rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002093if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002094 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002095 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002096 grep -v '^ *+' conftest.er1 >conftest.err
2097 rm -f conftest.er1
2098 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002100 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2103 (eval $ac_try) 2>&5
2104 ac_status=$?
2105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2106 (exit $ac_status); }; } &&
2107 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002109 (eval $ac_try) 2>&5
2110 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002112 (exit $ac_status); }; }; then
2113 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00002114else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002115 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002116sed 's/^/| /' conftest.$ac_ext >&5
2117
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002118ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00002119fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002120rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002121ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00002122
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002123fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002124echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002125echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2126GCC=`test $ac_compiler_gnu = yes && echo yes`
2127ac_test_CFLAGS=${CFLAGS+set}
2128ac_save_CFLAGS=$CFLAGS
2129CFLAGS="-g"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002130echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002131echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2132if test "${ac_cv_prog_cc_g+set}" = set; then
2133 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002134else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002135 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002136/* confdefs.h. */
2137_ACEOF
2138cat confdefs.h >>conftest.$ac_ext
2139cat >>conftest.$ac_ext <<_ACEOF
2140/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002141
2142int
2143main ()
2144{
2145
2146 ;
2147 return 0;
2148}
2149_ACEOF
2150rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002151if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002152 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002153 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002154 grep -v '^ *+' conftest.er1 >conftest.err
2155 rm -f conftest.er1
2156 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002158 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2161 (eval $ac_try) 2>&5
2162 ac_status=$?
2163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2164 (exit $ac_status); }; } &&
2165 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002167 (eval $ac_try) 2>&5
2168 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002170 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002171 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002172else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002173 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002174sed 's/^/| /' conftest.$ac_ext >&5
2175
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002176ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002177fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002178rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002179fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002180echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002181echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00002182if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002183 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00002184elif test $ac_cv_prog_cc_g = yes; then
2185 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002186 CFLAGS="-g -O2"
2187 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002188 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002189 fi
2190else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002191 if test "$GCC" = yes; then
2192 CFLAGS="-O2"
2193 else
2194 CFLAGS=
2195 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002196fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002197echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2198echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2199if test "${ac_cv_prog_cc_stdc+set}" = set; then
2200 echo $ECHO_N "(cached) $ECHO_C" >&6
2201else
2202 ac_cv_prog_cc_stdc=no
2203ac_save_CC=$CC
2204cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002205/* confdefs.h. */
2206_ACEOF
2207cat confdefs.h >>conftest.$ac_ext
2208cat >>conftest.$ac_ext <<_ACEOF
2209/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002210#include <stdarg.h>
2211#include <stdio.h>
2212#include <sys/types.h>
2213#include <sys/stat.h>
2214/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2215struct buf { int x; };
2216FILE * (*rcsopen) (struct buf *, struct stat *, int);
2217static char *e (p, i)
2218 char **p;
2219 int i;
2220{
2221 return p[i];
2222}
2223static char *f (char * (*g) (char **, int), char **p, ...)
2224{
2225 char *s;
2226 va_list v;
2227 va_start (v,p);
2228 s = g (p, va_arg (v,int));
2229 va_end (v);
2230 return s;
2231}
Alexandre Julliard875927f2004-01-02 01:55:29 +00002232
2233/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2234 function prototypes and stuff, but not '\xHH' hex character constants.
2235 These don't provoke an error unfortunately, instead are silently treated
2236 as 'x'. The following induces an error, until -std1 is added to get
2237 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2238 array size at least. It's necessary to write '\x00'==0 to get something
2239 that's true only with -std1. */
2240int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2241
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002242int test (int i, double x);
2243struct s1 {int (*f) (int a);};
2244struct s2 {int (*f) (double a);};
2245int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2246int argc;
2247char **argv;
2248int
2249main ()
2250{
2251return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2252 ;
2253 return 0;
2254}
2255_ACEOF
2256# Don't try gcc -ansi; that turns off useful extensions and
2257# breaks some systems' header files.
2258# AIX -qlanglvl=ansi
2259# Ultrix and OSF/1 -std1
2260# HP-UX 10.20 and later -Ae
2261# HP-UX older versions -Aa -D_HPUX_SOURCE
2262# SVR4 -Xc -D__EXTENSIONS__
2263for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2264do
2265 CC="$ac_save_CC $ac_arg"
2266 rm -f conftest.$ac_objext
2267if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002268 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002269 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002270 grep -v '^ *+' conftest.er1 >conftest.err
2271 rm -f conftest.er1
2272 cat conftest.err >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2277 (eval $ac_try) 2>&5
2278 ac_status=$?
2279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2280 (exit $ac_status); }; } &&
2281 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2283 (eval $ac_try) 2>&5
2284 ac_status=$?
2285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2286 (exit $ac_status); }; }; then
2287 ac_cv_prog_cc_stdc=$ac_arg
2288break
2289else
2290 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002291sed 's/^/| /' conftest.$ac_ext >&5
2292
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002293fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002294rm -f conftest.err conftest.$ac_objext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002295done
2296rm -f conftest.$ac_ext conftest.$ac_objext
2297CC=$ac_save_CC
2298
2299fi
2300
2301case "x$ac_cv_prog_cc_stdc" in
2302 x|xno)
2303 echo "$as_me:$LINENO: result: none needed" >&5
2304echo "${ECHO_T}none needed" >&6 ;;
2305 *)
2306 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2307echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2308 CC="$CC $ac_cv_prog_cc_stdc" ;;
2309esac
2310
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002311# Some people use a C++ compiler to compile C. Since we use `exit',
2312# in C++ we need to declare it. In case someone uses the same compiler
2313# for both compiling C and C++ we need to have the C++ compiler decide
2314# the declaration of exit, since it's the most demanding environment.
2315cat >conftest.$ac_ext <<_ACEOF
2316#ifndef __cplusplus
2317 choke me
2318#endif
2319_ACEOF
2320rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002321if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002322 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002323 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002324 grep -v '^ *+' conftest.er1 >conftest.err
2325 rm -f conftest.er1
2326 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002328 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2331 (eval $ac_try) 2>&5
2332 ac_status=$?
2333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334 (exit $ac_status); }; } &&
2335 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002337 (eval $ac_try) 2>&5
2338 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002340 (exit $ac_status); }; }; then
2341 for ac_declaration in \
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002342 '' \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002343 'extern "C" void std::exit (int) throw (); using std::exit;' \
2344 'extern "C" void std::exit (int); using std::exit;' \
2345 'extern "C" void exit (int) throw ();' \
2346 'extern "C" void exit (int);' \
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002347 'void exit (int);'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002348do
2349 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002350/* confdefs.h. */
2351_ACEOF
2352cat confdefs.h >>conftest.$ac_ext
2353cat >>conftest.$ac_ext <<_ACEOF
2354/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002355$ac_declaration
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002356#include <stdlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002357int
2358main ()
2359{
2360exit (42);
2361 ;
2362 return 0;
2363}
2364_ACEOF
2365rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002367 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002368 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002369 grep -v '^ *+' conftest.er1 >conftest.err
2370 rm -f conftest.er1
2371 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002373 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376 (eval $ac_try) 2>&5
2377 ac_status=$?
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002382 (eval $ac_try) 2>&5
2383 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002385 (exit $ac_status); }; }; then
2386 :
2387else
2388 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002389sed 's/^/| /' conftest.$ac_ext >&5
2390
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002391continue
2392fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002393rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002394 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002395/* confdefs.h. */
2396_ACEOF
2397cat confdefs.h >>conftest.$ac_ext
2398cat >>conftest.$ac_ext <<_ACEOF
2399/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002400$ac_declaration
2401int
2402main ()
2403{
2404exit (42);
2405 ;
2406 return 0;
2407}
2408_ACEOF
2409rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002410if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00002411 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002412 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00002413 grep -v '^ *+' conftest.er1 >conftest.err
2414 rm -f conftest.er1
2415 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002417 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00002418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 (eval $ac_try) 2>&5
2421 ac_status=$?
2422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423 (exit $ac_status); }; } &&
2424 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002426 (eval $ac_try) 2>&5
2427 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002429 (exit $ac_status); }; }; then
2430 break
2431else
2432 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002433sed 's/^/| /' conftest.$ac_ext >&5
2434
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002435fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002437done
2438rm -f conftest*
2439if test -n "$ac_declaration"; then
2440 echo '#ifdef __cplusplus' >>confdefs.h
2441 echo $ac_declaration >>confdefs.h
2442 echo '#endif' >>confdefs.h
2443fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002444
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002445else
2446 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002447sed 's/^/| /' conftest.$ac_ext >&5
2448
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002449fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00002450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002451ac_ext=c
2452ac_cpp='$CPP $CPPFLAGS'
2453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002457ac_ext=cc
2458ac_cpp='$CXXCPP $CPPFLAGS'
2459ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2460ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2461ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2462if test -n "$ac_tool_prefix"; then
2463 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2464 do
2465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2466set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2467echo "$as_me:$LINENO: checking for $ac_word" >&5
2468echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2469if test "${ac_cv_prog_CXX+set}" = set; then
2470 echo $ECHO_N "(cached) $ECHO_C" >&6
2471else
2472 if test -n "$CXX"; then
2473 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2474else
2475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476for as_dir in $PATH
2477do
2478 IFS=$as_save_IFS
2479 test -z "$as_dir" && as_dir=.
2480 for ac_exec_ext in '' $ac_executable_extensions; do
2481 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2482 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2484 break 2
2485 fi
2486done
2487done
2488
2489fi
2490fi
2491CXX=$ac_cv_prog_CXX
2492if test -n "$CXX"; then
2493 echo "$as_me:$LINENO: result: $CXX" >&5
2494echo "${ECHO_T}$CXX" >&6
2495else
2496 echo "$as_me:$LINENO: result: no" >&5
2497echo "${ECHO_T}no" >&6
2498fi
2499
2500 test -n "$CXX" && break
2501 done
2502fi
2503if test -z "$CXX"; then
2504 ac_ct_CXX=$CXX
2505 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2506do
2507 # Extract the first word of "$ac_prog", so it can be a program name with args.
2508set dummy $ac_prog; ac_word=$2
2509echo "$as_me:$LINENO: checking for $ac_word" >&5
2510echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2511if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2512 echo $ECHO_N "(cached) $ECHO_C" >&6
2513else
2514 if test -n "$ac_ct_CXX"; then
2515 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2516else
2517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2518for as_dir in $PATH
2519do
2520 IFS=$as_save_IFS
2521 test -z "$as_dir" && as_dir=.
2522 for ac_exec_ext in '' $ac_executable_extensions; do
2523 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2524 ac_cv_prog_ac_ct_CXX="$ac_prog"
2525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2526 break 2
2527 fi
2528done
2529done
2530
2531fi
2532fi
2533ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2534if test -n "$ac_ct_CXX"; then
2535 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2536echo "${ECHO_T}$ac_ct_CXX" >&6
2537else
2538 echo "$as_me:$LINENO: result: no" >&5
2539echo "${ECHO_T}no" >&6
2540fi
2541
2542 test -n "$ac_ct_CXX" && break
2543done
2544test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2545
2546 CXX=$ac_ct_CXX
2547fi
2548
2549
2550# Provide some information about the compiler.
2551echo "$as_me:$LINENO:" \
2552 "checking for C++ compiler version" >&5
2553ac_compiler=`set X $ac_compile; echo $2`
2554{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2555 (eval $ac_compiler --version </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{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2565 (eval $ac_compiler -V </dev/null >&5) 2>&5
2566 ac_status=$?
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }
2569
2570echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2571echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2572if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2573 echo $ECHO_N "(cached) $ECHO_C" >&6
2574else
2575 cat >conftest.$ac_ext <<_ACEOF
2576/* confdefs.h. */
2577_ACEOF
2578cat confdefs.h >>conftest.$ac_ext
2579cat >>conftest.$ac_ext <<_ACEOF
2580/* end confdefs.h. */
2581
2582int
2583main ()
2584{
2585#ifndef __GNUC__
2586 choke me
2587#endif
2588
2589 ;
2590 return 0;
2591}
2592_ACEOF
2593rm -f conftest.$ac_objext
2594if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2595 (eval $ac_compile) 2>conftest.er1
2596 ac_status=$?
2597 grep -v '^ *+' conftest.er1 >conftest.err
2598 rm -f conftest.er1
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } &&
2602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604 (eval $ac_try) 2>&5
2605 ac_status=$?
2606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607 (exit $ac_status); }; } &&
2608 { ac_try='test -s conftest.$ac_objext'
2609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2610 (eval $ac_try) 2>&5
2611 ac_status=$?
2612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2613 (exit $ac_status); }; }; then
2614 ac_compiler_gnu=yes
2615else
2616 echo "$as_me: failed program was:" >&5
2617sed 's/^/| /' conftest.$ac_ext >&5
2618
2619ac_compiler_gnu=no
2620fi
2621rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2622ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2623
2624fi
2625echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2626echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2627GXX=`test $ac_compiler_gnu = yes && echo yes`
2628ac_test_CXXFLAGS=${CXXFLAGS+set}
2629ac_save_CXXFLAGS=$CXXFLAGS
2630CXXFLAGS="-g"
2631echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2632echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2633if test "${ac_cv_prog_cxx_g+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2635else
2636 cat >conftest.$ac_ext <<_ACEOF
2637/* confdefs.h. */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h. */
2642
2643int
2644main ()
2645{
2646
2647 ;
2648 return 0;
2649}
2650_ACEOF
2651rm -f conftest.$ac_objext
2652if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2653 (eval $ac_compile) 2>conftest.er1
2654 ac_status=$?
2655 grep -v '^ *+' conftest.er1 >conftest.err
2656 rm -f conftest.er1
2657 cat conftest.err >&5
2658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2659 (exit $ac_status); } &&
2660 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2662 (eval $ac_try) 2>&5
2663 ac_status=$?
2664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2665 (exit $ac_status); }; } &&
2666 { ac_try='test -s conftest.$ac_objext'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2668 (eval $ac_try) 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; }; then
2672 ac_cv_prog_cxx_g=yes
2673else
2674 echo "$as_me: failed program was:" >&5
2675sed 's/^/| /' conftest.$ac_ext >&5
2676
2677ac_cv_prog_cxx_g=no
2678fi
2679rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2680fi
2681echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2682echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2683if test "$ac_test_CXXFLAGS" = set; then
2684 CXXFLAGS=$ac_save_CXXFLAGS
2685elif test $ac_cv_prog_cxx_g = yes; then
2686 if test "$GXX" = yes; then
2687 CXXFLAGS="-g -O2"
2688 else
2689 CXXFLAGS="-g"
2690 fi
2691else
2692 if test "$GXX" = yes; then
2693 CXXFLAGS="-O2"
2694 else
2695 CXXFLAGS=
2696 fi
2697fi
2698for ac_declaration in \
2699 '' \
2700 'extern "C" void std::exit (int) throw (); using std::exit;' \
2701 'extern "C" void std::exit (int); using std::exit;' \
2702 'extern "C" void exit (int) throw ();' \
2703 'extern "C" void exit (int);' \
2704 'void exit (int);'
2705do
2706 cat >conftest.$ac_ext <<_ACEOF
2707/* confdefs.h. */
2708_ACEOF
2709cat confdefs.h >>conftest.$ac_ext
2710cat >>conftest.$ac_ext <<_ACEOF
2711/* end confdefs.h. */
2712$ac_declaration
2713#include <stdlib.h>
2714int
2715main ()
2716{
2717exit (42);
2718 ;
2719 return 0;
2720}
2721_ACEOF
2722rm -f conftest.$ac_objext
2723if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2724 (eval $ac_compile) 2>conftest.er1
2725 ac_status=$?
2726 grep -v '^ *+' conftest.er1 >conftest.err
2727 rm -f conftest.er1
2728 cat conftest.err >&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); } &&
2731 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2733 (eval $ac_try) 2>&5
2734 ac_status=$?
2735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2736 (exit $ac_status); }; } &&
2737 { ac_try='test -s conftest.$ac_objext'
2738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2739 (eval $ac_try) 2>&5
2740 ac_status=$?
2741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2742 (exit $ac_status); }; }; then
2743 :
2744else
2745 echo "$as_me: failed program was:" >&5
2746sed 's/^/| /' conftest.$ac_ext >&5
2747
2748continue
2749fi
2750rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2751 cat >conftest.$ac_ext <<_ACEOF
2752/* confdefs.h. */
2753_ACEOF
2754cat confdefs.h >>conftest.$ac_ext
2755cat >>conftest.$ac_ext <<_ACEOF
2756/* end confdefs.h. */
2757$ac_declaration
2758int
2759main ()
2760{
2761exit (42);
2762 ;
2763 return 0;
2764}
2765_ACEOF
2766rm -f conftest.$ac_objext
2767if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768 (eval $ac_compile) 2>conftest.er1
2769 ac_status=$?
2770 grep -v '^ *+' conftest.er1 >conftest.err
2771 rm -f conftest.er1
2772 cat conftest.err >&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); } &&
2775 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777 (eval $ac_try) 2>&5
2778 ac_status=$?
2779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780 (exit $ac_status); }; } &&
2781 { ac_try='test -s conftest.$ac_objext'
2782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2783 (eval $ac_try) 2>&5
2784 ac_status=$?
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; }; then
2787 break
2788else
2789 echo "$as_me: failed program was:" >&5
2790sed 's/^/| /' conftest.$ac_ext >&5
2791
2792fi
2793rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794done
2795rm -f conftest*
2796if test -n "$ac_declaration"; then
2797 echo '#ifdef __cplusplus' >>confdefs.h
2798 echo $ac_declaration >>confdefs.h
2799 echo '#endif' >>confdefs.h
2800fi
2801
2802ac_ext=c
2803ac_cpp='$CPP $CPPFLAGS'
2804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002808if test -n "$ac_tool_prefix"; then
2809 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
2810set dummy ${ac_tool_prefix}cpp; ac_word=$2
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002811echo "$as_me:$LINENO: checking for $ac_word" >&5
2812echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002813if test "${ac_cv_prog_CPPBIN+set}" = set; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002814 echo $ECHO_N "(cached) $ECHO_C" >&6
2815else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002816 if test -n "$CPPBIN"; then
2817 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002826 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002827 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830done
2831done
2832
2833fi
2834fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002835CPPBIN=$ac_cv_prog_CPPBIN
2836if test -n "$CPPBIN"; then
2837 echo "$as_me:$LINENO: result: $CPPBIN" >&5
2838echo "${ECHO_T}$CPPBIN" >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002839else
2840 echo "$as_me:$LINENO: result: no" >&5
2841echo "${ECHO_T}no" >&6
2842fi
2843
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002844fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002845if test -z "$ac_cv_prog_CPPBIN"; then
2846 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002847 # Extract the first word of "cpp", so it can be a program name with args.
2848set dummy cpp; ac_word=$2
2849echo "$as_me:$LINENO: checking for $ac_word" >&5
2850echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002851if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002852 echo $ECHO_N "(cached) $ECHO_C" >&6
2853else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002854 if test -n "$ac_ct_CPPBIN"; then
2855 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002856else
2857as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858for as_dir in $PATH
2859do
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002864 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002865 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2866 break 2
2867 fi
2868done
2869done
2870
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002871 test -z "$ac_cv_prog_ac_ct_CPPBIN" && ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002872fi
2873fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002874ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
2875if test -n "$ac_ct_CPPBIN"; then
2876 echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
2877echo "${ECHO_T}$ac_ct_CPPBIN" >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002878else
2879 echo "$as_me:$LINENO: result: no" >&5
2880echo "${ECHO_T}no" >&6
2881fi
2882
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002883 CPPBIN=$ac_ct_CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002884else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00002885 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00002886fi
2887
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00002888
2889echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2890echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2891if test "${wine_cv_toolsdir+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2893else
2894 if test -z "$with_wine_tools"; then
2895 if test "$cross_compiling" = "yes"; then
2896 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2897echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2898 { (exit 1); exit 1; }; }
2899 else
2900 wine_cv_toolsdir="\$(TOPOBJDIR)"
2901 fi
2902 elif test -d "$with_wine_tools/tools/winebuild"; then
2903 case $with_wine_tools in
2904 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2905 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2906 esac
2907 else
2908 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2909echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2910 { (exit 1); exit 1; }; }
2911 fi
2912fi
2913echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2914echo "${ECHO_T}$wine_cv_toolsdir" >&6
2915TOOLSDIR=$wine_cv_toolsdir
2916
2917
2918
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002919ac_ext=c
2920ac_cpp='$CPP $CPPFLAGS'
2921ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2922ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2923ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002924echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002925echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002926# On Suns, sometimes $CPP names a directory.
2927if test -n "$CPP" && test -d "$CPP"; then
2928 CPP=
2929fi
2930if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002931 if test "${ac_cv_prog_CPP+set}" = set; then
2932 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002933else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002934 # Double quotes because CPP needs to be expanded
2935 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2936 do
2937 ac_preproc_ok=false
2938for ac_c_preproc_warn_flag in '' yes
2939do
2940 # Use a header file that comes with gcc, so configuring glibc
2941 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2943 # <limits.h> exists even on freestanding compilers.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002944 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002945 # not just through cpp. "Syntax error" is here to catch this case.
2946 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002947/* confdefs.h. */
2948_ACEOF
2949cat confdefs.h >>conftest.$ac_ext
2950cat >>conftest.$ac_ext <<_ACEOF
2951/* end confdefs.h. */
2952#ifdef __STDC__
2953# include <limits.h>
2954#else
2955# include <assert.h>
2956#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00002957 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002958_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002959if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2961 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002962 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002963 rm -f conftest.er1
2964 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002966 (exit $ac_status); } >/dev/null; then
2967 if test -s conftest.err; then
2968 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00002969 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002970 else
2971 ac_cpp_err=
2972 fi
2973else
2974 ac_cpp_err=yes
2975fi
2976if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002977 :
2978else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002979 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002980sed 's/^/| /' conftest.$ac_ext >&5
2981
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002982 # Broken: fails on valid input.
2983continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002984fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002985rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002986
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002987 # OK, works on sane cases. Now check whether non-existent headers
2988 # can be detected and how.
2989 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002990/* confdefs.h. */
2991_ACEOF
2992cat confdefs.h >>conftest.$ac_ext
2993cat >>conftest.$ac_ext <<_ACEOF
2994/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002995#include <ac_nonexistent.h>
2996_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002997if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2999 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003000 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003001 rm -f conftest.er1
3002 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003004 (exit $ac_status); } >/dev/null; then
3005 if test -s conftest.err; then
3006 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003008 else
3009 ac_cpp_err=
3010 fi
3011else
3012 ac_cpp_err=yes
3013fi
3014if test -z "$ac_cpp_err"; then
3015 # Broken: success on invalid input.
3016continue
3017else
3018 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003019sed 's/^/| /' conftest.$ac_ext >&5
3020
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003021 # Passes both tests.
3022ac_preproc_ok=:
3023break
3024fi
3025rm -f conftest.err conftest.$ac_ext
3026
3027done
3028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3029rm -f conftest.err conftest.$ac_ext
3030if $ac_preproc_ok; then
3031 break
3032fi
3033
3034 done
3035 ac_cv_prog_CPP=$CPP
3036
3037fi
3038 CPP=$ac_cv_prog_CPP
3039else
3040 ac_cv_prog_CPP=$CPP
3041fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003042echo "$as_me:$LINENO: result: $CPP" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003043echo "${ECHO_T}$CPP" >&6
3044ac_preproc_ok=false
3045for ac_c_preproc_warn_flag in '' yes
3046do
3047 # Use a header file that comes with gcc, so configuring glibc
3048 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3050 # <limits.h> exists even on freestanding compilers.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003051 # On the NeXT, cc -E runs the code through the compiler's parser,
3052 # not just through cpp. "Syntax error" is here to catch this case.
3053 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003054/* confdefs.h. */
3055_ACEOF
3056cat confdefs.h >>conftest.$ac_ext
3057cat >>conftest.$ac_ext <<_ACEOF
3058/* end confdefs.h. */
3059#ifdef __STDC__
3060# include <limits.h>
3061#else
3062# include <assert.h>
3063#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003064 Syntax error
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003065_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003066if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3068 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003069 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003070 rm -f conftest.er1
3071 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003073 (exit $ac_status); } >/dev/null; then
3074 if test -s conftest.err; then
3075 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003076 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003077 else
3078 ac_cpp_err=
3079 fi
3080else
3081 ac_cpp_err=yes
3082fi
3083if test -z "$ac_cpp_err"; then
3084 :
3085else
3086 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003087sed 's/^/| /' conftest.$ac_ext >&5
3088
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003089 # Broken: fails on valid input.
3090continue
3091fi
3092rm -f conftest.err conftest.$ac_ext
3093
3094 # OK, works on sane cases. Now check whether non-existent headers
3095 # can be detected and how.
3096 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003097/* confdefs.h. */
3098_ACEOF
3099cat confdefs.h >>conftest.$ac_ext
3100cat >>conftest.$ac_ext <<_ACEOF
3101/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003102#include <ac_nonexistent.h>
3103_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003104if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3106 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003107 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003108 rm -f conftest.er1
3109 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003111 (exit $ac_status); } >/dev/null; then
3112 if test -s conftest.err; then
3113 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003114 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003115 else
3116 ac_cpp_err=
3117 fi
3118else
3119 ac_cpp_err=yes
3120fi
3121if test -z "$ac_cpp_err"; then
3122 # Broken: success on invalid input.
3123continue
3124else
3125 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003126sed 's/^/| /' conftest.$ac_ext >&5
3127
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003128 # Passes both tests.
3129ac_preproc_ok=:
3130break
3131fi
3132rm -f conftest.err conftest.$ac_ext
3133
3134done
3135# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3136rm -f conftest.err conftest.$ac_ext
3137if $ac_preproc_ok; then
3138 :
3139else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003140 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3141See \`config.log' for more details." >&5
3142echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3143See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003144 { (exit 1); exit 1; }; }
3145fi
3146
3147ac_ext=c
3148ac_cpp='$CPP $CPPFLAGS'
3149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3151ac_compiler_gnu=$ac_cv_c_compiler_gnu
3152
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003153
Eric Pouech800864a2004-04-05 22:21:27 +00003154
3155if test "x$ac_path_x_has_been_run" != xyes; then
3156 echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003157echo $ECHO_N "checking for X... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003158
Eric Pouech800864a2004-04-05 22:21:27 +00003159ac_path_x_has_been_run=yes
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003160
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003161# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003162if test "${with_x+set}" = set; then
3163 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003164
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003165fi;
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003166# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003167if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003168 # The user explicitly disabled X.
3169 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003170else
3171 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003172 # Both variables are already set.
3173 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003174 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003175 if test "${ac_cv_have_x+set}" = set; then
3176 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003177else
3178 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003179ac_x_includes=no ac_x_libraries=no
3180rm -fr conftest.dir
3181if mkdir conftest.dir; then
3182 cd conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003183 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003184 cat >Imakefile <<'_ACEOF'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003185acfindx:
3186 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003187_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003188 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003189 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003190 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003191 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3192 for ac_extension in a so sl; do
3193 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003194 test -f $ac_im_libdir/libX11.$ac_extension; then
3195 ac_im_usrlibdir=$ac_im_libdir; break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003196 fi
3197 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003198 # Screen out bogus values from the imake configuration. They are
3199 # bogus both because they are the default anyway, and because
3200 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003201 case $ac_im_incroot in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003202 /usr/include) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003203 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003204 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003205 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003206 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003207 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003208 esac
3209 fi
3210 cd ..
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003211 rm -fr conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003212fi
3213
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003214# Standard set of common directories for X headers.
3215# Check X11 before X11Rn because it is often a symlink to the current release.
3216ac_x_header_dirs='
3217/usr/X11/include
3218/usr/X11R6/include
3219/usr/X11R5/include
3220/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003221
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003222/usr/include/X11
3223/usr/include/X11R6
3224/usr/include/X11R5
3225/usr/include/X11R4
3226
3227/usr/local/X11/include
3228/usr/local/X11R6/include
3229/usr/local/X11R5/include
3230/usr/local/X11R4/include
3231
3232/usr/local/include/X11
3233/usr/local/include/X11R6
3234/usr/local/include/X11R5
3235/usr/local/include/X11R4
3236
3237/usr/X386/include
3238/usr/x386/include
3239/usr/XFree86/include/X11
3240
3241/usr/include
3242/usr/local/include
3243/usr/unsupported/include
3244/usr/athena/include
3245/usr/local/x11r5/include
3246/usr/lpp/Xamples/include
3247
3248/usr/openwin/include
3249/usr/openwin/share/include'
3250
3251if test "$ac_x_includes" = no; then
Eric Pouech800864a2004-04-05 22:21:27 +00003252 # Guess where to find include files, by looking for a specified header file.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003253 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003254 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003255/* confdefs.h. */
3256_ACEOF
3257cat confdefs.h >>conftest.$ac_ext
3258cat >>conftest.$ac_ext <<_ACEOF
3259/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003260#include <X11/Intrinsic.h>
3261_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003262if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003263 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3264 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003265 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003266 rm -f conftest.er1
3267 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003269 (exit $ac_status); } >/dev/null; then
3270 if test -s conftest.err; then
3271 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00003272 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003273 else
3274 ac_cpp_err=
3275 fi
3276else
3277 ac_cpp_err=yes
3278fi
3279if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003280 # We can compile using X headers with no special include directory.
3281ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003282else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003283 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003284sed 's/^/| /' conftest.$ac_ext >&5
3285
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003286 for ac_dir in $ac_x_header_dirs; do
3287 if test -r "$ac_dir/X11/Intrinsic.h"; then
3288 ac_x_includes=$ac_dir
3289 break
3290 fi
3291done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003292fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003293rm -f conftest.err conftest.$ac_ext
3294fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003295
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003296if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003297 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003298 # See if we find them without any special options.
3299 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003300 ac_save_LIBS=$LIBS
3301 LIBS="-lXt $LIBS"
3302 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003303/* confdefs.h. */
3304_ACEOF
3305cat confdefs.h >>conftest.$ac_ext
3306cat >>conftest.$ac_ext <<_ACEOF
3307/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003308#include <X11/Intrinsic.h>
3309int
3310main ()
3311{
3312XtMalloc (0)
3313 ;
3314 return 0;
3315}
3316_ACEOF
3317rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003318if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003319 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003320 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003321 grep -v '^ *+' conftest.er1 >conftest.err
3322 rm -f conftest.er1
3323 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003325 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3328 (eval $ac_try) 2>&5
3329 ac_status=$?
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; } &&
3332 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003334 (eval $ac_try) 2>&5
3335 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003337 (exit $ac_status); }; }; then
3338 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003339# We can link X programs with no special library path.
3340ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003341else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003342 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003343sed 's/^/| /' conftest.$ac_ext >&5
3344
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003345LIBS=$ac_save_LIBS
3346for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003347do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003348 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003349 for ac_extension in a so sl; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003350 if test -r $ac_dir/libXt.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003351 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003352 break 2
3353 fi
3354 done
3355done
3356fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003357rm -f conftest.err conftest.$ac_objext \
3358 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003359fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003360
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003361if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003362 # Didn't find X anywhere. Cache the known absence of X.
3363 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003364else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003365 # Record where we found X for the cache.
3366 ac_cv_have_x="have_x=yes \
Alexandre Julliard875927f2004-01-02 01:55:29 +00003367 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003368fi
3369fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003370
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003371 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003372 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003373fi # $with_x != no
3374
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003375if test "$have_x" != yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003376 echo "$as_me:$LINENO: result: $have_x" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003377echo "${ECHO_T}$have_x" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003378 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003379else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003380 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003381 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3382 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003383 # Update the cache value to reflect the command line values.
3384 ac_cv_have_x="have_x=yes \
3385 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Eric Pouech800864a2004-04-05 22:21:27 +00003386 # It might be that x_includes is empty (headers are found in the
3387 # standard search path. Then output the corresponding message
3388 ac_out_x_includes=$x_includes
3389 test "x$x_includes" = x && ac_out_x_includes="in standard search path"
3390 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5
3391echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003392fi
3393
Eric Pouech800864a2004-04-05 22:21:27 +00003394fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003395if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003396 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003397
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003398cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003399#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003400_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003401
3402 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003403else
3404 if test -n "$x_includes"; then
3405 X_CFLAGS="$X_CFLAGS -I$x_includes"
3406 fi
3407
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003408 # It would also be nice to do this for all -L options, not just this one.
3409 if test -n "$x_libraries"; then
3410 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003411 # For Solaris; some versions of Sun CC require a space after -R and
3412 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003413 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003414 "SunOS 5"*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003415 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003416echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
3417 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
3418 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003419/* confdefs.h. */
3420_ACEOF
3421cat confdefs.h >>conftest.$ac_ext
3422cat >>conftest.$ac_ext <<_ACEOF
3423/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003424
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003425int
3426main ()
3427{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003428
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003429 ;
3430 return 0;
3431}
3432_ACEOF
3433rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003434if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003435 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003436 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003437 grep -v '^ *+' conftest.er1 >conftest.err
3438 rm -f conftest.er1
3439 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003441 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3444 (eval $ac_try) 2>&5
3445 ac_status=$?
3446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3447 (exit $ac_status); }; } &&
3448 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003450 (eval $ac_try) 2>&5
3451 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003453 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003454 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003455else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003456 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003457sed 's/^/| /' conftest.$ac_ext >&5
3458
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003459ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003460fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003461rm -f conftest.err conftest.$ac_objext \
3462 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003463 if test $ac_R_nospace = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003464 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003465echo "${ECHO_T}no" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003466 X_LIBS="$X_LIBS -R$x_libraries"
3467 else
3468 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003469 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003470/* confdefs.h. */
3471_ACEOF
3472cat confdefs.h >>conftest.$ac_ext
3473cat >>conftest.$ac_ext <<_ACEOF
3474/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003475
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003476int
3477main ()
3478{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003479
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003480 ;
3481 return 0;
3482}
3483_ACEOF
3484rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003485if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003486 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003487 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003488 grep -v '^ *+' conftest.er1 >conftest.err
3489 rm -f conftest.er1
3490 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003492 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3495 (eval $ac_try) 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }; } &&
3499 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003501 (eval $ac_try) 2>&5
3502 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003504 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003505 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003506else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003507 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003508sed 's/^/| /' conftest.$ac_ext >&5
3509
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003510ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003511fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003512rm -f conftest.err conftest.$ac_objext \
3513 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003514 if test $ac_R_space = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003515 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003516echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003517 X_LIBS="$X_LIBS -R $x_libraries"
3518 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003519 echo "$as_me:$LINENO: result: neither works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003520echo "${ECHO_T}neither works" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003521 fi
3522 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003523 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003524 esac
3525 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003526
3527 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003528 # Do this before checking for the system-independent R6 libraries
3529 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003530
3531 if test "$ISC" = yes; then
3532 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3533 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003534 # Martyn Johnson says this is needed for Ultrix, if the X
3535 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003536 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003537 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
3538 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003539/* confdefs.h. */
3540_ACEOF
3541cat confdefs.h >>conftest.$ac_ext
3542cat >>conftest.$ac_ext <<_ACEOF
3543/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003544
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003545/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003546#ifdef __cplusplus
3547extern "C"
3548#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003549/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003550 builtin and then its argument prototype would still apply. */
3551char XOpenDisplay ();
3552int
3553main ()
3554{
3555XOpenDisplay ();
3556 ;
3557 return 0;
3558}
3559_ACEOF
3560rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003561if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003562 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003563 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003564 grep -v '^ *+' conftest.er1 >conftest.err
3565 rm -f conftest.er1
3566 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003568 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3571 (eval $ac_try) 2>&5
3572 ac_status=$?
3573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3574 (exit $ac_status); }; } &&
3575 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003577 (eval $ac_try) 2>&5
3578 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003580 (exit $ac_status); }; }; then
3581 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003582else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003583 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003584sed 's/^/| /' conftest.$ac_ext >&5
3585
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003586echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003587echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3588if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3589 echo $ECHO_N "(cached) $ECHO_C" >&6
3590else
3591 ac_check_lib_save_LIBS=$LIBS
3592LIBS="-ldnet $LIBS"
3593cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003594/* confdefs.h. */
3595_ACEOF
3596cat confdefs.h >>conftest.$ac_ext
3597cat >>conftest.$ac_ext <<_ACEOF
3598/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003599
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003600/* Override any gcc2 internal prototype to avoid an error. */
3601#ifdef __cplusplus
3602extern "C"
3603#endif
3604/* We use char because int might match the return type of a gcc2
3605 builtin and then its argument prototype would still apply. */
3606char dnet_ntoa ();
3607int
3608main ()
3609{
3610dnet_ntoa ();
3611 ;
3612 return 0;
3613}
3614_ACEOF
3615rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003616if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003617 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003618 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003619 grep -v '^ *+' conftest.er1 >conftest.err
3620 rm -f conftest.er1
3621 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003623 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3626 (eval $ac_try) 2>&5
3627 ac_status=$?
3628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3629 (exit $ac_status); }; } &&
3630 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003632 (eval $ac_try) 2>&5
3633 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003635 (exit $ac_status); }; }; then
3636 ac_cv_lib_dnet_dnet_ntoa=yes
3637else
3638 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003639sed 's/^/| /' conftest.$ac_ext >&5
3640
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003641ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003642fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003643rm -f conftest.err conftest.$ac_objext \
3644 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003645LIBS=$ac_check_lib_save_LIBS
3646fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003647echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003648echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3649if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003650 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003651fi
3652
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003653 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003654 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003655echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3656if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3657 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003658else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003659 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003660LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003661cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003662/* confdefs.h. */
3663_ACEOF
3664cat confdefs.h >>conftest.$ac_ext
3665cat >>conftest.$ac_ext <<_ACEOF
3666/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003667
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003668/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003669#ifdef __cplusplus
3670extern "C"
3671#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003672/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003673 builtin and then its argument prototype would still apply. */
3674char dnet_ntoa ();
3675int
3676main ()
3677{
3678dnet_ntoa ();
3679 ;
3680 return 0;
3681}
3682_ACEOF
3683rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003684if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003685 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003686 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003691 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3694 (eval $ac_try) 2>&5
3695 ac_status=$?
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); }; } &&
3698 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003700 (eval $ac_try) 2>&5
3701 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003703 (exit $ac_status); }; }; then
3704 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003705else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003706 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003707sed 's/^/| /' conftest.$ac_ext >&5
3708
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003709ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003710fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003711rm -f conftest.err conftest.$ac_objext \
3712 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003713LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003714fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003715echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003716echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3717if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003718 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003719fi
3720
3721 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003722fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003723rm -f conftest.err conftest.$ac_objext \
3724 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003725 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003726
3727 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3728 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003729 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003730 # needs -lnsl.
3731 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003732 # on Irix 5.2, according to T.E. Dickey.
3733 # The functions gethostbyname, getservbyname, and inet_addr are
3734 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003735 echo "$as_me:$LINENO: checking for gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003736echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3737if test "${ac_cv_func_gethostbyname+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003739else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003740 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003741/* confdefs.h. */
3742_ACEOF
3743cat confdefs.h >>conftest.$ac_ext
3744cat >>conftest.$ac_ext <<_ACEOF
3745/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003746/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3748#define gethostbyname innocuous_gethostbyname
3749
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003750/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003751 which can conflict with char gethostbyname (); below.
3752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3753 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003754
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003755#ifdef __STDC__
3756# include <limits.h>
3757#else
3758# include <assert.h>
3759#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003760
3761#undef gethostbyname
3762
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003763/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003764#ifdef __cplusplus
3765extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003766{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003767#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003768/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003769 builtin and then its argument prototype would still apply. */
3770char gethostbyname ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003771/* The GNU C library defines this for functions which it implements
3772 to always fail with ENOSYS. Some functions are actually named
3773 something starting with __ and the normal name is an alias. */
3774#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3775choke me
3776#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003777char (*f) () = gethostbyname;
3778#endif
3779#ifdef __cplusplus
3780}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003781#endif
3782
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003783int
3784main ()
3785{
3786return f != gethostbyname;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003787 ;
3788 return 0;
3789}
3790_ACEOF
3791rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003792if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003793 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003794 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003795 grep -v '^ *+' conftest.er1 >conftest.err
3796 rm -f conftest.er1
3797 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003799 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3802 (eval $ac_try) 2>&5
3803 ac_status=$?
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); }; } &&
3806 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003808 (eval $ac_try) 2>&5
3809 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003811 (exit $ac_status); }; }; then
3812 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003813else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003814 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003815sed 's/^/| /' conftest.$ac_ext >&5
3816
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003817ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003818fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003819rm -f conftest.err conftest.$ac_objext \
3820 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003821fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003822echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003823echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003824
3825 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003826 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003827echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3828if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3829 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003830else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003831 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003832LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003833cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003834/* confdefs.h. */
3835_ACEOF
3836cat confdefs.h >>conftest.$ac_ext
3837cat >>conftest.$ac_ext <<_ACEOF
3838/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003839
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003840/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003841#ifdef __cplusplus
3842extern "C"
3843#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003844/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003845 builtin and then its argument prototype would still apply. */
3846char gethostbyname ();
3847int
3848main ()
3849{
3850gethostbyname ();
3851 ;
3852 return 0;
3853}
3854_ACEOF
3855rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003856if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003857 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003858 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003859 grep -v '^ *+' conftest.er1 >conftest.err
3860 rm -f conftest.er1
3861 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003863 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003864 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3866 (eval $ac_try) 2>&5
3867 ac_status=$?
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); }; } &&
3870 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003872 (eval $ac_try) 2>&5
3873 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003875 (exit $ac_status); }; }; then
3876 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003877else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003878 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003879sed 's/^/| /' conftest.$ac_ext >&5
3880
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003881ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003882fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003883rm -f conftest.err conftest.$ac_objext \
3884 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003885LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003886fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003887echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003888echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3889if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003890 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003891fi
3892
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003893 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00003894 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003895echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3896if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
3898else
3899 ac_check_lib_save_LIBS=$LIBS
3900LIBS="-lbsd $LIBS"
3901cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003902/* confdefs.h. */
3903_ACEOF
3904cat confdefs.h >>conftest.$ac_ext
3905cat >>conftest.$ac_ext <<_ACEOF
3906/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003907
3908/* Override any gcc2 internal prototype to avoid an error. */
3909#ifdef __cplusplus
3910extern "C"
3911#endif
3912/* We use char because int might match the return type of a gcc2
3913 builtin and then its argument prototype would still apply. */
3914char gethostbyname ();
3915int
3916main ()
3917{
3918gethostbyname ();
3919 ;
3920 return 0;
3921}
3922_ACEOF
3923rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003924if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00003925 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003926 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00003927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003931 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00003932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3934 (eval $ac_try) 2>&5
3935 ac_status=$?
3936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937 (exit $ac_status); }; } &&
3938 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003940 (eval $ac_try) 2>&5
3941 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003943 (exit $ac_status); }; }; then
3944 ac_cv_lib_bsd_gethostbyname=yes
3945else
3946 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003947sed 's/^/| /' conftest.$ac_ext >&5
3948
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003949ac_cv_lib_bsd_gethostbyname=no
3950fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00003951rm -f conftest.err conftest.$ac_objext \
3952 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003953LIBS=$ac_check_lib_save_LIBS
3954fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003955echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003956echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3957if test $ac_cv_lib_bsd_gethostbyname = yes; then
3958 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3959fi
3960
3961 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003962 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003963
3964 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003965 # socket/setsockopt and other routines are undefined under SCO ODT
3966 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003967 # on later versions), says Simon Leinen: it contains gethostby*
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003968 # variants that don't use the name server (or something). -lsocket
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003969 # must be given before -lnsl if both are needed. We assume that
3970 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003971 echo "$as_me:$LINENO: checking for connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003972echo $ECHO_N "checking for connect... $ECHO_C" >&6
3973if test "${ac_cv_func_connect+set}" = set; then
3974 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003975else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003976 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003977/* confdefs.h. */
3978_ACEOF
3979cat confdefs.h >>conftest.$ac_ext
3980cat >>conftest.$ac_ext <<_ACEOF
3981/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003982/* Define connect to an innocuous variant, in case <limits.h> declares connect.
3983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3984#define connect innocuous_connect
3985
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003986/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003987 which can conflict with char connect (); below.
3988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3989 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003990
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003991#ifdef __STDC__
3992# include <limits.h>
3993#else
3994# include <assert.h>
3995#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00003996
3997#undef connect
3998
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003999/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004000#ifdef __cplusplus
4001extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004002{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004003#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004004/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004005 builtin and then its argument prototype would still apply. */
4006char connect ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004007/* The GNU C library defines this for functions which it implements
4008 to always fail with ENOSYS. Some functions are actually named
4009 something starting with __ and the normal name is an alias. */
4010#if defined (__stub_connect) || defined (__stub___connect)
4011choke me
4012#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004013char (*f) () = connect;
4014#endif
4015#ifdef __cplusplus
4016}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004017#endif
4018
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004019int
4020main ()
4021{
4022return f != connect;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004023 ;
4024 return 0;
4025}
4026_ACEOF
4027rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004028if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004029 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004030 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004035 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4038 (eval $ac_try) 2>&5
4039 ac_status=$?
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); }; } &&
4042 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004044 (eval $ac_try) 2>&5
4045 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004047 (exit $ac_status); }; }; then
4048 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004049else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004050 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004051sed 's/^/| /' conftest.$ac_ext >&5
4052
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004053ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004054fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004055rm -f conftest.err conftest.$ac_objext \
4056 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004057fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004058echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004059echo "${ECHO_T}$ac_cv_func_connect" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004060
4061 if test $ac_cv_func_connect = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004062 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004063echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
4064if test "${ac_cv_lib_socket_connect+set}" = set; then
4065 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004066else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004067 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004068LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004069cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004070/* confdefs.h. */
4071_ACEOF
4072cat confdefs.h >>conftest.$ac_ext
4073cat >>conftest.$ac_ext <<_ACEOF
4074/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004075
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004076/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004077#ifdef __cplusplus
4078extern "C"
4079#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004080/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004081 builtin and then its argument prototype would still apply. */
4082char connect ();
4083int
4084main ()
4085{
4086connect ();
4087 ;
4088 return 0;
4089}
4090_ACEOF
4091rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004092if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004093 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004094 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004095 grep -v '^ *+' conftest.er1 >conftest.err
4096 rm -f conftest.er1
4097 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004099 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4102 (eval $ac_try) 2>&5
4103 ac_status=$?
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; } &&
4106 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004108 (eval $ac_try) 2>&5
4109 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004111 (exit $ac_status); }; }; then
4112 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004113else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004114 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004115sed 's/^/| /' conftest.$ac_ext >&5
4116
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004117ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004118fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004119rm -f conftest.err conftest.$ac_objext \
4120 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004121LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004122fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004123echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004124echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
4125if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004126 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004127fi
4128
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004129 fi
4130
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004131 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004132 echo "$as_me:$LINENO: checking for remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004133echo $ECHO_N "checking for remove... $ECHO_C" >&6
4134if test "${ac_cv_func_remove+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004136else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004137 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004138/* confdefs.h. */
4139_ACEOF
4140cat confdefs.h >>conftest.$ac_ext
4141cat >>conftest.$ac_ext <<_ACEOF
4142/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004143/* Define remove to an innocuous variant, in case <limits.h> declares remove.
4144 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4145#define remove innocuous_remove
4146
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004147/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004148 which can conflict with char remove (); below.
4149 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4150 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004151
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004152#ifdef __STDC__
4153# include <limits.h>
4154#else
4155# include <assert.h>
4156#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004157
4158#undef remove
4159
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004160/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004161#ifdef __cplusplus
4162extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004163{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004164#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004165/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004166 builtin and then its argument prototype would still apply. */
4167char remove ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004168/* The GNU C library defines this for functions which it implements
4169 to always fail with ENOSYS. Some functions are actually named
4170 something starting with __ and the normal name is an alias. */
4171#if defined (__stub_remove) || defined (__stub___remove)
4172choke me
4173#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004174char (*f) () = remove;
4175#endif
4176#ifdef __cplusplus
4177}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004178#endif
4179
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004180int
4181main ()
4182{
4183return f != remove;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004184 ;
4185 return 0;
4186}
4187_ACEOF
4188rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004189if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004190 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004191 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004192 grep -v '^ *+' conftest.er1 >conftest.err
4193 rm -f conftest.er1
4194 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004196 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 (eval $ac_try) 2>&5
4200 ac_status=$?
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; } &&
4203 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004205 (eval $ac_try) 2>&5
4206 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004208 (exit $ac_status); }; }; then
4209 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004210else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004211 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004212sed 's/^/| /' conftest.$ac_ext >&5
4213
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004214ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004215fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004216rm -f conftest.err conftest.$ac_objext \
4217 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004218fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004219echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004220echo "${ECHO_T}$ac_cv_func_remove" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004221
4222 if test $ac_cv_func_remove = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004223 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004224echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
4225if test "${ac_cv_lib_posix_remove+set}" = set; then
4226 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004227else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004228 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004229LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004230cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004231/* confdefs.h. */
4232_ACEOF
4233cat confdefs.h >>conftest.$ac_ext
4234cat >>conftest.$ac_ext <<_ACEOF
4235/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004236
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004237/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004238#ifdef __cplusplus
4239extern "C"
4240#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004241/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004242 builtin and then its argument prototype would still apply. */
4243char remove ();
4244int
4245main ()
4246{
4247remove ();
4248 ;
4249 return 0;
4250}
4251_ACEOF
4252rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004253if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004254 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004255 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004256 grep -v '^ *+' conftest.er1 >conftest.err
4257 rm -f conftest.er1
4258 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004260 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4263 (eval $ac_try) 2>&5
4264 ac_status=$?
4265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4266 (exit $ac_status); }; } &&
4267 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004269 (eval $ac_try) 2>&5
4270 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004272 (exit $ac_status); }; }; then
4273 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004274else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004275 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004276sed 's/^/| /' conftest.$ac_ext >&5
4277
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004278ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004279fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004280rm -f conftest.err conftest.$ac_objext \
4281 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004282LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004283fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004284echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004285echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
4286if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004287 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004288fi
4289
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004290 fi
4291
4292 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004293 echo "$as_me:$LINENO: checking for shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004294echo $ECHO_N "checking for shmat... $ECHO_C" >&6
4295if test "${ac_cv_func_shmat+set}" = set; then
4296 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004297else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004298 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004299/* confdefs.h. */
4300_ACEOF
4301cat confdefs.h >>conftest.$ac_ext
4302cat >>conftest.$ac_ext <<_ACEOF
4303/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004304/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
4305 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4306#define shmat innocuous_shmat
4307
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004308/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004309 which can conflict with char shmat (); below.
4310 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4311 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00004312
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004313#ifdef __STDC__
4314# include <limits.h>
4315#else
4316# include <assert.h>
4317#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00004318
4319#undef shmat
4320
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004321/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004322#ifdef __cplusplus
4323extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004324{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004325#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004326/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004327 builtin and then its argument prototype would still apply. */
4328char shmat ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004329/* The GNU C library defines this for functions which it implements
4330 to always fail with ENOSYS. Some functions are actually named
4331 something starting with __ and the normal name is an alias. */
4332#if defined (__stub_shmat) || defined (__stub___shmat)
4333choke me
4334#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004335char (*f) () = shmat;
4336#endif
4337#ifdef __cplusplus
4338}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004339#endif
4340
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004341int
4342main ()
4343{
4344return f != shmat;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004345 ;
4346 return 0;
4347}
4348_ACEOF
4349rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004350if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004351 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004352 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004353 grep -v '^ *+' conftest.er1 >conftest.err
4354 rm -f conftest.er1
4355 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004357 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4360 (eval $ac_try) 2>&5
4361 ac_status=$?
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); }; } &&
4364 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004366 (eval $ac_try) 2>&5
4367 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004369 (exit $ac_status); }; }; then
4370 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004371else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004372 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004373sed 's/^/| /' conftest.$ac_ext >&5
4374
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004375ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004376fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004377rm -f conftest.err conftest.$ac_objext \
4378 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004379fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004380echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004381echo "${ECHO_T}$ac_cv_func_shmat" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004382
4383 if test $ac_cv_func_shmat = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004384 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004385echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
4386if test "${ac_cv_lib_ipc_shmat+set}" = set; then
4387 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004388else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004389 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004390LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004391cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004392/* confdefs.h. */
4393_ACEOF
4394cat confdefs.h >>conftest.$ac_ext
4395cat >>conftest.$ac_ext <<_ACEOF
4396/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004397
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004398/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004399#ifdef __cplusplus
4400extern "C"
4401#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004402/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004403 builtin and then its argument prototype would still apply. */
4404char shmat ();
4405int
4406main ()
4407{
4408shmat ();
4409 ;
4410 return 0;
4411}
4412_ACEOF
4413rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004415 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004416 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004417 grep -v '^ *+' conftest.er1 >conftest.err
4418 rm -f conftest.er1
4419 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004421 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4424 (eval $ac_try) 2>&5
4425 ac_status=$?
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; } &&
4428 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004430 (eval $ac_try) 2>&5
4431 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004433 (exit $ac_status); }; }; then
4434 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004435else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004436 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004437sed 's/^/| /' conftest.$ac_ext >&5
4438
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004439ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004440fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004441rm -f conftest.err conftest.$ac_objext \
4442 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004443LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004444fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004445echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004446echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
4447if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004448 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004449fi
4450
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004451 fi
4452 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004453
4454 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004455 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004456 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4457 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4458 # check for ICE first), but we must link in the order -lSM -lICE or
4459 # we get undefined symbols. So assume we have SM if we have ICE.
4460 # These have to be linked with before -lX11, unlike the other
4461 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004462 # John Interrante, Karl Berry
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004463 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004464echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
4465if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004467else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004468 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00004469LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004470cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004471/* confdefs.h. */
4472_ACEOF
4473cat confdefs.h >>conftest.$ac_ext
4474cat >>conftest.$ac_ext <<_ACEOF
4475/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004476
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004477/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004478#ifdef __cplusplus
4479extern "C"
4480#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004481/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004482 builtin and then its argument prototype would still apply. */
4483char IceConnectionNumber ();
4484int
4485main ()
4486{
4487IceConnectionNumber ();
4488 ;
4489 return 0;
4490}
4491_ACEOF
4492rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004493if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004494 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004495 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004496 grep -v '^ *+' conftest.er1 >conftest.err
4497 rm -f conftest.er1
4498 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004500 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4503 (eval $ac_try) 2>&5
4504 ac_status=$?
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; } &&
4507 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004509 (eval $ac_try) 2>&5
4510 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004512 (exit $ac_status); }; }; then
4513 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004514else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004515 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004516sed 's/^/| /' conftest.$ac_ext >&5
4517
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004518ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004519fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004520rm -f conftest.err conftest.$ac_objext \
4521 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004522LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004523fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004524echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004525echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
4526if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004527 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004528fi
4529
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004530 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00004531
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004532fi
4533
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004534for ac_prog in flex lex
4535do
4536 # Extract the first word of "$ac_prog", so it can be a program name with args.
4537set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004538echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4540if test "${ac_cv_prog_LEX+set}" = set; then
4541 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004542else
4543 if test -n "$LEX"; then
4544 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4545else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547for as_dir in $PATH
4548do
4549 IFS=$as_save_IFS
4550 test -z "$as_dir" && as_dir=.
4551 for ac_exec_ext in '' $ac_executable_extensions; do
4552 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4553 ac_cv_prog_LEX="$ac_prog"
4554 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4555 break 2
4556 fi
4557done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004558done
4559
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004560fi
4561fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004562LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004563if test -n "$LEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004564 echo "$as_me:$LINENO: result: $LEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004565echo "${ECHO_T}$LEX" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004566else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004567 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004568echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004569fi
4570
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004571 test -n "$LEX" && break
4572done
4573test -n "$LEX" || LEX=":"
4574
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004575if test -z "$LEXLIB"
4576then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004577 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004578echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
4579if test "${ac_cv_lib_fl_yywrap+set}" = set; then
4580 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004581else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004582 ac_check_lib_save_LIBS=$LIBS
4583LIBS="-lfl $LIBS"
4584cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004585/* confdefs.h. */
4586_ACEOF
4587cat confdefs.h >>conftest.$ac_ext
4588cat >>conftest.$ac_ext <<_ACEOF
4589/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004590
Alexandre Julliard59730ae1996-03-24 16:20:51 +00004591/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004592#ifdef __cplusplus
4593extern "C"
4594#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00004595/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004596 builtin and then its argument prototype would still apply. */
4597char yywrap ();
4598int
4599main ()
4600{
4601yywrap ();
4602 ;
4603 return 0;
4604}
4605_ACEOF
4606rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004608 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004609 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004610 grep -v '^ *+' conftest.er1 >conftest.err
4611 rm -f conftest.er1
4612 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004614 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004615 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 (eval $ac_try) 2>&5
4618 ac_status=$?
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); }; } &&
4621 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004623 (eval $ac_try) 2>&5
4624 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004626 (exit $ac_status); }; }; then
4627 ac_cv_lib_fl_yywrap=yes
4628else
4629 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004630sed 's/^/| /' conftest.$ac_ext >&5
4631
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004632ac_cv_lib_fl_yywrap=no
4633fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004634rm -f conftest.err conftest.$ac_objext \
4635 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004636LIBS=$ac_check_lib_save_LIBS
4637fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004638echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004639echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
4640if test $ac_cv_lib_fl_yywrap = yes; then
4641 LEXLIB="-lfl"
4642else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004643 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004644echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
4645if test "${ac_cv_lib_l_yywrap+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4647else
4648 ac_check_lib_save_LIBS=$LIBS
4649LIBS="-ll $LIBS"
4650cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004651/* confdefs.h. */
4652_ACEOF
4653cat confdefs.h >>conftest.$ac_ext
4654cat >>conftest.$ac_ext <<_ACEOF
4655/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004656
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004657/* Override any gcc2 internal prototype to avoid an error. */
4658#ifdef __cplusplus
4659extern "C"
4660#endif
4661/* We use char because int might match the return type of a gcc2
4662 builtin and then its argument prototype would still apply. */
4663char yywrap ();
4664int
4665main ()
4666{
4667yywrap ();
4668 ;
4669 return 0;
4670}
4671_ACEOF
4672rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004673if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004674 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004675 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004676 grep -v '^ *+' conftest.er1 >conftest.err
4677 rm -f conftest.er1
4678 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004680 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004681 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683 (eval $ac_try) 2>&5
4684 ac_status=$?
4685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686 (exit $ac_status); }; } &&
4687 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004689 (eval $ac_try) 2>&5
4690 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004692 (exit $ac_status); }; }; then
4693 ac_cv_lib_l_yywrap=yes
4694else
4695 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004696sed 's/^/| /' conftest.$ac_ext >&5
4697
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004698ac_cv_lib_l_yywrap=no
4699fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004700rm -f conftest.err conftest.$ac_objext \
4701 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004702LIBS=$ac_check_lib_save_LIBS
4703fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004704echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004705echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4706if test $ac_cv_lib_l_yywrap = yes; then
4707 LEXLIB="-ll"
4708fi
4709
4710fi
4711
4712fi
4713
4714if test "x$LEX" != "x:"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004715 echo "$as_me:$LINENO: checking lex output file root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004716echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4717if test "${ac_cv_prog_lex_root+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
4719else
4720 # The minimal lex program is just a single line: %%. But some broken lexes
4721# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004722cat >conftest.l <<_ACEOF
4723%%
4724%%
4725_ACEOF
4726{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4727 (eval $LEX conftest.l) 2>&5
4728 ac_status=$?
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004731if test -f lex.yy.c; then
4732 ac_cv_prog_lex_root=lex.yy
4733elif test -f lexyy.c; then
4734 ac_cv_prog_lex_root=lexyy
4735else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004736 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004737echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4738 { (exit 1); exit 1; }; }
4739fi
4740fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004741echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004742echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004743rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004744LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4745
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004746echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004747echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4748if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4750else
4751 # POSIX says lex can declare yytext either as a pointer or an array; the
4752# default is implementation-dependent. Figure out which it is, since
4753# not all implementations provide the %pointer and %array declarations.
4754ac_cv_prog_lex_yytext_pointer=no
4755echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4756ac_save_LIBS=$LIBS
4757LIBS="$LIBS $LEXLIB"
4758cat >conftest.$ac_ext <<_ACEOF
4759`cat $LEX_OUTPUT_ROOT.c`
4760_ACEOF
4761rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004762if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00004763 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004764 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00004765 grep -v '^ *+' conftest.er1 >conftest.err
4766 rm -f conftest.er1
4767 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004769 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00004770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4772 (eval $ac_try) 2>&5
4773 ac_status=$?
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; } &&
4776 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004778 (eval $ac_try) 2>&5
4779 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004781 (exit $ac_status); }; }; then
4782 ac_cv_prog_lex_yytext_pointer=yes
4783else
4784 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004785sed 's/^/| /' conftest.$ac_ext >&5
4786
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004787fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004788rm -f conftest.err conftest.$ac_objext \
4789 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004790LIBS=$ac_save_LIBS
4791rm -f "${LEX_OUTPUT_ROOT}.c"
4792
4793fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004794echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004795echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4796if test $ac_cv_prog_lex_yytext_pointer = yes; then
4797
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004798cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004799#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004800_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004801
4802fi
4803
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004804fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004805
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004806for ac_prog in $LEX flex lex
4807do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004808 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004809set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004810echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004811echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4812if test "${ac_cv_prog_XLEX+set}" = set; then
4813 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004814else
4815 if test -n "$XLEX"; then
4816 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4817else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004818as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4819for as_dir in $PATH
4820do
4821 IFS=$as_save_IFS
4822 test -z "$as_dir" && as_dir=.
4823 for ac_exec_ext in '' $ac_executable_extensions; do
4824 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4825 ac_cv_prog_XLEX="$ac_prog"
4826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4827 break 2
4828 fi
4829done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004830done
4831
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004832fi
4833fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004834XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004835if test -n "$XLEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004836 echo "$as_me:$LINENO: result: $XLEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004837echo "${ECHO_T}$XLEX" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004838else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004839 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004840echo "${ECHO_T}no" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004841fi
4842
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004843 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004844done
4845test -n "$XLEX" || XLEX="none"
4846
4847if test "$XLEX" = "none"
4848then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004849 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004850echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4851 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004852fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004853
Mike McCormackc068f672004-03-16 03:11:39 +00004854for ac_prog in bison
4855do
4856 # Extract the first word of "$ac_prog", so it can be a program name with args.
4857set dummy $ac_prog; ac_word=$2
4858echo "$as_me:$LINENO: checking for $ac_word" >&5
4859echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4860if test "${ac_cv_prog_BISON+set}" = set; then
4861 echo $ECHO_N "(cached) $ECHO_C" >&6
4862else
4863 if test -n "$BISON"; then
4864 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4865else
4866as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867for as_dir in $PATH
4868do
4869 IFS=$as_save_IFS
4870 test -z "$as_dir" && as_dir=.
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4873 ac_cv_prog_BISON="$ac_prog"
4874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875 break 2
4876 fi
4877done
4878done
4879
4880fi
4881fi
4882BISON=$ac_cv_prog_BISON
4883if test -n "$BISON"; then
4884 echo "$as_me:$LINENO: result: $BISON" >&5
4885echo "${ECHO_T}$BISON" >&6
4886else
4887 echo "$as_me:$LINENO: result: no" >&5
4888echo "${ECHO_T}no" >&6
4889fi
4890
4891 test -n "$BISON" && break
4892done
4893test -n "$BISON" || BISON="none"
4894
4895if test "$BISON" = "none"
4896then
4897 { { echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4898echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4899 { (exit 1); exit 1; }; }
4900fi
4901
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004902if test -n "$ac_tool_prefix"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004903 for ac_prog in gas as
4904 do
4905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4906set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Marcus Meissner1d4db782003-01-09 00:46:54 +00004907echo "$as_me:$LINENO: checking for $ac_word" >&5
4908echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4909if test "${ac_cv_prog_AS+set}" = set; then
4910 echo $ECHO_N "(cached) $ECHO_C" >&6
4911else
4912 if test -n "$AS"; then
4913 ac_cv_prog_AS="$AS" # Let the user override the test.
4914else
4915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916for as_dir in $PATH
4917do
4918 IFS=$as_save_IFS
4919 test -z "$as_dir" && as_dir=.
4920 for ac_exec_ext in '' $ac_executable_extensions; do
4921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004922 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00004923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 break 2
4925 fi
4926done
4927done
4928
4929fi
4930fi
4931AS=$ac_cv_prog_AS
4932if test -n "$AS"; then
4933 echo "$as_me:$LINENO: result: $AS" >&5
4934echo "${ECHO_T}$AS" >&6
4935else
4936 echo "$as_me:$LINENO: result: no" >&5
4937echo "${ECHO_T}no" >&6
4938fi
4939
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004940 test -n "$AS" && break
4941 done
Marcus Meissner1d4db782003-01-09 00:46:54 +00004942fi
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004943if test -z "$AS"; then
Marcus Meissner1d4db782003-01-09 00:46:54 +00004944 ac_ct_AS=$AS
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004945 for ac_prog in gas as
4946do
4947 # Extract the first word of "$ac_prog", so it can be a program name with args.
4948set dummy $ac_prog; ac_word=$2
Marcus Meissner1d4db782003-01-09 00:46:54 +00004949echo "$as_me:$LINENO: checking for $ac_word" >&5
4950echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4951if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953else
4954 if test -n "$ac_ct_AS"; then
4955 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4956else
4957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958for as_dir in $PATH
4959do
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004964 ac_cv_prog_ac_ct_AS="$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00004965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4967 fi
4968done
4969done
4970
Marcus Meissner1d4db782003-01-09 00:46:54 +00004971fi
4972fi
4973ac_ct_AS=$ac_cv_prog_ac_ct_AS
4974if test -n "$ac_ct_AS"; then
4975 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4976echo "${ECHO_T}$ac_ct_AS" >&6
4977else
4978 echo "$as_me:$LINENO: result: no" >&5
4979echo "${ECHO_T}no" >&6
4980fi
4981
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004982 test -n "$ac_ct_AS" && break
4983done
4984test -n "$ac_ct_AS" || ac_ct_AS="as"
4985
Marcus Meissner1d4db782003-01-09 00:46:54 +00004986 AS=$ac_ct_AS
Marcus Meissner1d4db782003-01-09 00:46:54 +00004987fi
4988
4989if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00004990 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4991set dummy ${ac_tool_prefix}ld; ac_word=$2
4992echo "$as_me:$LINENO: checking for $ac_word" >&5
4993echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4994if test "${ac_cv_prog_LD+set}" = set; then
4995 echo $ECHO_N "(cached) $ECHO_C" >&6
4996else
4997 if test -n "$LD"; then
4998 ac_cv_prog_LD="$LD" # Let the user override the test.
4999else
5000as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5001for as_dir in $PATH
5002do
5003 IFS=$as_save_IFS
5004 test -z "$as_dir" && as_dir=.
5005 for ac_exec_ext in '' $ac_executable_extensions; do
5006 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5007 ac_cv_prog_LD="${ac_tool_prefix}ld"
5008 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5009 break 2
5010 fi
5011done
5012done
5013
5014fi
5015fi
5016LD=$ac_cv_prog_LD
5017if test -n "$LD"; then
5018 echo "$as_me:$LINENO: result: $LD" >&5
5019echo "${ECHO_T}$LD" >&6
5020else
5021 echo "$as_me:$LINENO: result: no" >&5
5022echo "${ECHO_T}no" >&6
5023fi
5024
5025fi
5026if test -z "$ac_cv_prog_LD"; then
5027 ac_ct_LD=$LD
5028 # Extract the first word of "ld", so it can be a program name with args.
5029set dummy ld; ac_word=$2
5030echo "$as_me:$LINENO: checking for $ac_word" >&5
5031echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5032if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034else
5035 if test -n "$ac_ct_LD"; then
5036 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
5037else
5038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5039for as_dir in $PATH
5040do
5041 IFS=$as_save_IFS
5042 test -z "$as_dir" && as_dir=.
5043 for ac_exec_ext in '' $ac_executable_extensions; do
5044 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5045 ac_cv_prog_ac_ct_LD="ld"
5046 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5047 break 2
5048 fi
5049done
5050done
5051
5052 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
5053fi
5054fi
5055ac_ct_LD=$ac_cv_prog_ac_ct_LD
5056if test -n "$ac_ct_LD"; then
5057 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
5058echo "${ECHO_T}$ac_ct_LD" >&6
5059else
5060 echo "$as_me:$LINENO: result: no" >&5
5061echo "${ECHO_T}no" >&6
5062fi
5063
5064 LD=$ac_ct_LD
5065else
5066 LD="$ac_cv_prog_LD"
5067fi
5068
5069if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005070 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5071set dummy ${ac_tool_prefix}ar; ac_word=$2
5072echo "$as_me:$LINENO: checking for $ac_word" >&5
5073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5074if test "${ac_cv_prog_AR+set}" = set; then
5075 echo $ECHO_N "(cached) $ECHO_C" >&6
5076else
5077 if test -n "$AR"; then
5078 ac_cv_prog_AR="$AR" # Let the user override the test.
5079else
5080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5081for as_dir in $PATH
5082do
5083 IFS=$as_save_IFS
5084 test -z "$as_dir" && as_dir=.
5085 for ac_exec_ext in '' $ac_executable_extensions; do
5086 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5087 ac_cv_prog_AR="${ac_tool_prefix}ar"
5088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 break 2
5090 fi
5091done
5092done
5093
5094fi
5095fi
5096AR=$ac_cv_prog_AR
5097if test -n "$AR"; then
5098 echo "$as_me:$LINENO: result: $AR" >&5
5099echo "${ECHO_T}$AR" >&6
5100else
5101 echo "$as_me:$LINENO: result: no" >&5
5102echo "${ECHO_T}no" >&6
5103fi
5104
5105fi
5106if test -z "$ac_cv_prog_AR"; then
5107 ac_ct_AR=$AR
5108 # Extract the first word of "ar", so it can be a program name with args.
5109set dummy ar; ac_word=$2
5110echo "$as_me:$LINENO: checking for $ac_word" >&5
5111echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5112if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5114else
5115 if test -n "$ac_ct_AR"; then
5116 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5117else
5118as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119for as_dir in $PATH
5120do
5121 IFS=$as_save_IFS
5122 test -z "$as_dir" && as_dir=.
5123 for ac_exec_ext in '' $ac_executable_extensions; do
5124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5125 ac_cv_prog_ac_ct_AR="ar"
5126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 break 2
5128 fi
5129done
5130done
5131
5132 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
5133fi
5134fi
5135ac_ct_AR=$ac_cv_prog_ac_ct_AR
5136if test -n "$ac_ct_AR"; then
5137 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5138echo "${ECHO_T}$ac_ct_AR" >&6
5139else
5140 echo "$as_me:$LINENO: result: no" >&5
5141echo "${ECHO_T}no" >&6
5142fi
5143
5144 AR=$ac_ct_AR
5145else
5146 AR="$ac_cv_prog_AR"
5147fi
5148
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005149if test -n "$ac_tool_prefix"; then
5150 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5151set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005152echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5154if test "${ac_cv_prog_RANLIB+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005156else
5157 if test -n "$RANLIB"; then
5158 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5159else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5161for as_dir in $PATH
5162do
5163 IFS=$as_save_IFS
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5169 break 2
5170 fi
5171done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005172done
5173
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005174fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005175fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005176RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005177if test -n "$RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005178 echo "$as_me:$LINENO: result: $RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005179echo "${ECHO_T}$RANLIB" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005180else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005181 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005182echo "${ECHO_T}no" >&6
5183fi
5184
5185fi
5186if test -z "$ac_cv_prog_RANLIB"; then
5187 ac_ct_RANLIB=$RANLIB
5188 # Extract the first word of "ranlib", so it can be a program name with args.
5189set dummy ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005190echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005191echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5192if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194else
5195 if test -n "$ac_ct_RANLIB"; then
5196 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5197else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005198as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199for as_dir in $PATH
5200do
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_ac_ct_RANLIB="ranlib"
5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5208 fi
5209done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005210done
5211
5212 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5213fi
5214fi
5215ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5216if test -n "$ac_ct_RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005217 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005218echo "${ECHO_T}$ac_ct_RANLIB" >&6
5219else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005220 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005221echo "${ECHO_T}no" >&6
5222fi
5223
5224 RANLIB=$ac_ct_RANLIB
5225else
5226 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00005227fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00005228
Alexandre Julliardfc01b722002-05-12 03:16:39 +00005229if test -n "$ac_tool_prefix"; then
5230 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5231set dummy ${ac_tool_prefix}strip; ac_word=$2
5232echo "$as_me:$LINENO: checking for $ac_word" >&5
5233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5234if test "${ac_cv_prog_STRIP+set}" = set; then
5235 echo $ECHO_N "(cached) $ECHO_C" >&6
5236else
5237 if test -n "$STRIP"; then
5238 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5239else
5240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241for as_dir in $PATH
5242do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5247 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5250 fi
5251done
5252done
5253
5254fi
5255fi
5256STRIP=$ac_cv_prog_STRIP
5257if test -n "$STRIP"; then
5258 echo "$as_me:$LINENO: result: $STRIP" >&5
5259echo "${ECHO_T}$STRIP" >&6
5260else
5261 echo "$as_me:$LINENO: result: no" >&5
5262echo "${ECHO_T}no" >&6
5263fi
5264
5265fi
5266if test -z "$ac_cv_prog_STRIP"; then
5267 ac_ct_STRIP=$STRIP
5268 # Extract the first word of "strip", so it can be a program name with args.
5269set dummy strip; ac_word=$2
5270echo "$as_me:$LINENO: checking for $ac_word" >&5
5271echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5272if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
5275 if test -n "$ac_ct_STRIP"; then
5276 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5277else
5278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279for as_dir in $PATH
5280do
5281 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=.
5283 for ac_exec_ext in '' $ac_executable_extensions; do
5284 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5285 ac_cv_prog_ac_ct_STRIP="strip"
5286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 break 2
5288 fi
5289done
5290done
5291
5292 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
5293fi
5294fi
5295ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5296if test -n "$ac_ct_STRIP"; then
5297 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5298echo "${ECHO_T}$ac_ct_STRIP" >&6
5299else
5300 echo "$as_me:$LINENO: result: no" >&5
5301echo "${ECHO_T}no" >&6
5302fi
5303
5304 STRIP=$ac_ct_STRIP
5305else
5306 STRIP="$ac_cv_prog_STRIP"
5307fi
5308
5309if test -n "$ac_tool_prefix"; then
5310 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
5311set dummy ${ac_tool_prefix}windres; ac_word=$2
5312echo "$as_me:$LINENO: checking for $ac_word" >&5
5313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5314if test "${ac_cv_prog_WINDRES+set}" = set; then
5315 echo $ECHO_N "(cached) $ECHO_C" >&6
5316else
5317 if test -n "$WINDRES"; then
5318 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
5319else
5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5321for as_dir in $PATH
5322do
5323 IFS=$as_save_IFS
5324 test -z "$as_dir" && as_dir=.
5325 for ac_exec_ext in '' $ac_executable_extensions; do
5326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5327 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
5328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5329 break 2
5330 fi
5331done
5332done
5333
5334fi
5335fi
5336WINDRES=$ac_cv_prog_WINDRES
5337if test -n "$WINDRES"; then
5338 echo "$as_me:$LINENO: result: $WINDRES" >&5
5339echo "${ECHO_T}$WINDRES" >&6
5340else
5341 echo "$as_me:$LINENO: result: no" >&5
5342echo "${ECHO_T}no" >&6
5343fi
5344
5345fi
5346if test -z "$ac_cv_prog_WINDRES"; then
5347 ac_ct_WINDRES=$WINDRES
5348 # Extract the first word of "windres", so it can be a program name with args.
5349set dummy windres; ac_word=$2
5350echo "$as_me:$LINENO: checking for $ac_word" >&5
5351echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5352if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
5353 echo $ECHO_N "(cached) $ECHO_C" >&6
5354else
5355 if test -n "$ac_ct_WINDRES"; then
5356 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5357else
5358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
5363 for ac_exec_ext in '' $ac_executable_extensions; do
5364 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5365 ac_cv_prog_ac_ct_WINDRES="windres"
5366 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5368 fi
5369done
5370done
5371
5372 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
5373fi
5374fi
5375ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5376if test -n "$ac_ct_WINDRES"; then
5377 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
5378echo "${ECHO_T}$ac_ct_WINDRES" >&6
5379else
5380 echo "$as_me:$LINENO: result: no" >&5
5381echo "${ECHO_T}no" >&6
5382fi
5383
5384 WINDRES=$ac_ct_WINDRES
5385else
5386 WINDRES="$ac_cv_prog_WINDRES"
5387fi
5388
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005389echo "$as_me:$LINENO: checking whether ln -s works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005390echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5391LN_S=$as_ln_s
5392if test "$LN_S" = "ln -s"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005393 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005394echo "${ECHO_T}yes" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00005395else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005396 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005397echo "${ECHO_T}no, using $LN_S" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00005398fi
5399
Alexandre Julliarddf234a92002-05-22 02:10:39 +00005400echo "$as_me:$LINENO: checking whether ln works" >&5
5401echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
5402rm -f conf$$ conf$$.file
5403echo >conf$$.file
5404if ln conf$$.file conf$$ 2>/dev/null; then
5405 LN=ln
5406
5407 echo "$as_me:$LINENO: result: yes" >&5
5408echo "${ECHO_T}yes" >&6
5409else
5410 LN="cp -p"
5411
5412 echo "$as_me:$LINENO: result: no, using $LN" >&5
5413echo "${ECHO_T}no, using $LN" >&6
5414fi
5415rm -f conf$$ conf$$.file
Alexandre Julliardc6264912004-08-16 20:09:37 +00005416echo "$as_me:$LINENO: checking for egrep" >&5
5417echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5418if test "${ac_cv_prog_egrep+set}" = set; then
5419 echo $ECHO_N "(cached) $ECHO_C" >&6
5420else
5421 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5422 then ac_cv_prog_egrep='grep -E'
5423 else ac_cv_prog_egrep='egrep'
5424 fi
5425fi
5426echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5427echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5428 EGREP=$ac_cv_prog_egrep
5429
5430
James Juranffe6b761999-06-12 08:21:57 +00005431# Extract the first word of "ldconfig", so it can be a program name with args.
5432set dummy ldconfig; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005433echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005434echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5435if test "${ac_cv_path_LDCONFIG+set}" = set; then
5436 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00005437else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005438 case $LDCONFIG in
5439 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00005440 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
5441 ;;
5442 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00005444for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
5448 for ac_exec_ext in '' $ac_executable_extensions; do
5449 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5450 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
5451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5452 break 2
5453 fi
5454done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005455done
5456
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00005457 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00005458 ;;
5459esac
5460fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005461LDCONFIG=$ac_cv_path_LDCONFIG
5462
James Juranffe6b761999-06-12 08:21:57 +00005463if test -n "$LDCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005464 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005465echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00005466else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005467 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005468echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00005469fi
5470
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005471# Find a good install program. We prefer a C program (faster),
5472# so one script is as good as another. But avoid the broken or
5473# incompatible versions:
5474# SysV /etc/install, /usr/sbin/install
5475# SunOS /usr/etc/install
5476# IRIX /sbin/install
5477# AIX /bin/install
5478# AmigaOS /C/install, which installs bootblocks on floppy discs
5479# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5480# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5481# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00005482# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005483# ./install, which can be erroneously created by make from ./install.sh.
5484echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5485echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5486if test -z "$INSTALL"; then
5487if test "${ac_cv_path_install+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5489else
5490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491for as_dir in $PATH
5492do
5493 IFS=$as_save_IFS
5494 test -z "$as_dir" && as_dir=.
5495 # Account for people who put trailing slashes in PATH elements.
5496case $as_dir/ in
5497 ./ | .// | /cC/* | \
5498 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005499 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005500 /usr/ucb/* ) ;;
5501 *)
5502 # OSF1 and SCO ODT 3.0 have their own names for install.
5503 # Don't use installbsd from OSF since it installs stuff as root
5504 # by default.
5505 for ac_prog in ginstall scoinst install; do
5506 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliard875927f2004-01-02 01:55:29 +00005507 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5508 if test $ac_prog = install &&
5509 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5510 # AIX install. It has an incompatible calling convention.
5511 :
5512 elif test $ac_prog = install &&
5513 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5514 # program-specific install script used by HP pwplus--don't use.
5515 :
5516 else
5517 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5518 break 3
5519 fi
5520 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005521 done
5522 done
5523 ;;
5524esac
5525done
5526
5527
5528fi
5529 if test "${ac_cv_path_install+set}" = set; then
5530 INSTALL=$ac_cv_path_install
5531 else
5532 # As a last resort, use the slow shell script. We don't cache a
5533 # path for INSTALL within a source directory, because that will
5534 # break other packages using the cache if that directory is
5535 # removed, or if the path is relative.
5536 INSTALL=$ac_install_sh
5537 fi
5538fi
5539echo "$as_me:$LINENO: result: $INSTALL" >&5
5540echo "${ECHO_T}$INSTALL" >&6
5541
5542# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5543# It thinks the first close brace ends the variable substitution.
5544test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5545
5546test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5547
5548test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5549
5550case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00005551 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005552 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5553esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005554
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005555for ac_prog in lclint lint
5556do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005557 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005558set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005559echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005560echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5561if test "${ac_cv_prog_LINT+set}" = set; then
5562 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005563else
5564 if test -n "$LINT"; then
5565 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5566else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005567as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568for as_dir in $PATH
5569do
5570 IFS=$as_save_IFS
5571 test -z "$as_dir" && as_dir=.
5572 for ac_exec_ext in '' $ac_executable_extensions; do
5573 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5574 ac_cv_prog_LINT="$ac_prog"
5575 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 break 2
5577 fi
5578done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005579done
5580
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005581fi
5582fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005583LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005584if test -n "$LINT"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005585 echo "$as_me:$LINENO: result: $LINT" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005586echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005587else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005588 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005589echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005590fi
5591
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005592 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00005593done
5594
5595if test "$LINT" = "lint"
5596then
5597 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5598 fi
5599
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005600
5601
Huw Davies00acb5f2004-08-17 22:33:14 +00005602for ac_prog in fontforge
5603do
5604 # Extract the first word of "$ac_prog", so it can be a program name with args.
5605set dummy $ac_prog; ac_word=$2
5606echo "$as_me:$LINENO: checking for $ac_word" >&5
5607echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5608if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5609 echo $ECHO_N "(cached) $ECHO_C" >&6
5610else
5611 if test -n "$FONTFORGE"; then
5612 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5613else
5614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5615for as_dir in $PATH
5616do
5617 IFS=$as_save_IFS
5618 test -z "$as_dir" && as_dir=.
5619 for ac_exec_ext in '' $ac_executable_extensions; do
5620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5621 ac_cv_prog_FONTFORGE="$ac_prog"
5622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5623 break 2
5624 fi
5625done
5626done
5627
5628fi
5629fi
5630FONTFORGE=$ac_cv_prog_FONTFORGE
5631if test -n "$FONTFORGE"; then
5632 echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5633echo "${ECHO_T}$FONTFORGE" >&6
5634else
5635 echo "$as_me:$LINENO: result: no" >&5
5636echo "${ECHO_T}no" >&6
5637fi
5638
5639 test -n "$FONTFORGE" && break
5640done
5641test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005642
5643
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005644
5645
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005646echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005647echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5648if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005650else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005651 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005652LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005653cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005654/* confdefs.h. */
5655_ACEOF
5656cat confdefs.h >>conftest.$ac_ext
5657cat >>conftest.$ac_ext <<_ACEOF
5658/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005659
Alexandre Julliard59730ae1996-03-24 16:20:51 +00005660/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005661#ifdef __cplusplus
5662extern "C"
5663#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005664/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005665 builtin and then its argument prototype would still apply. */
5666char i386_set_ldt ();
5667int
5668main ()
5669{
5670i386_set_ldt ();
5671 ;
5672 return 0;
5673}
5674_ACEOF
5675rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005676if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005677 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005678 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005679 grep -v '^ *+' conftest.er1 >conftest.err
5680 rm -f conftest.er1
5681 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005683 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005684 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686 (eval $ac_try) 2>&5
5687 ac_status=$?
5688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689 (exit $ac_status); }; } &&
5690 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005692 (eval $ac_try) 2>&5
5693 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005695 (exit $ac_status); }; }; then
5696 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005697else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005698 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005699sed 's/^/| /' conftest.$ac_ext >&5
5700
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005701ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005702fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005703rm -f conftest.err conftest.$ac_objext \
5704 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005705LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005706fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005707echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005708echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5709if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005710 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005711#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005712_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005713
5714 LIBS="-li386 $LIBS"
5715
Alexandre Julliard02e90081998-01-04 17:49:09 +00005716fi
5717
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005718
5719echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005720echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5721if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005723else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005724 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005725LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005726cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005727/* confdefs.h. */
5728_ACEOF
5729cat confdefs.h >>conftest.$ac_ext
5730cat >>conftest.$ac_ext <<_ACEOF
5731/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005732
Todd Vierlingecc76691998-12-15 17:49:02 +00005733/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005734#ifdef __cplusplus
5735extern "C"
5736#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00005737/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005738 builtin and then its argument prototype would still apply. */
5739char _oss_ioctl ();
5740int
5741main ()
5742{
5743_oss_ioctl ();
5744 ;
5745 return 0;
5746}
5747_ACEOF
5748rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005750 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005751 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005752 grep -v '^ *+' conftest.er1 >conftest.err
5753 rm -f conftest.er1
5754 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005756 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5759 (eval $ac_try) 2>&5
5760 ac_status=$?
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }; } &&
5763 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005765 (eval $ac_try) 2>&5
5766 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005768 (exit $ac_status); }; }; then
5769 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005770else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005771 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005772sed 's/^/| /' conftest.$ac_ext >&5
5773
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005774ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005775fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005776rm -f conftest.err conftest.$ac_objext \
5777 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005778LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005779fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005780echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005781echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5782if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005783 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005784#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005785_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005786
5787 LIBS="-lossaudio $LIBS"
5788
Todd Vierlingecc76691998-12-15 17:49:02 +00005789fi
5790
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005791
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005792for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00005793do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005794as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005795echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005796echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5797if eval "test \"\${$as_ac_var+set}\" = set"; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005799else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005800 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005801/* confdefs.h. */
5802_ACEOF
5803cat confdefs.h >>conftest.$ac_ext
5804cat >>conftest.$ac_ext <<_ACEOF
5805/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005806/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5808#define $ac_func innocuous_$ac_func
5809
Patrik Stridvallea584721998-11-01 16:22:07 +00005810/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005811 which can conflict with char $ac_func (); below.
5812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5813 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005814
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005815#ifdef __STDC__
5816# include <limits.h>
5817#else
5818# include <assert.h>
5819#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00005820
5821#undef $ac_func
5822
Patrik Stridvallea584721998-11-01 16:22:07 +00005823/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005824#ifdef __cplusplus
5825extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005826{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005827#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005828/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005829 builtin and then its argument prototype would still apply. */
5830char $ac_func ();
Patrik Stridvallea584721998-11-01 16:22:07 +00005831/* The GNU C library defines this for functions which it implements
5832 to always fail with ENOSYS. Some functions are actually named
5833 something starting with __ and the normal name is an alias. */
5834#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5835choke me
5836#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005837char (*f) () = $ac_func;
5838#endif
5839#ifdef __cplusplus
5840}
Patrik Stridvallea584721998-11-01 16:22:07 +00005841#endif
5842
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005843int
5844main ()
5845{
5846return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005847 ;
5848 return 0;
5849}
5850_ACEOF
5851rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005853 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005854 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005859 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5862 (eval $ac_try) 2>&5
5863 ac_status=$?
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); }; } &&
5866 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005868 (eval $ac_try) 2>&5
5869 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005871 (exit $ac_status); }; }; then
5872 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005873else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005874 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005875sed 's/^/| /' conftest.$ac_ext >&5
5876
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005877eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005878fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005879rm -f conftest.err conftest.$ac_objext \
5880 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005881fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005882echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005883echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5884if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005885 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005886#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005887_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005888
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005889else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005890
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005891echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005892echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5893if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005895else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005896 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005897LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005898cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005899/* confdefs.h. */
5900_ACEOF
5901cat confdefs.h >>conftest.$ac_ext
5902cat >>conftest.$ac_ext <<_ACEOF
5903/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005904
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005905/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005906#ifdef __cplusplus
5907extern "C"
5908#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005909/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005910 builtin and then its argument prototype would still apply. */
5911char iswalnum ();
5912int
5913main ()
5914{
5915iswalnum ();
5916 ;
5917 return 0;
5918}
5919_ACEOF
5920rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005921if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00005922 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005923 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00005924 grep -v '^ *+' conftest.er1 >conftest.err
5925 rm -f conftest.er1
5926 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005928 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00005929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5931 (eval $ac_try) 2>&5
5932 ac_status=$?
5933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5934 (exit $ac_status); }; } &&
5935 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005937 (eval $ac_try) 2>&5
5938 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005940 (exit $ac_status); }; }; then
5941 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005942else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005943 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005944sed 's/^/| /' conftest.$ac_ext >&5
5945
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005946ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005947fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00005948rm -f conftest.err conftest.$ac_objext \
5949 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005950LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005951fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005952echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005953echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5954if test $ac_cv_lib_w_iswalnum = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005955 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005956#define HAVE_LIBW 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005957_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005958
5959 LIBS="-lw $LIBS"
5960
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005961fi
5962
5963fi
5964done
5965
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005966
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005967for ac_func in gethostbyname
5968do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005969as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005970echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005971echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5972if eval "test \"\${$as_ac_var+set}\" = set"; then
5973 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005974else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005975 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005976/* confdefs.h. */
5977_ACEOF
5978cat confdefs.h >>conftest.$ac_ext
5979cat >>conftest.$ac_ext <<_ACEOF
5980/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005981/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5983#define $ac_func innocuous_$ac_func
5984
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005985/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005986 which can conflict with char $ac_func (); below.
5987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5988 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00005989
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005990#ifdef __STDC__
5991# include <limits.h>
5992#else
5993# include <assert.h>
5994#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00005995
5996#undef $ac_func
5997
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005998/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005999#ifdef __cplusplus
6000extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006001{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006002#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006003/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006004 builtin and then its argument prototype would still apply. */
6005char $ac_func ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006006/* The GNU C library defines this for functions which it implements
6007 to always fail with ENOSYS. Some functions are actually named
6008 something starting with __ and the normal name is an alias. */
6009#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6010choke me
6011#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006012char (*f) () = $ac_func;
6013#endif
6014#ifdef __cplusplus
6015}
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006016#endif
6017
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006018int
6019main ()
6020{
6021return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006022 ;
6023 return 0;
6024}
6025_ACEOF
6026rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006027if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006028 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006029 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006030 grep -v '^ *+' conftest.er1 >conftest.err
6031 rm -f conftest.er1
6032 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006034 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6037 (eval $ac_try) 2>&5
6038 ac_status=$?
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); }; } &&
6041 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006043 (eval $ac_try) 2>&5
6044 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006046 (exit $ac_status); }; }; then
6047 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00006048else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006049 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006050sed 's/^/| /' conftest.$ac_ext >&5
6051
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006052eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00006053fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006054rm -f conftest.err conftest.$ac_objext \
6055 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00006056fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006057echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006058echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6059if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006060 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006061#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006062_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00006063
Patrik Stridvallea584721998-11-01 16:22:07 +00006064else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006065
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006066echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006067echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
6068if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
6069 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00006070else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006071 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006072LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006073cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006074/* confdefs.h. */
6075_ACEOF
6076cat confdefs.h >>conftest.$ac_ext
6077cat >>conftest.$ac_ext <<_ACEOF
6078/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006079
Patrik Stridvallea584721998-11-01 16:22:07 +00006080/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006081#ifdef __cplusplus
6082extern "C"
6083#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00006084/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006085 builtin and then its argument prototype would still apply. */
6086char gethostbyname ();
6087int
6088main ()
6089{
6090gethostbyname ();
6091 ;
6092 return 0;
6093}
6094_ACEOF
6095rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006097 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006098 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006103 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6106 (eval $ac_try) 2>&5
6107 ac_status=$?
6108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6109 (exit $ac_status); }; } &&
6110 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006112 (eval $ac_try) 2>&5
6113 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006115 (exit $ac_status); }; }; then
6116 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00006117else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006118 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006119sed 's/^/| /' conftest.$ac_ext >&5
6120
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006121ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00006122fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006123rm -f conftest.err conftest.$ac_objext \
6124 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006125LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00006126fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006127echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006128echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
6129if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006130 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006131#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006132_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00006133
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00006134 LIBS="-lnsl $LIBS"
6135
Ron Recorde977d6c1999-09-05 12:32:05 +00006136fi
6137
Patrik Stridvallea584721998-11-01 16:22:07 +00006138fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00006139done
6140
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006141
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006142for ac_func in connect
6143do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006144as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006145echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006146echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6147if eval "test \"\${$as_ac_var+set}\" = set"; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006149else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006150 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006151/* confdefs.h. */
6152_ACEOF
6153cat confdefs.h >>conftest.$ac_ext
6154cat >>conftest.$ac_ext <<_ACEOF
6155/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006156/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6157 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6158#define $ac_func innocuous_$ac_func
6159
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006160/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006161 which can conflict with char $ac_func (); below.
6162 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6163 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006164
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006165#ifdef __STDC__
6166# include <limits.h>
6167#else
6168# include <assert.h>
6169#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006170
6171#undef $ac_func
6172
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006173/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006174#ifdef __cplusplus
6175extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006176{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006177#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006178/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006179 builtin and then its argument prototype would still apply. */
6180char $ac_func ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006181/* The GNU C library defines this for functions which it implements
6182 to always fail with ENOSYS. Some functions are actually named
6183 something starting with __ and the normal name is an alias. */
6184#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6185choke me
6186#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006187char (*f) () = $ac_func;
6188#endif
6189#ifdef __cplusplus
6190}
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006191#endif
6192
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006193int
6194main ()
6195{
6196return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006197 ;
6198 return 0;
6199}
6200_ACEOF
6201rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006202if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006203 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006204 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006209 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6212 (eval $ac_try) 2>&5
6213 ac_status=$?
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); }; } &&
6216 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006218 (eval $ac_try) 2>&5
6219 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006221 (exit $ac_status); }; }; then
6222 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006223else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006224 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006225sed 's/^/| /' conftest.$ac_ext >&5
6226
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006227eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006228fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006229rm -f conftest.err conftest.$ac_objext \
6230 conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006231fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006232echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006233echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6234if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006235 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006236#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006237_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006238
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006239else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006240
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006241echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006242echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
6243if test "${ac_cv_lib_socket_connect+set}" = set; then
6244 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006245else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006246 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006247LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006248cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006249/* confdefs.h. */
6250_ACEOF
6251cat confdefs.h >>conftest.$ac_ext
6252cat >>conftest.$ac_ext <<_ACEOF
6253/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006254
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006255/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006256#ifdef __cplusplus
6257extern "C"
6258#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006259/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006260 builtin and then its argument prototype would still apply. */
6261char connect ();
6262int
6263main ()
6264{
6265connect ();
6266 ;
6267 return 0;
6268}
6269_ACEOF
6270rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006271if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006272 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006273 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006274 grep -v '^ *+' conftest.er1 >conftest.err
6275 rm -f conftest.er1
6276 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006278 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6281 (eval $ac_try) 2>&5
6282 ac_status=$?
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); }; } &&
6285 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006287 (eval $ac_try) 2>&5
6288 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006290 (exit $ac_status); }; }; then
6291 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006292else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006293 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006294sed 's/^/| /' conftest.$ac_ext >&5
6295
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006296ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006297fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006298rm -f conftest.err conftest.$ac_objext \
6299 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006300LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006301fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006302echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006303echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
6304if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006305 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006306#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006307_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006308
6309 LIBS="-lsocket $LIBS"
6310
Ulrich Weigand715a55e1999-04-18 13:19:56 +00006311fi
6312
6313fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00006314done
6315
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006316
Alexandre Julliardc5552742002-04-03 20:24:44 +00006317for ac_func in inet_aton
6318do
6319as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006320echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006321echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
6322if eval "test \"\${$as_ac_var+set}\" = set"; then
6323 echo $ECHO_N "(cached) $ECHO_C" >&6
6324else
6325 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006326/* confdefs.h. */
6327_ACEOF
6328cat confdefs.h >>conftest.$ac_ext
6329cat >>conftest.$ac_ext <<_ACEOF
6330/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006331/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6333#define $ac_func innocuous_$ac_func
6334
Alexandre Julliardc5552742002-04-03 20:24:44 +00006335/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006336 which can conflict with char $ac_func (); below.
6337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6338 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00006339
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006340#ifdef __STDC__
6341# include <limits.h>
6342#else
6343# include <assert.h>
6344#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +00006345
6346#undef $ac_func
6347
Alexandre Julliardc5552742002-04-03 20:24:44 +00006348/* Override any gcc2 internal prototype to avoid an error. */
6349#ifdef __cplusplus
6350extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006351{
Alexandre Julliardc5552742002-04-03 20:24:44 +00006352#endif
6353/* We use char because int might match the return type of a gcc2
6354 builtin and then its argument prototype would still apply. */
6355char $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00006356/* The GNU C library defines this for functions which it implements
6357 to always fail with ENOSYS. Some functions are actually named
6358 something starting with __ and the normal name is an alias. */
6359#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
6360choke me
6361#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006362char (*f) () = $ac_func;
6363#endif
6364#ifdef __cplusplus
6365}
Alexandre Julliardc5552742002-04-03 20:24:44 +00006366#endif
6367
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006368int
6369main ()
6370{
6371return f != $ac_func;
Alexandre Julliardc5552742002-04-03 20:24:44 +00006372 ;
6373 return 0;
6374}
6375_ACEOF
6376rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006378 (eval $ac_link) 2>conftest.er1
Alexandre Julliardc5552742002-04-03 20:24:44 +00006379 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006380 grep -v '^ *+' conftest.er1 >conftest.err
6381 rm -f conftest.er1
6382 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006384 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6386 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6387 (eval $ac_try) 2>&5
6388 ac_status=$?
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); }; } &&
6391 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006393 (eval $ac_try) 2>&5
6394 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006396 (exit $ac_status); }; }; then
6397 eval "$as_ac_var=yes"
6398else
6399 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006400sed 's/^/| /' conftest.$ac_ext >&5
6401
Alexandre Julliardc5552742002-04-03 20:24:44 +00006402eval "$as_ac_var=no"
6403fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006404rm -f conftest.err conftest.$ac_objext \
6405 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc5552742002-04-03 20:24:44 +00006406fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006407echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00006408echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
6409if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006410 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00006411#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006412_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00006413
6414else
6415
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006416echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006417echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
6418if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
6419 echo $ECHO_N "(cached) $ECHO_C" >&6
6420else
6421 ac_check_lib_save_LIBS=$LIBS
6422LIBS="-lresolv $LIBS"
6423cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006424/* confdefs.h. */
6425_ACEOF
6426cat confdefs.h >>conftest.$ac_ext
6427cat >>conftest.$ac_ext <<_ACEOF
6428/* end confdefs.h. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00006429
6430/* Override any gcc2 internal prototype to avoid an error. */
6431#ifdef __cplusplus
6432extern "C"
6433#endif
6434/* We use char because int might match the return type of a gcc2
6435 builtin and then its argument prototype would still apply. */
6436char inet_aton ();
6437int
6438main ()
6439{
6440inet_aton ();
6441 ;
6442 return 0;
6443}
6444_ACEOF
6445rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006447 (eval $ac_link) 2>conftest.er1
Francois Gouget3b943bc2002-04-01 21:05:15 +00006448 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006449 grep -v '^ *+' conftest.er1 >conftest.err
6450 rm -f conftest.er1
6451 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006453 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006454 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456 (eval $ac_try) 2>&5
6457 ac_status=$?
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); }; } &&
6460 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006462 (eval $ac_try) 2>&5
6463 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006465 (exit $ac_status); }; }; then
6466 ac_cv_lib_resolv_inet_aton=yes
6467else
6468 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006469sed 's/^/| /' conftest.$ac_ext >&5
6470
Francois Gouget3b943bc2002-04-01 21:05:15 +00006471ac_cv_lib_resolv_inet_aton=no
6472fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006473rm -f conftest.err conftest.$ac_objext \
6474 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3b943bc2002-04-01 21:05:15 +00006475LIBS=$ac_check_lib_save_LIBS
6476fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006477echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00006478echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
6479if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006480 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00006481#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006482_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00006483
6484 LIBS="-lresolv $LIBS"
6485
6486fi
6487
Alexandre Julliardc5552742002-04-03 20:24:44 +00006488fi
6489done
6490
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006491
6492echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006493echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
6494if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
6495 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006496else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006497 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006498LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006499cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006500/* confdefs.h. */
6501_ACEOF
6502cat confdefs.h >>conftest.$ac_ext
6503cat >>conftest.$ac_ext <<_ACEOF
6504/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006505
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006506/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006507#ifdef __cplusplus
6508extern "C"
6509#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006510/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006511 builtin and then its argument prototype would still apply. */
6512char _xpg4_setrunelocale ();
6513int
6514main ()
6515{
6516_xpg4_setrunelocale ();
6517 ;
6518 return 0;
6519}
6520_ACEOF
6521rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006522if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006523 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006524 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006529 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6532 (eval $ac_try) 2>&5
6533 ac_status=$?
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006538 (eval $ac_try) 2>&5
6539 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006541 (exit $ac_status); }; }; then
6542 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006543else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006544 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006545sed 's/^/| /' conftest.$ac_ext >&5
6546
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006547ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006548fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006549rm -f conftest.err conftest.$ac_objext \
6550 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006551LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006552fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006553echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006554echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
6555if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006556 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006557#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006558_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006559
6560 LIBS="-lxpg4 $LIBS"
6561
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00006562fi
6563
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006564
6565echo "$as_me:$LINENO: checking for poll in -lpoll" >&5
6566echo $ECHO_N "checking for poll in -lpoll... $ECHO_C" >&6
6567if test "${ac_cv_lib_poll_poll+set}" = set; then
6568 echo $ECHO_N "(cached) $ECHO_C" >&6
6569else
6570 ac_check_lib_save_LIBS=$LIBS
6571LIBS="-lpoll $LIBS"
6572cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006573/* confdefs.h. */
6574_ACEOF
6575cat confdefs.h >>conftest.$ac_ext
6576cat >>conftest.$ac_ext <<_ACEOF
6577/* end confdefs.h. */
6578
6579/* Override any gcc2 internal prototype to avoid an error. */
6580#ifdef __cplusplus
6581extern "C"
6582#endif
6583/* We use char because int might match the return type of a gcc2
6584 builtin and then its argument prototype would still apply. */
6585char poll ();
6586int
6587main ()
6588{
6589poll ();
6590 ;
6591 return 0;
6592}
6593_ACEOF
6594rm -f conftest.$ac_objext conftest$ac_exeext
6595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006596 (eval $ac_link) 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006597 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006598 grep -v '^ *+' conftest.er1 >conftest.err
6599 rm -f conftest.er1
6600 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6605 (eval $ac_try) 2>&5
6606 ac_status=$?
6607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6608 (exit $ac_status); }; } &&
6609 { ac_try='test -s conftest$ac_exeext'
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6611 (eval $ac_try) 2>&5
6612 ac_status=$?
6613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6614 (exit $ac_status); }; }; then
6615 ac_cv_lib_poll_poll=yes
6616else
6617 echo "$as_me: failed program was:" >&5
6618sed 's/^/| /' conftest.$ac_ext >&5
6619
6620ac_cv_lib_poll_poll=no
6621fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006622rm -f conftest.err conftest.$ac_objext \
6623 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +00006624LIBS=$ac_check_lib_save_LIBS
6625fi
6626echo "$as_me:$LINENO: result: $ac_cv_lib_poll_poll" >&5
6627echo "${ECHO_T}$ac_cv_lib_poll_poll" >&6
6628if test $ac_cv_lib_poll_poll = yes; then
6629 cat >>confdefs.h <<_ACEOF
6630#define HAVE_LIBPOLL 1
6631_ACEOF
6632
6633 LIBS="-lpoll $LIBS"
6634
6635fi
6636
Emmanuel Maillardbc21f442004-07-06 19:41:12 +00006637
6638echo "$as_me:$LINENO: checking for res_9_init in -lresolv" >&5
6639echo $ECHO_N "checking for res_9_init in -lresolv... $ECHO_C" >&6
6640if test "${ac_cv_lib_resolv_res_9_init+set}" = set; then
6641 echo $ECHO_N "(cached) $ECHO_C" >&6
6642else
6643 ac_check_lib_save_LIBS=$LIBS
6644LIBS="-lresolv $LIBS"
6645cat >conftest.$ac_ext <<_ACEOF
6646/* confdefs.h. */
6647_ACEOF
6648cat confdefs.h >>conftest.$ac_ext
6649cat >>conftest.$ac_ext <<_ACEOF
6650/* end confdefs.h. */
6651
6652/* Override any gcc2 internal prototype to avoid an error. */
6653#ifdef __cplusplus
6654extern "C"
6655#endif
6656/* We use char because int might match the return type of a gcc2
6657 builtin and then its argument prototype would still apply. */
6658char res_9_init ();
6659int
6660main ()
6661{
6662res_9_init ();
6663 ;
6664 return 0;
6665}
6666_ACEOF
6667rm -f conftest.$ac_objext conftest$ac_exeext
6668if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6669 (eval $ac_link) 2>conftest.er1
6670 ac_status=$?
6671 grep -v '^ *+' conftest.er1 >conftest.err
6672 rm -f conftest.er1
6673 cat conftest.err >&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); } &&
6676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6678 (eval $ac_try) 2>&5
6679 ac_status=$?
6680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); }; } &&
6682 { ac_try='test -s conftest$ac_exeext'
6683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6684 (eval $ac_try) 2>&5
6685 ac_status=$?
6686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6687 (exit $ac_status); }; }; then
6688 ac_cv_lib_resolv_res_9_init=yes
6689else
6690 echo "$as_me: failed program was:" >&5
6691sed 's/^/| /' conftest.$ac_ext >&5
6692
6693ac_cv_lib_resolv_res_9_init=no
6694fi
6695rm -f conftest.err conftest.$ac_objext \
6696 conftest$ac_exeext conftest.$ac_ext
6697LIBS=$ac_check_lib_save_LIBS
6698fi
6699echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_9_init" >&5
6700echo "${ECHO_T}$ac_cv_lib_resolv_res_9_init" >&6
6701if test $ac_cv_lib_resolv_res_9_init = yes; then
6702 cat >>confdefs.h <<_ACEOF
6703#define HAVE_LIBRESOLV 1
6704_ACEOF
6705
6706 LIBS="-lresolv $LIBS"
6707
6708fi
6709
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006710echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
6711echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
6712if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006713 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006714else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006715 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006716LIBS="-lpthread $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006717cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006718/* confdefs.h. */
6719_ACEOF
6720cat confdefs.h >>conftest.$ac_ext
6721cat >>conftest.$ac_ext <<_ACEOF
6722/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006723
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006724/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006725#ifdef __cplusplus
6726extern "C"
6727#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006728/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006729 builtin and then its argument prototype would still apply. */
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006730char pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006731int
6732main ()
6733{
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006734pthread_create ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006735 ;
6736 return 0;
6737}
6738_ACEOF
6739rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006741 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006742 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006743 grep -v '^ *+' conftest.er1 >conftest.err
6744 rm -f conftest.er1
6745 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006747 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006748 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6750 (eval $ac_try) 2>&5
6751 ac_status=$?
6752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6753 (exit $ac_status); }; } &&
6754 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006756 (eval $ac_try) 2>&5
6757 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006759 (exit $ac_status); }; }; then
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006760 ac_cv_lib_pthread_pthread_create=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006761else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006762 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006763sed 's/^/| /' conftest.$ac_ext >&5
6764
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006765ac_cv_lib_pthread_pthread_create=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006766fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006767rm -f conftest.err conftest.$ac_objext \
6768 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006769LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006770fi
Alexandre Julliardf45325e2003-11-06 23:05:41 +00006771echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
6772echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
6773if test $ac_cv_lib_pthread_pthread_create = yes; then
6774 LIBPTHREAD="-lpthread"
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006775
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00006776fi
6777
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006778
Alexandre Julliard562089b2001-12-31 22:28:35 +00006779
Huw Daviese82dfab2004-08-04 19:10:26 +00006780
6781XFILES=""
6782
6783OPENGLFILES=""
6784
6785GLU32FILES=""
6786
6787OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00006788
Rein Klazes7ff12562004-11-09 20:16:35 +00006789
6790echo "$as_me:$LINENO: checking for ANSI C header files" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006791echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6792if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006793 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00006794else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006795 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006796/* confdefs.h. */
6797_ACEOF
6798cat confdefs.h >>conftest.$ac_ext
6799cat >>conftest.$ac_ext <<_ACEOF
6800/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006801#include <stdlib.h>
6802#include <stdarg.h>
6803#include <string.h>
6804#include <float.h>
6805
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006806int
6807main ()
6808{
6809
6810 ;
6811 return 0;
6812}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006813_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006814rm -f conftest.$ac_objext
6815if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006816 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006817 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006822 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6825 (eval $ac_try) 2>&5
6826 ac_status=$?
6827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6828 (exit $ac_status); }; } &&
6829 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6831 (eval $ac_try) 2>&5
6832 ac_status=$?
6833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6834 (exit $ac_status); }; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006835 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006836else
6837 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006838sed 's/^/| /' conftest.$ac_ext >&5
6839
6840ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00006841fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00006842rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006843
6844if test $ac_cv_header_stdc = yes; then
6845 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6846 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006847/* confdefs.h. */
6848_ACEOF
6849cat confdefs.h >>conftest.$ac_ext
6850cat >>conftest.$ac_ext <<_ACEOF
6851/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006852#include <string.h>
6853
6854_ACEOF
6855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006856 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006857 :
6858else
6859 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00006860fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006861rm -f conftest*
6862
6863fi
6864
6865if test $ac_cv_header_stdc = yes; then
6866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6867 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006868/* confdefs.h. */
6869_ACEOF
6870cat confdefs.h >>conftest.$ac_ext
6871cat >>conftest.$ac_ext <<_ACEOF
6872/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006873#include <stdlib.h>
6874
6875_ACEOF
6876if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006877 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006878 :
6879else
6880 ac_cv_header_stdc=no
6881fi
6882rm -f conftest*
6883
6884fi
6885
6886if test $ac_cv_header_stdc = yes; then
6887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6888 if test "$cross_compiling" = yes; then
6889 :
6890else
6891 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006892/* confdefs.h. */
6893_ACEOF
6894cat confdefs.h >>conftest.$ac_ext
6895cat >>conftest.$ac_ext <<_ACEOF
6896/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006897#include <ctype.h>
6898#if ((' ' & 0x0FF) == 0x020)
6899# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6900# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6901#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006902# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00006903 (('a' <= (c) && (c) <= 'i') \
6904 || ('j' <= (c) && (c) <= 'r') \
6905 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006906# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6907#endif
6908
6909#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6910int
6911main ()
6912{
6913 int i;
6914 for (i = 0; i < 256; i++)
6915 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00006916 || toupper (i) != TOUPPER (i))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006917 exit(2);
6918 exit (0);
6919}
6920_ACEOF
6921rm -f conftest$ac_exeext
6922if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6923 (eval $ac_link) 2>&5
6924 ac_status=$?
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6928 (eval $ac_try) 2>&5
6929 ac_status=$?
6930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6931 (exit $ac_status); }; }; then
6932 :
6933else
6934 echo "$as_me: program exited with status $ac_status" >&5
6935echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006936sed 's/^/| /' conftest.$ac_ext >&5
6937
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006938( exit $ac_status )
6939ac_cv_header_stdc=no
6940fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +00006941rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006942fi
6943fi
6944fi
6945echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6946echo "${ECHO_T}$ac_cv_header_stdc" >&6
6947if test $ac_cv_header_stdc = yes; then
6948
6949cat >>confdefs.h <<\_ACEOF
6950#define STDC_HEADERS 1
6951_ACEOF
6952
6953fi
6954
6955# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6956
6957
6958
6959
6960
6961
6962
6963
6964
6965for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00006966 inttypes.h stdint.h unistd.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006967do
6968as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6969echo "$as_me:$LINENO: checking for $ac_header" >&5
6970echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6971if eval "test \"\${$as_ac_Header+set}\" = set"; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6973else
6974 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006975/* confdefs.h. */
6976_ACEOF
6977cat confdefs.h >>conftest.$ac_ext
6978cat >>conftest.$ac_ext <<_ACEOF
6979/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006980$ac_includes_default
6981
6982#include <$ac_header>
6983_ACEOF
6984rm -f conftest.$ac_objext
6985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00006986 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006987 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00006988 grep -v '^ *+' conftest.er1 >conftest.err
6989 rm -f conftest.er1
6990 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00006993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6995 (eval $ac_try) 2>&5
6996 ac_status=$?
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; } &&
6999 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7001 (eval $ac_try) 2>&5
7002 ac_status=$?
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; }; then
7005 eval "$as_ac_Header=yes"
7006else
7007 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007008sed 's/^/| /' conftest.$ac_ext >&5
7009
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007010eval "$as_ac_Header=no"
7011fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007012rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007013fi
7014echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007015echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7016if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007017 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007018#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007019_ACEOF
7020
7021fi
7022
7023done
7024
7025
7026
Rein Klazes7ff12562004-11-09 20:16:35 +00007027
7028
7029
7030
7031
7032
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
Steven Edwards57279182005-03-04 12:38:36 +00007109
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00007110
Emmanuel Maillard64c07782005-05-18 18:20:23 +00007111
7112
Phil Krylov0f6c0392005-07-01 19:15:26 +00007113
Hans Leidekkerea524de2005-07-15 16:39:42 +00007114
7115
Rein Klazes7ff12562004-11-09 20:16:35 +00007116for ac_header in \
Phil Krylov0f6c0392005-07-01 19:15:26 +00007117 IOKit/IOKitLib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007118 arpa/inet.h \
7119 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00007120 asm/types.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007121 cups/cups.h \
7122 direct.h \
7123 elf.h \
7124 float.h \
7125 fontconfig/fontconfig.h \
7126 getopt.h \
7127 gif_lib.h \
7128 ieeefp.h \
7129 io.h \
7130 jack/jack.h \
7131 jpeglib.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00007132 lber.h \
Kevin Koltzaua2bbacb2004-11-23 17:33:55 +00007133 lcms/lcms.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007134 lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00007135 ldap.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007136 link.h \
7137 linux/cdrom.h \
7138 linux/compiler.h \
7139 linux/hdreg.h \
7140 linux/input.h \
7141 linux/ioctl.h \
7142 linux/joystick.h \
7143 linux/major.h \
7144 linux/param.h \
7145 linux/serial.h \
7146 linux/ucdrom.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00007147 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007148 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00007149 machine/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007150 mntent.h \
7151 netdb.h \
7152 netinet/in.h \
7153 netinet/in_systm.h \
7154 netinet/tcp.h \
7155 netinet/tcp_fsm.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007156 openssl/ssl.h \
Steven Edwards57279182005-03-04 12:38:36 +00007157 poll.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007158 process.h \
7159 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007160 pwd.h \
7161 regex.h \
7162 sched.h \
7163 scsi/sg.h \
7164 scsi/scsi.h \
7165 scsi/scsi_ioctl.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007166 stdint.h \
7167 strings.h \
7168 sys/cdio.h \
7169 sys/elf32.h \
7170 sys/errno.h \
7171 sys/epoll.h \
7172 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007173 sys/filio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007174 sys/ioctl.h \
7175 sys/ipc.h \
7176 sys/link.h \
7177 sys/lwp.h \
7178 sys/mman.h \
7179 sys/modem.h \
7180 sys/msg.h \
7181 sys/param.h \
7182 sys/poll.h \
7183 sys/ptrace.h \
7184 sys/reg.h \
7185 sys/scsiio.h \
7186 sys/shm.h \
7187 sys/signal.h \
7188 sys/socket.h \
7189 sys/sockio.h \
7190 sys/statfs.h \
7191 sys/statvfs.h \
7192 sys/strtio.h \
7193 sys/syscall.h \
7194 sys/sysctl.h \
7195 sys/time.h \
7196 sys/times.h \
7197 sys/uio.h \
7198 sys/un.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00007199 sys/vfs.h \
7200 sys/vm86.h \
7201 sys/wait.h \
7202 syscall.h \
7203 termios.h \
7204 unistd.h \
7205 utime.h \
7206 valgrind/memcheck.h
7207
7208do
7209as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7210if eval "test \"\${$as_ac_Header+set}\" = set"; then
7211 echo "$as_me:$LINENO: checking for $ac_header" >&5
7212echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7213if eval "test \"\${$as_ac_Header+set}\" = set"; then
7214 echo $ECHO_N "(cached) $ECHO_C" >&6
7215fi
7216echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7217echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7218else
7219 # Is the header compilable?
7220echo "$as_me:$LINENO: checking $ac_header usability" >&5
7221echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7222cat >conftest.$ac_ext <<_ACEOF
7223/* confdefs.h. */
7224_ACEOF
7225cat confdefs.h >>conftest.$ac_ext
7226cat >>conftest.$ac_ext <<_ACEOF
7227/* end confdefs.h. */
7228$ac_includes_default
7229#include <$ac_header>
7230_ACEOF
7231rm -f conftest.$ac_objext
7232if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7233 (eval $ac_compile) 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } &&
7240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7241 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7242 (eval $ac_try) 2>&5
7243 ac_status=$?
7244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7245 (exit $ac_status); }; } &&
7246 { ac_try='test -s conftest.$ac_objext'
7247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7248 (eval $ac_try) 2>&5
7249 ac_status=$?
7250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7251 (exit $ac_status); }; }; then
7252 ac_header_compiler=yes
7253else
7254 echo "$as_me: failed program was:" >&5
7255sed 's/^/| /' conftest.$ac_ext >&5
7256
7257ac_header_compiler=no
7258fi
7259rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7260echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7261echo "${ECHO_T}$ac_header_compiler" >&6
7262
7263# Is the header present?
7264echo "$as_me:$LINENO: checking $ac_header presence" >&5
7265echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7266cat >conftest.$ac_ext <<_ACEOF
7267/* confdefs.h. */
7268_ACEOF
7269cat confdefs.h >>conftest.$ac_ext
7270cat >>conftest.$ac_ext <<_ACEOF
7271/* end confdefs.h. */
7272#include <$ac_header>
7273_ACEOF
7274if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7275 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7276 ac_status=$?
7277 grep -v '^ *+' conftest.er1 >conftest.err
7278 rm -f conftest.er1
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } >/dev/null; then
7282 if test -s conftest.err; then
7283 ac_cpp_err=$ac_c_preproc_warn_flag
7284 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7285 else
7286 ac_cpp_err=
7287 fi
7288else
7289 ac_cpp_err=yes
7290fi
7291if test -z "$ac_cpp_err"; then
7292 ac_header_preproc=yes
7293else
7294 echo "$as_me: failed program was:" >&5
7295sed 's/^/| /' conftest.$ac_ext >&5
7296
7297 ac_header_preproc=no
7298fi
7299rm -f conftest.err conftest.$ac_ext
7300echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7301echo "${ECHO_T}$ac_header_preproc" >&6
7302
7303# So? What about this header?
7304case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7305 yes:no: )
7306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7307echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7309echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7310 ac_header_preproc=yes
7311 ;;
7312 no:yes:* )
7313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7316echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7318echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7320echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7322echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7324echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7325 (
7326 cat <<\_ASBOX
7327## ------------------------------------ ##
7328## Report this to wine-devel@winehq.org ##
7329## ------------------------------------ ##
7330_ASBOX
7331 ) |
7332 sed "s/^/$as_me: WARNING: /" >&2
7333 ;;
7334esac
7335echo "$as_me:$LINENO: checking for $ac_header" >&5
7336echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7337if eval "test \"\${$as_ac_Header+set}\" = set"; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7339else
7340 eval "$as_ac_Header=\$ac_header_preproc"
7341fi
7342echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7343echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7344
7345fi
7346if test `eval echo '${'$as_ac_Header'}'` = yes; then
7347 cat >>confdefs.h <<_ACEOF
7348#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7349_ACEOF
7350
7351fi
7352
7353done
7354
7355echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7356echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
7357if test "${ac_cv_header_stat_broken+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7359else
7360 cat >conftest.$ac_ext <<_ACEOF
7361/* confdefs.h. */
7362_ACEOF
7363cat confdefs.h >>conftest.$ac_ext
7364cat >>conftest.$ac_ext <<_ACEOF
7365/* end confdefs.h. */
7366#include <sys/types.h>
7367#include <sys/stat.h>
7368
7369#if defined(S_ISBLK) && defined(S_IFDIR)
7370# if S_ISBLK (S_IFDIR)
7371You lose.
7372# endif
7373#endif
7374
7375#if defined(S_ISBLK) && defined(S_IFCHR)
7376# if S_ISBLK (S_IFCHR)
7377You lose.
7378# endif
7379#endif
7380
7381#if defined(S_ISLNK) && defined(S_IFREG)
7382# if S_ISLNK (S_IFREG)
7383You lose.
7384# endif
7385#endif
7386
7387#if defined(S_ISSOCK) && defined(S_IFREG)
7388# if S_ISSOCK (S_IFREG)
7389You lose.
7390# endif
7391#endif
7392
7393_ACEOF
7394if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7395 $EGREP "You lose" >/dev/null 2>&1; then
7396 ac_cv_header_stat_broken=yes
7397else
7398 ac_cv_header_stat_broken=no
7399fi
7400rm -f conftest*
7401
7402fi
7403echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7404echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
7405if test $ac_cv_header_stat_broken = yes; then
7406
7407cat >>confdefs.h <<\_ACEOF
7408#define STAT_MACROS_BROKEN 1
7409_ACEOF
7410
7411fi
7412
7413
7414
7415if test "$have_x" = "yes"
7416then
7417 XLIB="-lXext -lX11"
7418 ac_save_CPPFLAGS="$CPPFLAGS"
7419 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7420
7421
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007422for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007423do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007424as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007425if eval "test \"\${$as_ac_Header+set}\" = set"; then
7426 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007427echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7428if eval "test \"\${$as_ac_Header+set}\" = set"; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007430fi
7431echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7432echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007433else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007434 # Is the header compilable?
7435echo "$as_me:$LINENO: checking $ac_header usability" >&5
7436echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7437cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007438/* confdefs.h. */
7439_ACEOF
7440cat confdefs.h >>conftest.$ac_ext
7441cat >>conftest.$ac_ext <<_ACEOF
7442/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007443$ac_includes_default
7444#include <$ac_header>
7445_ACEOF
7446rm -f conftest.$ac_objext
7447if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007448 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007449 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007450 grep -v '^ *+' conftest.er1 >conftest.err
7451 rm -f conftest.er1
7452 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7457 (eval $ac_try) 2>&5
7458 ac_status=$?
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); }; } &&
7461 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7463 (eval $ac_try) 2>&5
7464 ac_status=$?
7465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466 (exit $ac_status); }; }; then
7467 ac_header_compiler=yes
7468else
7469 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007470sed 's/^/| /' conftest.$ac_ext >&5
7471
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007472ac_header_compiler=no
7473fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007474rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007475echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7476echo "${ECHO_T}$ac_header_compiler" >&6
7477
7478# Is the header present?
7479echo "$as_me:$LINENO: checking $ac_header presence" >&5
7480echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7481cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007482/* confdefs.h. */
7483_ACEOF
7484cat confdefs.h >>conftest.$ac_ext
7485cat >>conftest.$ac_ext <<_ACEOF
7486/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007487#include <$ac_header>
7488_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007489if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007490 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7491 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007492 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007493 rm -f conftest.er1
7494 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007496 (exit $ac_status); } >/dev/null; then
7497 if test -s conftest.err; then
7498 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00007499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007500 else
7501 ac_cpp_err=
7502 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007503else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007504 ac_cpp_err=yes
7505fi
7506if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007507 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007508else
7509 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007510sed 's/^/| /' conftest.$ac_ext >&5
7511
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007512 ac_header_preproc=no
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007513fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007514rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007515echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7516echo "${ECHO_T}$ac_header_preproc" >&6
7517
7518# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007519case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7520 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7522echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7524echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7525 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007526 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00007527 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7529echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7531echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7533echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7535echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007537echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00007538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7539echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007540 (
7541 cat <<\_ASBOX
7542## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00007543## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007544## ------------------------------------ ##
7545_ASBOX
7546 ) |
7547 sed "s/^/$as_me: WARNING: /" >&2
7548 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007549esac
7550echo "$as_me:$LINENO: checking for $ac_header" >&5
7551echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7552if eval "test \"\${$as_ac_Header+set}\" = set"; then
7553 echo $ECHO_N "(cached) $ECHO_C" >&6
7554else
Alexandre Julliard875927f2004-01-02 01:55:29 +00007555 eval "$as_ac_Header=\$ac_header_preproc"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00007556fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007557echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007558echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007559
7560fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007561if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007562 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007563#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007564_ACEOF
7565
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007566
Alexandre Julliard255b4862003-10-15 04:09:55 +00007567
7568
7569
7570
7571
7572
7573
7574
7575for ac_header in X11/XKBlib.h \
7576 X11/Xutil.h \
7577 X11/extensions/shape.h \
Aric Stewart2eebf3c2004-01-09 00:03:00 +00007578 X11/extensions/XInput.h \
Alexandre Julliard255b4862003-10-15 04:09:55 +00007579 X11/extensions/XShm.h \
7580 X11/extensions/Xrandr.h \
7581 X11/extensions/Xrender.h \
Alexandre Julliard255b4862003-10-15 04:09:55 +00007582 X11/extensions/xf86dga.h \
7583 X11/extensions/xf86vmode.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007584do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007585as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007586echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007587echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7588if eval "test \"\${$as_ac_Header+set}\" = set"; then
7589 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007590else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007591 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007592/* confdefs.h. */
7593_ACEOF
7594cat confdefs.h >>conftest.$ac_ext
7595cat >>conftest.$ac_ext <<_ACEOF
7596/* end confdefs.h. */
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007597#include <X11/Xlib.h>
Alexandre Julliard255b4862003-10-15 04:09:55 +00007598 #ifdef HAVE_X11_XUTIL_H
7599 # include <X11/Xutil.h>
7600 #endif
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007601
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007602#include <$ac_header>
7603_ACEOF
7604rm -f conftest.$ac_objext
7605if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007606 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007607 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007608 grep -v '^ *+' conftest.er1 >conftest.err
7609 rm -f conftest.er1
7610 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7615 (eval $ac_try) 2>&5
7616 ac_status=$?
7617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7618 (exit $ac_status); }; } &&
7619 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7621 (eval $ac_try) 2>&5
7622 ac_status=$?
7623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007625 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007626else
7627 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007628sed 's/^/| /' conftest.$ac_ext >&5
7629
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007630eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007631fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007632rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007633fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007634echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007635echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7636if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007637 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007638#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007639_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00007640
7641fi
7642
7643done
7644
7645
7646 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7647 then
7648 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007649echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
7650if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
7651 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007652else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007653 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00007654LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007655cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007656/* confdefs.h. */
7657_ACEOF
7658cat confdefs.h >>conftest.$ac_ext
7659cat >>conftest.$ac_ext <<_ACEOF
7660/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007661
Patrik Stridvall24110281999-02-04 10:09:54 +00007662/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007663#ifdef __cplusplus
7664extern "C"
7665#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007666/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007667 builtin and then its argument prototype would still apply. */
7668char XkbQueryExtension ();
7669int
7670main ()
7671{
7672XkbQueryExtension ();
7673 ;
7674 return 0;
7675}
7676_ACEOF
7677rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007679 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007680 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007681 grep -v '^ *+' conftest.er1 >conftest.err
7682 rm -f conftest.er1
7683 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007685 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007686 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7688 (eval $ac_try) 2>&5
7689 ac_status=$?
7690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7691 (exit $ac_status); }; } &&
7692 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007694 (eval $ac_try) 2>&5
7695 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007697 (exit $ac_status); }; }; then
7698 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007699else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007700 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007701sed 's/^/| /' conftest.$ac_ext >&5
7702
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007703ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007704fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007705rm -f conftest.err conftest.$ac_objext \
7706 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007707LIBS=$ac_check_lib_save_LIBS
7708fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007709echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007710echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
7711if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007712
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007713cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007714#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007715_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007716
Patrik Stridvall24110281999-02-04 10:09:54 +00007717fi
7718
Alexandre Julliard255b4862003-10-15 04:09:55 +00007719 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007720
Alexandre Julliard255b4862003-10-15 04:09:55 +00007721 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
7722 then
7723 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007724echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
7725if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
7726 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00007727else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007728 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00007729LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007730cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007731/* confdefs.h. */
7732_ACEOF
7733cat confdefs.h >>conftest.$ac_ext
7734cat >>conftest.$ac_ext <<_ACEOF
7735/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007736
Francois Jacques5b6879c2000-07-28 23:04:54 +00007737/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007738#ifdef __cplusplus
7739extern "C"
7740#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00007741/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007742 builtin and then its argument prototype would still apply. */
7743char XShmQueryExtension ();
7744int
7745main ()
7746{
7747XShmQueryExtension ();
7748 ;
7749 return 0;
7750}
7751_ACEOF
7752rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007753if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007754 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007755 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007756 grep -v '^ *+' conftest.er1 >conftest.err
7757 rm -f conftest.er1
7758 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007760 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007761 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7763 (eval $ac_try) 2>&5
7764 ac_status=$?
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; } &&
7767 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007769 (eval $ac_try) 2>&5
7770 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007772 (exit $ac_status); }; }; then
7773 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00007774else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007775 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007776sed 's/^/| /' conftest.$ac_ext >&5
7777
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007778ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00007779fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007780rm -f conftest.err conftest.$ac_objext \
7781 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007782LIBS=$ac_check_lib_save_LIBS
7783fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007784echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007785echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7786if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00007787
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007788cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007789#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007790_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00007791
Francois Jacques5b6879c2000-07-28 23:04:54 +00007792fi
7793
Alexandre Julliard255b4862003-10-15 04:09:55 +00007794 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007795
Alexandre Julliard255b4862003-10-15 04:09:55 +00007796 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
7797 then
7798 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007799echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7800if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00007802else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007803 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00007804LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007805cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007806/* confdefs.h. */
7807_ACEOF
7808cat confdefs.h >>conftest.$ac_ext
7809cat >>conftest.$ac_ext <<_ACEOF
7810/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007811
Ove Kaavenc90fb252001-01-02 22:39:14 +00007812/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007813#ifdef __cplusplus
7814extern "C"
7815#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00007816/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007817 builtin and then its argument prototype would still apply. */
7818char XShapeQueryExtension ();
7819int
7820main ()
7821{
7822XShapeQueryExtension ();
7823 ;
7824 return 0;
7825}
7826_ACEOF
7827rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007828if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007829 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007830 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007831 grep -v '^ *+' conftest.er1 >conftest.err
7832 rm -f conftest.er1
7833 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007835 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7838 (eval $ac_try) 2>&5
7839 ac_status=$?
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); }; } &&
7842 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007844 (eval $ac_try) 2>&5
7845 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007847 (exit $ac_status); }; }; then
7848 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00007849else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007850 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007851sed 's/^/| /' conftest.$ac_ext >&5
7852
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007853ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00007854fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007855rm -f conftest.err conftest.$ac_objext \
7856 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007857LIBS=$ac_check_lib_save_LIBS
7858fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007859echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007860echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7861if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00007862
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007863cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007864#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007865_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007866
Ove Kaavenc90fb252001-01-02 22:39:14 +00007867fi
7868
Alexandre Julliard255b4862003-10-15 04:09:55 +00007869 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007870
Alexandre Julliard255b4862003-10-15 04:09:55 +00007871 if test "$ac_cv_header_X11_extensions_xf86dga_h" = "yes"
7872 then
7873 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007874echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7875if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007877else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007878 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00007879LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007880cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007881/* confdefs.h. */
7882_ACEOF
7883cat confdefs.h >>conftest.$ac_ext
7884cat >>conftest.$ac_ext <<_ACEOF
7885/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007886
Patrik Stridvall24110281999-02-04 10:09:54 +00007887/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007888#ifdef __cplusplus
7889extern "C"
7890#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007891/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007892 builtin and then its argument prototype would still apply. */
7893char XDGAQueryExtension ();
7894int
7895main ()
7896{
7897XDGAQueryExtension ();
7898 ;
7899 return 0;
7900}
7901_ACEOF
7902rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007903if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007904 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007905 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007906 grep -v '^ *+' conftest.er1 >conftest.err
7907 rm -f conftest.er1
7908 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007910 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007911 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7913 (eval $ac_try) 2>&5
7914 ac_status=$?
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); }; } &&
7917 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007919 (eval $ac_try) 2>&5
7920 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007922 (exit $ac_status); }; }; then
7923 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007924else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007925 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007926sed 's/^/| /' conftest.$ac_ext >&5
7927
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007928ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007929fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00007930rm -f conftest.err conftest.$ac_objext \
7931 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007932LIBS=$ac_check_lib_save_LIBS
7933fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007934echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007935echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7936if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007937
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007938cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007939#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007940_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007941
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007942 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007943
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007944fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007945
Alexandre Julliard255b4862003-10-15 04:09:55 +00007946 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007947
Alexandre Julliard255b4862003-10-15 04:09:55 +00007948 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes"
7949 then
7950 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007951echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7952if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007954else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007955 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard255b4862003-10-15 04:09:55 +00007956LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007957cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007958/* confdefs.h. */
7959_ACEOF
7960cat confdefs.h >>conftest.$ac_ext
7961cat >>conftest.$ac_ext <<_ACEOF
7962/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007963
Patrik Stridvall24110281999-02-04 10:09:54 +00007964/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007965#ifdef __cplusplus
7966extern "C"
7967#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007968/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007969 builtin and then its argument prototype would still apply. */
7970char XF86VidModeQueryExtension ();
7971int
7972main ()
7973{
7974XF86VidModeQueryExtension ();
7975 ;
7976 return 0;
7977}
7978_ACEOF
7979rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007980if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00007981 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007982 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00007983 grep -v '^ *+' conftest.er1 >conftest.err
7984 rm -f conftest.er1
7985 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007987 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00007988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7990 (eval $ac_try) 2>&5
7991 ac_status=$?
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; } &&
7994 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007996 (eval $ac_try) 2>&5
7997 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007999 (exit $ac_status); }; }; then
8000 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008001else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008002 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008003sed 's/^/| /' conftest.$ac_ext >&5
8004
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008005ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008006fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008007rm -f conftest.err conftest.$ac_objext \
8008 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008009LIBS=$ac_check_lib_save_LIBS
8010fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008011echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008012echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
8013if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00008014
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008015cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00008016#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008017_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008018
8019 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008020
Patrik Stridvall24110281999-02-04 10:09:54 +00008021fi
8022
Alexandre Julliard255b4862003-10-15 04:09:55 +00008023 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008024
Alexandre Julliard255b4862003-10-15 04:09:55 +00008025 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes"
8026 then
Mike McCormackc7c9f932004-04-07 03:57:35 +00008027 cat >conftest.$ac_ext <<_ACEOF
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008028/* confdefs.h. */
8029_ACEOF
8030cat confdefs.h >>conftest.$ac_ext
8031cat >>conftest.$ac_ext <<_ACEOF
8032/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008033#include <X11/Xlib.h>
8034#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008035int
8036main ()
8037{
Mike McCormackc7c9f932004-04-07 03:57:35 +00008038static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008039 ;
8040 return 0;
8041}
8042_ACEOF
Mike McCormackc7c9f932004-04-07 03:57:35 +00008043rm -f conftest.$ac_objext
8044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8045 (eval $ac_compile) 2>conftest.er1
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008046 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008047 grep -v '^ *+' conftest.er1 >conftest.err
8048 rm -f conftest.er1
8049 cat conftest.err >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8051 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8054 (eval $ac_try) 2>&5
8055 ac_status=$?
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; } &&
Mike McCormackc7c9f932004-04-07 03:57:35 +00008058 { ac_try='test -s conftest.$ac_objext'
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8060 (eval $ac_try) 2>&5
8061 ac_status=$?
8062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8063 (exit $ac_status); }; }; then
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008064
8065cat >>confdefs.h <<\_ACEOF
8066#define HAVE_LIBXRANDR 1
8067_ACEOF
8068
Mike McCormackc7c9f932004-04-07 03:57:35 +00008069else
8070 echo "$as_me: failed program was:" >&5
8071sed 's/^/| /' conftest.$ac_ext >&5
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008072
8073fi
Mike McCormackc7c9f932004-04-07 03:57:35 +00008074rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00008075 fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008076
Kevin Koltzau92ec21b2004-10-27 00:43:50 +00008077 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes"
8078 then
8079 echo "$as_me:$LINENO: checking for XRenderSetPictureTransform in -lXrender" >&5
8080echo $ECHO_N "checking for XRenderSetPictureTransform in -lXrender... $ECHO_C" >&6
8081if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
8083else
8084 ac_check_lib_save_LIBS=$LIBS
8085LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8086cat >conftest.$ac_ext <<_ACEOF
8087/* confdefs.h. */
8088_ACEOF
8089cat confdefs.h >>conftest.$ac_ext
8090cat >>conftest.$ac_ext <<_ACEOF
8091/* end confdefs.h. */
8092
8093/* Override any gcc2 internal prototype to avoid an error. */
8094#ifdef __cplusplus
8095extern "C"
8096#endif
8097/* We use char because int might match the return type of a gcc2
8098 builtin and then its argument prototype would still apply. */
8099char XRenderSetPictureTransform ();
8100int
8101main ()
8102{
8103XRenderSetPictureTransform ();
8104 ;
8105 return 0;
8106}
8107_ACEOF
8108rm -f conftest.$ac_objext conftest$ac_exeext
8109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8110 (eval $ac_link) 2>conftest.er1
8111 ac_status=$?
8112 grep -v '^ *+' conftest.er1 >conftest.err
8113 rm -f conftest.er1
8114 cat conftest.err >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); } &&
8117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 (eval $ac_try) 2>&5
8120 ac_status=$?
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; } &&
8123 { ac_try='test -s conftest$ac_exeext'
8124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 (eval $ac_try) 2>&5
8126 ac_status=$?
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); }; }; then
8129 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8130else
8131 echo "$as_me: failed program was:" >&5
8132sed 's/^/| /' conftest.$ac_ext >&5
8133
8134ac_cv_lib_Xrender_XRenderSetPictureTransform=no
8135fi
8136rm -f conftest.err conftest.$ac_objext \
8137 conftest$ac_exeext conftest.$ac_ext
8138LIBS=$ac_check_lib_save_LIBS
8139fi
8140echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
8141echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6
8142if test $ac_cv_lib_Xrender_XRenderSetPictureTransform = yes; then
8143
8144cat >>confdefs.h <<\_ACEOF
8145#define HAVE_XRENDERSETPICTURETRANSFORM 1
8146_ACEOF
8147
8148fi
8149
8150 fi
8151
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008152
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008153fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008154
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008155done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008156
Alexandre Julliardb8074992002-11-21 21:51:24 +00008157 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008158 then
Pierre d'Herbemont009781d2005-06-20 15:52:16 +00008159 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so -a ! -f /usr/X11R6/lib/libGL.dylib
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008160 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008161 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008162This prevents linking to OpenGL. Delete the file and restart configure." >&5
8163echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
8164This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
8165 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008166 fi
8167
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008168
8169
8170for ac_header in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008171do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008173if eval "test \"\${$as_ac_Header+set}\" = set"; then
8174 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8176if eval "test \"\${$as_ac_Header+set}\" = set"; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008178fi
8179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8180echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008181else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008182 # Is the header compilable?
8183echo "$as_me:$LINENO: checking $ac_header usability" >&5
8184echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8185cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008186/* confdefs.h. */
8187_ACEOF
8188cat confdefs.h >>conftest.$ac_ext
8189cat >>conftest.$ac_ext <<_ACEOF
8190/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008191$ac_includes_default
8192#include <$ac_header>
8193_ACEOF
8194rm -f conftest.$ac_objext
8195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008196 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008197 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008198 grep -v '^ *+' conftest.er1 >conftest.err
8199 rm -f conftest.er1
8200 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8205 (eval $ac_try) 2>&5
8206 ac_status=$?
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); }; } &&
8209 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8211 (eval $ac_try) 2>&5
8212 ac_status=$?
8213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8214 (exit $ac_status); }; }; then
8215 ac_header_compiler=yes
8216else
8217 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008218sed 's/^/| /' conftest.$ac_ext >&5
8219
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008220ac_header_compiler=no
8221fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008223echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8224echo "${ECHO_T}$ac_header_compiler" >&6
8225
8226# Is the header present?
8227echo "$as_me:$LINENO: checking $ac_header presence" >&5
8228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8229cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008230/* confdefs.h. */
8231_ACEOF
8232cat confdefs.h >>conftest.$ac_ext
8233cat >>conftest.$ac_ext <<_ACEOF
8234/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008235#include <$ac_header>
8236_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008237if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8239 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008240 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008241 rm -f conftest.er1
8242 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008244 (exit $ac_status); } >/dev/null; then
8245 if test -s conftest.err; then
8246 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00008247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008248 else
8249 ac_cpp_err=
8250 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008251else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008252 ac_cpp_err=yes
8253fi
8254if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008255 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008256else
8257 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008258sed 's/^/| /' conftest.$ac_ext >&5
8259
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008260 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008261fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008262rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008263echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8264echo "${ECHO_T}$ac_header_preproc" >&6
8265
8266# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8268 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8270echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8272echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8273 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008274 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00008275 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8277echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8279echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8281echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8283echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8287echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008288 (
8289 cat <<\_ASBOX
8290## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00008291## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008292## ------------------------------------ ##
8293_ASBOX
8294 ) |
8295 sed "s/^/$as_me: WARNING: /" >&2
8296 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008297esac
8298echo "$as_me:$LINENO: checking for $ac_header" >&5
8299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8300if eval "test \"\${$as_ac_Header+set}\" = set"; then
8301 echo $ECHO_N "(cached) $ECHO_C" >&6
8302else
Alexandre Julliard875927f2004-01-02 01:55:29 +00008303 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00008304fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008306echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008307
Patrik Stridvall24110281999-02-04 10:09:54 +00008308fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008309if test `eval echo '${'$as_ac_Header'}'` = yes; then
8310 cat >>confdefs.h <<_ACEOF
8311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8312_ACEOF
8313
8314fi
8315
Patrik Stridvall24110281999-02-04 10:09:54 +00008316done
8317
Marcus Meissner22a969b2000-08-08 20:46:50 +00008318 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008319 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008320
8321for ac_header in GL/glext.h
8322do
8323as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8324echo "$as_me:$LINENO: checking for $ac_header" >&5
8325echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8326if eval "test \"\${$as_ac_Header+set}\" = set"; then
8327 echo $ECHO_N "(cached) $ECHO_C" >&6
8328else
8329 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008330/* confdefs.h. */
8331_ACEOF
8332cat confdefs.h >>conftest.$ac_ext
8333cat >>conftest.$ac_ext <<_ACEOF
8334/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008335#include <GL/glx.h>
8336
8337#include <$ac_header>
8338_ACEOF
8339rm -f conftest.$ac_objext
8340if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008341 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008342 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008343 grep -v '^ *+' conftest.er1 >conftest.err
8344 rm -f conftest.er1
8345 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8347 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8350 (eval $ac_try) 2>&5
8351 ac_status=$?
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; } &&
8354 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8356 (eval $ac_try) 2>&5
8357 ac_status=$?
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); }; }; then
8360 eval "$as_ac_Header=yes"
8361else
8362 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008363sed 's/^/| /' conftest.$ac_ext >&5
8364
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008365eval "$as_ac_Header=no"
8366fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008367rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008368fi
8369echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8370echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8371if test `eval echo '${'$as_ac_Header'}'` = yes; then
8372 cat >>confdefs.h <<_ACEOF
8373#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8374_ACEOF
8375
8376fi
8377
8378done
8379
8380 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008381echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
8382if test "${wine_cv_opengl_version_OK+set}" = set; then
8383 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008384else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008385 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008386/* confdefs.h. */
8387_ACEOF
8388cat confdefs.h >>conftest.$ac_ext
8389cat >>conftest.$ac_ext <<_ACEOF
8390/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008391#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008392int
8393main ()
8394{
Lionel Ulmer5c085701999-02-28 19:48:53 +00008395GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008396 ;
8397 return 0;
8398}
8399_ACEOF
8400rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008401if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008402 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008403 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008408 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 (eval $ac_try) 2>&5
8412 ac_status=$?
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); }; } &&
8415 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008417 (eval $ac_try) 2>&5
8418 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008420 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008421 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008422else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008423 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008424sed 's/^/| /' conftest.$ac_ext >&5
8425
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008426wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008427
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008428fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00008430
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008431fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008432echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008433echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
8434
Alexandre Julliardb8074992002-11-21 21:51:24 +00008435 if test "$wine_cv_opengl_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008436 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008437 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008438echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
8439if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
8440 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008441else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008442 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00008443LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008444cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008445/* confdefs.h. */
8446_ACEOF
8447cat confdefs.h >>conftest.$ac_ext
8448cat >>conftest.$ac_ext <<_ACEOF
8449/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008450
Patrik Stridvall24110281999-02-04 10:09:54 +00008451/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008452#ifdef __cplusplus
8453extern "C"
8454#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00008455/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008456 builtin and then its argument prototype would still apply. */
8457char glXCreateContext ();
8458int
8459main ()
8460{
8461glXCreateContext ();
8462 ;
8463 return 0;
8464}
8465_ACEOF
8466rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008468 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008469 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008470 grep -v '^ *+' conftest.er1 >conftest.err
8471 rm -f conftest.er1
8472 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008474 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 (eval $ac_try) 2>&5
8478 ac_status=$?
8479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480 (exit $ac_status); }; } &&
8481 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008483 (eval $ac_try) 2>&5
8484 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008486 (exit $ac_status); }; }; then
8487 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008488else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008489 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008490sed 's/^/| /' conftest.$ac_ext >&5
8491
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008492ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008493fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008494rm -f conftest.err conftest.$ac_objext \
8495 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008496LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008497fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008498echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008499echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
8500if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008501 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00008502
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008503fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008504
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008505
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008506 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008507 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008508 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008509
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008510cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008511#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008512_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008513
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008514 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008515 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008516echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8517if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8518 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008519else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008520 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008521LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008522 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008523cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008524/* confdefs.h. */
8525_ACEOF
8526cat confdefs.h >>conftest.$ac_ext
8527cat >>conftest.$ac_ext <<_ACEOF
8528/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008529
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008530/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008531#ifdef __cplusplus
8532extern "C"
8533#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008534/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008535 builtin and then its argument prototype would still apply. */
8536char gluLookAt ();
8537int
8538main ()
8539{
8540gluLookAt ();
8541 ;
8542 return 0;
8543}
8544_ACEOF
8545rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008546if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008547 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008548 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008549 grep -v '^ *+' conftest.er1 >conftest.err
8550 rm -f conftest.er1
8551 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008553 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8556 (eval $ac_try) 2>&5
8557 ac_status=$?
8558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8559 (exit $ac_status); }; } &&
8560 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008562 (eval $ac_try) 2>&5
8563 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008565 (exit $ac_status); }; }; then
8566 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008567else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008568 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008569sed 's/^/| /' conftest.$ac_ext >&5
8570
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008571ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008572fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008573rm -f conftest.err conftest.$ac_objext \
8574 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008575LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008576fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008577echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008578echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8579if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008580 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008581 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008582
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008583fi
8584
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008585 fi
Jacek Cabanef799c42003-12-02 04:11:09 +00008586
8587 echo "$as_me:$LINENO: checking for glutMainLoop in -lglut" >&5
8588echo $ECHO_N "checking for glutMainLoop in -lglut... $ECHO_C" >&6
8589if test "${ac_cv_lib_glut_glutMainLoop+set}" = set; then
8590 echo $ECHO_N "(cached) $ECHO_C" >&6
8591else
8592 ac_check_lib_save_LIBS=$LIBS
Jacek Caban5e69f112003-12-03 20:26:43 +00008593LIBS="-lglut $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXmu -lXi -lX11 $X_EXTRA_LIBS $LIBS"
Jacek Cabanef799c42003-12-02 04:11:09 +00008594cat >conftest.$ac_ext <<_ACEOF
Jacek Cabanef799c42003-12-02 04:11:09 +00008595/* confdefs.h. */
8596_ACEOF
8597cat confdefs.h >>conftest.$ac_ext
8598cat >>conftest.$ac_ext <<_ACEOF
8599/* end confdefs.h. */
8600
8601/* Override any gcc2 internal prototype to avoid an error. */
8602#ifdef __cplusplus
8603extern "C"
8604#endif
8605/* We use char because int might match the return type of a gcc2
8606 builtin and then its argument prototype would still apply. */
8607char glutMainLoop ();
8608int
8609main ()
8610{
8611glutMainLoop ();
8612 ;
8613 return 0;
8614}
8615_ACEOF
8616rm -f conftest.$ac_objext conftest$ac_exeext
8617if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008618 (eval $ac_link) 2>conftest.er1
Jacek Cabanef799c42003-12-02 04:11:09 +00008619 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008620 grep -v '^ *+' conftest.er1 >conftest.err
8621 rm -f conftest.er1
8622 cat conftest.err >&5
Jacek Cabanef799c42003-12-02 04:11:09 +00008623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008625 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8627 (eval $ac_try) 2>&5
8628 ac_status=$?
8629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8630 (exit $ac_status); }; } &&
8631 { ac_try='test -s conftest$ac_exeext'
Jacek Cabanef799c42003-12-02 04:11:09 +00008632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8633 (eval $ac_try) 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_cv_lib_glut_glutMainLoop=yes
8638else
8639 echo "$as_me: failed program was:" >&5
8640sed 's/^/| /' conftest.$ac_ext >&5
8641
8642ac_cv_lib_glut_glutMainLoop=no
8643fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008644rm -f conftest.err conftest.$ac_objext \
8645 conftest$ac_exeext conftest.$ac_ext
Jacek Cabanef799c42003-12-02 04:11:09 +00008646LIBS=$ac_check_lib_save_LIBS
8647fi
8648echo "$as_me:$LINENO: result: $ac_cv_lib_glut_glutMainLoop" >&5
8649echo "${ECHO_T}$ac_cv_lib_glut_glutMainLoop" >&6
8650if test $ac_cv_lib_glut_glutMainLoop = yes; then
Jacek Caban5e69f112003-12-03 20:26:43 +00008651 GLUT_LIBS="-lglut -lXmu -lXi"
Jacek Cabanef799c42003-12-02 04:11:09 +00008652
8653 GLUT32FILES='$(GLUT32FILES)'
8654
8655fi
8656
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008657 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008658 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008659
Francois Gouget6f670b12002-10-10 17:54:27 +00008660 NASLIBS=""
8661
8662
8663for ac_header in audio/audiolib.h
8664do
8665as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8666if eval "test \"\${$as_ac_Header+set}\" = set"; then
8667 echo "$as_me:$LINENO: checking for $ac_header" >&5
8668echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8669if eval "test \"\${$as_ac_Header+set}\" = set"; then
8670 echo $ECHO_N "(cached) $ECHO_C" >&6
8671fi
8672echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8673echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8674else
8675 # Is the header compilable?
8676echo "$as_me:$LINENO: checking $ac_header usability" >&5
8677echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8678cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008679/* confdefs.h. */
8680_ACEOF
8681cat confdefs.h >>conftest.$ac_ext
8682cat >>conftest.$ac_ext <<_ACEOF
8683/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008684$ac_includes_default
8685#include <$ac_header>
8686_ACEOF
8687rm -f conftest.$ac_objext
8688if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008689 (eval $ac_compile) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00008690 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008691 grep -v '^ *+' conftest.er1 >conftest.err
8692 rm -f conftest.er1
8693 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00008694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698 (eval $ac_try) 2>&5
8699 ac_status=$?
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 (exit $ac_status); }; } &&
8702 { ac_try='test -s conftest.$ac_objext'
Francois Gouget6f670b12002-10-10 17:54:27 +00008703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704 (eval $ac_try) 2>&5
8705 ac_status=$?
8706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707 (exit $ac_status); }; }; then
8708 ac_header_compiler=yes
8709else
8710 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008711sed 's/^/| /' conftest.$ac_ext >&5
8712
Francois Gouget6f670b12002-10-10 17:54:27 +00008713ac_header_compiler=no
8714fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008715rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008716echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8717echo "${ECHO_T}$ac_header_compiler" >&6
8718
8719# Is the header present?
8720echo "$as_me:$LINENO: checking $ac_header presence" >&5
8721echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8722cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008723/* confdefs.h. */
8724_ACEOF
8725cat confdefs.h >>conftest.$ac_ext
8726cat >>conftest.$ac_ext <<_ACEOF
8727/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008728#include <$ac_header>
8729_ACEOF
8730if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8732 ac_status=$?
8733 grep -v '^ *+' conftest.er1 >conftest.err
8734 rm -f conftest.er1
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } >/dev/null; then
8738 if test -s conftest.err; then
8739 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00008740 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Francois Gouget6f670b12002-10-10 17:54:27 +00008741 else
8742 ac_cpp_err=
8743 fi
8744else
8745 ac_cpp_err=yes
8746fi
8747if test -z "$ac_cpp_err"; then
8748 ac_header_preproc=yes
8749else
8750 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008751sed 's/^/| /' conftest.$ac_ext >&5
8752
Francois Gouget6f670b12002-10-10 17:54:27 +00008753 ac_header_preproc=no
8754fi
8755rm -f conftest.err conftest.$ac_ext
8756echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8757echo "${ECHO_T}$ac_header_preproc" >&6
8758
8759# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008760case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8761 yes:no: )
Francois Gouget6f670b12002-10-10 17:54:27 +00008762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8763echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8765echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8766 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008767 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00008768 no:yes:* )
Francois Gouget6f670b12002-10-10 17:54:27 +00008769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8770echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8772echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8774echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8776echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Francois Gouget6f670b12002-10-10 17:54:27 +00008777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008778echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00008779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8780echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008781 (
8782 cat <<\_ASBOX
8783## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00008784## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008785## ------------------------------------ ##
8786_ASBOX
8787 ) |
8788 sed "s/^/$as_me: WARNING: /" >&2
8789 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00008790esac
8791echo "$as_me:$LINENO: checking for $ac_header" >&5
8792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8793if eval "test \"\${$as_ac_Header+set}\" = set"; then
8794 echo $ECHO_N "(cached) $ECHO_C" >&6
8795else
Alexandre Julliard875927f2004-01-02 01:55:29 +00008796 eval "$as_ac_Header=\$ac_header_preproc"
Francois Gouget6f670b12002-10-10 17:54:27 +00008797fi
8798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8800
8801fi
8802if test `eval echo '${'$as_ac_Header'}'` = yes; then
8803 cat >>confdefs.h <<_ACEOF
8804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8805_ACEOF
8806
8807for ac_header in audio/soundlib.h
8808do
8809as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8810echo "$as_me:$LINENO: checking for $ac_header" >&5
8811echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8812if eval "test \"\${$as_ac_Header+set}\" = set"; then
8813 echo $ECHO_N "(cached) $ECHO_C" >&6
8814else
8815 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008816/* confdefs.h. */
8817_ACEOF
8818cat confdefs.h >>conftest.$ac_ext
8819cat >>conftest.$ac_ext <<_ACEOF
8820/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008821#include <audio/audiolib.h>
8822
8823#include <$ac_header>
8824_ACEOF
8825rm -f conftest.$ac_objext
8826if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008827 (eval $ac_compile) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00008828 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008829 grep -v '^ *+' conftest.er1 >conftest.err
8830 rm -f conftest.er1
8831 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00008832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 (eval $ac_try) 2>&5
8837 ac_status=$?
8838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8839 (exit $ac_status); }; } &&
8840 { ac_try='test -s conftest.$ac_objext'
Francois Gouget6f670b12002-10-10 17:54:27 +00008841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 (eval $ac_try) 2>&5
8843 ac_status=$?
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); }; }; then
8846 eval "$as_ac_Header=yes"
8847else
8848 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008849sed 's/^/| /' conftest.$ac_ext >&5
8850
Francois Gouget6f670b12002-10-10 17:54:27 +00008851eval "$as_ac_Header=no"
8852fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008853rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008854fi
8855echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8856echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8857if test `eval echo '${'$as_ac_Header'}'` = yes; then
8858 cat >>confdefs.h <<_ACEOF
8859#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8860_ACEOF
8861
8862fi
8863
8864done
8865
8866 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8867echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8868if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8870else
8871 ac_check_lib_save_LIBS=$LIBS
8872LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8873cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008874/* confdefs.h. */
8875_ACEOF
8876cat confdefs.h >>conftest.$ac_ext
8877cat >>conftest.$ac_ext <<_ACEOF
8878/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008879
8880/* Override any gcc2 internal prototype to avoid an error. */
8881#ifdef __cplusplus
8882extern "C"
8883#endif
8884/* We use char because int might match the return type of a gcc2
8885 builtin and then its argument prototype would still apply. */
8886char AuCreateFlow ();
8887int
8888main ()
8889{
8890AuCreateFlow ();
8891 ;
8892 return 0;
8893}
8894_ACEOF
8895rm -f conftest.$ac_objext conftest$ac_exeext
8896if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008897 (eval $ac_link) 2>conftest.er1
Francois Gouget6f670b12002-10-10 17:54:27 +00008898 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008899 grep -v '^ *+' conftest.er1 >conftest.err
8900 rm -f conftest.er1
8901 cat conftest.err >&5
Francois Gouget6f670b12002-10-10 17:54:27 +00008902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8906 (eval $ac_try) 2>&5
8907 ac_status=$?
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; } &&
8910 { ac_try='test -s conftest$ac_exeext'
Francois Gouget6f670b12002-10-10 17:54:27 +00008911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8912 (eval $ac_try) 2>&5
8913 ac_status=$?
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; }; then
8916 ac_cv_lib_audio_AuCreateFlow=yes
8917else
8918 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008919sed 's/^/| /' conftest.$ac_ext >&5
8920
Francois Gouget6f670b12002-10-10 17:54:27 +00008921ac_cv_lib_audio_AuCreateFlow=no
8922fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00008923rm -f conftest.err conftest.$ac_objext \
8924 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008925LIBS=$ac_check_lib_save_LIBS
8926fi
8927echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8928echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8929if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8930
8931cat >>confdefs.h <<\_ACEOF
8932#define HAVE_NAS 1
8933_ACEOF
8934
8935 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8936fi
8937
8938fi
8939
8940done
8941
8942
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008943 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00008944 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00008945else
8946 XLIB=""
8947 X_CFLAGS=""
8948 X_LIBS=""
8949fi
Alexandre Julliard902da691995-11-05 14:39:02 +00008950
Alexandre Julliard48957682001-12-26 23:08:31 +00008951CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008952if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00008953then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008954
8955for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008956do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008957as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008958if eval "test \"\${$as_ac_Header+set}\" = set"; then
8959 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008960echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8961if eval "test \"\${$as_ac_Header+set}\" = set"; then
8962 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008963fi
8964echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8965echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008966else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008967 # Is the header compilable?
8968echo "$as_me:$LINENO: checking $ac_header usability" >&5
8969echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8970cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008971/* confdefs.h. */
8972_ACEOF
8973cat confdefs.h >>conftest.$ac_ext
8974cat >>conftest.$ac_ext <<_ACEOF
8975/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008976$ac_includes_default
8977#include <$ac_header>
8978_ACEOF
8979rm -f conftest.$ac_objext
8980if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00008981 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008982 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00008983 grep -v '^ *+' conftest.er1 >conftest.err
8984 rm -f conftest.er1
8985 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00008988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8990 (eval $ac_try) 2>&5
8991 ac_status=$?
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; } &&
8994 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008995 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8996 (eval $ac_try) 2>&5
8997 ac_status=$?
8998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999 (exit $ac_status); }; }; then
9000 ac_header_compiler=yes
9001else
9002 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009003sed 's/^/| /' conftest.$ac_ext >&5
9004
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009005ac_header_compiler=no
9006fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009007rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009008echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9009echo "${ECHO_T}$ac_header_compiler" >&6
9010
9011# Is the header present?
9012echo "$as_me:$LINENO: checking $ac_header presence" >&5
9013echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9014cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009015/* confdefs.h. */
9016_ACEOF
9017cat confdefs.h >>conftest.$ac_ext
9018cat >>conftest.$ac_ext <<_ACEOF
9019/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009020#include <$ac_header>
9021_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009022if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009023 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9024 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009025 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009026 rm -f conftest.er1
9027 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009029 (exit $ac_status); } >/dev/null; then
9030 if test -s conftest.err; then
9031 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009032 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009033 else
9034 ac_cpp_err=
9035 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009036else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009037 ac_cpp_err=yes
9038fi
9039if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009040 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009041else
9042 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009043sed 's/^/| /' conftest.$ac_ext >&5
9044
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009045 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009046fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009047rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009048echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9049echo "${ECHO_T}$ac_header_preproc" >&6
9050
9051# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009052case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9053 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009054 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9055echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9057echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9058 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009059 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009060 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009061 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9062echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009063 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9064echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9065 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9066echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9067 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9068echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009070echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009071 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9072echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009073 (
9074 cat <<\_ASBOX
9075## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009076## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009077## ------------------------------------ ##
9078_ASBOX
9079 ) |
9080 sed "s/^/$as_me: WARNING: /" >&2
9081 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009082esac
9083echo "$as_me:$LINENO: checking for $ac_header" >&5
9084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9085if eval "test \"\${$as_ac_Header+set}\" = set"; then
9086 echo $ECHO_N "(cached) $ECHO_C" >&6
9087else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009088 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00009089fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009090echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009091echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009092
9093fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009094if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009095 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009096#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009097_ACEOF
9098 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009099echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
9100if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009102else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009103 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009104LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009105cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009106/* confdefs.h. */
9107_ACEOF
9108cat confdefs.h >>conftest.$ac_ext
9109cat >>conftest.$ac_ext <<_ACEOF
9110/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009111
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009112/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009113#ifdef __cplusplus
9114extern "C"
9115#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009116/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009117 builtin and then its argument prototype would still apply. */
9118char waddch ();
9119int
9120main ()
9121{
9122waddch ();
9123 ;
9124 return 0;
9125}
9126_ACEOF
9127rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009128if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009129 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009130 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009131 grep -v '^ *+' conftest.er1 >conftest.err
9132 rm -f conftest.er1
9133 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009135 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138 (eval $ac_try) 2>&5
9139 ac_status=$?
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); }; } &&
9142 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009144 (eval $ac_try) 2>&5
9145 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009147 (exit $ac_status); }; }; then
9148 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009149else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009150 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009151sed 's/^/| /' conftest.$ac_ext >&5
9152
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009153ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009154fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009155rm -f conftest.err conftest.$ac_objext \
9156 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009157LIBS=$ac_check_lib_save_LIBS
9158fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009159echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009160echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
9161if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009162
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009163cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00009164#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009165_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009166
Alexandre Julliard48957682001-12-26 23:08:31 +00009167 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00009168else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009169
9170for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00009171do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009172as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009173if eval "test \"\${$as_ac_Header+set}\" = set"; then
9174 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009175echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9176if eval "test \"\${$as_ac_Header+set}\" = set"; then
9177 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009178fi
9179echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9180echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00009181else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009182 # Is the header compilable?
9183echo "$as_me:$LINENO: checking $ac_header usability" >&5
9184echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9185cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009186/* confdefs.h. */
9187_ACEOF
9188cat confdefs.h >>conftest.$ac_ext
9189cat >>conftest.$ac_ext <<_ACEOF
9190/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009191$ac_includes_default
9192#include <$ac_header>
9193_ACEOF
9194rm -f conftest.$ac_objext
9195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009196 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009197 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009198 grep -v '^ *+' conftest.er1 >conftest.err
9199 rm -f conftest.er1
9200 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009203 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9215 ac_header_compiler=yes
9216else
9217 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009218sed 's/^/| /' conftest.$ac_ext >&5
9219
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009220ac_header_compiler=no
9221fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009222rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009223echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9224echo "${ECHO_T}$ac_header_compiler" >&6
9225
9226# Is the header present?
9227echo "$as_me:$LINENO: checking $ac_header presence" >&5
9228echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9229cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009230/* confdefs.h. */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009235#include <$ac_header>
9236_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009237if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009238 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9239 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009240 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009241 rm -f conftest.er1
9242 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009244 (exit $ac_status); } >/dev/null; then
9245 if test -s conftest.err; then
9246 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009248 else
9249 ac_cpp_err=
9250 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00009251else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009252 ac_cpp_err=yes
9253fi
9254if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009255 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009256else
9257 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009258sed 's/^/| /' conftest.$ac_ext >&5
9259
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009260 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00009261fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009262rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009263echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9264echo "${ECHO_T}$ac_header_preproc" >&6
9265
9266# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009267case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9268 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9270echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9272echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9273 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009274 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009275 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9277echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9279echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9281echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9283echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009285echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9287echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009288 (
9289 cat <<\_ASBOX
9290## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009291## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009292## ------------------------------------ ##
9293_ASBOX
9294 ) |
9295 sed "s/^/$as_me: WARNING: /" >&2
9296 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009297esac
9298echo "$as_me:$LINENO: checking for $ac_header" >&5
9299echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9300if eval "test \"\${$as_ac_Header+set}\" = set"; then
9301 echo $ECHO_N "(cached) $ECHO_C" >&6
9302else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009303 eval "$as_ac_Header=\$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00009304fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009305echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009306echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009307
9308fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009309if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009310 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009311#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009312_ACEOF
9313 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009314echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
9315if test "${ac_cv_lib_curses_waddch+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009317else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009318 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009319LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009320cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009321/* confdefs.h. */
9322_ACEOF
9323cat confdefs.h >>conftest.$ac_ext
9324cat >>conftest.$ac_ext <<_ACEOF
9325/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009326
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009327/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009328#ifdef __cplusplus
9329extern "C"
9330#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009331/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009332 builtin and then its argument prototype would still apply. */
9333char waddch ();
9334int
9335main ()
9336{
9337waddch ();
9338 ;
9339 return 0;
9340}
9341_ACEOF
9342rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009344 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009345 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009346 grep -v '^ *+' conftest.er1 >conftest.err
9347 rm -f conftest.er1
9348 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009350 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9353 (eval $ac_try) 2>&5
9354 ac_status=$?
9355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356 (exit $ac_status); }; } &&
9357 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009359 (eval $ac_try) 2>&5
9360 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009362 (exit $ac_status); }; }; then
9363 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009364else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009365 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009366sed 's/^/| /' conftest.$ac_ext >&5
9367
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009368ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009369fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009370rm -f conftest.err conftest.$ac_objext \
9371 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009372LIBS=$ac_check_lib_save_LIBS
9373fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009374echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009375echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
9376if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009377
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009378cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00009379#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009380_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009381
Alexandre Julliard48957682001-12-26 23:08:31 +00009382 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009383fi
9384
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009385fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009386
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009387done
9388
9389fi
Alexandre Julliard48957682001-12-26 23:08:31 +00009390
Alexandre Julliard48957682001-12-26 23:08:31 +00009391fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009392
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00009393done
9394
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009395fi
9396
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009397
Shi Quan He6b0720f2002-03-21 02:58:39 +00009398# Extract the first word of "sane-config", so it can be a program name with args.
9399set dummy sane-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009400echo "$as_me:$LINENO: checking for $ac_word" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009401echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9402if test "${ac_cv_prog_sane_devel+set}" = set; then
9403 echo $ECHO_N "(cached) $ECHO_C" >&6
9404else
9405 if test -n "$sane_devel"; then
9406 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9407else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009408as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9409for as_dir in $PATH
9410do
9411 IFS=$as_save_IFS
9412 test -z "$as_dir" && as_dir=.
9413 for ac_exec_ext in '' $ac_executable_extensions; do
9414 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9415 ac_cv_prog_sane_devel="sane-config"
9416 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9417 break 2
9418 fi
9419done
Shi Quan He6b0720f2002-03-21 02:58:39 +00009420done
9421
9422 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9423fi
9424fi
9425sane_devel=$ac_cv_prog_sane_devel
9426if test -n "$sane_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009427 echo "$as_me:$LINENO: result: $sane_devel" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009428echo "${ECHO_T}$sane_devel" >&6
9429else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009430 echo "$as_me:$LINENO: result: no" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009431echo "${ECHO_T}no" >&6
9432fi
9433
9434if test "$sane_devel" = "no"
9435then
9436 SANELIBS=""
9437 SANEINCL=""
9438else
9439 SANELIBS="`$sane_devel --libs`"
9440 SANEINCL="`$sane_devel --cflags`"
9441 ac_save_CPPFLAGS="$CPPFLAGS"
9442 ac_save_LIBS="$LIBS"
9443 CPPFLAGS="$CPPFLAGS $SANEINCL"
9444 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009445 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9446 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009447echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9448if test "${ac_cv_header_sane_sane_h+set}" = set; then
9449 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009450fi
9451echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9452echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009453else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009454 # Is the header compilable?
9455echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9456echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9457cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009458/* confdefs.h. */
9459_ACEOF
9460cat confdefs.h >>conftest.$ac_ext
9461cat >>conftest.$ac_ext <<_ACEOF
9462/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009463$ac_includes_default
9464#include <sane/sane.h>
9465_ACEOF
9466rm -f conftest.$ac_objext
9467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009468 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009469 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009470 grep -v '^ *+' conftest.er1 >conftest.err
9471 rm -f conftest.er1
9472 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9474 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9477 (eval $ac_try) 2>&5
9478 ac_status=$?
9479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9480 (exit $ac_status); }; } &&
9481 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9483 (eval $ac_try) 2>&5
9484 ac_status=$?
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9487 ac_header_compiler=yes
9488else
9489 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009490sed 's/^/| /' conftest.$ac_ext >&5
9491
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009492ac_header_compiler=no
9493fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009495echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9496echo "${ECHO_T}$ac_header_compiler" >&6
9497
9498# Is the header present?
9499echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9500echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9501cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009502/* confdefs.h. */
9503_ACEOF
9504cat confdefs.h >>conftest.$ac_ext
9505cat >>conftest.$ac_ext <<_ACEOF
9506/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009507#include <sane/sane.h>
9508_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009509if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009510 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9511 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009512 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +00009513 rm -f conftest.er1
9514 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009516 (exit $ac_status); } >/dev/null; then
9517 if test -s conftest.err; then
9518 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009519 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Shi Quan He6b0720f2002-03-21 02:58:39 +00009520 else
9521 ac_cpp_err=
9522 fi
9523else
9524 ac_cpp_err=yes
9525fi
9526if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009527 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +00009528else
9529 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009530sed 's/^/| /' conftest.$ac_ext >&5
9531
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009532 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +00009533fi
9534rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009535echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9536echo "${ECHO_T}$ac_header_preproc" >&6
9537
9538# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009539case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9540 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009541 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9542echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009543 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
9544echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
9545 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009546 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009547 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009548 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9549echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009550 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9551echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9552 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
9553echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
9554 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
9555echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009556 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009557echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009558 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
9559echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009560 (
9561 cat <<\_ASBOX
9562## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009563## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009564## ------------------------------------ ##
9565_ASBOX
9566 ) |
9567 sed "s/^/$as_me: WARNING: /" >&2
9568 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009569esac
9570echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9571echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9572if test "${ac_cv_header_sane_sane_h+set}" = set; then
9573 echo $ECHO_N "(cached) $ECHO_C" >&6
9574else
9575 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +00009576fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009577echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009578echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009579
9580fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009581if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009582 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009583echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9584if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9585 echo $ECHO_N "(cached) $ECHO_C" >&6
9586else
9587 ac_check_lib_save_LIBS=$LIBS
9588LIBS="-lsane $LIBS"
9589cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009590/* confdefs.h. */
9591_ACEOF
9592cat confdefs.h >>conftest.$ac_ext
9593cat >>conftest.$ac_ext <<_ACEOF
9594/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009595
9596/* Override any gcc2 internal prototype to avoid an error. */
9597#ifdef __cplusplus
9598extern "C"
9599#endif
9600/* We use char because int might match the return type of a gcc2
9601 builtin and then its argument prototype would still apply. */
9602char sane_open ();
9603int
9604main ()
9605{
9606sane_open ();
9607 ;
9608 return 0;
9609}
9610_ACEOF
9611rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009612if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009613 (eval $ac_link) 2>conftest.er1
Shi Quan He6b0720f2002-03-21 02:58:39 +00009614 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009615 grep -v '^ *+' conftest.er1 >conftest.err
9616 rm -f conftest.er1
9617 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009619 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9622 (eval $ac_try) 2>&5
9623 ac_status=$?
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); }; } &&
9626 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009628 (eval $ac_try) 2>&5
9629 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009631 (exit $ac_status); }; }; then
9632 ac_cv_lib_sane_sane_open=yes
9633else
9634 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009635sed 's/^/| /' conftest.$ac_ext >&5
9636
Shi Quan He6b0720f2002-03-21 02:58:39 +00009637ac_cv_lib_sane_sane_open=no
9638fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009639rm -f conftest.err conftest.$ac_objext \
9640 conftest$ac_exeext conftest.$ac_ext
Shi Quan He6b0720f2002-03-21 02:58:39 +00009641LIBS=$ac_check_lib_save_LIBS
9642fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009643echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009644echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9645if test $ac_cv_lib_sane_sane_open = yes; then
9646
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009647cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009648#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009649_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009650
9651else
9652 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +00009653 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009654fi
9655
Alexandre Julliard96328b32002-03-31 19:23:41 +00009656else
9657 SANELIBS=""
9658 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009659fi
9660
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009661
Shi Quan He6b0720f2002-03-21 02:58:39 +00009662 LIBS="$ac_save_LIBS"
9663 CPPFLAGS="$ac_save_CPPFLAGS"
9664fi
9665
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009666
9667
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009668
9669for ac_header in unicode/ubidi.h
9670do
9671as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9672if eval "test \"\${$as_ac_Header+set}\" = set"; then
9673 echo "$as_me:$LINENO: checking for $ac_header" >&5
9674echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9675if eval "test \"\${$as_ac_Header+set}\" = set"; then
9676 echo $ECHO_N "(cached) $ECHO_C" >&6
9677fi
9678echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9679echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9680else
9681 # Is the header compilable?
9682echo "$as_me:$LINENO: checking $ac_header usability" >&5
9683echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9684cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009685/* confdefs.h. */
9686_ACEOF
9687cat confdefs.h >>conftest.$ac_ext
9688cat >>conftest.$ac_ext <<_ACEOF
9689/* end confdefs.h. */
9690$ac_includes_default
9691#include <$ac_header>
9692_ACEOF
9693rm -f conftest.$ac_objext
9694if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009695 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009696 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009697 grep -v '^ *+' conftest.er1 >conftest.err
9698 rm -f conftest.er1
9699 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9701 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9704 (eval $ac_try) 2>&5
9705 ac_status=$?
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); }; } &&
9708 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9710 (eval $ac_try) 2>&5
9711 ac_status=$?
9712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9713 (exit $ac_status); }; }; then
9714 ac_header_compiler=yes
9715else
9716 echo "$as_me: failed program was:" >&5
9717sed 's/^/| /' conftest.$ac_ext >&5
9718
9719ac_header_compiler=no
9720fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00009721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009722echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9723echo "${ECHO_T}$ac_header_compiler" >&6
9724
9725# Is the header present?
9726echo "$as_me:$LINENO: checking $ac_header presence" >&5
9727echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9728cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009729/* confdefs.h. */
9730_ACEOF
9731cat confdefs.h >>conftest.$ac_ext
9732cat >>conftest.$ac_ext <<_ACEOF
9733/* end confdefs.h. */
9734#include <$ac_header>
9735_ACEOF
9736if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9737 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9738 ac_status=$?
9739 grep -v '^ *+' conftest.er1 >conftest.err
9740 rm -f conftest.er1
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } >/dev/null; then
9744 if test -s conftest.err; then
9745 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +00009746 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009747 else
9748 ac_cpp_err=
9749 fi
9750else
9751 ac_cpp_err=yes
9752fi
9753if test -z "$ac_cpp_err"; then
9754 ac_header_preproc=yes
9755else
9756 echo "$as_me: failed program was:" >&5
9757sed 's/^/| /' conftest.$ac_ext >&5
9758
9759 ac_header_preproc=no
9760fi
9761rm -f conftest.err conftest.$ac_ext
9762echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9763echo "${ECHO_T}$ac_header_preproc" >&6
9764
9765# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009766case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9767 yes:no: )
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009768 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9769echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009770 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9771echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9772 ac_header_preproc=yes
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009773 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +00009774 no:yes:* )
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9776echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9778echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9780echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9781 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9782echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9784echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +00009785 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9786echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009787 (
9788 cat <<\_ASBOX
9789## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +00009790## Report this to wine-devel@winehq.org ##
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009791## ------------------------------------ ##
9792_ASBOX
9793 ) |
9794 sed "s/^/$as_me: WARNING: /" >&2
9795 ;;
9796esac
9797echo "$as_me:$LINENO: checking for $ac_header" >&5
9798echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9799if eval "test \"\${$as_ac_Header+set}\" = set"; then
9800 echo $ECHO_N "(cached) $ECHO_C" >&6
9801else
Alexandre Julliard875927f2004-01-02 01:55:29 +00009802 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009803fi
9804echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9805echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9806
9807fi
9808if test `eval echo '${'$as_ac_Header'}'` = yes; then
9809 cat >>confdefs.h <<_ACEOF
9810#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9811_ACEOF
9812
9813fi
9814
9815done
9816
9817if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9818then
Marcus Meissnerbc624582004-01-18 22:15:46 +00009819 saved_libs="$LIBS"
9820 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
Shachar Shemesh9f2627e2004-04-06 20:13:21 +00009821 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libsicuuc.a}"
9822 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libsicudata.a}"
9823 echo "$as_me:$LINENO: checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB" >&5
9824echo $ECHO_N "checking whether can link with ICU libraries $ICUUC_LIB and $ICUDATA_LIB... $ECHO_C" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +00009825 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9826 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009827/* confdefs.h. */
9828_ACEOF
9829cat confdefs.h >>conftest.$ac_ext
9830cat >>conftest.$ac_ext <<_ACEOF
9831/* end confdefs.h. */
9832#include <unicode/ubidi.h>
9833int
9834main ()
9835{
9836ubidi_open()
9837 ;
9838 return 0;
9839}
9840_ACEOF
9841rm -f conftest.$ac_objext conftest$ac_exeext
9842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +00009843 (eval $ac_link) 2>conftest.er1
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009844 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +00009845 grep -v '^ *+' conftest.er1 >conftest.err
9846 rm -f conftest.er1
9847 cat conftest.err >&5
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9849 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +00009850 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9852 (eval $ac_try) 2>&5
9853 ac_status=$?
9854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9855 (exit $ac_status); }; } &&
9856 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 (eval $ac_try) 2>&5
9859 ac_status=$?
9860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9861 (exit $ac_status); }; }; then
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009862
9863cat >>confdefs.h <<\_ACEOF
9864#define HAVE_ICU 1
9865_ACEOF
9866
Marcus Meissnerbc624582004-01-18 22:15:46 +00009867 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009868
Shachar Shemesh9f2627e2004-04-06 20:13:21 +00009869 echo "$as_me:$LINENO: result: yes" >&5
9870echo "${ECHO_T}yes" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +00009871else
9872 echo "$as_me: failed program was:" >&5
9873sed 's/^/| /' conftest.$ac_ext >&5
9874
Shachar Shemesh9f2627e2004-04-06 20:13:21 +00009875echo "$as_me:$LINENO: result: no" >&5
9876echo "${ECHO_T}no" >&6
Marcus Meissnerbc624582004-01-18 22:15:46 +00009877fi
9878rm -f conftest.err conftest.$ac_objext \
9879 conftest$ac_exeext conftest.$ac_ext
9880 LIBS="$saved_libs"
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009881fi
9882
Hans Leidekkerd3447022005-07-15 10:09:43 +00009883LCMSLIBS=""
9884
9885if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
9886then
9887 echo "$as_me:$LINENO: checking for cmsOpenProfileFromFile in -llcms" >&5
9888echo $ECHO_N "checking for cmsOpenProfileFromFile in -llcms... $ECHO_C" >&6
9889if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then
9890 echo $ECHO_N "(cached) $ECHO_C" >&6
9891else
9892 ac_check_lib_save_LIBS=$LIBS
9893LIBS="-llcms $LIBS"
9894cat >conftest.$ac_ext <<_ACEOF
9895/* confdefs.h. */
9896_ACEOF
9897cat confdefs.h >>conftest.$ac_ext
9898cat >>conftest.$ac_ext <<_ACEOF
9899/* end confdefs.h. */
9900
9901/* Override any gcc2 internal prototype to avoid an error. */
9902#ifdef __cplusplus
9903extern "C"
9904#endif
9905/* We use char because int might match the return type of a gcc2
9906 builtin and then its argument prototype would still apply. */
9907char cmsOpenProfileFromFile ();
9908int
9909main ()
9910{
9911cmsOpenProfileFromFile ();
9912 ;
9913 return 0;
9914}
9915_ACEOF
9916rm -f conftest.$ac_objext conftest$ac_exeext
9917if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9918 (eval $ac_link) 2>conftest.er1
9919 ac_status=$?
9920 grep -v '^ *+' conftest.er1 >conftest.err
9921 rm -f conftest.er1
9922 cat conftest.err >&5
9923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9924 (exit $ac_status); } &&
9925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9927 (eval $ac_try) 2>&5
9928 ac_status=$?
9929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9930 (exit $ac_status); }; } &&
9931 { ac_try='test -s conftest$ac_exeext'
9932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9933 (eval $ac_try) 2>&5
9934 ac_status=$?
9935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9936 (exit $ac_status); }; }; then
9937 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
9938else
9939 echo "$as_me: failed program was:" >&5
9940sed 's/^/| /' conftest.$ac_ext >&5
9941
9942ac_cv_lib_lcms_cmsOpenProfileFromFile=no
9943fi
9944rm -f conftest.err conftest.$ac_objext \
9945 conftest$ac_exeext conftest.$ac_ext
9946LIBS=$ac_check_lib_save_LIBS
9947fi
9948echo "$as_me:$LINENO: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
9949echo "${ECHO_T}$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6
9950if test $ac_cv_lib_lcms_cmsOpenProfileFromFile = yes; then
9951
9952cat >>confdefs.h <<\_ACEOF
9953#define HAVE_LCMS 1
9954_ACEOF
9955
9956 LCMSLIBS="-llcms"
9957fi
9958
9959fi
9960
Hans Leidekkerea524de2005-07-15 16:39:42 +00009961LDAPLIBS=""
9962
9963if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
9964then
9965 echo "$as_me:$LINENO: checking for ldap_init in -lldap" >&5
9966echo $ECHO_N "checking for ldap_init in -lldap... $ECHO_C" >&6
9967if test "${ac_cv_lib_ldap_ldap_init+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969else
9970 ac_check_lib_save_LIBS=$LIBS
9971LIBS="-lldap $LIBS"
9972cat >conftest.$ac_ext <<_ACEOF
9973/* confdefs.h. */
9974_ACEOF
9975cat confdefs.h >>conftest.$ac_ext
9976cat >>conftest.$ac_ext <<_ACEOF
9977/* end confdefs.h. */
9978
9979/* Override any gcc2 internal prototype to avoid an error. */
9980#ifdef __cplusplus
9981extern "C"
9982#endif
9983/* We use char because int might match the return type of a gcc2
9984 builtin and then its argument prototype would still apply. */
9985char ldap_init ();
9986int
9987main ()
9988{
9989ldap_init ();
9990 ;
9991 return 0;
9992}
9993_ACEOF
9994rm -f conftest.$ac_objext conftest$ac_exeext
9995if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9996 (eval $ac_link) 2>conftest.er1
9997 ac_status=$?
9998 grep -v '^ *+' conftest.er1 >conftest.err
9999 rm -f conftest.er1
10000 cat conftest.err >&5
10001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10002 (exit $ac_status); } &&
10003 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10005 (eval $ac_try) 2>&5
10006 ac_status=$?
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); }; } &&
10009 { ac_try='test -s conftest$ac_exeext'
10010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011 (eval $ac_try) 2>&5
10012 ac_status=$?
10013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); }; }; then
10015 ac_cv_lib_ldap_ldap_init=yes
10016else
10017 echo "$as_me: failed program was:" >&5
10018sed 's/^/| /' conftest.$ac_ext >&5
10019
10020ac_cv_lib_ldap_ldap_init=no
10021fi
10022rm -f conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
10024LIBS=$ac_check_lib_save_LIBS
10025fi
10026echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_init" >&5
10027echo "${ECHO_T}$ac_cv_lib_ldap_ldap_init" >&6
10028if test $ac_cv_lib_ldap_ldap_init = yes; then
10029 echo "$as_me:$LINENO: checking for ber_init in -llber" >&5
10030echo $ECHO_N "checking for ber_init in -llber... $ECHO_C" >&6
10031if test "${ac_cv_lib_lber_ber_init+set}" = set; then
10032 echo $ECHO_N "(cached) $ECHO_C" >&6
10033else
10034 ac_check_lib_save_LIBS=$LIBS
10035LIBS="-llber $LIBS"
10036cat >conftest.$ac_ext <<_ACEOF
10037/* confdefs.h. */
10038_ACEOF
10039cat confdefs.h >>conftest.$ac_ext
10040cat >>conftest.$ac_ext <<_ACEOF
10041/* end confdefs.h. */
10042
10043/* Override any gcc2 internal prototype to avoid an error. */
10044#ifdef __cplusplus
10045extern "C"
10046#endif
10047/* We use char because int might match the return type of a gcc2
10048 builtin and then its argument prototype would still apply. */
10049char ber_init ();
10050int
10051main ()
10052{
10053ber_init ();
10054 ;
10055 return 0;
10056}
10057_ACEOF
10058rm -f conftest.$ac_objext conftest$ac_exeext
10059if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10060 (eval $ac_link) 2>conftest.er1
10061 ac_status=$?
10062 grep -v '^ *+' conftest.er1 >conftest.err
10063 rm -f conftest.er1
10064 cat conftest.err >&5
10065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066 (exit $ac_status); } &&
10067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10069 (eval $ac_try) 2>&5
10070 ac_status=$?
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); }; } &&
10073 { ac_try='test -s conftest$ac_exeext'
10074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10075 (eval $ac_try) 2>&5
10076 ac_status=$?
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); }; }; then
10079 ac_cv_lib_lber_ber_init=yes
10080else
10081 echo "$as_me: failed program was:" >&5
10082sed 's/^/| /' conftest.$ac_ext >&5
10083
10084ac_cv_lib_lber_ber_init=no
10085fi
10086rm -f conftest.err conftest.$ac_objext \
10087 conftest$ac_exeext conftest.$ac_ext
10088LIBS=$ac_check_lib_save_LIBS
10089fi
10090echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_init" >&5
10091echo "${ECHO_T}$ac_cv_lib_lber_ber_init" >&6
10092if test $ac_cv_lib_lber_ber_init = yes; then
10093
10094cat >>confdefs.h <<\_ACEOF
10095#define HAVE_LDAP 1
10096_ACEOF
10097
10098 LDAPLIBS="-lldap -llber"
10099fi
10100
10101fi
10102
10103fi
10104
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010105echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010106echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
10107if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
10108 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010109else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010110 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +000010111LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010112cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010113/* confdefs.h. */
10114_ACEOF
10115cat confdefs.h >>conftest.$ac_ext
10116cat >>conftest.$ac_ext <<_ACEOF
10117/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010118
Ian Pilcher563598d2001-05-16 20:56:05 +000010119/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010120#ifdef __cplusplus
10121extern "C"
10122#endif
Ian Pilcher563598d2001-05-16 20:56:05 +000010123/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010124 builtin and then its argument prototype would still apply. */
10125char FT_Init_FreeType ();
10126int
10127main ()
10128{
10129FT_Init_FreeType ();
10130 ;
10131 return 0;
10132}
10133_ACEOF
10134rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010135if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010136 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010137 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010138 grep -v '^ *+' conftest.er1 >conftest.err
10139 rm -f conftest.er1
10140 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010142 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10145 (eval $ac_try) 2>&5
10146 ac_status=$?
10147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10148 (exit $ac_status); }; } &&
10149 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010151 (eval $ac_try) 2>&5
10152 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010154 (exit $ac_status); }; }; then
10155 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010156else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010157 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010158sed 's/^/| /' conftest.$ac_ext >&5
10159
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010160ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010161fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010162rm -f conftest.err conftest.$ac_objext \
10163 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010164LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010165fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010166echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010167echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
10168if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +000010169 ft_lib=yes
10170else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010171 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010172fi
10173
10174if test "$ft_lib" = "no"
10175then
Huw Davies00acb5f2004-08-17 22:33:14 +000010176 FREETYPELIBS=""
Ian Pilcher563598d2001-05-16 20:56:05 +000010177 FREETYPEINCL=""
10178 wine_cv_msg_freetype=no
10179else
10180 # Extract the first word of "freetype-config", so it can be a program name with args.
10181set dummy freetype-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010182echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010183echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10184if test "${ac_cv_prog_ft_devel+set}" = set; then
10185 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010186else
10187 if test -n "$ft_devel"; then
10188 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10189else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10191for as_dir in $PATH
10192do
10193 IFS=$as_save_IFS
10194 test -z "$as_dir" && as_dir=.
10195 for ac_exec_ext in '' $ac_executable_extensions; do
10196 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10197 ac_cv_prog_ft_devel="freetype-config"
10198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10199 break 2
10200 fi
10201done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010202done
10203
Ian Pilcher563598d2001-05-16 20:56:05 +000010204 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
10205fi
10206fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010207ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +000010208if test -n "$ft_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010209 echo "$as_me:$LINENO: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010210echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010211else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010212 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010213echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +000010214fi
10215
10216 if test "$ft_devel" = "no"
10217 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010218 # Extract the first word of "freetype2-config", so it can be a program name with args.
10219set dummy freetype2-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010220echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010221echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10222if test "${ac_cv_prog_ft_devel2+set}" = set; then
10223 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010224else
10225 if test -n "$ft_devel2"; then
10226 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
10227else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10229for as_dir in $PATH
10230do
10231 IFS=$as_save_IFS
10232 test -z "$as_dir" && as_dir=.
10233 for ac_exec_ext in '' $ac_executable_extensions; do
10234 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10235 ac_cv_prog_ft_devel2="freetype2-config"
10236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10237 break 2
10238 fi
10239done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010240done
10241
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010242 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
10243fi
10244fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010245ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010246if test -n "$ft_devel2"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010247 echo "$as_me:$LINENO: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010248echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010249else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010250 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010251echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010252fi
10253
10254 if test "$ft_devel2" = "freetype2-config"
10255 then
10256 ft_devel=$ft_devel2
10257 fi
10258 fi
10259 if test "$ft_devel" = "no"
10260 then
Huw Davies00acb5f2004-08-17 22:33:14 +000010261 FREETYPELIBS=""
Ian Pilcher563598d2001-05-16 20:56:05 +000010262 FREETYPEINCL=""
10263 wine_cv_msg_freetype=yes
10264 else
Huw Davies00acb5f2004-08-17 22:33:14 +000010265 FREETYPELIBS=`$ft_devel --libs`
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010266 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +000010267 ac_save_CPPFLAGS="$CPPFLAGS"
10268 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010269
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010270
10271
10272
10273
10274
10275
10276
Rein Klazese617a9c2003-11-19 02:18:13 +000010277
Huw Daviesc2217182004-06-16 20:06:26 +000010278
Rein Klazese617a9c2003-11-19 02:18:13 +000010279for ac_header in ft2build.h \
10280 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010281 freetype/ftglyph.h \
10282 freetype/tttables.h \
10283 freetype/ftnames.h \
10284 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010285 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010286 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010287 freetype/ftwinfnt.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010288 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +000010289do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010290as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Rein Klazes9c269172003-11-20 04:17:33 +000010291echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010292echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10293if eval "test \"\${$as_ac_Header+set}\" = set"; then
10294 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010295else
Rein Klazes9c269172003-11-20 04:17:33 +000010296 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010297/* confdefs.h. */
10298_ACEOF
10299cat confdefs.h >>conftest.$ac_ext
10300cat >>conftest.$ac_ext <<_ACEOF
10301/* end confdefs.h. */
Rein Klazes9c269172003-11-20 04:17:33 +000010302#if HAVE_FT2BUILD_H
10303 #include <ft2build.h>
10304 #endif
10305
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010306#include <$ac_header>
10307_ACEOF
10308rm -f conftest.$ac_objext
10309if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010310 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +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
10316 (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
10325 (eval $ac_try) 2>&5
10326 ac_status=$?
10327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); }; }; then
Rein Klazes9c269172003-11-20 04:17:33 +000010329 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010330else
10331 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010332sed 's/^/| /' conftest.$ac_ext >&5
10333
Rein Klazes9c269172003-11-20 04:17:33 +000010334eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010335fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010336rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010337fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010338echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010339echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010340if test `eval echo '${'$as_ac_Header'}'` = yes; then
10341 cat >>confdefs.h <<_ACEOF
10342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10343_ACEOF
10344
10345fi
10346
Ian Pilcher40432fe2001-06-06 21:05:23 +000010347done
10348
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010349 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010350/* confdefs.h. */
10351_ACEOF
10352cat confdefs.h >>conftest.$ac_ext
10353cat >>conftest.$ac_ext <<_ACEOF
10354/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010355#include <ft2build.h>
10356 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010357_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010358if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10360 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010361 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010362 rm -f conftest.er1
10363 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010365 (exit $ac_status); } >/dev/null; then
10366 if test -s conftest.err; then
10367 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010369 else
10370 ac_cpp_err=
10371 fi
10372else
10373 ac_cpp_err=yes
10374fi
10375if test -z "$ac_cpp_err"; then
10376
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010377cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000010378#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010379_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +000010380
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010381 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010382else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010383 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010384sed 's/^/| /' conftest.$ac_ext >&5
10385
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010386 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010387fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010388rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +000010389 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010390 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010391 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010392
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010393cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010394#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010395_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010396
10397 wine_cv_msg_freetype=no
10398 else
Huw Davies00acb5f2004-08-17 22:33:14 +000010399 FREETYPELIBS=""
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010400 FREETYPEINCL=""
10401 wine_cv_msg_freetype=yes
10402 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010403 fi
10404fi
10405
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010406
Huw Davies00acb5f2004-08-17 22:33:14 +000010407
10408if test "$FONTFORGE" != "false" -a -n "$FREETYPELIBS"
10409then
10410 FONTSSUBDIRS="fonts"
10411
10412fi
10413
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010414echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010415echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
10416if test "${ac_cv_c_ppdev+set}" = set; then
10417 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010418else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010419 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. */
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010425#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010426int
10427main ()
10428{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010429ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010430 ;
10431 return 0;
10432}
10433_ACEOF
10434rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010435if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010436 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010437 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010438 grep -v '^ *+' conftest.er1 >conftest.err
10439 rm -f conftest.er1
10440 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010442 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10445 (eval $ac_try) 2>&5
10446 ac_status=$?
10447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10448 (exit $ac_status); }; } &&
10449 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010451 (eval $ac_try) 2>&5
10452 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010454 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010455 ac_cv_c_ppdev="yes"
10456else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010457 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010458sed 's/^/| /' conftest.$ac_ext >&5
10459
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010460ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010461fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010462rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010463
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010464fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010465echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010466echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010467if test "$ac_cv_c_ppdev" = "yes"
10468then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010469
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010470cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010471#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010472_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010473
10474fi
10475
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010476echo "$as_me:$LINENO: checking for va_copy" >&5
10477echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
10478if test "${ac_cv_c_va_copy+set}" = set; then
10479 echo $ECHO_N "(cached) $ECHO_C" >&6
10480else
10481 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010482/* confdefs.h. */
10483_ACEOF
10484cat confdefs.h >>conftest.$ac_ext
10485cat >>conftest.$ac_ext <<_ACEOF
10486/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010487#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010488int
10489main ()
10490{
10491va_list ap1, ap2;
10492 va_copy(ap1,ap2);
10493
10494 ;
10495 return 0;
10496}
10497_ACEOF
10498rm -f conftest.$ac_objext conftest$ac_exeext
10499if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010500 (eval $ac_link) 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010501 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010502 grep -v '^ *+' conftest.er1 >conftest.err
10503 rm -f conftest.er1
10504 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010507 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10509 (eval $ac_try) 2>&5
10510 ac_status=$?
10511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); }; } &&
10513 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10515 (eval $ac_try) 2>&5
10516 ac_status=$?
10517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10518 (exit $ac_status); }; }; then
10519 ac_cv_c_va_copy="yes"
10520else
10521 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010522sed 's/^/| /' conftest.$ac_ext >&5
10523
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010524ac_cv_c_va_copy="no"
10525fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010526rm -f conftest.err conftest.$ac_objext \
10527 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010528
10529fi
10530echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
10531echo "${ECHO_T}$ac_cv_c_va_copy" >&6
10532if test "$ac_cv_c_va_copy" = "yes"
10533then
10534
10535cat >>confdefs.h <<\_ACEOF
10536#define HAVE_VA_COPY 1
10537_ACEOF
10538
10539fi
10540echo "$as_me:$LINENO: checking for __va_copy" >&5
10541echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
10542if test "${ac_cv_c___va_copy+set}" = set; then
10543 echo $ECHO_N "(cached) $ECHO_C" >&6
10544else
10545 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010546/* confdefs.h. */
10547_ACEOF
10548cat confdefs.h >>conftest.$ac_ext
10549cat >>conftest.$ac_ext <<_ACEOF
10550/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010551#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010552int
10553main ()
10554{
10555va_list ap1, ap2;
10556 __va_copy(ap1,ap2);
10557
10558 ;
10559 return 0;
10560}
10561_ACEOF
10562rm -f conftest.$ac_objext conftest$ac_exeext
10563if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010564 (eval $ac_link) 2>conftest.er1
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010565 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010566 grep -v '^ *+' conftest.er1 >conftest.err
10567 rm -f conftest.er1
10568 cat conftest.err >&5
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10573 (eval $ac_try) 2>&5
10574 ac_status=$?
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; } &&
10577 { ac_try='test -s conftest$ac_exeext'
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10579 (eval $ac_try) 2>&5
10580 ac_status=$?
10581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10582 (exit $ac_status); }; }; then
10583 ac_cv_c___va_copy="yes"
10584else
10585 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010586sed 's/^/| /' conftest.$ac_ext >&5
10587
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010588ac_cv_c___va_copy="no"
10589fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010590rm -f conftest.err conftest.$ac_objext \
10591 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner5ee517a2002-08-09 19:49:31 +000010592
10593fi
10594echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
10595echo "${ECHO_T}$ac_cv_c___va_copy" >&6
10596if test "$ac_cv_c___va_copy" = "yes"
10597then
10598
10599cat >>confdefs.h <<\_ACEOF
10600#define HAVE___VA_COPY 1
10601_ACEOF
10602
10603fi
10604
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010605echo "$as_me:$LINENO: checking for sigsetjmp" >&5
10606echo $ECHO_N "checking for sigsetjmp... $ECHO_C" >&6
10607if test "${ac_cv_c_sigsetjmp+set}" = set; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10609else
10610 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010611/* confdefs.h. */
10612_ACEOF
10613cat confdefs.h >>conftest.$ac_ext
10614cat >>conftest.$ac_ext <<_ACEOF
10615/* end confdefs.h. */
10616#include <setjmp.h>
10617int
10618main ()
10619{
10620sigjmp_buf buf;
10621 sigsetjmp( buf, 1 );
10622 siglongjmp( buf, 1 );
10623 ;
10624 return 0;
10625}
10626_ACEOF
10627rm -f conftest.$ac_objext conftest$ac_exeext
10628if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010629 (eval $ac_link) 2>conftest.er1
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010630 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010631 grep -v '^ *+' conftest.er1 >conftest.err
10632 rm -f conftest.er1
10633 cat conftest.err >&5
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010636 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10639 ac_status=$?
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; } &&
10642 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10644 (eval $ac_try) 2>&5
10645 ac_status=$?
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; }; then
10648 ac_cv_c_sigsetjmp="yes"
10649else
10650 echo "$as_me: failed program was:" >&5
10651sed 's/^/| /' conftest.$ac_ext >&5
10652
10653ac_cv_c_sigsetjmp="no"
10654fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010655rm -f conftest.err conftest.$ac_objext \
10656 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000010657
10658fi
10659echo "$as_me:$LINENO: result: $ac_cv_c_sigsetjmp" >&5
10660echo "${ECHO_T}$ac_cv_c_sigsetjmp" >&6
10661if test "$ac_cv_c_sigsetjmp" = "yes"
10662then
10663
10664cat >>confdefs.h <<\_ACEOF
10665#define HAVE_SIGSETJMP 1
10666_ACEOF
10667
10668fi
10669
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010670echo "$as_me:$LINENO: checking for pthread_rwlock_t" >&5
10671echo $ECHO_N "checking for pthread_rwlock_t... $ECHO_C" >&6
10672if test "${ac_cv_type_pthread_rwlock_t+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674else
10675 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010676/* confdefs.h. */
10677_ACEOF
10678cat confdefs.h >>conftest.$ac_ext
10679cat >>conftest.$ac_ext <<_ACEOF
10680/* end confdefs.h. */
10681#define _GNU_SOURCE
10682#include <pthread.h>
10683
10684int
10685main ()
10686{
10687if ((pthread_rwlock_t *) 0)
10688 return 0;
10689if (sizeof (pthread_rwlock_t))
10690 return 0;
10691 ;
10692 return 0;
10693}
10694_ACEOF
10695rm -f conftest.$ac_objext
10696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010697 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010698 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10706 (eval $ac_try) 2>&5
10707 ac_status=$?
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); }; } &&
10710 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10712 (eval $ac_try) 2>&5
10713 ac_status=$?
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); }; }; then
10716 ac_cv_type_pthread_rwlock_t=yes
10717else
10718 echo "$as_me: failed program was:" >&5
10719sed 's/^/| /' conftest.$ac_ext >&5
10720
10721ac_cv_type_pthread_rwlock_t=no
10722fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010723rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010724fi
10725echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlock_t" >&5
10726echo "${ECHO_T}$ac_cv_type_pthread_rwlock_t" >&6
10727if test $ac_cv_type_pthread_rwlock_t = yes; then
10728
10729cat >>confdefs.h <<_ACEOF
10730#define HAVE_PTHREAD_RWLOCK_T 1
10731_ACEOF
10732
10733
10734fi
10735echo "$as_me:$LINENO: checking for pthread_rwlockattr_t" >&5
10736echo $ECHO_N "checking for pthread_rwlockattr_t... $ECHO_C" >&6
10737if test "${ac_cv_type_pthread_rwlockattr_t+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739else
10740 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010741/* confdefs.h. */
10742_ACEOF
10743cat confdefs.h >>conftest.$ac_ext
10744cat >>conftest.$ac_ext <<_ACEOF
10745/* end confdefs.h. */
10746#define _GNU_SOURCE
10747#include <pthread.h>
10748
10749int
10750main ()
10751{
10752if ((pthread_rwlockattr_t *) 0)
10753 return 0;
10754if (sizeof (pthread_rwlockattr_t))
10755 return 0;
10756 ;
10757 return 0;
10758}
10759_ACEOF
10760rm -f conftest.$ac_objext
10761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010762 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010763 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010764 grep -v '^ *+' conftest.er1 >conftest.err
10765 rm -f conftest.er1
10766 cat conftest.err >&5
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; } &&
10775 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10777 (eval $ac_try) 2>&5
10778 ac_status=$?
10779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10780 (exit $ac_status); }; }; then
10781 ac_cv_type_pthread_rwlockattr_t=yes
10782else
10783 echo "$as_me: failed program was:" >&5
10784sed 's/^/| /' conftest.$ac_ext >&5
10785
10786ac_cv_type_pthread_rwlockattr_t=no
10787fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard80e34db2003-09-03 00:26:08 +000010789fi
10790echo "$as_me:$LINENO: result: $ac_cv_type_pthread_rwlockattr_t" >&5
10791echo "${ECHO_T}$ac_cv_type_pthread_rwlockattr_t" >&6
10792if test $ac_cv_type_pthread_rwlockattr_t = yes; then
10793
10794cat >>confdefs.h <<_ACEOF
10795#define HAVE_PTHREAD_RWLOCKATTR_T 1
10796_ACEOF
10797
10798
10799fi
10800
10801
Alexandre Julliard821ab862003-11-12 22:44:56 +000010802ac_save_LIBS="$LIBS"
10803LIBS="$LIBS $LIBPTHREAD"
10804
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010805
10806
10807for ac_func in \
10808 pthread_getattr_np \
10809 pthread_get_stackaddr_np \
10810 pthread_get_stacksize_np \
10811
Alexandre Julliard821ab862003-11-12 22:44:56 +000010812do
10813as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10814echo "$as_me:$LINENO: checking for $ac_func" >&5
10815echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10816if eval "test \"\${$as_ac_var+set}\" = set"; then
10817 echo $ECHO_N "(cached) $ECHO_C" >&6
10818else
10819 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard821ab862003-11-12 22:44:56 +000010820/* confdefs.h. */
10821_ACEOF
10822cat confdefs.h >>conftest.$ac_ext
10823cat >>conftest.$ac_ext <<_ACEOF
10824/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000010825/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10827#define $ac_func innocuous_$ac_func
10828
Alexandre Julliard821ab862003-11-12 22:44:56 +000010829/* System header to define __stub macros and hopefully few prototypes,
10830 which can conflict with char $ac_func (); below.
10831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10832 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000010833
Alexandre Julliard821ab862003-11-12 22:44:56 +000010834#ifdef __STDC__
10835# include <limits.h>
10836#else
10837# include <assert.h>
10838#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000010839
10840#undef $ac_func
10841
Alexandre Julliard821ab862003-11-12 22:44:56 +000010842/* Override any gcc2 internal prototype to avoid an error. */
10843#ifdef __cplusplus
10844extern "C"
10845{
10846#endif
10847/* We use char because int might match the return type of a gcc2
10848 builtin and then its argument prototype would still apply. */
10849char $ac_func ();
10850/* The GNU C library defines this for functions which it implements
10851 to always fail with ENOSYS. Some functions are actually named
10852 something starting with __ and the normal name is an alias. */
10853#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10854choke me
10855#else
10856char (*f) () = $ac_func;
10857#endif
10858#ifdef __cplusplus
10859}
10860#endif
10861
10862int
10863main ()
10864{
10865return f != $ac_func;
10866 ;
10867 return 0;
10868}
10869_ACEOF
10870rm -f conftest.$ac_objext conftest$ac_exeext
10871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010872 (eval $ac_link) 2>conftest.er1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010873 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010874 grep -v '^ *+' conftest.er1 >conftest.err
10875 rm -f conftest.er1
10876 cat conftest.err >&5
Alexandre Julliard821ab862003-11-12 22:44:56 +000010877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10881 (eval $ac_try) 2>&5
10882 ac_status=$?
10883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10884 (exit $ac_status); }; } &&
10885 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard821ab862003-11-12 22:44:56 +000010886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10887 (eval $ac_try) 2>&5
10888 ac_status=$?
10889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10890 (exit $ac_status); }; }; then
10891 eval "$as_ac_var=yes"
10892else
10893 echo "$as_me: failed program was:" >&5
10894sed 's/^/| /' conftest.$ac_ext >&5
10895
10896eval "$as_ac_var=no"
10897fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010898rm -f conftest.err conftest.$ac_objext \
10899 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard821ab862003-11-12 22:44:56 +000010900fi
10901echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10902echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10903if test `eval echo '${'$as_ac_var'}'` = yes; then
10904 cat >>confdefs.h <<_ACEOF
10905#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10906_ACEOF
10907
10908fi
10909done
10910
10911LIBS="$ac_save_LIBS"
10912
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010913
10914
10915
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010916for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010917do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010918as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010919if eval "test \"\${$as_ac_Header+set}\" = set"; then
10920 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010921echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10922if eval "test \"\${$as_ac_Header+set}\" = set"; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010924fi
10925echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10926echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010927else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010928 # Is the header compilable?
10929echo "$as_me:$LINENO: checking $ac_header usability" >&5
10930echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10931cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010932/* confdefs.h. */
10933_ACEOF
10934cat confdefs.h >>conftest.$ac_ext
10935cat >>conftest.$ac_ext <<_ACEOF
10936/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010937$ac_includes_default
10938#include <$ac_header>
10939_ACEOF
10940rm -f conftest.$ac_objext
10941if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000010942 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010943 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000010944 grep -v '^ *+' conftest.er1 >conftest.err
10945 rm -f conftest.er1
10946 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10948 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000010949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10950 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10951 (eval $ac_try) 2>&5
10952 ac_status=$?
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); }; } &&
10955 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10957 (eval $ac_try) 2>&5
10958 ac_status=$?
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 ac_header_compiler=yes
10962else
10963 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010964sed 's/^/| /' conftest.$ac_ext >&5
10965
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010966ac_header_compiler=no
10967fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000010968rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010969echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10970echo "${ECHO_T}$ac_header_compiler" >&6
10971
10972# Is the header present?
10973echo "$as_me:$LINENO: checking $ac_header presence" >&5
10974echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10975cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010976/* confdefs.h. */
10977_ACEOF
10978cat confdefs.h >>conftest.$ac_ext
10979cat >>conftest.$ac_ext <<_ACEOF
10980/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010981#include <$ac_header>
10982_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010983if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10985 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010986 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010987 rm -f conftest.er1
10988 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010990 (exit $ac_status); } >/dev/null; then
10991 if test -s conftest.err; then
10992 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000010993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010994 else
10995 ac_cpp_err=
10996 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010997else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010998 ac_cpp_err=yes
10999fi
11000if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011001 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011002else
11003 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011004sed 's/^/| /' conftest.$ac_ext >&5
11005
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011006 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011007fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011008rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011009echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11010echo "${ECHO_T}$ac_header_preproc" >&6
11011
11012# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011013case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11014 yes:no: )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11016echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11018echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11019 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011020 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011021 no:yes:* )
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11023echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11025echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11027echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11029echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011031echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11033echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011034 (
11035 cat <<\_ASBOX
11036## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011037## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011038## ------------------------------------ ##
11039_ASBOX
11040 ) |
11041 sed "s/^/$as_me: WARNING: /" >&2
11042 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011043esac
11044echo "$as_me:$LINENO: checking for $ac_header" >&5
11045echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11046if eval "test \"\${$as_ac_Header+set}\" = set"; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011049 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011050fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011051echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011052echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011053
11054fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011055if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011056 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011057#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011058_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +000011059 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011060fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011061
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011062done
11063
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011064
11065echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011066echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
11067if test "${ac_cv_c_opensoundsystem+set}" = set; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011069else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011070 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011071/* confdefs.h. */
11072_ACEOF
11073cat confdefs.h >>conftest.$ac_ext
11074cat >>conftest.$ac_ext <<_ACEOF
11075/* end confdefs.h. */
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011076
Todd Vierlingecc76691998-12-15 17:49:02 +000011077 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011078 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +000011079 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011080 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +000011081 #elif defined(HAVE_SOUNDCARD_H)
11082 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011083 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011084
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011085int
11086main ()
11087{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000011088
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011089
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000011090/* check for one of the Open Sound System specific SNDCTL_ defines */
11091#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011092#error No open sound system
11093#endif
11094
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011095 ;
11096 return 0;
11097}
11098_ACEOF
11099rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011100if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011101 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011102 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011103 grep -v '^ *+' conftest.er1 >conftest.err
11104 rm -f conftest.er1
11105 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011107 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11110 (eval $ac_try) 2>&5
11111 ac_status=$?
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; } &&
11114 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011116 (eval $ac_try) 2>&5
11117 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011119 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011120 ac_cv_c_opensoundsystem="yes"
11121else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011122 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011123sed 's/^/| /' conftest.$ac_ext >&5
11124
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011125ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011126fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011127rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011128fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011129echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011130echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011131
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000011132if test "$ac_cv_c_opensoundsystem" = "yes"
11133then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011134
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011135cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000011136#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011137_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000011138
11139fi
11140
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011141echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011142echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
11143if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
11144 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000011145else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011146 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011147/* confdefs.h. */
11148_ACEOF
11149cat confdefs.h >>conftest.$ac_ext
11150cat >>conftest.$ac_ext <<_ACEOF
11151/* end confdefs.h. */
Eric Pouech338d3b21999-05-22 18:52:21 +000011152
11153 #if defined(HAVE_SYS_SOUNDCARD_H)
11154 #include <sys/soundcard.h>
11155 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
11156 #include <machine/soundcard.h>
11157 #elif defined(HAVE_SOUNDCARD_H)
11158 #include <soundcard.h>
11159 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +000011160
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011161int
11162main ()
11163{
Eric Pouech338d3b21999-05-22 18:52:21 +000011164
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011165
Eric Pouech338d3b21999-05-22 18:52:21 +000011166/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
11167#if !defined(SNDCTL_SEQ_SYNC)
11168#error No open sound system MIDI interface
11169#endif
11170
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011171 ;
11172 return 0;
11173}
11174_ACEOF
11175rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011176if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011177 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011178 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011179 grep -v '^ *+' conftest.er1 >conftest.err
11180 rm -f conftest.er1
11181 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011183 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011184 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; } &&
11190 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011192 (eval $ac_try) 2>&5
11193 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011195 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +000011196 ac_cv_c_opensoundsystem_midi="yes"
11197else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011198 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011199sed 's/^/| /' conftest.$ac_ext >&5
11200
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011201ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +000011202fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011203rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +000011204fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011205echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011206echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000011207
11208if test "$ac_cv_c_opensoundsystem_midi" = "yes"
11209then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011210
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011211cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000011212#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011213_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000011214
11215fi
11216
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011217# Extract the first word of "artsc-config", so it can be a program name with args.
11218set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011219echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011220echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11221if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11223else
11224 case $ARTSCCONFIG in
11225 [\\/]* | ?:[\\/]*)
11226 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
11227 ;;
11228 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230for as_dir in $PATH
11231do
11232 IFS=$as_save_IFS
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11236 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
11237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11238 break 2
11239 fi
11240done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011241done
11242
11243 ;;
11244esac
11245fi
11246ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
11247
11248if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011249 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011250echo "${ECHO_T}$ARTSCCONFIG" >&6
11251else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011252 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011253echo "${ECHO_T}no" >&6
11254fi
11255
Marcus Meissnerbc624582004-01-18 22:15:46 +000011256if test x$ARTSCCONFIG != x -a x$ARTSCCONFIG != x'"$ARTSCCONFIG"';
11257then
Alexandre Julliardb3b12cf2004-02-24 01:24:20 +000011258 ARTSC_CFLAGS=""
11259 for i in `$ARTSCCONFIG --cflags`
11260 do
11261 case "$i" in
11262 -I*) ARTSC_CFLAGS="$ARTSC_CFLAGS $i";;
11263 esac
11264 done
Marcus Meissnerbc624582004-01-18 22:15:46 +000011265 ARTSC_LIBS=`$ARTSCCONFIG --libs`
11266 save_CFLAGS="$CFLAGS"
11267 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
Jacek Caban6f8f4752005-03-28 09:58:45 +000011268 echo "$as_me:$LINENO: checking for arts_init in -lartsc" >&5
11269echo $ECHO_N "checking for arts_init in -lartsc... $ECHO_C" >&6
11270if test "${ac_cv_lib_artsc_arts_init+set}" = set; then
11271 echo $ECHO_N "(cached) $ECHO_C" >&6
11272else
11273 ac_check_lib_save_LIBS=$LIBS
Vitaliy Margolen80816e92005-06-30 20:46:59 +000011274LIBS="-lartsc $ARTSC_LIBS $LIBS"
Jacek Caban6f8f4752005-03-28 09:58:45 +000011275cat >conftest.$ac_ext <<_ACEOF
11276/* confdefs.h. */
11277_ACEOF
11278cat confdefs.h >>conftest.$ac_ext
11279cat >>conftest.$ac_ext <<_ACEOF
11280/* end confdefs.h. */
11281
11282/* Override any gcc2 internal prototype to avoid an error. */
11283#ifdef __cplusplus
11284extern "C"
11285#endif
11286/* We use char because int might match the return type of a gcc2
11287 builtin and then its argument prototype would still apply. */
11288char arts_init ();
11289int
11290main ()
11291{
11292arts_init ();
11293 ;
11294 return 0;
11295}
11296_ACEOF
11297rm -f conftest.$ac_objext conftest$ac_exeext
11298if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11299 (eval $ac_link) 2>conftest.er1
11300 ac_status=$?
11301 grep -v '^ *+' conftest.er1 >conftest.err
11302 rm -f conftest.er1
11303 cat conftest.err >&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11309 ac_status=$?
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; } &&
11312 { ac_try='test -s conftest$ac_exeext'
11313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11314 (eval $ac_try) 2>&5
11315 ac_status=$?
11316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11317 (exit $ac_status); }; }; then
11318 ac_cv_lib_artsc_arts_init=yes
11319else
11320 echo "$as_me: failed program was:" >&5
11321sed 's/^/| /' conftest.$ac_ext >&5
11322
11323ac_cv_lib_artsc_arts_init=no
11324fi
11325rm -f conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327LIBS=$ac_check_lib_save_LIBS
11328fi
11329echo "$as_me:$LINENO: result: $ac_cv_lib_artsc_arts_init" >&5
11330echo "${ECHO_T}$ac_cv_lib_artsc_arts_init" >&6
11331if test $ac_cv_lib_artsc_arts_init = yes; then
11332 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011333/* confdefs.h. */
11334_ACEOF
11335cat confdefs.h >>conftest.$ac_ext
11336cat >>conftest.$ac_ext <<_ACEOF
11337/* end confdefs.h. */
Marcus Meissnerbc624582004-01-18 22:15:46 +000011338#include <artsc.h>
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011339int
11340main ()
11341{
Marcus Meissnerbc624582004-01-18 22:15:46 +000011342arts_stream_t stream;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011343 ;
11344 return 0;
11345}
11346_ACEOF
11347rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011348if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011349 (eval $ac_compile) 2>conftest.er1
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011350 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011351 grep -v '^ *+' conftest.er1 >conftest.err
11352 rm -f conftest.er1
11353 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011355 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11358 (eval $ac_try) 2>&5
11359 ac_status=$?
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); }; } &&
11362 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011364 (eval $ac_try) 2>&5
11365 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011367 (exit $ac_status); }; }; then
Marcus Meissnerbc624582004-01-18 22:15:46 +000011368 ARTSLIBS=$ARTSC_LIBS
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011369
Jacek Caban6f8f4752005-03-28 09:58:45 +000011370 ARTSINCL=$ARTSC_CFLAGS
Marcus Meissnerbc624582004-01-18 22:15:46 +000011371
11372
11373cat >>confdefs.h <<\_ACEOF
11374#define HAVE_ARTS 1
11375_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011376
11377else
11378 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011379sed 's/^/| /' conftest.$ac_ext >&5
11380
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011381fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Jacek Caban6f8f4752005-03-28 09:58:45 +000011383fi
11384
Marcus Meissnerbc624582004-01-18 22:15:46 +000011385 CFLAGS="$save_CFLAGS"
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000011386fi
11387
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011388ALSALIBS=""
11389
11390
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011391
11392for ac_header in alsa/asoundlib.h sys/asoundlib.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011393do
11394as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11395if eval "test \"\${$as_ac_Header+set}\" = set"; then
11396 echo "$as_me:$LINENO: checking for $ac_header" >&5
11397echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11398if eval "test \"\${$as_ac_Header+set}\" = set"; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11400fi
11401echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11402echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11403else
11404 # Is the header compilable?
11405echo "$as_me:$LINENO: checking $ac_header usability" >&5
11406echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11407cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011408/* confdefs.h. */
11409_ACEOF
11410cat confdefs.h >>conftest.$ac_ext
11411cat >>conftest.$ac_ext <<_ACEOF
11412/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011413$ac_includes_default
11414#include <$ac_header>
11415_ACEOF
11416rm -f conftest.$ac_objext
11417if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011418 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011419 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011420 grep -v '^ *+' conftest.er1 >conftest.err
11421 rm -f conftest.er1
11422 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011425 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11427 (eval $ac_try) 2>&5
11428 ac_status=$?
11429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11430 (exit $ac_status); }; } &&
11431 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11433 (eval $ac_try) 2>&5
11434 ac_status=$?
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; }; then
11437 ac_header_compiler=yes
11438else
11439 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011440sed 's/^/| /' conftest.$ac_ext >&5
11441
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011442ac_header_compiler=no
11443fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011444rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011445echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11446echo "${ECHO_T}$ac_header_compiler" >&6
11447
11448# Is the header present?
11449echo "$as_me:$LINENO: checking $ac_header presence" >&5
11450echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11451cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011452/* confdefs.h. */
11453_ACEOF
11454cat confdefs.h >>conftest.$ac_ext
11455cat >>conftest.$ac_ext <<_ACEOF
11456/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011457#include <$ac_header>
11458_ACEOF
11459if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11460 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11461 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011462 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011463 rm -f conftest.er1
11464 cat conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); } >/dev/null; then
11467 if test -s conftest.err; then
11468 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011469 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011470 else
11471 ac_cpp_err=
11472 fi
11473else
11474 ac_cpp_err=yes
11475fi
11476if test -z "$ac_cpp_err"; then
11477 ac_header_preproc=yes
11478else
11479 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011480sed 's/^/| /' conftest.$ac_ext >&5
11481
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011482 ac_header_preproc=no
11483fi
11484rm -f conftest.err conftest.$ac_ext
11485echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11486echo "${ECHO_T}$ac_header_preproc" >&6
11487
11488# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011489case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11490 yes:no: )
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011491 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11492echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011493 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11494echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11495 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011496 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011497 no:yes:* )
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011498 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11499echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011500 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11501echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11502 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11503echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11504 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11505echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011506 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011507echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011508 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11509echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011510 (
11511 cat <<\_ASBOX
11512## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011513## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011514## ------------------------------------ ##
11515_ASBOX
11516 ) |
11517 sed "s/^/$as_me: WARNING: /" >&2
11518 ;;
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011519esac
11520echo "$as_me:$LINENO: checking for $ac_header" >&5
11521echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11522if eval "test \"\${$as_ac_Header+set}\" = set"; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11524else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011525 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011526fi
11527echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11528echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11529
11530fi
11531if test `eval echo '${'$as_ac_Header'}'` = yes; then
11532 cat >>confdefs.h <<_ACEOF
11533#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11534_ACEOF
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011535 break
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011536fi
11537
11538done
11539
Marco Pietrobono0e79a412002-08-29 01:51:31 +000011540if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011541then
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000011542 echo "$as_me:$LINENO: checking for snd_pcm_hw_params_get_access in -lasound" >&5
11543echo $ECHO_N "checking for snd_pcm_hw_params_get_access in -lasound... $ECHO_C" >&6
11544if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011545 echo $ECHO_N "(cached) $ECHO_C" >&6
11546else
11547 ac_check_lib_save_LIBS=$LIBS
11548LIBS="-lasound $LIBS"
11549cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011550/* confdefs.h. */
11551_ACEOF
11552cat confdefs.h >>conftest.$ac_ext
11553cat >>conftest.$ac_ext <<_ACEOF
11554/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011555
11556/* Override any gcc2 internal prototype to avoid an error. */
11557#ifdef __cplusplus
11558extern "C"
11559#endif
11560/* We use char because int might match the return type of a gcc2
11561 builtin and then its argument prototype would still apply. */
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000011562char snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011563int
11564main ()
11565{
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000011566snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011567 ;
11568 return 0;
11569}
11570_ACEOF
11571rm -f conftest.$ac_objext conftest$ac_exeext
11572if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011573 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011574 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011575 grep -v '^ *+' conftest.er1 >conftest.err
11576 rm -f conftest.er1
11577 cat conftest.err >&5
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11583 ac_status=$?
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; } &&
11586 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11588 (eval $ac_try) 2>&5
11589 ac_status=$?
11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11591 (exit $ac_status); }; }; then
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000011592 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011593else
11594 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011595sed 's/^/| /' conftest.$ac_ext >&5
11596
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000011597ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011598fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011599rm -f conftest.err conftest.$ac_objext \
11600 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011601LIBS=$ac_check_lib_save_LIBS
11602fi
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000011603echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
11604echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6
11605if test $ac_cv_lib_asound_snd_pcm_hw_params_get_access = yes; then
11606 cat >conftest.$ac_ext <<_ACEOF
11607/* confdefs.h. */
11608_ACEOF
11609cat confdefs.h >>conftest.$ac_ext
11610cat >>conftest.$ac_ext <<_ACEOF
11611/* end confdefs.h. */
11612#ifdef HAVE_ALSA_ASOUNDLIB_H
11613#include <alsa/asoundlib.h>
11614#elif defined(HAVE_SYS_ASOUNDLIB_H)
11615#include <sys/asoundlib.h>
11616#endif
11617int
11618main ()
11619{
11620int ret = snd_pcm_hw_params_get_access(NULL, NULL)
11621 ;
11622 return 0;
11623}
11624_ACEOF
11625rm -f conftest.$ac_objext
11626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11627 (eval $ac_compile) 2>conftest.er1
11628 ac_status=$?
11629 grep -v '^ *+' conftest.er1 >conftest.err
11630 rm -f conftest.er1
11631 cat conftest.err >&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } &&
11634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11636 (eval $ac_try) 2>&5
11637 ac_status=$?
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; } &&
11640 { ac_try='test -s conftest.$ac_objext'
11641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11642 (eval $ac_try) 2>&5
11643 ac_status=$?
11644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11645 (exit $ac_status); }; }; then
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011646
11647cat >>confdefs.h <<\_ACEOF
11648#define HAVE_ALSA 1
11649_ACEOF
11650
Vincent BĂ©ron151015f2005-01-10 13:26:33 +000011651 ALSALIBS="-lasound"
11652else
11653 echo "$as_me: failed program was:" >&5
11654sed 's/^/| /' conftest.$ac_ext >&5
11655
11656fi
11657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000011658fi
11659
11660fi
11661
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011662
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011663AUDIOIOLIBS=""
11664
11665
11666for ac_header in libaudioio.h
11667do
11668as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11669if eval "test \"\${$as_ac_Header+set}\" = set"; then
11670 echo "$as_me:$LINENO: checking for $ac_header" >&5
11671echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11672if eval "test \"\${$as_ac_Header+set}\" = set"; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11674fi
11675echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11676echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11677else
11678 # Is the header compilable?
11679echo "$as_me:$LINENO: checking $ac_header usability" >&5
11680echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11681cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011682/* confdefs.h. */
11683_ACEOF
11684cat confdefs.h >>conftest.$ac_ext
11685cat >>conftest.$ac_ext <<_ACEOF
11686/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011687$ac_includes_default
11688#include <$ac_header>
11689_ACEOF
11690rm -f conftest.$ac_objext
11691if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011692 (eval $ac_compile) 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011693 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011694 grep -v '^ *+' conftest.er1 >conftest.err
11695 rm -f conftest.er1
11696 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest.$ac_objext'
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11707 (eval $ac_try) 2>&5
11708 ac_status=$?
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); }; }; then
11711 ac_header_compiler=yes
11712else
11713 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011714sed 's/^/| /' conftest.$ac_ext >&5
11715
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011716ac_header_compiler=no
11717fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011718rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011719echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11720echo "${ECHO_T}$ac_header_compiler" >&6
11721
11722# Is the header present?
11723echo "$as_me:$LINENO: checking $ac_header presence" >&5
11724echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11725cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011726/* confdefs.h. */
11727_ACEOF
11728cat confdefs.h >>conftest.$ac_ext
11729cat >>conftest.$ac_ext <<_ACEOF
11730/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011731#include <$ac_header>
11732_ACEOF
11733if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11734 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11735 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011736 grep -v '^ *+' conftest.er1 >conftest.err
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011737 rm -f conftest.er1
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } >/dev/null; then
11741 if test -s conftest.err; then
11742 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011743 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011744 else
11745 ac_cpp_err=
11746 fi
11747else
11748 ac_cpp_err=yes
11749fi
11750if test -z "$ac_cpp_err"; then
11751 ac_header_preproc=yes
11752else
11753 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011754sed 's/^/| /' conftest.$ac_ext >&5
11755
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011756 ac_header_preproc=no
11757fi
11758rm -f conftest.err conftest.$ac_ext
11759echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11760echo "${ECHO_T}$ac_header_preproc" >&6
11761
11762# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011763case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11764 yes:no: )
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011765 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11766echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011767 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11768echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11769 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011770 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011771 no:yes:* )
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011772 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11773echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011774 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11775echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11776 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11777echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11778 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11779echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011780 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011781echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011782 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11783echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011784 (
11785 cat <<\_ASBOX
11786## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000011787## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011788## ------------------------------------ ##
11789_ASBOX
11790 ) |
11791 sed "s/^/$as_me: WARNING: /" >&2
11792 ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011793esac
11794echo "$as_me:$LINENO: checking for $ac_header" >&5
11795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11796if eval "test \"\${$as_ac_Header+set}\" = set"; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11798else
Alexandre Julliard875927f2004-01-02 01:55:29 +000011799 eval "$as_ac_Header=\$ac_header_preproc"
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011800fi
11801echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11802echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11803
11804fi
11805if test `eval echo '${'$as_ac_Header'}'` = yes; then
11806 cat >>confdefs.h <<_ACEOF
11807#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11808_ACEOF
11809 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
11810echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
11811if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
11812 echo $ECHO_N "(cached) $ECHO_C" >&6
11813else
11814 ac_check_lib_save_LIBS=$LIBS
11815LIBS="-laudioio $LIBS"
11816cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011817/* confdefs.h. */
11818_ACEOF
11819cat confdefs.h >>conftest.$ac_ext
11820cat >>conftest.$ac_ext <<_ACEOF
11821/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011822
11823/* Override any gcc2 internal prototype to avoid an error. */
11824#ifdef __cplusplus
11825extern "C"
11826#endif
11827/* We use char because int might match the return type of a gcc2
11828 builtin and then its argument prototype would still apply. */
11829char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011830int
11831main ()
11832{
11833AudioIOGetVersion ();
11834 ;
11835 return 0;
11836}
11837_ACEOF
11838rm -f conftest.$ac_objext conftest$ac_exeext
11839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011840 (eval $ac_link) 2>conftest.er1
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011841 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011842 grep -v '^ *+' conftest.er1 >conftest.err
11843 rm -f conftest.er1
11844 cat conftest.err >&5
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11846 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11849 (eval $ac_try) 2>&5
11850 ac_status=$?
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); }; } &&
11853 { ac_try='test -s conftest$ac_exeext'
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11855 (eval $ac_try) 2>&5
11856 ac_status=$?
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); }; }; then
11859 ac_cv_lib_audioio_AudioIOGetVersion=yes
11860else
11861 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011862sed 's/^/| /' conftest.$ac_ext >&5
11863
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011864ac_cv_lib_audioio_AudioIOGetVersion=no
11865fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011866rm -f conftest.err conftest.$ac_objext \
11867 conftest$ac_exeext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000011868LIBS=$ac_check_lib_save_LIBS
11869fi
11870echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
11871echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
11872if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
11873 AUDIOIOLIBS="-laudioio"
11874
11875cat >>confdefs.h <<\_ACEOF
11876#define HAVE_LIBAUDIOIO 1
11877_ACEOF
11878
11879fi
11880
11881fi
11882
11883done
11884
11885
11886
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011887
11888for ac_header in capi20.h
11889do
11890as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11891if eval "test \"\${$as_ac_Header+set}\" = set"; then
11892 echo "$as_me:$LINENO: checking for $ac_header" >&5
11893echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11894if eval "test \"\${$as_ac_Header+set}\" = set"; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896fi
11897echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11898echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11899else
11900 # Is the header compilable?
11901echo "$as_me:$LINENO: checking $ac_header usability" >&5
11902echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11903cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011904/* confdefs.h. */
11905_ACEOF
11906cat confdefs.h >>conftest.$ac_ext
11907cat >>conftest.$ac_ext <<_ACEOF
11908/* end confdefs.h. */
11909$ac_includes_default
11910#include <$ac_header>
11911_ACEOF
11912rm -f conftest.$ac_objext
11913if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000011914 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011915 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000011921 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11923 (eval $ac_try) 2>&5
11924 ac_status=$?
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); }; } &&
11927 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11929 (eval $ac_try) 2>&5
11930 ac_status=$?
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 ac_header_compiler=yes
11934else
11935 echo "$as_me: failed program was:" >&5
11936sed 's/^/| /' conftest.$ac_ext >&5
11937
11938ac_header_compiler=no
11939fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000011940rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011941echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11942echo "${ECHO_T}$ac_header_compiler" >&6
11943
11944# Is the header present?
11945echo "$as_me:$LINENO: checking $ac_header presence" >&5
11946echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11947cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011948/* confdefs.h. */
11949_ACEOF
11950cat confdefs.h >>conftest.$ac_ext
11951cat >>conftest.$ac_ext <<_ACEOF
11952/* end confdefs.h. */
11953#include <$ac_header>
11954_ACEOF
11955if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11956 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11957 ac_status=$?
11958 grep -v '^ *+' conftest.er1 >conftest.err
11959 rm -f conftest.er1
11960 cat conftest.err >&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); } >/dev/null; then
11963 if test -s conftest.err; then
11964 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000011965 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011966 else
11967 ac_cpp_err=
11968 fi
11969else
11970 ac_cpp_err=yes
11971fi
11972if test -z "$ac_cpp_err"; then
11973 ac_header_preproc=yes
11974else
11975 echo "$as_me: failed program was:" >&5
11976sed 's/^/| /' conftest.$ac_ext >&5
11977
11978 ac_header_preproc=no
11979fi
11980rm -f conftest.err conftest.$ac_ext
11981echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11982echo "${ECHO_T}$ac_header_preproc" >&6
11983
11984# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000011985case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11986 yes:no: )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11988echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11990echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11991 ac_header_preproc=yes
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011992 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000011993 no:yes:* )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11995echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000011996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11997echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11999echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12001echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12003echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12005echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012006 (
12007 cat <<\_ASBOX
12008## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000012009## Report this to wine-devel@winehq.org ##
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012010## ------------------------------------ ##
12011_ASBOX
12012 ) |
12013 sed "s/^/$as_me: WARNING: /" >&2
12014 ;;
12015esac
12016echo "$as_me:$LINENO: checking for $ac_header" >&5
12017echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12018if eval "test \"\${$as_ac_Header+set}\" = set"; then
12019 echo $ECHO_N "(cached) $ECHO_C" >&6
12020else
Alexandre Julliard875927f2004-01-02 01:55:29 +000012021 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012022fi
12023echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12024echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12025
12026fi
12027if test `eval echo '${'$as_ac_Header'}'` = yes; then
12028 cat >>confdefs.h <<_ACEOF
12029#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12030_ACEOF
12031
12032
12033for ac_header in linux/capi.h
12034do
12035as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12036if eval "test \"\${$as_ac_Header+set}\" = set"; then
12037 echo "$as_me:$LINENO: checking for $ac_header" >&5
12038echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12039if eval "test \"\${$as_ac_Header+set}\" = set"; then
12040 echo $ECHO_N "(cached) $ECHO_C" >&6
12041fi
12042echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12043echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12044else
12045 # Is the header compilable?
12046echo "$as_me:$LINENO: checking $ac_header usability" >&5
12047echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12048cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012049/* confdefs.h. */
12050_ACEOF
12051cat confdefs.h >>conftest.$ac_ext
12052cat >>conftest.$ac_ext <<_ACEOF
12053/* end confdefs.h. */
12054$ac_includes_default
12055#include <$ac_header>
12056_ACEOF
12057rm -f conftest.$ac_objext
12058if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012059 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012060 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012061 grep -v '^ *+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12069 ac_status=$?
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; } &&
12072 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12074 (eval $ac_try) 2>&5
12075 ac_status=$?
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); }; }; then
12078 ac_header_compiler=yes
12079else
12080 echo "$as_me: failed program was:" >&5
12081sed 's/^/| /' conftest.$ac_ext >&5
12082
12083ac_header_compiler=no
12084fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012085rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012086echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12087echo "${ECHO_T}$ac_header_compiler" >&6
12088
12089# Is the header present?
12090echo "$as_me:$LINENO: checking $ac_header presence" >&5
12091echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12092cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012093/* confdefs.h. */
12094_ACEOF
12095cat confdefs.h >>conftest.$ac_ext
12096cat >>conftest.$ac_ext <<_ACEOF
12097/* end confdefs.h. */
12098#include <$ac_header>
12099_ACEOF
12100if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12102 ac_status=$?
12103 grep -v '^ *+' conftest.er1 >conftest.err
12104 rm -f conftest.er1
12105 cat conftest.err >&5
12106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12107 (exit $ac_status); } >/dev/null; then
12108 if test -s conftest.err; then
12109 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000012110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012111 else
12112 ac_cpp_err=
12113 fi
12114else
12115 ac_cpp_err=yes
12116fi
12117if test -z "$ac_cpp_err"; then
12118 ac_header_preproc=yes
12119else
12120 echo "$as_me: failed program was:" >&5
12121sed 's/^/| /' conftest.$ac_ext >&5
12122
12123 ac_header_preproc=no
12124fi
12125rm -f conftest.err conftest.$ac_ext
12126echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12127echo "${ECHO_T}$ac_header_preproc" >&6
12128
12129# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012130case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12131 yes:no: )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12133echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12135echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12136 ac_header_preproc=yes
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012137 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000012138 no:yes:* )
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12140echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12142echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12144echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12146echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12148echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000012149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12150echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012151 (
12152 cat <<\_ASBOX
12153## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000012154## Report this to wine-devel@winehq.org ##
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012155## ------------------------------------ ##
12156_ASBOX
12157 ) |
12158 sed "s/^/$as_me: WARNING: /" >&2
12159 ;;
12160esac
12161echo "$as_me:$LINENO: checking for $ac_header" >&5
12162echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12163if eval "test \"\${$as_ac_Header+set}\" = set"; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12165else
Alexandre Julliard875927f2004-01-02 01:55:29 +000012166 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012167fi
12168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12170
12171fi
12172if test `eval echo '${'$as_ac_Header'}'` = yes; then
12173 cat >>confdefs.h <<_ACEOF
12174#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12175_ACEOF
12176
12177 echo "$as_me:$LINENO: checking for capi20_register in -lcapi20" >&5
12178echo $ECHO_N "checking for capi20_register in -lcapi20... $ECHO_C" >&6
12179if test "${ac_cv_lib_capi20_capi20_register+set}" = set; then
12180 echo $ECHO_N "(cached) $ECHO_C" >&6
12181else
12182 ac_check_lib_save_LIBS=$LIBS
12183LIBS="-lcapi20 $LIBS"
12184cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012185/* confdefs.h. */
12186_ACEOF
12187cat confdefs.h >>conftest.$ac_ext
12188cat >>conftest.$ac_ext <<_ACEOF
12189/* end confdefs.h. */
12190
12191/* Override any gcc2 internal prototype to avoid an error. */
12192#ifdef __cplusplus
12193extern "C"
12194#endif
12195/* We use char because int might match the return type of a gcc2
12196 builtin and then its argument prototype would still apply. */
12197char capi20_register ();
12198int
12199main ()
12200{
12201capi20_register ();
12202 ;
12203 return 0;
12204}
12205_ACEOF
12206rm -f conftest.$ac_objext conftest$ac_exeext
12207if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012208 (eval $ac_link) 2>conftest.er1
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012209 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012210 grep -v '^ *+' conftest.er1 >conftest.err
12211 rm -f conftest.er1
12212 cat conftest.err >&5
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12214 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012215 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12217 (eval $ac_try) 2>&5
12218 ac_status=$?
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); }; } &&
12221 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12224 ac_status=$?
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; }; then
12227 ac_cv_lib_capi20_capi20_register=yes
12228else
12229 echo "$as_me: failed program was:" >&5
12230sed 's/^/| /' conftest.$ac_ext >&5
12231
12232ac_cv_lib_capi20_capi20_register=no
12233fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012234rm -f conftest.err conftest.$ac_objext \
12235 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012236LIBS=$ac_check_lib_save_LIBS
12237fi
12238echo "$as_me:$LINENO: result: $ac_cv_lib_capi20_capi20_register" >&5
12239echo "${ECHO_T}$ac_cv_lib_capi20_capi20_register" >&6
12240if test $ac_cv_lib_capi20_capi20_register = yes; then
12241
12242
12243cat >>confdefs.h <<\_ACEOF
12244#define HAVE_CAPI4LINUX 1
12245_ACEOF
12246
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000012247
12248fi
12249
12250
12251fi
12252
12253done
12254
12255
12256fi
12257
12258done
12259
12260
12261
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012262echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012263echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
12264if test "${ac_cv_mmap64_works+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012266else
12267 if test "$cross_compiling" = yes; then
12268 ac_cv_mmap64_works="no"
12269else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012270 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012271/* confdefs.h. */
12272_ACEOF
12273cat confdefs.h >>conftest.$ac_ext
12274cat >>conftest.$ac_ext <<_ACEOF
12275/* end confdefs.h. */
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012276
12277 #define _FILE_OFFSET_BITS 64
12278 #include <stdio.h>
12279 #include <unistd.h>
12280 #include <fcntl.h>
12281 #include <sys/mman.h>
12282 #include <errno.h>
12283
12284 int main(int argc,char **argv) {
12285 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
12286 if (fd == -1) exit(1);
12287
12288 unlink("conftest.map");
12289
12290 write(fd,"test",4);
12291
12292 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
12293 (errno == EINVAL)
12294 ) {
12295 exit(1);
12296 }
12297 close(fd);
12298 fprintf(stderr,"success!\n");
12299 exit(0);
12300 }
12301
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012302
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012303_ACEOF
12304rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012305if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012306 (eval $ac_link) 2>&5
12307 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012311 (eval $ac_try) 2>&5
12312 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012314 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012315 ac_cv_mmap64_works="yes"
12316else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012317 echo "$as_me: program exited with status $ac_status" >&5
12318echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012319sed 's/^/| /' conftest.$ac_ext >&5
12320
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012321( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012322ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012323fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012324rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012325fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012326fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012327echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012328echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012329
12330if test "$ac_cv_mmap64_works" = "yes"
12331then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012332
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012333cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012334#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012335_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000012336
12337fi
12338
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012339
Alexandre Julliardfc094232003-04-14 21:46:41 +000012340EXTRACFLAGS=""
12341
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012342if test "x${GCC}" = "xyes"
12343then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000012344 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000012345
12346 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012347echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
12348if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
12349 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012350else
12351 if test "$cross_compiling" = yes; then
12352 ac_cv_c_gcc_strength_bug="yes"
12353else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012354 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012355/* confdefs.h. */
12356_ACEOF
12357cat confdefs.h >>conftest.$ac_ext
12358cat >>conftest.$ac_ext <<_ACEOF
12359/* end confdefs.h. */
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012360
Eric Pouech5aee80f2000-11-11 00:31:39 +000012361int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012362int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000012363 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012364 unsigned int B = 3;
12365 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000012366 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000012367 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12368 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012369
Eric Pouech5aee80f2000-11-11 00:31:39 +000012370 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012371}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012372_ACEOF
12373rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012374if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012375 (eval $ac_link) 2>&5
12376 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012378 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012380 (eval $ac_try) 2>&5
12381 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012383 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012384 ac_cv_c_gcc_strength_bug="no"
12385else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012386 echo "$as_me: program exited with status $ac_status" >&5
12387echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012388sed 's/^/| /' conftest.$ac_ext >&5
12389
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012390( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012391ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012392fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000012393rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012394fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012395fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012396echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012397echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012398 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12399 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012400 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012401 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012402
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000012403 echo "$as_me:$LINENO: checking for gcc -fshort-wchar support" >&5
12404echo $ECHO_N "checking for gcc -fshort-wchar support... $ECHO_C" >&6
12405if test "${ac_cv_c_gcc_fshort_wchar+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12407else
12408 ac_wine_try_cflags_saved=$CFLAGS
12409CFLAGS="$CFLAGS -fshort-wchar"
12410cat >conftest.$ac_ext <<_ACEOF
12411/* confdefs.h. */
12412_ACEOF
12413cat confdefs.h >>conftest.$ac_ext
12414cat >>conftest.$ac_ext <<_ACEOF
12415/* end confdefs.h. */
12416
12417int
12418main ()
12419{
12420
12421 ;
12422 return 0;
12423}
12424_ACEOF
12425rm -f conftest.$ac_objext conftest$ac_exeext
12426if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12427 (eval $ac_link) 2>conftest.er1
12428 ac_status=$?
12429 grep -v '^ *+' conftest.er1 >conftest.err
12430 rm -f conftest.er1
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } &&
12434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12436 (eval $ac_try) 2>&5
12437 ac_status=$?
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); }; } &&
12440 { ac_try='test -s conftest$ac_exeext'
12441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12442 (eval $ac_try) 2>&5
12443 ac_status=$?
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; }; then
12446 ac_cv_c_gcc_fshort_wchar="yes"
12447else
12448 echo "$as_me: failed program was:" >&5
12449sed 's/^/| /' conftest.$ac_ext >&5
12450
12451ac_cv_c_gcc_fshort_wchar="no"
12452fi
12453rm -f conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
12455CFLAGS=$ac_wine_try_cflags_saved
12456fi
12457echo "$as_me:$LINENO: result: $ac_cv_c_gcc_fshort_wchar" >&5
12458echo "${ECHO_T}$ac_cv_c_gcc_fshort_wchar" >&6
12459 if test "$ac_cv_c_gcc_fshort_wchar" = "yes"
12460 then
12461
12462cat >>confdefs.h <<\_ACEOF
12463#define CC_FLAG_SHORT_WCHAR "-fshort-wchar"
12464_ACEOF
12465
12466 fi
12467
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012468 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012469echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
12470if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012472else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012473 ac_wine_try_cflags_saved=$CFLAGS
12474CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
12475cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012476/* confdefs.h. */
12477_ACEOF
12478cat confdefs.h >>conftest.$ac_ext
12479cat >>conftest.$ac_ext <<_ACEOF
12480/* end confdefs.h. */
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012481
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012482int
12483main ()
12484{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012485
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012486 ;
12487 return 0;
12488}
12489_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012490rm -f conftest.$ac_objext conftest$ac_exeext
12491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012492 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012493 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012494 grep -v '^ *+' conftest.er1 >conftest.err
12495 rm -f conftest.er1
12496 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012498 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12501 (eval $ac_try) 2>&5
12502 ac_status=$?
12503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12504 (exit $ac_status); }; } &&
12505 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012507 (eval $ac_try) 2>&5
12508 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012510 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012511 ac_cv_c_gcc_stack_boundary="yes"
12512else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012513 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012514sed 's/^/| /' conftest.$ac_ext >&5
12515
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012516ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012517fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012518rm -f conftest.err conftest.$ac_objext \
12519 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012520CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012521fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012522echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012523echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012524 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
12525 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012526 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012527 fi
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012528
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012529 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
12530echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
12531if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
12532 echo $ECHO_N "(cached) $ECHO_C" >&6
12533else
12534 ac_wine_try_cflags_saved=$CFLAGS
12535CFLAGS="$CFLAGS -fno-strict-aliasing"
12536cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012537/* confdefs.h. */
12538_ACEOF
12539cat confdefs.h >>conftest.$ac_ext
12540cat >>conftest.$ac_ext <<_ACEOF
12541/* end confdefs.h. */
12542
12543int
12544main ()
12545{
12546
12547 ;
12548 return 0;
12549}
12550_ACEOF
12551rm -f conftest.$ac_objext conftest$ac_exeext
12552if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012553 (eval $ac_link) 2>conftest.er1
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012554 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012555 grep -v '^ *+' conftest.er1 >conftest.err
12556 rm -f conftest.er1
12557 cat conftest.err >&5
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12559 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12562 (eval $ac_try) 2>&5
12563 ac_status=$?
12564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565 (exit $ac_status); }; } &&
12566 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12568 (eval $ac_try) 2>&5
12569 ac_status=$?
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; }; then
12572 ac_cv_c_gcc_no_strict_aliasing="yes"
12573else
12574 echo "$as_me: failed program was:" >&5
12575sed 's/^/| /' conftest.$ac_ext >&5
12576
12577ac_cv_c_gcc_no_strict_aliasing="no"
12578fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012579rm -f conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012581CFLAGS=$ac_wine_try_cflags_saved
12582fi
12583echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
12584echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
12585 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
12586 then
12587 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12588 fi
12589
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012590 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
12591echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
12592if test "${ac_cv_c_gcc_gstabs+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594else
12595 ac_wine_try_cflags_saved=$CFLAGS
12596CFLAGS="$CFLAGS -gstabs+"
12597cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012598/* confdefs.h. */
12599_ACEOF
12600cat confdefs.h >>conftest.$ac_ext
12601cat >>conftest.$ac_ext <<_ACEOF
12602/* end confdefs.h. */
12603
12604int
12605main ()
12606{
12607
12608 ;
12609 return 0;
12610}
12611_ACEOF
12612rm -f conftest.$ac_objext conftest$ac_exeext
12613if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012614 (eval $ac_link) 2>conftest.er1
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012615 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012616 grep -v '^ *+' conftest.er1 >conftest.err
12617 rm -f conftest.er1
12618 cat conftest.err >&5
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12620 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12623 (eval $ac_try) 2>&5
12624 ac_status=$?
12625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12626 (exit $ac_status); }; } &&
12627 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12629 (eval $ac_try) 2>&5
12630 ac_status=$?
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); }; }; then
12633 ac_cv_c_gcc_gstabs="yes"
12634else
12635 echo "$as_me: failed program was:" >&5
12636sed 's/^/| /' conftest.$ac_ext >&5
12637
12638ac_cv_c_gcc_gstabs="no"
12639fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012640rm -f conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012642CFLAGS=$ac_wine_try_cflags_saved
12643fi
12644echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
12645echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
12646 if test "$ac_cv_c_gcc_gstabs" = "yes"
12647 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012648 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000012649 fi
Mike McCormackc509bc42003-02-25 04:01:58 +000012650
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012651 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012652 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
12653 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
12654echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
12655if test "${ac_cv_c_string_h_warnings+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12657else
12658 cat >conftest.$ac_ext <<_ACEOF
Mike McCormackc509bc42003-02-25 04:01:58 +000012659/* confdefs.h. */
12660_ACEOF
12661cat confdefs.h >>conftest.$ac_ext
12662cat >>conftest.$ac_ext <<_ACEOF
12663/* end confdefs.h. */
12664#include <string.h>
12665int
12666main ()
12667{
12668
12669 ;
12670 return 0;
12671}
12672_ACEOF
12673rm -f conftest.$ac_objext
12674if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012675 (eval $ac_compile) 2>conftest.er1
Mike McCormackc509bc42003-02-25 04:01:58 +000012676 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012677 grep -v '^ *+' conftest.er1 >conftest.err
12678 rm -f conftest.er1
12679 cat conftest.err >&5
Mike McCormackc509bc42003-02-25 04:01:58 +000012680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12681 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12684 (eval $ac_try) 2>&5
12685 ac_status=$?
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); }; } &&
12688 { ac_try='test -s conftest.$ac_objext'
Mike McCormackc509bc42003-02-25 04:01:58 +000012689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12690 (eval $ac_try) 2>&5
12691 ac_status=$?
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
12694 ac_cv_c_string_h_warnings=no
12695else
12696 echo "$as_me: failed program was:" >&5
12697sed 's/^/| /' conftest.$ac_ext >&5
12698
12699ac_cv_c_string_h_warnings=yes
12700fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012701rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012702fi
12703echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
12704echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012705 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012706 if test "$ac_cv_c_string_h_warnings" = "no"
12707 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012708 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000012709 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012710fi
12711
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012712
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012713echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
12714echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
12715if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012716 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012717else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012718 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012719/* confdefs.h. */
12720_ACEOF
12721cat confdefs.h >>conftest.$ac_ext
12722cat >>conftest.$ac_ext <<_ACEOF
12723/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012724void 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 +000012725
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012726int
12727main ()
12728{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012729
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012730 ;
12731 return 0;
12732}
12733_ACEOF
12734rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012735if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012736 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012737 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012738 grep -v '^ *+' conftest.er1 >conftest.err
12739 rm -f conftest.er1
12740 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012742 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12745 (eval $ac_try) 2>&5
12746 ac_status=$?
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); }; } &&
12749 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012751 (eval $ac_try) 2>&5
12752 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012754 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012755 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012756else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012757 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012758sed 's/^/| /' conftest.$ac_ext >&5
12759
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012760cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012761/* confdefs.h. */
12762_ACEOF
12763cat confdefs.h >>conftest.$ac_ext
12764cat >>conftest.$ac_ext <<_ACEOF
12765/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012766void 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 +000012767
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012768int
12769main ()
12770{
12771
12772 ;
12773 return 0;
12774}
12775_ACEOF
12776rm -f conftest.$ac_objext conftest$ac_exeext
12777if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012778 (eval $ac_link) 2>conftest.er1
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012779 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012780 grep -v '^ *+' conftest.er1 >conftest.err
12781 rm -f conftest.er1
12782 cat conftest.err >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12787 (eval $ac_try) 2>&5
12788 ac_status=$?
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); }; } &&
12791 { ac_try='test -s conftest$ac_exeext'
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012792 { (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); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012797 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012798else
12799 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012800sed 's/^/| /' conftest.$ac_ext >&5
12801
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012802cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012803/* confdefs.h. */
12804_ACEOF
12805cat confdefs.h >>conftest.$ac_ext
12806cat >>conftest.$ac_ext <<_ACEOF
12807/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012808void 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 +000012809
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012810int
12811main ()
12812{
12813
12814 ;
12815 return 0;
12816}
12817_ACEOF
12818rm -f conftest.$ac_objext conftest$ac_exeext
12819if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012820 (eval $ac_link) 2>conftest.er1
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012821 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012822 grep -v '^ *+' conftest.er1 >conftest.err
12823 rm -f conftest.er1
12824 cat conftest.err >&5
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12829 (eval $ac_try) 2>&5
12830 ac_status=$?
12831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12832 (exit $ac_status); }; } &&
12833 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012834 { (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); }; }; then
12839 ac_cv_asm_func_def=".type 2"
12840else
12841 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012842sed 's/^/| /' conftest.$ac_ext >&5
12843
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012844ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012845fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012846rm -f conftest.err conftest.$ac_objext \
12847 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012848fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012849rm -f conftest.err conftest.$ac_objext \
12850 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012851fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012852rm -f conftest.err conftest.$ac_objext \
12853 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012854fi
12855echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
12856echo "${ECHO_T}$ac_cv_asm_func_def" >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012857
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012858
12859
12860case "$ac_cv_asm_func_def" in
12861 ".def")
12862 cat >>confdefs.h <<\_ACEOF
12863#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012864_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012865 ;;
12866 ".type @function")
12867 cat >>confdefs.h <<\_ACEOF
12868#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
12869_ACEOF
12870 ;;
12871 ".type 2")
12872 cat >>confdefs.h <<\_ACEOF
12873#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
12874_ACEOF
12875 ;;
12876 *)
12877 cat >>confdefs.h <<\_ACEOF
12878#define __ASM_FUNC(name) ""
12879_ACEOF
12880 ;;
12881esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012882
12883
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012884echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012885echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
12886if test "${ac_cv_c_extern_prefix+set}" = set; then
12887 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012888else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012889 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012890/* confdefs.h. */
12891_ACEOF
12892cat confdefs.h >>conftest.$ac_ext
12893cat >>conftest.$ac_ext <<_ACEOF
12894/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000012895void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012896extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012897int
12898main ()
12899{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012900if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012901 ;
12902 return 0;
12903}
12904_ACEOF
12905rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012906if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000012907 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012908 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000012909 grep -v '^ *+' conftest.er1 >conftest.err
12910 rm -f conftest.er1
12911 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012913 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000012914 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12916 (eval $ac_try) 2>&5
12917 ac_status=$?
12918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12919 (exit $ac_status); }; } &&
12920 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012922 (eval $ac_try) 2>&5
12923 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012925 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012926 ac_cv_c_extern_prefix="yes"
12927else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012928 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012929sed 's/^/| /' conftest.$ac_ext >&5
12930
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012931ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012932fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000012933rm -f conftest.err conftest.$ac_objext \
12934 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012935fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012936echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012937echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012938
12939
12940
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012941if test "$ac_cv_c_extern_prefix" = "yes"
12942then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012943 cat >>confdefs.h <<\_ACEOF
12944#define __ASM_NAME(name) "_" name
12945_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012946
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012947else
12948 cat >>confdefs.h <<\_ACEOF
12949#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012950_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012951
12952fi
12953
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012954
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012955DLLEXT=""
12956
Alexandre Julliardfc094232003-04-14 21:46:41 +000012957DLLFLAGS="-D_REENTRANT"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012958
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012959DLLIBS=""
12960
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012961LDSHARED=""
12962
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000012963LDDLLFLAGS=""
Alexandre Julliard6ac34ac2003-10-11 01:05:18 +000012964
Alexandre Julliardada5e652002-12-12 22:03:14 +000012965LIBEXT="so"
12966
12967IMPLIBEXT="def"
12968
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012969
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012970case $host_os in
12971 cygwin*|mingw32*)
12972 if test -n "$ac_tool_prefix"; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000012973 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
12974set dummy ${ac_tool_prefix}dlltool; ac_word=$2
12975echo "$as_me:$LINENO: checking for $ac_word" >&5
12976echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12977if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12978 echo $ECHO_N "(cached) $ECHO_C" >&6
12979else
12980 if test -n "$DLLTOOL"; then
12981 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12982else
12983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12984for as_dir in $PATH
12985do
12986 IFS=$as_save_IFS
12987 test -z "$as_dir" && as_dir=.
12988 for ac_exec_ext in '' $ac_executable_extensions; do
12989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12990 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
12991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12992 break 2
12993 fi
12994done
12995done
12996
12997fi
12998fi
12999DLLTOOL=$ac_cv_prog_DLLTOOL
13000if test -n "$DLLTOOL"; then
13001 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
13002echo "${ECHO_T}$DLLTOOL" >&6
13003else
13004 echo "$as_me:$LINENO: result: no" >&5
13005echo "${ECHO_T}no" >&6
13006fi
13007
13008fi
13009if test -z "$ac_cv_prog_DLLTOOL"; then
13010 ac_ct_DLLTOOL=$DLLTOOL
13011 # Extract the first word of "dlltool", so it can be a program name with args.
13012set dummy dlltool; ac_word=$2
13013echo "$as_me:$LINENO: checking for $ac_word" >&5
13014echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13015if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13017else
13018 if test -n "$ac_ct_DLLTOOL"; then
13019 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13020else
13021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13022for as_dir in $PATH
13023do
13024 IFS=$as_save_IFS
13025 test -z "$as_dir" && as_dir=.
13026 for ac_exec_ext in '' $ac_executable_extensions; do
13027 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13028 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13029 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13030 break 2
13031 fi
13032done
13033done
13034
13035 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
13036fi
13037fi
13038ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13039if test -n "$ac_ct_DLLTOOL"; then
13040 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
13041echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
13042else
13043 echo "$as_me:$LINENO: result: no" >&5
13044echo "${ECHO_T}no" >&6
13045fi
13046
13047 DLLTOOL=$ac_ct_DLLTOOL
13048else
13049 DLLTOOL="$ac_cv_prog_DLLTOOL"
13050fi
13051
13052 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013053 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
13054set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +000013055echo "$as_me:$LINENO: checking for $ac_word" >&5
13056echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13057if test "${ac_cv_prog_DLLWRAP+set}" = set; then
13058 echo $ECHO_N "(cached) $ECHO_C" >&6
13059else
13060 if test -n "$DLLWRAP"; then
13061 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
13062else
13063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13064for as_dir in $PATH
13065do
13066 IFS=$as_save_IFS
13067 test -z "$as_dir" && as_dir=.
13068 for ac_exec_ext in '' $ac_executable_extensions; do
13069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013070 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000013071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13072 break 2
13073 fi
13074done
13075done
13076
Alexandre Julliard466ae142002-05-07 18:33:47 +000013077fi
13078fi
13079DLLWRAP=$ac_cv_prog_DLLWRAP
13080if test -n "$DLLWRAP"; then
13081 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
13082echo "${ECHO_T}$DLLWRAP" >&6
13083else
13084 echo "$as_me:$LINENO: result: no" >&5
13085echo "${ECHO_T}no" >&6
13086fi
13087
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013088fi
13089if test -z "$ac_cv_prog_DLLWRAP"; then
13090 ac_ct_DLLWRAP=$DLLWRAP
13091 # Extract the first word of "dllwrap", so it can be a program name with args.
13092set dummy dllwrap; ac_word=$2
13093echo "$as_me:$LINENO: checking for $ac_word" >&5
13094echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13095if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
13096 echo $ECHO_N "(cached) $ECHO_C" >&6
13097else
13098 if test -n "$ac_ct_DLLWRAP"; then
13099 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
13100else
13101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13102for as_dir in $PATH
13103do
13104 IFS=$as_save_IFS
13105 test -z "$as_dir" && as_dir=.
13106 for ac_exec_ext in '' $ac_executable_extensions; do
13107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13108 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
13109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13110 break 2
13111 fi
13112done
13113done
13114
13115 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
13116fi
13117fi
13118ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
13119if test -n "$ac_ct_DLLWRAP"; then
13120 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
13121echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
13122else
13123 echo "$as_me:$LINENO: result: no" >&5
13124echo "${ECHO_T}no" >&6
13125fi
13126
13127 DLLWRAP=$ac_ct_DLLWRAP
13128else
13129 DLLWRAP="$ac_cv_prog_DLLWRAP"
13130fi
13131
13132 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013133 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013134 else
13135 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013136 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000013137 IMPLIBEXT="a"
Alexandre Julliard56a4a762004-08-12 03:27:50 +000013138 WIN16_FILES=""
13139 WIN16_INSTALL=""
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013140 ;;
13141 *)
13142
13143for ac_header in dlfcn.h
13144do
13145as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13146if eval "test \"\${$as_ac_Header+set}\" = set"; then
13147 echo "$as_me:$LINENO: checking for $ac_header" >&5
13148echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13149if eval "test \"\${$as_ac_Header+set}\" = set"; then
13150 echo $ECHO_N "(cached) $ECHO_C" >&6
13151fi
13152echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13153echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13154else
13155 # Is the header compilable?
13156echo "$as_me:$LINENO: checking $ac_header usability" >&5
13157echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13158cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013159/* confdefs.h. */
13160_ACEOF
13161cat confdefs.h >>conftest.$ac_ext
13162cat >>conftest.$ac_ext <<_ACEOF
13163/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013164$ac_includes_default
13165#include <$ac_header>
13166_ACEOF
13167rm -f conftest.$ac_objext
13168if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013169 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013170 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013171 grep -v '^ *+' conftest.er1 >conftest.err
13172 rm -f conftest.er1
13173 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13178 (eval $ac_try) 2>&5
13179 ac_status=$?
13180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13181 (exit $ac_status); }; } &&
13182 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13184 (eval $ac_try) 2>&5
13185 ac_status=$?
13186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13187 (exit $ac_status); }; }; then
13188 ac_header_compiler=yes
13189else
13190 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013191sed 's/^/| /' conftest.$ac_ext >&5
13192
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013193ac_header_compiler=no
13194fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013195rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013196echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13197echo "${ECHO_T}$ac_header_compiler" >&6
13198
13199# Is the header present?
13200echo "$as_me:$LINENO: checking $ac_header presence" >&5
13201echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13202cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013203/* confdefs.h. */
13204_ACEOF
13205cat confdefs.h >>conftest.$ac_ext
13206cat >>conftest.$ac_ext <<_ACEOF
13207/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013208#include <$ac_header>
13209_ACEOF
13210if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13211 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13212 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013213 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013214 rm -f conftest.er1
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } >/dev/null; then
13218 if test -s conftest.err; then
13219 ac_cpp_err=$ac_c_preproc_warn_flag
Alexandre Julliard875927f2004-01-02 01:55:29 +000013220 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013221 else
13222 ac_cpp_err=
13223 fi
13224else
13225 ac_cpp_err=yes
13226fi
13227if test -z "$ac_cpp_err"; then
13228 ac_header_preproc=yes
13229else
13230 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013231sed 's/^/| /' conftest.$ac_ext >&5
13232
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013233 ac_header_preproc=no
13234fi
13235rm -f conftest.err conftest.$ac_ext
13236echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13237echo "${ECHO_T}$ac_header_preproc" >&6
13238
13239# So? What about this header?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013240case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13241 yes:no: )
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13243echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13245echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13246 ac_header_preproc=yes
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013247 ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000013248 no:yes:* )
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13250echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13252echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13254echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13256echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013258echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
Alexandre Julliard875927f2004-01-02 01:55:29 +000013259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13260echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013261 (
13262 cat <<\_ASBOX
13263## ------------------------------------ ##
Alexandre Julliard875927f2004-01-02 01:55:29 +000013264## Report this to wine-devel@winehq.org ##
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013265## ------------------------------------ ##
13266_ASBOX
13267 ) |
13268 sed "s/^/$as_me: WARNING: /" >&2
13269 ;;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013270esac
13271echo "$as_me:$LINENO: checking for $ac_header" >&5
13272echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13273if eval "test \"\${$as_ac_Header+set}\" = set"; then
13274 echo $ECHO_N "(cached) $ECHO_C" >&6
13275else
Alexandre Julliard875927f2004-01-02 01:55:29 +000013276 eval "$as_ac_Header=\$ac_header_preproc"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013277fi
13278echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13279echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13280
13281fi
13282if test `eval echo '${'$as_ac_Header'}'` = yes; then
13283 cat >>confdefs.h <<_ACEOF
13284#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13285_ACEOF
13286
13287for ac_func in dlopen
13288do
13289as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13290echo "$as_me:$LINENO: checking for $ac_func" >&5
13291echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13292if eval "test \"\${$as_ac_var+set}\" = set"; then
13293 echo $ECHO_N "(cached) $ECHO_C" >&6
13294else
13295 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013296/* confdefs.h. */
13297_ACEOF
13298cat confdefs.h >>conftest.$ac_ext
13299cat >>conftest.$ac_ext <<_ACEOF
13300/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013301/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13303#define $ac_func innocuous_$ac_func
13304
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013305/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013306 which can conflict with char $ac_func (); below.
13307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13308 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000013309
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013310#ifdef __STDC__
13311# include <limits.h>
13312#else
13313# include <assert.h>
13314#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000013315
13316#undef $ac_func
13317
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013318/* Override any gcc2 internal prototype to avoid an error. */
13319#ifdef __cplusplus
13320extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013321{
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013322#endif
13323/* We use char because int might match the return type of a gcc2
13324 builtin and then its argument prototype would still apply. */
13325char $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013326/* The GNU C library defines this for functions which it implements
13327 to always fail with ENOSYS. Some functions are actually named
13328 something starting with __ and the normal name is an alias. */
13329#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13330choke me
13331#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013332char (*f) () = $ac_func;
13333#endif
13334#ifdef __cplusplus
13335}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013336#endif
13337
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013338int
13339main ()
13340{
13341return f != $ac_func;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013342 ;
13343 return 0;
13344}
13345_ACEOF
13346rm -f conftest.$ac_objext conftest$ac_exeext
13347if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013348 (eval $ac_link) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013349 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013350 grep -v '^ *+' conftest.er1 >conftest.err
13351 rm -f conftest.er1
13352 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13354 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13357 (eval $ac_try) 2>&5
13358 ac_status=$?
13359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13360 (exit $ac_status); }; } &&
13361 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13363 (eval $ac_try) 2>&5
13364 ac_status=$?
13365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13366 (exit $ac_status); }; }; then
13367 eval "$as_ac_var=yes"
13368else
13369 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013370sed 's/^/| /' conftest.$ac_ext >&5
13371
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013372eval "$as_ac_var=no"
13373fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013374rm -f conftest.err conftest.$ac_objext \
13375 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013376fi
13377echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
13378echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13379if test `eval echo '${'$as_ac_var'}'` = yes; then
13380 cat >>confdefs.h <<_ACEOF
13381#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13382_ACEOF
13383
13384else
13385 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13386echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13387if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13388 echo $ECHO_N "(cached) $ECHO_C" >&6
13389else
13390 ac_check_lib_save_LIBS=$LIBS
13391LIBS="-ldl $LIBS"
13392cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013393/* confdefs.h. */
13394_ACEOF
13395cat confdefs.h >>conftest.$ac_ext
13396cat >>conftest.$ac_ext <<_ACEOF
13397/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013398
13399/* Override any gcc2 internal prototype to avoid an error. */
13400#ifdef __cplusplus
13401extern "C"
13402#endif
13403/* We use char because int might match the return type of a gcc2
13404 builtin and then its argument prototype would still apply. */
13405char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013406int
13407main ()
13408{
13409dlopen ();
13410 ;
13411 return 0;
13412}
13413_ACEOF
13414rm -f conftest.$ac_objext conftest$ac_exeext
13415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013416 (eval $ac_link) 2>conftest.er1
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013417 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13425 (eval $ac_try) 2>&5
13426 ac_status=$?
13427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13428 (exit $ac_status); }; } &&
13429 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13431 (eval $ac_try) 2>&5
13432 ac_status=$?
13433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13434 (exit $ac_status); }; }; then
13435 ac_cv_lib_dl_dlopen=yes
13436else
13437 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013438sed 's/^/| /' conftest.$ac_ext >&5
13439
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013440ac_cv_lib_dl_dlopen=no
13441fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013442rm -f conftest.err conftest.$ac_objext \
13443 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013444LIBS=$ac_check_lib_save_LIBS
13445fi
13446echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13447echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13448if test $ac_cv_lib_dl_dlopen = yes; then
13449
13450cat >>confdefs.h <<\_ACEOF
13451#define HAVE_DLOPEN 1
13452_ACEOF
13453
13454 DLLIBS="-ldl"
13455else
13456 LIBEXT="a"
13457fi
13458
13459fi
13460done
13461
13462else
13463 LIBEXT="a"
13464fi
13465
13466done
13467
13468
13469 if test "$LIBEXT" = "so"
13470 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000013471 DLLFLAGS="$DLLFLAGS -fPIC"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000013472 DLLEXT=".so"
Alexandre Julliard466ae142002-05-07 18:33:47 +000013473 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013474echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
13475if test "${ac_cv_c_dll_gnuelf+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013477else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013478 ac_wine_try_cflags_saved=$CFLAGS
13479CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
13480cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000013481void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013482_ACEOF
13483rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013485 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013486 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013487 grep -v '^ *+' conftest.er1 >conftest.err
13488 rm -f conftest.er1
13489 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013491 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13494 (eval $ac_try) 2>&5
13495 ac_status=$?
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; } &&
13498 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013500 (eval $ac_try) 2>&5
13501 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013503 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000013504 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013505else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013506 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013507sed 's/^/| /' conftest.$ac_ext >&5
13508
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013509ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013510fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013511rm -f conftest.err conftest.$ac_objext \
13512 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013513CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013514fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013515echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013516echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000013517 if test "$ac_cv_c_dll_gnuelf" = "yes"
13518 then
13519 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013520 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013521 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
13522echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
13523if test "${ac_cv_c_dll_zdefs+set}" = set; then
13524 echo $ECHO_N "(cached) $ECHO_C" >&6
13525else
13526 ac_wine_try_cflags_saved=$CFLAGS
13527CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
13528cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013529/* confdefs.h. */
13530_ACEOF
13531cat confdefs.h >>conftest.$ac_ext
13532cat >>conftest.$ac_ext <<_ACEOF
13533/* end confdefs.h. */
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013534
13535int
13536main ()
13537{
13538
13539 ;
13540 return 0;
13541}
13542_ACEOF
13543rm -f conftest.$ac_objext conftest$ac_exeext
13544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013545 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013546 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013547 grep -v '^ *+' conftest.er1 >conftest.err
13548 rm -f conftest.er1
13549 cat conftest.err >&5
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13554 (eval $ac_try) 2>&5
13555 ac_status=$?
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); }; } &&
13558 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13560 (eval $ac_try) 2>&5
13561 ac_status=$?
13562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13563 (exit $ac_status); }; }; then
13564 ac_cv_c_dll_zdefs="yes"
13565else
13566 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013567sed 's/^/| /' conftest.$ac_ext >&5
13568
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013569ac_cv_c_dll_zdefs="no"
13570fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013571rm -f conftest.err conftest.$ac_objext \
13572 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013573CFLAGS=$ac_wine_try_cflags_saved
13574fi
13575echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
13576echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
13577 if test "$ac_cv_c_dll_zdefs" = "yes"
13578 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013579 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000013580 fi
Alexandre Julliard4d52d372003-03-24 19:33:20 +000013581
Alexandre Julliard36048242004-01-08 03:36:53 +000013582 echo "$as_me:$LINENO: checking whether the linker accepts -init and -fini" >&5
13583echo $ECHO_N "checking whether the linker accepts -init and -fini... $ECHO_C" >&6
13584if test "${ac_cv_c_dll_init_fini+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13586else
13587 ac_wine_try_cflags_saved=$CFLAGS
13588CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
13589cat >conftest.$ac_ext <<_ACEOF
13590/* confdefs.h. */
13591_ACEOF
13592cat confdefs.h >>conftest.$ac_ext
13593cat >>conftest.$ac_ext <<_ACEOF
13594/* end confdefs.h. */
13595
13596int
13597main ()
13598{
13599
13600 ;
13601 return 0;
13602}
13603_ACEOF
13604rm -f conftest.$ac_objext conftest$ac_exeext
13605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13606 (eval $ac_link) 2>conftest.er1
13607 ac_status=$?
13608 grep -v '^ *+' conftest.er1 >conftest.err
13609 rm -f conftest.er1
13610 cat conftest.err >&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); } &&
13613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13615 (eval $ac_try) 2>&5
13616 ac_status=$?
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; } &&
13619 { ac_try='test -s conftest$ac_exeext'
13620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621 (eval $ac_try) 2>&5
13622 ac_status=$?
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); }; }; then
13625 ac_cv_c_dll_init_fini="yes"
13626else
13627 echo "$as_me: failed program was:" >&5
13628sed 's/^/| /' conftest.$ac_ext >&5
13629
13630ac_cv_c_dll_init_fini="no"
13631fi
13632rm -f conftest.err conftest.$ac_objext \
13633 conftest$ac_exeext conftest.$ac_ext
13634CFLAGS=$ac_wine_try_cflags_saved
13635fi
13636echo "$as_me:$LINENO: result: $ac_cv_c_dll_init_fini" >&5
13637echo "${ECHO_T}$ac_cv_c_dll_init_fini" >&6
13638 if test "$ac_cv_c_dll_init_fini" = "yes"
13639 then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013640 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard36048242004-01-08 03:36:53 +000013641 fi
13642
Alexandre Julliard440ff6d2004-02-12 22:54:00 +000013643 echo "$as_me:$LINENO: checking whether the linker accepts version scripts" >&5
13644echo $ECHO_N "checking whether the linker accepts version scripts... $ECHO_C" >&6
13645if test "${ac_cv_c_ld_version_scripts+set}" = set; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13647else
13648 echo '{ global: *; };' >conftest.map
13649 ac_wine_try_cflags_saved=$CFLAGS
13650CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
13651cat >conftest.$ac_ext <<_ACEOF
13652/* confdefs.h. */
13653_ACEOF
13654cat confdefs.h >>conftest.$ac_ext
13655cat >>conftest.$ac_ext <<_ACEOF
13656/* end confdefs.h. */
13657
13658int
13659main ()
13660{
13661
13662 ;
13663 return 0;
13664}
13665_ACEOF
13666rm -f conftest.$ac_objext conftest$ac_exeext
13667if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13668 (eval $ac_link) 2>conftest.er1
13669 ac_status=$?
13670 grep -v '^ *+' conftest.er1 >conftest.err
13671 rm -f conftest.er1
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13677 (eval $ac_try) 2>&5
13678 ac_status=$?
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); }; } &&
13681 { ac_try='test -s conftest$ac_exeext'
13682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13683 (eval $ac_try) 2>&5
13684 ac_status=$?
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); }; }; then
13687 ac_cv_c_ld_version_scripts="yes"
13688else
13689 echo "$as_me: failed program was:" >&5
13690sed 's/^/| /' conftest.$ac_ext >&5
13691
13692ac_cv_c_ld_version_scripts="no"
13693fi
13694rm -f conftest.err conftest.$ac_objext \
13695 conftest$ac_exeext conftest.$ac_ext
13696CFLAGS=$ac_wine_try_cflags_saved
13697 rm -f conftest.map
13698fi
13699echo "$as_me:$LINENO: result: $ac_cv_c_ld_version_scripts" >&5
13700echo "${ECHO_T}$ac_cv_c_ld_version_scripts" >&6
13701 if test "$ac_cv_c_ld_version_scripts" = "yes"
13702 then
13703 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
13704 fi
13705
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013706 echo "$as_me:$LINENO: checking whether the linker accepts --export-dynamic" >&5
13707echo $ECHO_N "checking whether the linker accepts --export-dynamic... $ECHO_C" >&6
13708if test "${ac_cv_c_export_dynamic+set}" = set; then
13709 echo $ECHO_N "(cached) $ECHO_C" >&6
13710else
13711 ac_wine_try_cflags_saved=$CFLAGS
13712CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
13713cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013714/* confdefs.h. */
13715_ACEOF
13716cat confdefs.h >>conftest.$ac_ext
13717cat >>conftest.$ac_ext <<_ACEOF
13718/* end confdefs.h. */
13719
13720int
13721main ()
13722{
13723
13724 ;
13725 return 0;
13726}
13727_ACEOF
13728rm -f conftest.$ac_objext conftest$ac_exeext
13729if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013730 (eval $ac_link) 2>conftest.er1
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013731 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013732 grep -v '^ *+' conftest.er1 >conftest.err
13733 rm -f conftest.er1
13734 cat conftest.err >&5
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13736 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13739 (eval $ac_try) 2>&5
13740 ac_status=$?
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); }; } &&
13743 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13745 (eval $ac_try) 2>&5
13746 ac_status=$?
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 (exit $ac_status); }; }; then
13749 ac_cv_c_export_dynamic="yes"
13750else
13751 echo "$as_me: failed program was:" >&5
13752sed 's/^/| /' conftest.$ac_ext >&5
13753
13754ac_cv_c_export_dynamic="no"
13755fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013756rm -f conftest.err conftest.$ac_objext \
13757 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013758CFLAGS=$ac_wine_try_cflags_saved
13759fi
13760echo "$as_me:$LINENO: result: $ac_cv_c_export_dynamic" >&5
13761echo "${ECHO_T}$ac_cv_c_export_dynamic" >&6
13762 if test "$ac_cv_c_export_dynamic" = "yes"
13763 then
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013764 LDEXECFLAGS="-Wl,--export-dynamic"
13765
Alexandre Julliardef2d04d2003-11-17 20:07:55 +000013766 fi
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013767
13768 case $host_cpu in
13769 *i[3456789]86*)
Alexandre Julliard5729f582005-06-17 10:22:46 +000013770 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x7bf00000" >&5
13771echo $ECHO_N "checking whether we can relocate the executable to 0x7bf00000... $ECHO_C" >&6
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013772if test "${ac_cv_ld_reloc_exec+set}" = set; then
13773 echo $ECHO_N "(cached) $ECHO_C" >&6
13774else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013775 ac_wine_try_cflags_saved=$CFLAGS
Alexandre Julliard5729f582005-06-17 10:22:46 +000013776CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013777cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013778/* confdefs.h. */
13779_ACEOF
13780cat confdefs.h >>conftest.$ac_ext
13781cat >>conftest.$ac_ext <<_ACEOF
13782/* end confdefs.h. */
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013783
13784int
13785main ()
13786{
13787
13788 ;
13789 return 0;
13790}
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013791_ACEOF
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013792rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013793if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013794 (eval $ac_link) 2>conftest.er1
13795 ac_status=$?
13796 grep -v '^ *+' conftest.er1 >conftest.err
13797 rm -f conftest.er1
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803 (eval $ac_try) 2>&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013804 ac_status=$?
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013806 (exit $ac_status); }; } &&
13807 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13810 ac_status=$?
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13813 ac_cv_ld_reloc_exec="yes"
13814else
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013815 echo "$as_me: failed program was:" >&5
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013816sed 's/^/| /' conftest.$ac_ext >&5
13817
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013818ac_cv_ld_reloc_exec="no"
13819fi
Alexandre Julliardb1abca82004-05-28 20:59:22 +000013820rm -f conftest.err conftest.$ac_objext \
13821 conftest$ac_exeext conftest.$ac_ext
13822CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013823fi
13824echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
13825echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
13826 if test "$ac_cv_ld_reloc_exec" = "yes"
13827 then
Alexandre Julliard5729f582005-06-17 10:22:46 +000013828 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliardc6d44be2003-11-22 00:08:26 +000013829 fi
13830 ;;
13831 esac
13832
Alexandre Julliard466ae142002-05-07 18:33:47 +000013833 else
13834 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013835echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
13836if test "${ac_cv_c_dll_unixware+set}" = set; then
13837 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000013838else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013839 ac_wine_try_cflags_saved=$CFLAGS
13840CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
13841cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000013842void myfunc() {}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013843_ACEOF
13844rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013845if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013846 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013847 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013848 grep -v '^ *+' conftest.er1 >conftest.err
13849 rm -f conftest.er1
13850 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013852 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13855 (eval $ac_try) 2>&5
13856 ac_status=$?
13857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13858 (exit $ac_status); }; } &&
13859 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013861 (eval $ac_try) 2>&5
13862 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013864 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000013865 ac_cv_c_dll_unixware="yes"
13866else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013867 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013868sed 's/^/| /' conftest.$ac_ext >&5
13869
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013870ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000013871fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013872rm -f conftest.err conftest.$ac_objext \
13873 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000013874CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013875fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013876echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013877echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000013878 if test "$ac_cv_c_dll_unixware" = "yes"
13879 then
13880 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013881 LDDLLFLAGS="-Wl,-G,-B,symbolic"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013882
13883 else
13884 echo "$as_me:$LINENO: checking whether we can build a Mach-O (Mac OS X/Darwin) dll" >&5
13885echo $ECHO_N "checking whether we can build a Mach-O (Mac OS X/Darwin) dll... $ECHO_C" >&6
13886if test "${ac_cv_c_dll_macho+set}" = set; then
13887 echo $ECHO_N "(cached) $ECHO_C" >&6
13888else
13889 ac_wine_try_cflags_saved=$CFLAGS
13890CFLAGS="$CFLAGS -bundle"
13891cat >conftest.$ac_ext <<_ACEOF
Warren Baird421e8b92004-09-22 19:17:55 +000013892void myfunc() {}
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013893_ACEOF
13894rm -f conftest.$ac_objext conftest$ac_exeext
13895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000013896 (eval $ac_link) 2>conftest.er1
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013897 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000013898 grep -v '^ *+' conftest.er1 >conftest.err
13899 rm -f conftest.er1
13900 cat conftest.err >&5
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13902 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000013903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13905 (eval $ac_try) 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; } &&
13909 { ac_try='test -s conftest$ac_exeext'
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13911 (eval $ac_try) 2>&5
13912 ac_status=$?
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 (exit $ac_status); }; }; then
13915 ac_cv_c_dll_macho="yes"
13916else
13917 echo "$as_me: failed program was:" >&5
13918sed 's/^/| /' conftest.$ac_ext >&5
13919
13920ac_cv_c_dll_macho="no"
13921fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000013922rm -f conftest.err conftest.$ac_objext \
13923 conftest$ac_exeext conftest.$ac_ext
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013924CFLAGS=$ac_wine_try_cflags_saved
13925fi
13926echo "$as_me:$LINENO: result: $ac_cv_c_dll_macho" >&5
13927echo "${ECHO_T}$ac_cv_c_dll_macho" >&6
13928 if test "$ac_cv_c_dll_macho" = "yes"
13929 then
13930 LIBEXT="dylib"
Emmanuel Maillard4fe448d2005-03-01 10:46:27 +000013931 LDDLLFLAGS="-bundle -flat_namespace -undefined suppress -read_only_relocs warning"
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013932 LDSHARED="\$(CC) -dynamiclib"
13933 CFLAGS="$CFLAGS -ffixed-r13 -no-cpp-precomp"
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000013934 STRIP="$STRIP -u -r"
Emmanuel Maillard46718f82004-07-22 19:48:41 +000013935 LDEXECFLAGS="-seg1addr 0x120000"
13936
13937 LDLIBWINEFLAGS="-seg1addr 0x140000"
13938
Emmanuel Maillard2300ce62004-08-19 01:20:45 +000013939 COREFOUNDATIONLIB="-framework CoreFoundation"
13940
13941 IOKITLIB="-framework IOKit"
13942
Pierre d'Herbemontf94121e2005-02-26 17:43:50 +000013943 IOKITLIB="$IOKITLIB $COREFOUNDATIONLIB"
Warren Baird421e8b92004-09-22 19:17:55 +000013944 else
13945 echo "$as_me:$LINENO: checking whether we can build an HP-UX dll" >&5
13946echo $ECHO_N "checking whether we can build an HP-UX dll... $ECHO_C" >&6
13947if test "${ac_cv_c_dll_hpux+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13949else
13950 ac_wine_try_cflags_saved=$CFLAGS
13951CFLAGS="$CFLAGS -shared"
13952cat >conftest.$ac_ext <<_ACEOF
13953void myfunc() {}
13954_ACEOF
13955rm -f conftest.$ac_objext conftest$ac_exeext
13956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13957 (eval $ac_link) 2>conftest.er1
13958 ac_status=$?
13959 grep -v '^ *+' conftest.er1 >conftest.err
13960 rm -f conftest.er1
13961 cat conftest.err >&5
13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13963 (exit $ac_status); } &&
13964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13966 (eval $ac_try) 2>&5
13967 ac_status=$?
13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13969 (exit $ac_status); }; } &&
13970 { ac_try='test -s conftest$ac_exeext'
13971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13972 (eval $ac_try) 2>&5
13973 ac_status=$?
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); }; }; then
13976 ac_cv_c_dll_hpux="yes"
13977else
13978 echo "$as_me: failed program was:" >&5
13979sed 's/^/| /' conftest.$ac_ext >&5
13980
13981ac_cv_c_dll_hpux="no"
13982fi
13983rm -f conftest.err conftest.$ac_objext \
13984 conftest$ac_exeext conftest.$ac_ext
13985CFLAGS=$ac_wine_try_cflags_saved
13986fi
13987echo "$as_me:$LINENO: result: $ac_cv_c_dll_hpux" >&5
13988echo "${ECHO_T}$ac_cv_c_dll_hpux" >&6
13989 if test "$ac_cv_c_dll_hpux" = "yes"
13990 then
13991 LIBEXT="sl"
Warren Baird1023fe32004-10-19 21:37:09 +000013992 DLLEXT=".sl"
13993 LDDLLFLAGS="-shared -fPIC"
Warren Baird421e8b92004-09-22 19:17:55 +000013994 LDSHARED="\$(CC) -shared"
13995 fi
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000013996 fi
Alexandre Julliard466ae142002-05-07 18:33:47 +000013997 fi
13998 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000013999 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014000
14001 CROSSTEST=""
14002
14003 if test "$cross_compiling" = "no"
14004 then
Kevin Koltzaud3444562004-04-15 00:01:05 +000014005 for ac_prog in i586-mingw32msvc-gcc i386-mingw32msvc-gcc i386-mingw32-gcc mingw-gcc
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014006do
14007 # Extract the first word of "$ac_prog", so it can be a program name with args.
14008set dummy $ac_prog; ac_word=$2
14009echo "$as_me:$LINENO: checking for $ac_word" >&5
14010echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14011if test "${ac_cv_prog_CROSSCC+set}" = set; then
14012 echo $ECHO_N "(cached) $ECHO_C" >&6
14013else
14014 if test -n "$CROSSCC"; then
14015 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
14016else
14017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14018for as_dir in $PATH
14019do
14020 IFS=$as_save_IFS
14021 test -z "$as_dir" && as_dir=.
14022 for ac_exec_ext in '' $ac_executable_extensions; do
14023 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14024 ac_cv_prog_CROSSCC="$ac_prog"
14025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14026 break 2
14027 fi
14028done
14029done
14030
14031fi
14032fi
14033CROSSCC=$ac_cv_prog_CROSSCC
14034if test -n "$CROSSCC"; then
14035 echo "$as_me:$LINENO: result: $CROSSCC" >&5
14036echo "${ECHO_T}$CROSSCC" >&6
14037else
14038 echo "$as_me:$LINENO: result: no" >&5
14039echo "${ECHO_T}no" >&6
14040fi
14041
14042 test -n "$CROSSCC" && break
14043done
14044test -n "$CROSSCC" || CROSSCC="false"
14045
Kevin Koltzaud3444562004-04-15 00:01:05 +000014046 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32msvc-dlltool i386-mingw32-dlltool mingw-dlltool
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014047do
14048 # Extract the first word of "$ac_prog", so it can be a program name with args.
14049set dummy $ac_prog; ac_word=$2
14050echo "$as_me:$LINENO: checking for $ac_word" >&5
14051echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14052if test "${ac_cv_prog_DLLTOOL+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14054else
14055 if test -n "$DLLTOOL"; then
14056 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
14057else
14058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14059for as_dir in $PATH
14060do
14061 IFS=$as_save_IFS
14062 test -z "$as_dir" && as_dir=.
14063 for ac_exec_ext in '' $ac_executable_extensions; do
14064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14065 ac_cv_prog_DLLTOOL="$ac_prog"
14066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14067 break 2
14068 fi
14069done
14070done
14071
14072fi
14073fi
14074DLLTOOL=$ac_cv_prog_DLLTOOL
14075if test -n "$DLLTOOL"; then
14076 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
14077echo "${ECHO_T}$DLLTOOL" >&6
14078else
14079 echo "$as_me:$LINENO: result: no" >&5
14080echo "${ECHO_T}no" >&6
14081fi
14082
14083 test -n "$DLLTOOL" && break
14084done
14085test -n "$DLLTOOL" || DLLTOOL="false"
14086
Kevin Koltzaud3444562004-04-15 00:01:05 +000014087 for ac_prog in i586-mingw32msvc-windres i386-mingw32msvc-windres i386-mingw32-windres mingw-windres
Alexandre Julliard21ee3292003-04-21 22:52:31 +000014088do
14089 # Extract the first word of "$ac_prog", so it can be a program name with args.
14090set dummy $ac_prog; ac_word=$2
14091echo "$as_me:$LINENO: checking for $ac_word" >&5
14092echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14093if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
14094 echo $ECHO_N "(cached) $ECHO_C" >&6
14095else
14096 if test -n "$CROSSWINDRES"; then
14097 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
14098else
14099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14100for as_dir in $PATH
14101do
14102 IFS=$as_save_IFS
14103 test -z "$as_dir" && as_dir=.
14104 for ac_exec_ext in '' $ac_executable_extensions; do
14105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14106 ac_cv_prog_CROSSWINDRES="$ac_prog"
14107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14108 break 2
14109 fi
14110done
14111done
14112
14113fi
14114fi
14115CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
14116if test -n "$CROSSWINDRES"; then
14117 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
14118echo "${ECHO_T}$CROSSWINDRES" >&6
14119else
14120 echo "$as_me:$LINENO: result: no" >&5
14121echo "${ECHO_T}no" >&6
14122fi
14123
14124 test -n "$CROSSWINDRES" && break
14125done
14126test -n "$CROSSWINDRES" || CROSSWINDRES="false"
14127
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000014128 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
14129 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000014130 ;;
14131esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014132
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000014133if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014134 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014135It is currently not possible to build Wine without shared library
14136(.so) support to allow transparent switch between .so and .dll files.
14137If you are using Linux, you will need a newer binutils.
14138" >&5
14139echo "$as_me: error: could not find a way to build shared libraries.
14140It is currently not possible to build Wine without shared library
14141(.so) support to allow transparent switch between .so and .dll files.
14142If you are using Linux, you will need a newer binutils.
14143" >&2;}
14144 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000014145fi
14146
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014147case $build_os in
14148 cygwin*|mingw32*)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000014149 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014150 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000014151 darwin*|macosx*)
14152 LDPATH="DYLD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$DYLD_LIBRARY_PATH\""
14153 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014154 *)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000014155 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014156 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014157esac
14158
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014159case $host_os in
14160 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000014161 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000014162
14163 SOCKETLIBS="-lws2_32"
14164
14165 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000014166esac
14167
14168case $host_os in
14169 linux*)
Vincent BĂ©ron4bf9d982004-10-14 00:30:59 +000014170 case $host_cpu in
14171 *i[3456789]86*) WINE_BINARIES="wine-glibc wine-kthread wine-pthread wine-preloader"
14172 ;;
14173 *) WINE_BINARIES="wine-glibc wine-kthread wine-pthread"
14174 ;;
14175 esac
Alexandre Julliarda628c132003-11-12 03:28:21 +000014176 MAIN_BINARY="wine-glibc"
Alexandre Julliard546839f2003-11-11 00:48:21 +000014177
Alexandre Julliard546839f2003-11-11 00:48:21 +000014178 ;;
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000014179 darwin*)
14180 WINE_BINARIES="wine-pthread"
14181
14182 MAIN_BINARY="wine-pthread"
14183
14184 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000014185 *)
14186 WINE_BINARIES="wine-kthread"
14187
14188 MAIN_BINARY="wine-kthread"
14189
14190 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000014191esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014192
14193
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014194if test "$LIBEXT" = "so" -o "$LIBEXT" = "dylib"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014195then
14196 # Extract the first word of "ldd", so it can be a program name with args.
14197set dummy ldd; ac_word=$2
14198echo "$as_me:$LINENO: checking for $ac_word" >&5
14199echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14200if test "${ac_cv_path_LDD+set}" = set; then
14201 echo $ECHO_N "(cached) $ECHO_C" >&6
14202else
14203 case $LDD in
14204 [\\/]* | ?:[\\/]*)
14205 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
14206 ;;
14207 *)
14208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014209as_dummy="/sbin:/usr/sbin:$PATH"
14210for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014211do
14212 IFS=$as_save_IFS
14213 test -z "$as_dir" && as_dir=.
14214 for ac_exec_ext in '' $ac_executable_extensions; do
14215 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14216 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
14217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14218 break 2
14219 fi
14220done
14221done
14222
14223 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
14224 ;;
14225esac
14226fi
14227LDD=$ac_cv_path_LDD
14228
14229if test -n "$LDD"; then
14230 echo "$as_me:$LINENO: result: $LDD" >&5
14231echo "${ECHO_T}$LDD" >&6
14232else
14233 echo "$as_me:$LINENO: result: no" >&5
14234echo "${ECHO_T}no" >&6
14235fi
14236
14237
14238echo "$as_me:$LINENO: checking for -lX11 soname" >&5
14239echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
14240if test "${ac_cv_lib_soname_X11+set}" = set; then
14241 echo $ECHO_N "(cached) $ECHO_C" >&6
14242else
14243 ac_get_soname_save_LIBS=$LIBS
14244LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
14245 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014246/* confdefs.h. */
14247_ACEOF
14248cat confdefs.h >>conftest.$ac_ext
14249cat >>conftest.$ac_ext <<_ACEOF
14250/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014251
14252/* Override any gcc2 internal prototype to avoid an error. */
14253#ifdef __cplusplus
14254extern "C"
14255#endif
14256/* We use char because int might match the return type of a gcc2
14257 builtin and then its argument prototype would still apply. */
14258char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014259int
14260main ()
14261{
14262XCreateWindow ();
14263 ;
14264 return 0;
14265}
14266_ACEOF
14267rm -f conftest.$ac_objext conftest$ac_exeext
14268if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014269 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014270 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014271 grep -v '^ *+' conftest.er1 >conftest.err
14272 rm -f conftest.er1
14273 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14275 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14278 (eval $ac_try) 2>&5
14279 ac_status=$?
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); }; } &&
14282 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14284 (eval $ac_try) 2>&5
14285 ac_status=$?
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014288 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 +000014289 if test "x$ac_cv_lib_soname_X11" = "x"
14290 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014291 ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014292 fi
14293else
14294 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014295sed 's/^/| /' conftest.$ac_ext >&5
14296
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014297ac_cv_lib_soname_X11="libX11.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014298fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014299rm -f conftest.err conftest.$ac_objext \
14300 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014301 LIBS=$ac_get_soname_save_LIBS
14302fi
14303echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
14304echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
14305if test "x$ac_cv_lib_soname_X11" != xNONE
14306then
14307cat >>confdefs.h <<_ACEOF
14308#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
14309_ACEOF
14310fi
14311
14312echo "$as_me:$LINENO: checking for -lXext soname" >&5
14313echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
14314if test "${ac_cv_lib_soname_Xext+set}" = set; then
14315 echo $ECHO_N "(cached) $ECHO_C" >&6
14316else
14317 ac_get_soname_save_LIBS=$LIBS
14318LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
14319 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014320/* confdefs.h. */
14321_ACEOF
14322cat confdefs.h >>conftest.$ac_ext
14323cat >>conftest.$ac_ext <<_ACEOF
14324/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014325
14326/* Override any gcc2 internal prototype to avoid an error. */
14327#ifdef __cplusplus
14328extern "C"
14329#endif
14330/* We use char because int might match the return type of a gcc2
14331 builtin and then its argument prototype would still apply. */
14332char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014333int
14334main ()
14335{
14336XextCreateExtension ();
14337 ;
14338 return 0;
14339}
14340_ACEOF
14341rm -f conftest.$ac_objext conftest$ac_exeext
14342if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014343 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014344 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014345 grep -v '^ *+' conftest.er1 >conftest.err
14346 rm -f conftest.er1
14347 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14352 (eval $ac_try) 2>&5
14353 ac_status=$?
14354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14355 (exit $ac_status); }; } &&
14356 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14358 (eval $ac_try) 2>&5
14359 ac_status=$?
14360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014362 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 +000014363 if test "x$ac_cv_lib_soname_Xext" = "x"
14364 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014365 ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014366 fi
14367else
14368 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014369sed 's/^/| /' conftest.$ac_ext >&5
14370
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014371ac_cv_lib_soname_Xext="libXext.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014372fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014373rm -f conftest.err conftest.$ac_objext \
14374 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014375 LIBS=$ac_get_soname_save_LIBS
14376fi
14377echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
14378echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
14379if test "x$ac_cv_lib_soname_Xext" != xNONE
14380then
14381cat >>confdefs.h <<_ACEOF
14382#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
14383_ACEOF
14384fi
14385
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014386echo "$as_me:$LINENO: checking for -lXi soname" >&5
14387echo $ECHO_N "checking for -lXi soname... $ECHO_C" >&6
14388if test "${ac_cv_lib_soname_Xi+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14390else
14391 ac_get_soname_save_LIBS=$LIBS
14392LIBS="-lXi $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14393 cat >conftest.$ac_ext <<_ACEOF
14394/* confdefs.h. */
14395_ACEOF
14396cat confdefs.h >>conftest.$ac_ext
14397cat >>conftest.$ac_ext <<_ACEOF
14398/* end confdefs.h. */
14399
14400/* Override any gcc2 internal prototype to avoid an error. */
14401#ifdef __cplusplus
14402extern "C"
14403#endif
14404/* We use char because int might match the return type of a gcc2
14405 builtin and then its argument prototype would still apply. */
14406char XOpenDevice ();
14407int
14408main ()
14409{
14410XOpenDevice ();
14411 ;
14412 return 0;
14413}
14414_ACEOF
14415rm -f conftest.$ac_objext conftest$ac_exeext
14416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14417 (eval $ac_link) 2>conftest.er1
14418 ac_status=$?
14419 grep -v '^ *+' conftest.er1 >conftest.err
14420 rm -f conftest.er1
14421 cat conftest.err >&5
14422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423 (exit $ac_status); } &&
14424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14426 (eval $ac_try) 2>&5
14427 ac_status=$?
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); }; } &&
14430 { ac_try='test -s conftest$ac_exeext'
14431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14432 (eval $ac_try) 2>&5
14433 ac_status=$?
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014436 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 +000014437 if test "x$ac_cv_lib_soname_Xi" = "x"
14438 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014439 ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014440 fi
14441else
14442 echo "$as_me: failed program was:" >&5
14443sed 's/^/| /' conftest.$ac_ext >&5
14444
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014445ac_cv_lib_soname_Xi="libXi.$LIBEXT"
Aric Stewart2eebf3c2004-01-09 00:03:00 +000014446fi
14447rm -f conftest.err conftest.$ac_objext \
14448 conftest$ac_exeext conftest.$ac_ext
14449 LIBS=$ac_get_soname_save_LIBS
14450fi
14451echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xi" >&5
14452echo "${ECHO_T}$ac_cv_lib_soname_Xi" >&6
14453if test "x$ac_cv_lib_soname_Xi" != xNONE
14454then
14455cat >>confdefs.h <<_ACEOF
14456#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
14457_ACEOF
14458fi
14459
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014460echo "$as_me:$LINENO: checking for -lXrender soname" >&5
14461echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
14462if test "${ac_cv_lib_soname_Xrender+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14464else
14465 ac_get_soname_save_LIBS=$LIBS
14466LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14467 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014468/* confdefs.h. */
14469_ACEOF
14470cat confdefs.h >>conftest.$ac_ext
14471cat >>conftest.$ac_ext <<_ACEOF
14472/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014473
14474/* Override any gcc2 internal prototype to avoid an error. */
14475#ifdef __cplusplus
14476extern "C"
14477#endif
14478/* We use char because int might match the return type of a gcc2
14479 builtin and then its argument prototype would still apply. */
14480char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014481int
14482main ()
14483{
14484XRenderQueryExtension ();
14485 ;
14486 return 0;
14487}
14488_ACEOF
14489rm -f conftest.$ac_objext conftest$ac_exeext
14490if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014491 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014492 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014493 grep -v '^ *+' conftest.er1 >conftest.err
14494 rm -f conftest.er1
14495 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14500 (eval $ac_try) 2>&5
14501 ac_status=$?
14502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14503 (exit $ac_status); }; } &&
14504 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14506 (eval $ac_try) 2>&5
14507 ac_status=$?
14508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14509 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014510 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 +000014511 if test "x$ac_cv_lib_soname_Xrender" = "x"
14512 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014513 ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014514 fi
14515else
14516 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014517sed 's/^/| /' conftest.$ac_ext >&5
14518
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014519ac_cv_lib_soname_Xrender="libXrender.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014520fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014521rm -f conftest.err conftest.$ac_objext \
14522 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014523 LIBS=$ac_get_soname_save_LIBS
14524fi
14525echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
14526echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
14527if test "x$ac_cv_lib_soname_Xrender" != xNONE
14528then
14529cat >>confdefs.h <<_ACEOF
14530#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
14531_ACEOF
14532fi
14533
Mike McCormackc7c9f932004-04-07 03:57:35 +000014534echo "$as_me:$LINENO: checking for -lXrandr soname" >&5
14535echo $ECHO_N "checking for -lXrandr soname... $ECHO_C" >&6
14536if test "${ac_cv_lib_soname_Xrandr+set}" = set; then
14537 echo $ECHO_N "(cached) $ECHO_C" >&6
14538else
14539 ac_get_soname_save_LIBS=$LIBS
14540LIBS="-lXrandr $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
14541 cat >conftest.$ac_ext <<_ACEOF
14542/* confdefs.h. */
14543_ACEOF
14544cat confdefs.h >>conftest.$ac_ext
14545cat >>conftest.$ac_ext <<_ACEOF
14546/* end confdefs.h. */
14547
14548/* Override any gcc2 internal prototype to avoid an error. */
14549#ifdef __cplusplus
14550extern "C"
14551#endif
14552/* We use char because int might match the return type of a gcc2
14553 builtin and then its argument prototype would still apply. */
14554char XRRQueryExtension ();
14555int
14556main ()
14557{
14558XRRQueryExtension ();
14559 ;
14560 return 0;
14561}
14562_ACEOF
14563rm -f conftest.$ac_objext conftest$ac_exeext
14564if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14565 (eval $ac_link) 2>conftest.er1
14566 ac_status=$?
14567 grep -v '^ *+' conftest.er1 >conftest.err
14568 rm -f conftest.er1
14569 cat conftest.err >&5
14570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14571 (exit $ac_status); } &&
14572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14574 (eval $ac_try) 2>&5
14575 ac_status=$?
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); }; } &&
14578 { ac_try='test -s conftest$ac_exeext'
14579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14580 (eval $ac_try) 2>&5
14581 ac_status=$?
14582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14583 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014584 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 +000014585 if test "x$ac_cv_lib_soname_Xrandr" = "x"
14586 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014587 ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000014588 fi
14589else
14590 echo "$as_me: failed program was:" >&5
14591sed 's/^/| /' conftest.$ac_ext >&5
14592
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014593ac_cv_lib_soname_Xrandr="libXrandr.$LIBEXT"
Mike McCormackc7c9f932004-04-07 03:57:35 +000014594fi
14595rm -f conftest.err conftest.$ac_objext \
14596 conftest$ac_exeext conftest.$ac_ext
14597 LIBS=$ac_get_soname_save_LIBS
14598fi
14599echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrandr" >&5
14600echo "${ECHO_T}$ac_cv_lib_soname_Xrandr" >&6
14601if test "x$ac_cv_lib_soname_Xrandr" != xNONE
14602then
14603cat >>confdefs.h <<_ACEOF
14604#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
14605_ACEOF
14606fi
14607
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014608echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
14609echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
14610if test "${ac_cv_lib_soname_freetype+set}" = set; then
14611 echo $ECHO_N "(cached) $ECHO_C" >&6
14612else
14613 ac_get_soname_save_LIBS=$LIBS
14614LIBS="-lfreetype $X_LIBS $LIBS"
14615 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014616/* confdefs.h. */
14617_ACEOF
14618cat confdefs.h >>conftest.$ac_ext
14619cat >>conftest.$ac_ext <<_ACEOF
14620/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014621
14622/* Override any gcc2 internal prototype to avoid an error. */
14623#ifdef __cplusplus
14624extern "C"
14625#endif
14626/* We use char because int might match the return type of a gcc2
14627 builtin and then its argument prototype would still apply. */
14628char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014629int
14630main ()
14631{
14632FT_Init_FreeType ();
14633 ;
14634 return 0;
14635}
14636_ACEOF
14637rm -f conftest.$ac_objext conftest$ac_exeext
14638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014639 (eval $ac_link) 2>conftest.er1
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014640 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014641 grep -v '^ *+' conftest.er1 >conftest.err
14642 rm -f conftest.er1
14643 cat conftest.err >&5
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14648 (eval $ac_try) 2>&5
14649 ac_status=$?
14650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651 (exit $ac_status); }; } &&
14652 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14654 (eval $ac_try) 2>&5
14655 ac_status=$?
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014658 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 +000014659 if test "x$ac_cv_lib_soname_freetype" = "x"
14660 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014661 ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014662 fi
14663else
14664 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014665sed 's/^/| /' conftest.$ac_ext >&5
14666
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014667ac_cv_lib_soname_freetype="libfreetype.$LIBEXT"
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014668fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014669rm -f conftest.err conftest.$ac_objext \
14670 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000014671 LIBS=$ac_get_soname_save_LIBS
14672fi
14673echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
14674echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
14675if test "x$ac_cv_lib_soname_freetype" != xNONE
14676then
14677cat >>confdefs.h <<_ACEOF
14678#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
14679_ACEOF
14680fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000014681
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014682echo "$as_me:$LINENO: checking for -lGL soname" >&5
14683echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
14684if test "${ac_cv_lib_soname_GL+set}" = set; then
14685 echo $ECHO_N "(cached) $ECHO_C" >&6
14686else
14687 ac_get_soname_save_LIBS=$LIBS
14688LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
14689 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014690/* confdefs.h. */
14691_ACEOF
14692cat confdefs.h >>conftest.$ac_ext
14693cat >>conftest.$ac_ext <<_ACEOF
14694/* end confdefs.h. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014695
14696/* Override any gcc2 internal prototype to avoid an error. */
14697#ifdef __cplusplus
14698extern "C"
14699#endif
14700/* We use char because int might match the return type of a gcc2
14701 builtin and then its argument prototype would still apply. */
14702char glXQueryExtension ();
14703int
14704main ()
14705{
14706glXQueryExtension ();
14707 ;
14708 return 0;
14709}
14710_ACEOF
14711rm -f conftest.$ac_objext conftest$ac_exeext
14712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014713 (eval $ac_link) 2>conftest.er1
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014714 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014715 grep -v '^ *+' conftest.er1 >conftest.err
14716 rm -f conftest.er1
14717 cat conftest.err >&5
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14719 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14722 (eval $ac_try) 2>&5
14723 ac_status=$?
14724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); }; } &&
14726 { ac_try='test -s conftest$ac_exeext'
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14728 (eval $ac_try) 2>&5
14729 ac_status=$?
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014732 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 +000014733 if test "x$ac_cv_lib_soname_GL" = "x"
14734 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014735 ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014736 fi
14737else
14738 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014739sed 's/^/| /' conftest.$ac_ext >&5
14740
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014741ac_cv_lib_soname_GL="libGL.$LIBEXT"
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014742fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014743rm -f conftest.err conftest.$ac_objext \
14744 conftest$ac_exeext conftest.$ac_ext
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000014745 LIBS=$ac_get_soname_save_LIBS
14746fi
14747echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
14748echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
14749if test "x$ac_cv_lib_soname_GL" != xNONE
14750then
14751cat >>confdefs.h <<_ACEOF
14752#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
14753_ACEOF
14754fi
14755
Christian Costaeac96b52004-07-30 18:54:32 +000014756echo "$as_me:$LINENO: checking for -ltxc_dxtn soname" >&5
14757echo $ECHO_N "checking for -ltxc_dxtn soname... $ECHO_C" >&6
14758if test "${ac_cv_lib_soname_txc_dxtn+set}" = set; then
14759 echo $ECHO_N "(cached) $ECHO_C" >&6
14760else
14761 ac_get_soname_save_LIBS=$LIBS
14762LIBS="-ltxc_dxtn $LIBS"
14763 cat >conftest.$ac_ext <<_ACEOF
14764/* confdefs.h. */
14765_ACEOF
14766cat confdefs.h >>conftest.$ac_ext
14767cat >>conftest.$ac_ext <<_ACEOF
14768/* end confdefs.h. */
14769
14770/* Override any gcc2 internal prototype to avoid an error. */
14771#ifdef __cplusplus
14772extern "C"
14773#endif
14774/* We use char because int might match the return type of a gcc2
14775 builtin and then its argument prototype would still apply. */
14776char fetch_2d_texel_rgba_dxt1 ();
14777int
14778main ()
14779{
14780fetch_2d_texel_rgba_dxt1 ();
14781 ;
14782 return 0;
14783}
14784_ACEOF
14785rm -f conftest.$ac_objext conftest$ac_exeext
14786if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14787 (eval $ac_link) 2>conftest.er1
14788 ac_status=$?
14789 grep -v '^ *+' conftest.er1 >conftest.err
14790 rm -f conftest.er1
14791 cat conftest.err >&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); } &&
14794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14796 (eval $ac_try) 2>&5
14797 ac_status=$?
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; } &&
14800 { ac_try='test -s conftest$ac_exeext'
14801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14802 (eval $ac_try) 2>&5
14803 ac_status=$?
14804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14805 (exit $ac_status); }; }; then
14806 ac_cv_lib_soname_txc_dxtn=`$ac_cv_path_LDD conftest$ac_exeext | grep libtxc_dxtn\\.$LIBEXT | sed "s/^.*\(libtxc_dxtn\.$LIBEXT[^ ]*\).*$/\1/"`
14807 if test "x$ac_cv_lib_soname_txc_dxtn" = "x"
14808 then
14809 ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14810 fi
14811else
14812 echo "$as_me: failed program was:" >&5
14813sed 's/^/| /' conftest.$ac_ext >&5
14814
14815ac_cv_lib_soname_txc_dxtn="libtxc_dxtn.$LIBEXT"
14816fi
14817rm -f conftest.err conftest.$ac_objext \
14818 conftest$ac_exeext conftest.$ac_ext
14819 LIBS=$ac_get_soname_save_LIBS
14820fi
14821echo "$as_me:$LINENO: result: $ac_cv_lib_soname_txc_dxtn" >&5
14822echo "${ECHO_T}$ac_cv_lib_soname_txc_dxtn" >&6
14823if test "x$ac_cv_lib_soname_txc_dxtn" != xNONE
14824then
14825cat >>confdefs.h <<_ACEOF
14826#define SONAME_LIBTXC_DXTN "$ac_cv_lib_soname_txc_dxtn"
14827_ACEOF
14828fi
14829
Marcus Meissnerf061f762002-11-12 02:22:24 +000014830echo "$as_me:$LINENO: checking for -lcups soname" >&5
14831echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
14832if test "${ac_cv_lib_soname_cups+set}" = set; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14834else
14835 ac_get_soname_save_LIBS=$LIBS
14836LIBS="-lcups $LIBS"
14837 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014838/* confdefs.h. */
14839_ACEOF
14840cat confdefs.h >>conftest.$ac_ext
14841cat >>conftest.$ac_ext <<_ACEOF
14842/* end confdefs.h. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000014843
14844/* Override any gcc2 internal prototype to avoid an error. */
14845#ifdef __cplusplus
14846extern "C"
14847#endif
14848/* We use char because int might match the return type of a gcc2
14849 builtin and then its argument prototype would still apply. */
14850char cupsGetDefault ();
14851int
14852main ()
14853{
14854cupsGetDefault ();
14855 ;
14856 return 0;
14857}
14858_ACEOF
14859rm -f conftest.$ac_objext conftest$ac_exeext
14860if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014861 (eval $ac_link) 2>conftest.er1
Marcus Meissnerf061f762002-11-12 02:22:24 +000014862 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014863 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1
14865 cat conftest.err >&5
Marcus Meissnerf061f762002-11-12 02:22:24 +000014866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14870 (eval $ac_try) 2>&5
14871 ac_status=$?
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); }; } &&
14874 { ac_try='test -s conftest$ac_exeext'
Marcus Meissnerf061f762002-11-12 02:22:24 +000014875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14876 (eval $ac_try) 2>&5
14877 ac_status=$?
14878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014880 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 +000014881 if test "x$ac_cv_lib_soname_cups" = "x"
14882 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014883 ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000014884 fi
14885else
14886 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014887sed 's/^/| /' conftest.$ac_ext >&5
14888
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014889ac_cv_lib_soname_cups="libcups.$LIBEXT"
Marcus Meissnerf061f762002-11-12 02:22:24 +000014890fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014891rm -f conftest.err conftest.$ac_objext \
14892 conftest$ac_exeext conftest.$ac_ext
Marcus Meissnerf061f762002-11-12 02:22:24 +000014893 LIBS=$ac_get_soname_save_LIBS
14894fi
14895echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
14896echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
14897if test "x$ac_cv_lib_soname_cups" != xNONE
14898then
14899cat >>confdefs.h <<_ACEOF
14900#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
14901_ACEOF
14902fi
Chris Morgan4691b182002-12-13 02:26:18 +000014903
14904echo "$as_me:$LINENO: checking for -ljack soname" >&5
14905echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
14906if test "${ac_cv_lib_soname_jack+set}" = set; then
14907 echo $ECHO_N "(cached) $ECHO_C" >&6
14908else
14909 ac_get_soname_save_LIBS=$LIBS
14910LIBS="-ljack $LIBS"
14911 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014912/* confdefs.h. */
14913_ACEOF
14914cat confdefs.h >>conftest.$ac_ext
14915cat >>conftest.$ac_ext <<_ACEOF
14916/* end confdefs.h. */
Chris Morgan4691b182002-12-13 02:26:18 +000014917
14918/* Override any gcc2 internal prototype to avoid an error. */
14919#ifdef __cplusplus
14920extern "C"
14921#endif
14922/* We use char because int might match the return type of a gcc2
14923 builtin and then its argument prototype would still apply. */
14924char jack_client_new ();
14925int
14926main ()
14927{
14928jack_client_new ();
14929 ;
14930 return 0;
14931}
14932_ACEOF
14933rm -f conftest.$ac_objext conftest$ac_exeext
14934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000014935 (eval $ac_link) 2>conftest.er1
Chris Morgan4691b182002-12-13 02:26:18 +000014936 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000014937 grep -v '^ *+' conftest.er1 >conftest.err
14938 rm -f conftest.er1
14939 cat conftest.err >&5
Chris Morgan4691b182002-12-13 02:26:18 +000014940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14941 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000014942 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14944 (eval $ac_try) 2>&5
14945 ac_status=$?
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); }; } &&
14948 { ac_try='test -s conftest$ac_exeext'
Chris Morgan4691b182002-12-13 02:26:18 +000014949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14950 (eval $ac_try) 2>&5
14951 ac_status=$?
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014954 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 +000014955 if test "x$ac_cv_lib_soname_jack" = "x"
14956 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014957 ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000014958 fi
14959else
14960 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014961sed 's/^/| /' conftest.$ac_ext >&5
14962
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000014963ac_cv_lib_soname_jack="libjack.$LIBEXT"
Chris Morgan4691b182002-12-13 02:26:18 +000014964fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000014965rm -f conftest.err conftest.$ac_objext \
14966 conftest$ac_exeext conftest.$ac_ext
Chris Morgan4691b182002-12-13 02:26:18 +000014967 LIBS=$ac_get_soname_save_LIBS
14968fi
14969echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
14970echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
14971if test "x$ac_cv_lib_soname_jack" != xNONE
14972then
14973cat >>confdefs.h <<_ACEOF
14974#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
14975_ACEOF
14976fi
David Hammerton852c7ae2003-06-20 23:26:56 +000014977
Huw Davies6e128072003-11-09 00:30:13 +000014978echo "$as_me:$LINENO: checking for -lfontconfig soname" >&5
14979echo $ECHO_N "checking for -lfontconfig soname... $ECHO_C" >&6
14980if test "${ac_cv_lib_soname_fontconfig+set}" = set; then
14981 echo $ECHO_N "(cached) $ECHO_C" >&6
14982else
14983 ac_get_soname_save_LIBS=$LIBS
14984LIBS="-lfontconfig $LIBS"
14985 cat >conftest.$ac_ext <<_ACEOF
Huw Davies6e128072003-11-09 00:30:13 +000014986/* confdefs.h. */
14987_ACEOF
14988cat confdefs.h >>conftest.$ac_ext
14989cat >>conftest.$ac_ext <<_ACEOF
14990/* end confdefs.h. */
14991
14992/* Override any gcc2 internal prototype to avoid an error. */
14993#ifdef __cplusplus
14994extern "C"
14995#endif
14996/* We use char because int might match the return type of a gcc2
14997 builtin and then its argument prototype would still apply. */
14998char FcInit ();
14999int
15000main ()
15001{
15002FcInit ();
15003 ;
15004 return 0;
15005}
15006_ACEOF
15007rm -f conftest.$ac_objext conftest$ac_exeext
15008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015009 (eval $ac_link) 2>conftest.er1
Huw Davies6e128072003-11-09 00:30:13 +000015010 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015011 grep -v '^ *+' conftest.er1 >conftest.err
15012 rm -f conftest.er1
15013 cat conftest.err >&5
Huw Davies6e128072003-11-09 00:30:13 +000015014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15018 (eval $ac_try) 2>&5
15019 ac_status=$?
15020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021 (exit $ac_status); }; } &&
15022 { ac_try='test -s conftest$ac_exeext'
Huw Davies6e128072003-11-09 00:30:13 +000015023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15024 (eval $ac_try) 2>&5
15025 ac_status=$?
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015028 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 +000015029 if test "x$ac_cv_lib_soname_fontconfig" = "x"
15030 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015031 ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000015032 fi
15033else
15034 echo "$as_me: failed program was:" >&5
15035sed 's/^/| /' conftest.$ac_ext >&5
15036
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015037ac_cv_lib_soname_fontconfig="libfontconfig.$LIBEXT"
Huw Davies6e128072003-11-09 00:30:13 +000015038fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015039rm -f conftest.err conftest.$ac_objext \
15040 conftest$ac_exeext conftest.$ac_ext
Huw Davies6e128072003-11-09 00:30:13 +000015041 LIBS=$ac_get_soname_save_LIBS
15042fi
15043echo "$as_me:$LINENO: result: $ac_cv_lib_soname_fontconfig" >&5
15044echo "${ECHO_T}$ac_cv_lib_soname_fontconfig" >&6
15045if test "x$ac_cv_lib_soname_fontconfig" != xNONE
15046then
15047cat >>confdefs.h <<_ACEOF
15048#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
15049_ACEOF
Alexandre Julliard79994692003-11-13 20:58:55 +000015050fi
Huw Davies6e128072003-11-09 00:30:13 +000015051
David Hammerton852c7ae2003-06-20 23:26:56 +000015052echo "$as_me:$LINENO: checking for -lssl soname" >&5
15053echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
15054if test "${ac_cv_lib_soname_ssl+set}" = set; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15056else
15057 ac_get_soname_save_LIBS=$LIBS
15058LIBS="-lssl $LIBS"
15059 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000015060/* confdefs.h. */
15061_ACEOF
15062cat confdefs.h >>conftest.$ac_ext
15063cat >>conftest.$ac_ext <<_ACEOF
15064/* end confdefs.h. */
15065
15066/* Override any gcc2 internal prototype to avoid an error. */
15067#ifdef __cplusplus
15068extern "C"
15069#endif
15070/* We use char because int might match the return type of a gcc2
15071 builtin and then its argument prototype would still apply. */
15072char SSL_library_init ();
15073int
15074main ()
15075{
15076SSL_library_init ();
15077 ;
15078 return 0;
15079}
15080_ACEOF
15081rm -f conftest.$ac_objext conftest$ac_exeext
15082if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015083 (eval $ac_link) 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000015084 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000015088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15092 (eval $ac_try) 2>&5
15093 ac_status=$?
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); }; } &&
15096 { ac_try='test -s conftest$ac_exeext'
David Hammerton852c7ae2003-06-20 23:26:56 +000015097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15098 (eval $ac_try) 2>&5
15099 ac_status=$?
15100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15101 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015102 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 +000015103 if test "x$ac_cv_lib_soname_ssl" = "x"
15104 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015105 ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015106 fi
15107else
15108 echo "$as_me: failed program was:" >&5
15109sed 's/^/| /' conftest.$ac_ext >&5
15110
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015111ac_cv_lib_soname_ssl="libssl.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015112fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015113rm -f conftest.err conftest.$ac_objext \
15114 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000015115 LIBS=$ac_get_soname_save_LIBS
15116fi
15117echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
15118echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
15119if test "x$ac_cv_lib_soname_ssl" != xNONE
15120then
15121cat >>confdefs.h <<_ACEOF
15122#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
15123_ACEOF
15124fi
15125
15126echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
15127echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
15128if test "${ac_cv_lib_soname_crypto+set}" = set; then
15129 echo $ECHO_N "(cached) $ECHO_C" >&6
15130else
15131 ac_get_soname_save_LIBS=$LIBS
15132LIBS="-lcrypto $LIBS"
15133 cat >conftest.$ac_ext <<_ACEOF
David Hammerton852c7ae2003-06-20 23:26:56 +000015134/* confdefs.h. */
15135_ACEOF
15136cat confdefs.h >>conftest.$ac_ext
15137cat >>conftest.$ac_ext <<_ACEOF
15138/* end confdefs.h. */
15139
15140/* Override any gcc2 internal prototype to avoid an error. */
15141#ifdef __cplusplus
15142extern "C"
15143#endif
15144/* We use char because int might match the return type of a gcc2
15145 builtin and then its argument prototype would still apply. */
15146char BIO_new_socket ();
15147int
15148main ()
15149{
15150BIO_new_socket ();
15151 ;
15152 return 0;
15153}
15154_ACEOF
15155rm -f conftest.$ac_objext conftest$ac_exeext
15156if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015157 (eval $ac_link) 2>conftest.er1
David Hammerton852c7ae2003-06-20 23:26:56 +000015158 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015159 grep -v '^ *+' conftest.er1 >conftest.err
15160 rm -f conftest.er1
15161 cat conftest.err >&5
David Hammerton852c7ae2003-06-20 23:26:56 +000015162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15166 (eval $ac_try) 2>&5
15167 ac_status=$?
15168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15169 (exit $ac_status); }; } &&
15170 { ac_try='test -s conftest$ac_exeext'
David Hammerton852c7ae2003-06-20 23:26:56 +000015171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15172 (eval $ac_try) 2>&5
15173 ac_status=$?
15174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15175 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015176 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 +000015177 if test "x$ac_cv_lib_soname_crypto" = "x"
15178 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015179 ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015180 fi
15181else
15182 echo "$as_me: failed program was:" >&5
15183sed 's/^/| /' conftest.$ac_ext >&5
15184
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015185ac_cv_lib_soname_crypto="libcrypto.$LIBEXT"
David Hammerton852c7ae2003-06-20 23:26:56 +000015186fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015187rm -f conftest.err conftest.$ac_objext \
15188 conftest$ac_exeext conftest.$ac_ext
David Hammerton852c7ae2003-06-20 23:26:56 +000015189 LIBS=$ac_get_soname_save_LIBS
15190fi
15191echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
15192echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
15193if test "x$ac_cv_lib_soname_crypto" != xNONE
15194then
15195cat >>confdefs.h <<_ACEOF
15196#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
15197_ACEOF
15198fi
Mike McCormack9557d1b2003-08-20 04:19:01 +000015199
15200echo "$as_me:$LINENO: checking for -lncurses soname" >&5
15201echo $ECHO_N "checking for -lncurses soname... $ECHO_C" >&6
15202if test "${ac_cv_lib_soname_ncurses+set}" = set; then
15203 echo $ECHO_N "(cached) $ECHO_C" >&6
15204else
15205 ac_get_soname_save_LIBS=$LIBS
15206LIBS="-lncurses $LIBS"
15207 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000015208/* confdefs.h. */
15209_ACEOF
15210cat confdefs.h >>conftest.$ac_ext
15211cat >>conftest.$ac_ext <<_ACEOF
15212/* end confdefs.h. */
15213
15214/* Override any gcc2 internal prototype to avoid an error. */
15215#ifdef __cplusplus
15216extern "C"
15217#endif
15218/* We use char because int might match the return type of a gcc2
15219 builtin and then its argument prototype would still apply. */
15220char waddch ();
15221int
15222main ()
15223{
15224waddch ();
15225 ;
15226 return 0;
15227}
15228_ACEOF
15229rm -f conftest.$ac_objext conftest$ac_exeext
15230if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015231 (eval $ac_link) 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000015232 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015233 grep -v '^ *+' conftest.er1 >conftest.err
15234 rm -f conftest.er1
15235 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000015236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15237 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15240 (eval $ac_try) 2>&5
15241 ac_status=$?
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); }; } &&
15244 { ac_try='test -s conftest$ac_exeext'
Mike McCormack9557d1b2003-08-20 04:19:01 +000015245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15246 (eval $ac_try) 2>&5
15247 ac_status=$?
15248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15249 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015250 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 +000015251 if test "x$ac_cv_lib_soname_ncurses" = "x"
15252 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015253 ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015254 fi
15255else
15256 echo "$as_me: failed program was:" >&5
15257sed 's/^/| /' conftest.$ac_ext >&5
15258
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015259ac_cv_lib_soname_ncurses="libncurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015260fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015261rm -f conftest.err conftest.$ac_objext \
15262 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000015263 LIBS=$ac_get_soname_save_LIBS
15264fi
15265echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ncurses" >&5
15266echo "${ECHO_T}$ac_cv_lib_soname_ncurses" >&6
15267if test "x$ac_cv_lib_soname_ncurses" != xNONE
15268then
15269cat >>confdefs.h <<_ACEOF
15270#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
15271_ACEOF
15272fi
15273
15274echo "$as_me:$LINENO: checking for -lcurses soname" >&5
15275echo $ECHO_N "checking for -lcurses soname... $ECHO_C" >&6
15276if test "${ac_cv_lib_soname_curses+set}" = set; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
15278else
15279 ac_get_soname_save_LIBS=$LIBS
15280LIBS="-lcurses $LIBS"
15281 cat >conftest.$ac_ext <<_ACEOF
Mike McCormack9557d1b2003-08-20 04:19:01 +000015282/* confdefs.h. */
15283_ACEOF
15284cat confdefs.h >>conftest.$ac_ext
15285cat >>conftest.$ac_ext <<_ACEOF
15286/* end confdefs.h. */
15287
15288/* Override any gcc2 internal prototype to avoid an error. */
15289#ifdef __cplusplus
15290extern "C"
15291#endif
15292/* We use char because int might match the return type of a gcc2
15293 builtin and then its argument prototype would still apply. */
15294char waddch ();
15295int
15296main ()
15297{
15298waddch ();
15299 ;
15300 return 0;
15301}
15302_ACEOF
15303rm -f conftest.$ac_objext conftest$ac_exeext
15304if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015305 (eval $ac_link) 2>conftest.er1
Mike McCormack9557d1b2003-08-20 04:19:01 +000015306 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015307 grep -v '^ *+' conftest.er1 >conftest.err
15308 rm -f conftest.er1
15309 cat conftest.err >&5
Mike McCormack9557d1b2003-08-20 04:19:01 +000015310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15314 (eval $ac_try) 2>&5
15315 ac_status=$?
15316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15317 (exit $ac_status); }; } &&
15318 { ac_try='test -s conftest$ac_exeext'
Mike McCormack9557d1b2003-08-20 04:19:01 +000015319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15320 (eval $ac_try) 2>&5
15321 ac_status=$?
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015324 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 +000015325 if test "x$ac_cv_lib_soname_curses" = "x"
15326 then
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015327 ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015328 fi
15329else
15330 echo "$as_me: failed program was:" >&5
15331sed 's/^/| /' conftest.$ac_ext >&5
15332
Pierre d'Herbemont197b5e32004-06-14 19:34:42 +000015333ac_cv_lib_soname_curses="libcurses.$LIBEXT"
Mike McCormack9557d1b2003-08-20 04:19:01 +000015334fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015335rm -f conftest.err conftest.$ac_objext \
15336 conftest$ac_exeext conftest.$ac_ext
Mike McCormack9557d1b2003-08-20 04:19:01 +000015337 LIBS=$ac_get_soname_save_LIBS
15338fi
15339echo "$as_me:$LINENO: result: $ac_cv_lib_soname_curses" >&5
15340echo "${ECHO_T}$ac_cv_lib_soname_curses" >&6
15341if test "x$ac_cv_lib_soname_curses" != xNONE
15342then
15343cat >>confdefs.h <<_ACEOF
15344#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
15345_ACEOF
15346fi
Huw Daviese82dfab2004-08-04 19:10:26 +000015347
15348echo "$as_me:$LINENO: checking for -ljpeg soname" >&5
15349echo $ECHO_N "checking for -ljpeg soname... $ECHO_C" >&6
15350if test "${ac_cv_lib_soname_jpeg+set}" = set; then
15351 echo $ECHO_N "(cached) $ECHO_C" >&6
15352else
15353 ac_get_soname_save_LIBS=$LIBS
15354LIBS="-ljpeg $LIBS"
15355 cat >conftest.$ac_ext <<_ACEOF
15356/* confdefs.h. */
15357_ACEOF
15358cat confdefs.h >>conftest.$ac_ext
15359cat >>conftest.$ac_ext <<_ACEOF
15360/* end confdefs.h. */
15361
15362/* Override any gcc2 internal prototype to avoid an error. */
15363#ifdef __cplusplus
15364extern "C"
15365#endif
15366/* We use char because int might match the return type of a gcc2
15367 builtin and then its argument prototype would still apply. */
15368char jpeg_start_decompress ();
15369int
15370main ()
15371{
15372jpeg_start_decompress ();
15373 ;
15374 return 0;
15375}
15376_ACEOF
15377rm -f conftest.$ac_objext conftest$ac_exeext
15378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15379 (eval $ac_link) 2>conftest.er1
15380 ac_status=$?
15381 grep -v '^ *+' conftest.er1 >conftest.err
15382 rm -f conftest.er1
15383 cat conftest.err >&5
15384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15385 (exit $ac_status); } &&
15386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15388 (eval $ac_try) 2>&5
15389 ac_status=$?
15390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391 (exit $ac_status); }; } &&
15392 { ac_try='test -s conftest$ac_exeext'
15393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15394 (eval $ac_try) 2>&5
15395 ac_status=$?
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep libjpeg\\.$LIBEXT | sed "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"`
15399 if test "x$ac_cv_lib_soname_jpeg" = "x"
15400 then
15401 ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15402 fi
15403else
15404 echo "$as_me: failed program was:" >&5
15405sed 's/^/| /' conftest.$ac_ext >&5
15406
15407ac_cv_lib_soname_jpeg="libjpeg.$LIBEXT"
15408fi
15409rm -f conftest.err conftest.$ac_objext \
15410 conftest$ac_exeext conftest.$ac_ext
15411 LIBS=$ac_get_soname_save_LIBS
15412fi
15413echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jpeg" >&5
15414echo "${ECHO_T}$ac_cv_lib_soname_jpeg" >&6
15415if test "x$ac_cv_lib_soname_jpeg" != xNONE
15416then
15417cat >>confdefs.h <<_ACEOF
15418#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
15419_ACEOF
15420fi
15421
15422echo "$as_me:$LINENO: checking for -lungif soname" >&5
15423echo $ECHO_N "checking for -lungif soname... $ECHO_C" >&6
15424if test "${ac_cv_lib_soname_ungif+set}" = set; then
15425 echo $ECHO_N "(cached) $ECHO_C" >&6
15426else
15427 ac_get_soname_save_LIBS=$LIBS
15428LIBS="-lungif $LIBS"
15429 cat >conftest.$ac_ext <<_ACEOF
15430/* confdefs.h. */
15431_ACEOF
15432cat confdefs.h >>conftest.$ac_ext
15433cat >>conftest.$ac_ext <<_ACEOF
15434/* end confdefs.h. */
15435
15436/* Override any gcc2 internal prototype to avoid an error. */
15437#ifdef __cplusplus
15438extern "C"
15439#endif
15440/* We use char because int might match the return type of a gcc2
15441 builtin and then its argument prototype would still apply. */
15442char DGifOpen ();
15443int
15444main ()
15445{
15446DGifOpen ();
15447 ;
15448 return 0;
15449}
15450_ACEOF
15451rm -f conftest.$ac_objext conftest$ac_exeext
15452if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15453 (eval $ac_link) 2>conftest.er1
15454 ac_status=$?
15455 grep -v '^ *+' conftest.er1 >conftest.err
15456 rm -f conftest.er1
15457 cat conftest.err >&5
15458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15459 (exit $ac_status); } &&
15460 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15462 (eval $ac_try) 2>&5
15463 ac_status=$?
15464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15465 (exit $ac_status); }; } &&
15466 { ac_try='test -s conftest$ac_exeext'
15467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15468 (eval $ac_try) 2>&5
15469 ac_status=$?
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 ac_cv_lib_soname_ungif=`$ac_cv_path_LDD conftest$ac_exeext | grep libungif\\.$LIBEXT | sed "s/^.*\(libungif\.$LIBEXT[^ ]*\).*$/\1/"`
15473 if test "x$ac_cv_lib_soname_ungif" = "x"
15474 then
15475 ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15476 fi
15477else
15478 echo "$as_me: failed program was:" >&5
15479sed 's/^/| /' conftest.$ac_ext >&5
15480
15481ac_cv_lib_soname_ungif="libungif.$LIBEXT"
15482fi
15483rm -f conftest.err conftest.$ac_objext \
15484 conftest$ac_exeext conftest.$ac_ext
15485 LIBS=$ac_get_soname_save_LIBS
15486fi
15487echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ungif" >&5
15488echo "${ECHO_T}$ac_cv_lib_soname_ungif" >&6
15489if test "x$ac_cv_lib_soname_ungif" != xNONE
15490then
15491cat >>confdefs.h <<_ACEOF
15492#define SONAME_LIBUNGIF "$ac_cv_lib_soname_ungif"
15493_ACEOF
15494fi
Marcus Meissner00cf13a2004-09-14 19:27:58 +000015495
15496echo "$as_me:$LINENO: checking for -lgif soname" >&5
15497echo $ECHO_N "checking for -lgif soname... $ECHO_C" >&6
15498if test "${ac_cv_lib_soname_gif+set}" = set; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15500else
15501 ac_get_soname_save_LIBS=$LIBS
15502LIBS="-lgif $LIBS"
15503 cat >conftest.$ac_ext <<_ACEOF
15504/* confdefs.h. */
15505_ACEOF
15506cat confdefs.h >>conftest.$ac_ext
15507cat >>conftest.$ac_ext <<_ACEOF
15508/* end confdefs.h. */
15509
15510/* Override any gcc2 internal prototype to avoid an error. */
15511#ifdef __cplusplus
15512extern "C"
15513#endif
15514/* We use char because int might match the return type of a gcc2
15515 builtin and then its argument prototype would still apply. */
15516char DGifOpen ();
15517int
15518main ()
15519{
15520DGifOpen ();
15521 ;
15522 return 0;
15523}
15524_ACEOF
15525rm -f conftest.$ac_objext conftest$ac_exeext
15526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15527 (eval $ac_link) 2>conftest.er1
15528 ac_status=$?
15529 grep -v '^ *+' conftest.er1 >conftest.err
15530 rm -f conftest.er1
15531 cat conftest.err >&5
15532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15533 (exit $ac_status); } &&
15534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15536 (eval $ac_try) 2>&5
15537 ac_status=$?
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; } &&
15540 { ac_try='test -s conftest$ac_exeext'
15541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15542 (eval $ac_try) 2>&5
15543 ac_status=$?
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); }; }; then
15546 ac_cv_lib_soname_gif=`$ac_cv_path_LDD conftest$ac_exeext | grep libgif\\.$LIBEXT | sed "s/^.*\(libgif\.$LIBEXT[^ ]*\).*$/\1/"`
15547 if test "x$ac_cv_lib_soname_gif" = "x"
15548 then
15549 ac_cv_lib_soname_gif="libgif.$LIBEXT"
15550 fi
15551else
15552 echo "$as_me: failed program was:" >&5
15553sed 's/^/| /' conftest.$ac_ext >&5
15554
15555ac_cv_lib_soname_gif="libgif.$LIBEXT"
15556fi
15557rm -f conftest.err conftest.$ac_objext \
15558 conftest$ac_exeext conftest.$ac_ext
15559 LIBS=$ac_get_soname_save_LIBS
15560fi
15561echo "$as_me:$LINENO: result: $ac_cv_lib_soname_gif" >&5
15562echo "${ECHO_T}$ac_cv_lib_soname_gif" >&6
15563if test "x$ac_cv_lib_soname_gif" != xNONE
15564then
15565cat >>confdefs.h <<_ACEOF
15566#define SONAME_LIBGIF "$ac_cv_lib_soname_gif"
15567_ACEOF
15568fi
Hans Leidekker081b2502004-10-07 19:12:41 +000015569
Marcus Meissner67d3afb2005-01-07 15:33:02 +000015570echo "$as_me:$LINENO: checking for -lcapi20 soname" >&5
15571echo $ECHO_N "checking for -lcapi20 soname... $ECHO_C" >&6
15572if test "${ac_cv_lib_soname_capi20+set}" = set; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15574else
15575 ac_get_soname_save_LIBS=$LIBS
15576LIBS="-lcapi20 $LIBS"
15577 cat >conftest.$ac_ext <<_ACEOF
15578/* confdefs.h. */
15579_ACEOF
15580cat confdefs.h >>conftest.$ac_ext
15581cat >>conftest.$ac_ext <<_ACEOF
15582/* end confdefs.h. */
15583
15584/* Override any gcc2 internal prototype to avoid an error. */
15585#ifdef __cplusplus
15586extern "C"
15587#endif
15588/* We use char because int might match the return type of a gcc2
15589 builtin and then its argument prototype would still apply. */
15590char capi20_isinstalled ();
15591int
15592main ()
15593{
15594capi20_isinstalled ();
15595 ;
15596 return 0;
15597}
15598_ACEOF
15599rm -f conftest.$ac_objext conftest$ac_exeext
15600if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15601 (eval $ac_link) 2>conftest.er1
15602 ac_status=$?
15603 grep -v '^ *+' conftest.er1 >conftest.err
15604 rm -f conftest.er1
15605 cat conftest.err >&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } &&
15608 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15610 (eval $ac_try) 2>&5
15611 ac_status=$?
15612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15613 (exit $ac_status); }; } &&
15614 { ac_try='test -s conftest$ac_exeext'
15615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15616 (eval $ac_try) 2>&5
15617 ac_status=$?
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); }; }; then
15620 ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep libcapi20\\.$LIBEXT | sed "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"`
15621 if test "x$ac_cv_lib_soname_capi20" = "x"
15622 then
15623 ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15624 fi
15625else
15626 echo "$as_me: failed program was:" >&5
15627sed 's/^/| /' conftest.$ac_ext >&5
15628
15629ac_cv_lib_soname_capi20="libcapi20.$LIBEXT"
15630fi
15631rm -f conftest.err conftest.$ac_objext \
15632 conftest$ac_exeext conftest.$ac_ext
15633 LIBS=$ac_get_soname_save_LIBS
15634fi
15635echo "$as_me:$LINENO: result: $ac_cv_lib_soname_capi20" >&5
15636echo "${ECHO_T}$ac_cv_lib_soname_capi20" >&6
15637if test "x$ac_cv_lib_soname_capi20" != xNONE
15638then
15639cat >>confdefs.h <<_ACEOF
15640#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
15641_ACEOF
15642fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000015643fi
15644
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015645
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000015646
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015647# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15648# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015649echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015650echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
15651if test "${ac_cv_working_alloca_h+set}" = set; then
15652 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015653else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015654 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015655/* confdefs.h. */
15656_ACEOF
15657cat confdefs.h >>conftest.$ac_ext
15658cat >>conftest.$ac_ext <<_ACEOF
15659/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015660#include <alloca.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015661int
15662main ()
15663{
15664char *p = (char *) alloca (2 * sizeof (int));
15665 ;
15666 return 0;
15667}
15668_ACEOF
15669rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015670if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015671 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015672 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015673 grep -v '^ *+' conftest.er1 >conftest.err
15674 rm -f conftest.er1
15675 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015677 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15680 (eval $ac_try) 2>&5
15681 ac_status=$?
15682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15683 (exit $ac_status); }; } &&
15684 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015686 (eval $ac_try) 2>&5
15687 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015689 (exit $ac_status); }; }; then
15690 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015691else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015692 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015693sed 's/^/| /' conftest.$ac_ext >&5
15694
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015695ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015696fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015697rm -f conftest.err conftest.$ac_objext \
15698 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015699fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015700echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015701echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
15702if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000015703
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015704cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015705#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015706_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015707
15708fi
15709
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015710echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015711echo $ECHO_N "checking for alloca... $ECHO_C" >&6
15712if test "${ac_cv_func_alloca_works+set}" = set; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015714else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015715 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015716/* confdefs.h. */
15717_ACEOF
15718cat confdefs.h >>conftest.$ac_ext
15719cat >>conftest.$ac_ext <<_ACEOF
15720/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015721#ifdef __GNUC__
15722# define alloca __builtin_alloca
15723#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015724# ifdef _MSC_VER
15725# include <malloc.h>
15726# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015727# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015728# if HAVE_ALLOCA_H
15729# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015730# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000015731# ifdef _AIX
15732 #pragma alloca
15733# else
15734# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015735char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000015736# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015737# endif
15738# endif
15739# endif
15740#endif
15741
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015742int
15743main ()
15744{
15745char *p = (char *) alloca (1);
15746 ;
15747 return 0;
15748}
15749_ACEOF
15750rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015751if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015752 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015753 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015754 grep -v '^ *+' conftest.er1 >conftest.err
15755 rm -f conftest.er1
15756 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015758 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15761 (eval $ac_try) 2>&5
15762 ac_status=$?
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; } &&
15765 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015767 (eval $ac_try) 2>&5
15768 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015770 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015771 ac_cv_func_alloca_works=yes
15772else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015773 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015774sed 's/^/| /' conftest.$ac_ext >&5
15775
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015776ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015777fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015778rm -f conftest.err conftest.$ac_objext \
15779 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015780fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015781echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015782echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015783
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015784if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015785
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015786cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015787#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015788_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015789
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015790else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015791 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015792# that cause trouble. Some versions do not even contain alloca or
15793# contain a buggy version. If you still want to use their alloca,
15794# use ar to extract alloca.o from them instead of compiling alloca.c.
15795
15796ALLOCA=alloca.$ac_objext
15797
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015798cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015799#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015800_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015801
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015802
15803echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015804echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
15805if test "${ac_cv_os_cray+set}" = set; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015807else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015808 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015809/* confdefs.h. */
15810_ACEOF
15811cat confdefs.h >>conftest.$ac_ext
15812cat >>conftest.$ac_ext <<_ACEOF
15813/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015814#if defined(CRAY) && ! defined(CRAY2)
15815webecray
15816#else
15817wenotbecray
15818#endif
15819
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015820_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015821if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015822 $EGREP "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015823 ac_cv_os_cray=yes
15824else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015825 ac_cv_os_cray=no
15826fi
15827rm -f conftest*
15828
15829fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015830echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015831echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015832if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015833 for ac_func in _getb67 GETB67 getb67; do
15834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015835echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015836echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
15837if eval "test \"\${$as_ac_var+set}\" = set"; then
15838 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015839else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015840 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015841/* confdefs.h. */
15842_ACEOF
15843cat confdefs.h >>conftest.$ac_ext
15844cat >>conftest.$ac_ext <<_ACEOF
15845/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000015846/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15847 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15848#define $ac_func innocuous_$ac_func
15849
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015850/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015851 which can conflict with char $ac_func (); below.
15852 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15853 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000015854
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015855#ifdef __STDC__
15856# include <limits.h>
15857#else
15858# include <assert.h>
15859#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000015860
15861#undef $ac_func
15862
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015863/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015864#ifdef __cplusplus
15865extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015866{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015867#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000015868/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015869 builtin and then its argument prototype would still apply. */
15870char $ac_func ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015871/* The GNU C library defines this for functions which it implements
15872 to always fail with ENOSYS. Some functions are actually named
15873 something starting with __ and the normal name is an alias. */
15874#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
15875choke me
15876#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015877char (*f) () = $ac_func;
15878#endif
15879#ifdef __cplusplus
15880}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015881#endif
15882
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015883int
15884main ()
15885{
15886return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015887 ;
15888 return 0;
15889}
15890_ACEOF
15891rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015892if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000015893 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015894 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000015895 grep -v '^ *+' conftest.er1 >conftest.err
15896 rm -f conftest.er1
15897 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015899 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000015900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15903 ac_status=$?
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; } &&
15906 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015908 (eval $ac_try) 2>&5
15909 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015911 (exit $ac_status); }; }; then
15912 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015913else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015914 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015915sed 's/^/| /' conftest.$ac_ext >&5
15916
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015917eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015918fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000015919rm -f conftest.err conftest.$ac_objext \
15920 conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015921fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015922echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015923echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
15924if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015925
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015926cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015927#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015928_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015929
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015930 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015931fi
15932
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015933 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015934fi
15935
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015936echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015937echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
15938if test "${ac_cv_c_stack_direction+set}" = set; then
15939 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015940else
15941 if test "$cross_compiling" = yes; then
15942 ac_cv_c_stack_direction=0
15943else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015944 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015945/* confdefs.h. */
15946_ACEOF
15947cat confdefs.h >>conftest.$ac_ext
15948cat >>conftest.$ac_ext <<_ACEOF
15949/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015950int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015951find_stack_direction ()
15952{
15953 static char *addr = 0;
15954 auto char dummy;
15955 if (addr == 0)
15956 {
15957 addr = &dummy;
15958 return find_stack_direction ();
15959 }
15960 else
15961 return (&dummy > addr) ? 1 : -1;
15962}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015963
15964int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015965main ()
15966{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015967 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015968}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015969_ACEOF
15970rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015971if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015972 (eval $ac_link) 2>&5
15973 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015975 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015977 (eval $ac_try) 2>&5
15978 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015980 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015981 ac_cv_c_stack_direction=1
15982else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015983 echo "$as_me: program exited with status $ac_status" >&5
15984echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015985sed 's/^/| /' conftest.$ac_ext >&5
15986
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015987( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015988ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015989fi
Alexandre Julliard80e34db2003-09-03 00:26:08 +000015990rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015991fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015992fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015993echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015994echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015995
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015996cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000015997#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015998_ACEOF
15999
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016000
16001fi
16002
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024
16025
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041
16042
16043
16044
Steven Edwardsb9627c12002-05-05 21:03:44 +000016045
16046
Steven Edwards0a8e15a2002-05-10 01:33:40 +000016047
16048
Alexandre Julliard142dab82002-07-01 18:17:30 +000016049
Patrik Stridvall6caeb722002-11-25 21:12:26 +000016050
16051
16052
Pavel Roskin7add08a2003-09-24 18:54:40 +000016053
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000016054
Alexandre Julliarde2930742004-01-08 05:07:05 +000016055
Alexandre Julliard13af4892004-03-05 21:03:46 +000016056
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000016057
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000016058
16059
Alexandre Julliard969f57c2004-09-23 04:48:24 +000016060
Paul Millar10a6c562004-12-07 17:19:54 +000016061
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000016062
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016063for ac_func in \
16064 _lwp_create \
Alexandre Julliard6f7a2042003-04-01 04:39:35 +000016065 _lwp_self \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016066 _pclose \
16067 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000016068 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000016069 _spawnvp \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016070 _stricmp \
16071 _strnicmp \
Steven Edwardsbe514b92003-01-14 19:35:03 +000016072 _vsnprintf \
Steven Edwardsb9627c12002-05-05 21:03:44 +000016073 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016074 clone \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000016075 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000016076 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000016077 finite \
Hans Leidekkerbed38422004-10-14 03:08:57 +000016078 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000016079 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000016080 fstatfs \
16081 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000016082 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000016083 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000016084 futimesat \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016085 getnetbyname \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000016086 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016087 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016088 getprotobyname \
16089 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000016090 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016091 getservbyport \
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000016092 gettid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000016093 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000016094 getuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016095 inet_network \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000016096 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016097 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000016098 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016099 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000016100 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000016101 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000016102 pwrite \
Alexandre Julliarde2930742004-01-08 05:07:05 +000016103 readlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016104 rfork \
Jeremy White08c0f692004-10-09 02:26:29 +000016105 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016106 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016107 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016108 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016109 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000016110 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000016111 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000016112 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000016113 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000016114 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000016115 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016116 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000016117 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016118 tcgetattr \
16119 timegm \
16120 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000016121 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016122 wait4 \
16123 waitpid \
16124
16125do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016126as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016127echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016128echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
16129if eval "test \"\${$as_ac_var+set}\" = set"; then
16130 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016131else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016132 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016133/* confdefs.h. */
16134_ACEOF
16135cat confdefs.h >>conftest.$ac_ext
16136cat >>conftest.$ac_ext <<_ACEOF
16137/* end confdefs.h. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016138/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16140#define $ac_func innocuous_$ac_func
16141
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016142/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016143 which can conflict with char $ac_func (); below.
16144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16145 <limits.h> exists even on freestanding compilers. */
Alexandre Julliard875927f2004-01-02 01:55:29 +000016146
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016147#ifdef __STDC__
16148# include <limits.h>
16149#else
16150# include <assert.h>
16151#endif
Alexandre Julliard875927f2004-01-02 01:55:29 +000016152
16153#undef $ac_func
16154
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016155/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016156#ifdef __cplusplus
16157extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016158{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016159#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016160/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016161 builtin and then its argument prototype would still apply. */
16162char $ac_func ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016163/* The GNU C library defines this for functions which it implements
16164 to always fail with ENOSYS. Some functions are actually named
16165 something starting with __ and the normal name is an alias. */
16166#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
16167choke me
16168#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016169char (*f) () = $ac_func;
16170#endif
16171#ifdef __cplusplus
16172}
Patrik Stridvall1bb94031999-05-08 15:47:44 +000016173#endif
16174
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016175int
16176main ()
16177{
16178return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016179 ;
16180 return 0;
16181}
16182_ACEOF
16183rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016184if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016185 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016186 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016187 grep -v '^ *+' conftest.er1 >conftest.err
16188 rm -f conftest.er1
16189 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016191 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16194 (eval $ac_try) 2>&5
16195 ac_status=$?
16196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16197 (exit $ac_status); }; } &&
16198 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016200 (eval $ac_try) 2>&5
16201 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016203 (exit $ac_status); }; }; then
16204 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016205else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016206 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016207sed 's/^/| /' conftest.$ac_ext >&5
16208
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016209eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016210fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016211rm -f conftest.err conftest.$ac_objext \
16212 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016213fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016214echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016215echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
16216if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016217 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016218#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016219_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016220
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016221fi
16222done
16223
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016224
16225
16226
16227
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016228for ac_header in sys/mount.h sys/user.h
16229do
16230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16231echo "$as_me:$LINENO: checking for $ac_header" >&5
16232echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16233if eval "test \"\${$as_ac_Header+set}\" = set"; then
16234 echo $ECHO_N "(cached) $ECHO_C" >&6
16235else
16236 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016237/* confdefs.h. */
16238_ACEOF
16239cat confdefs.h >>conftest.$ac_ext
16240cat >>conftest.$ac_ext <<_ACEOF
16241/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000016242#include <sys/types.h>
16243 #if HAVE_SYS_PARAM_H
16244 # include <sys/param.h>
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016245 #endif
16246
16247#include <$ac_header>
16248_ACEOF
16249rm -f conftest.$ac_objext
16250if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016251 (eval $ac_compile) 2>conftest.er1
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016252 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016253 grep -v '^ *+' conftest.er1 >conftest.err
16254 rm -f conftest.er1
16255 cat conftest.err >&5
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16261 ac_status=$?
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; } &&
16264 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16267 ac_status=$?
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 eval "$as_ac_Header=yes"
16271else
16272 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016273sed 's/^/| /' conftest.$ac_ext >&5
16274
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016275eval "$as_ac_Header=no"
16276fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016277rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000016278fi
16279echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16280echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16281if test `eval echo '${'$as_ac_Header'}'` = yes; then
16282 cat >>confdefs.h <<_ACEOF
16283#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16284_ACEOF
16285
16286fi
16287
16288done
16289
16290
16291
Juan Lang38fa5ad2003-05-13 03:32:20 +000016292
16293
16294
16295
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016296for 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 +000016297do
16298as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16299echo "$as_me:$LINENO: checking for $ac_header" >&5
16300echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16301if eval "test \"\${$as_ac_Header+set}\" = set"; then
16302 echo $ECHO_N "(cached) $ECHO_C" >&6
16303else
16304 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016305/* confdefs.h. */
16306_ACEOF
16307cat confdefs.h >>conftest.$ac_ext
16308cat >>conftest.$ac_ext <<_ACEOF
16309/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000016310#include <sys/types.h>
Gerald Pfeifer87c369d2002-07-23 02:02:02 +000016311 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016312 # include <sys/socket.h>
16313 #endif
16314
16315#include <$ac_header>
16316_ACEOF
16317rm -f conftest.$ac_objext
16318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016319 (eval $ac_compile) 2>conftest.er1
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016320 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016321 grep -v '^ *+' conftest.er1 >conftest.err
16322 rm -f conftest.er1
16323 cat conftest.err >&5
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16325 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16328 (eval $ac_try) 2>&5
16329 ac_status=$?
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); }; } &&
16332 { ac_try='test -s conftest.$ac_objext'
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16334 (eval $ac_try) 2>&5
16335 ac_status=$?
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; }; then
16338 eval "$as_ac_Header=yes"
16339else
16340 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016341sed 's/^/| /' conftest.$ac_ext >&5
16342
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016343eval "$as_ac_Header=no"
16344fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016345rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gregg Mattinson044b5c42002-07-19 03:16:51 +000016346fi
16347echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16348echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16349if test `eval echo '${'$as_ac_Header'}'` = yes; then
16350 cat >>confdefs.h <<_ACEOF
16351#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16352_ACEOF
16353
16354fi
16355
16356done
16357
16358
16359
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016360for ac_header in resolv.h
16361do
16362as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16363echo "$as_me:$LINENO: checking for $ac_header" >&5
16364echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16365if eval "test \"\${$as_ac_Header+set}\" = set"; then
16366 echo $ECHO_N "(cached) $ECHO_C" >&6
16367else
16368 cat >conftest.$ac_ext <<_ACEOF
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016369/* confdefs.h. */
16370_ACEOF
16371cat confdefs.h >>conftest.$ac_ext
16372cat >>conftest.$ac_ext <<_ACEOF
16373/* end confdefs.h. */
16374#include <sys/types.h>
16375 #if HAVE_SYS_SOCKET_H
16376 # include <sys/socket.h>
16377 #endif
16378 #if HAVE_NETINET_IN_H
16379 # include <netinet/in.h>
16380 #endif
Pierre d'Herbemontae8ca362003-10-27 21:55:00 +000016381 #if HAVE_ARPA_NAMESER_H
16382 # include <arpa/nameser.h>
16383 #endif
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016384
16385#include <$ac_header>
16386_ACEOF
16387rm -f conftest.$ac_objext
16388if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016389 (eval $ac_compile) 2>conftest.er1
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016390 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016391 grep -v '^ *+' conftest.er1 >conftest.err
16392 rm -f conftest.er1
16393 cat conftest.err >&5
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16398 (eval $ac_try) 2>&5
16399 ac_status=$?
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; } &&
16402 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16404 (eval $ac_try) 2>&5
16405 ac_status=$?
16406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407 (exit $ac_status); }; }; then
16408 eval "$as_ac_Header=yes"
16409else
16410 echo "$as_me: failed program was:" >&5
16411sed 's/^/| /' conftest.$ac_ext >&5
16412
16413eval "$as_ac_Header=no"
16414fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000016416fi
16417echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16418echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16419if test `eval echo '${'$as_ac_Header'}'` = yes; then
16420 cat >>confdefs.h <<_ACEOF
16421#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16422_ACEOF
16423
16424fi
16425
16426done
16427
16428
16429
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016430for ac_header in ucontext.h
16431do
16432as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16433echo "$as_me:$LINENO: checking for $ac_header" >&5
16434echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16435if eval "test \"\${$as_ac_Header+set}\" = set"; then
16436 echo $ECHO_N "(cached) $ECHO_C" >&6
16437else
16438 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016439/* confdefs.h. */
16440_ACEOF
16441cat confdefs.h >>conftest.$ac_ext
16442cat >>conftest.$ac_ext <<_ACEOF
16443/* end confdefs.h. */
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016444#include <signal.h>
16445
16446#include <$ac_header>
16447_ACEOF
16448rm -f conftest.$ac_objext
16449if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016450 (eval $ac_compile) 2>conftest.er1
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016451 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016452 grep -v '^ *+' conftest.er1 >conftest.err
16453 rm -f conftest.er1
16454 cat conftest.err >&5
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16459 (eval $ac_try) 2>&5
16460 ac_status=$?
16461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16462 (exit $ac_status); }; } &&
16463 { ac_try='test -s conftest.$ac_objext'
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16465 (eval $ac_try) 2>&5
16466 ac_status=$?
16467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468 (exit $ac_status); }; }; then
16469 eval "$as_ac_Header=yes"
16470else
16471 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016472sed 's/^/| /' conftest.$ac_ext >&5
16473
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016474eval "$as_ac_Header=no"
16475fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016476rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000016477fi
16478echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16479echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16480if test `eval echo '${'$as_ac_Header'}'` = yes; then
16481 cat >>confdefs.h <<_ACEOF
16482#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16483_ACEOF
16484
16485fi
16486
16487done
16488
16489
16490
Maarten Lankhorst888eaae2005-04-27 09:46:25 +000016491
16492for ac_header in linux/videodev.h
16493do
16494as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16495echo "$as_me:$LINENO: checking for $ac_header" >&5
16496echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
16497if eval "test \"\${$as_ac_Header+set}\" = set"; then
16498 echo $ECHO_N "(cached) $ECHO_C" >&6
16499else
16500 cat >conftest.$ac_ext <<_ACEOF
16501/* confdefs.h. */
16502_ACEOF
16503cat confdefs.h >>conftest.$ac_ext
16504cat >>conftest.$ac_ext <<_ACEOF
16505/* end confdefs.h. */
16506#ifdef HAVE_SYS_TIME_H
16507#include <sys/time.h>
16508#endif
Adrian Harvey59f97252005-06-12 11:10:43 +000016509#include <sys/types.h>
Maarten Lankhorst888eaae2005-04-27 09:46:25 +000016510#ifdef HAVE_ASM_TYPES_H
16511#include <asm/types.h>
16512#endif
16513
16514#include <$ac_header>
16515_ACEOF
16516rm -f conftest.$ac_objext
16517if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16518 (eval $ac_compile) 2>conftest.er1
16519 ac_status=$?
16520 grep -v '^ *+' conftest.er1 >conftest.err
16521 rm -f conftest.er1
16522 cat conftest.err >&5
16523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524 (exit $ac_status); } &&
16525 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16527 (eval $ac_try) 2>&5
16528 ac_status=$?
16529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16530 (exit $ac_status); }; } &&
16531 { ac_try='test -s conftest.$ac_objext'
16532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16533 (eval $ac_try) 2>&5
16534 ac_status=$?
16535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536 (exit $ac_status); }; }; then
16537 eval "$as_ac_Header=yes"
16538else
16539 echo "$as_me: failed program was:" >&5
16540sed 's/^/| /' conftest.$ac_ext >&5
16541
16542eval "$as_ac_Header=no"
16543fi
16544rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16545fi
16546echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
16547echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
16548if test `eval echo '${'$as_ac_Header'}'` = yes; then
16549 cat >>confdefs.h <<_ACEOF
16550#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16551_ACEOF
16552
16553fi
16554
16555done
16556
16557
16558
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016559echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
16560echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
16561if test "${ac_cv_c_ipx_gnu+set}" = set; then
16562 echo $ECHO_N "(cached) $ECHO_C" >&6
16563else
16564 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016565/* confdefs.h. */
16566_ACEOF
16567cat confdefs.h >>conftest.$ac_ext
16568cat >>conftest.$ac_ext <<_ACEOF
16569/* end confdefs.h. */
16570#include <sys/types.h>
16571 #ifdef HAVE_SYS_SOCKET_H
16572 # include <sys/socket.h>
16573 #endif
16574 #include <netipx/ipx.h>
16575int
16576main ()
16577{
16578((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16579 ;
16580 return 0;
16581}
16582_ACEOF
16583rm -f conftest.$ac_objext
16584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016585 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016586 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016587 grep -v '^ *+' conftest.er1 >conftest.err
16588 rm -f conftest.er1
16589 cat conftest.err >&5
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16591 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016592 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16594 (eval $ac_try) 2>&5
16595 ac_status=$?
16596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16597 (exit $ac_status); }; } &&
16598 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16600 (eval $ac_try) 2>&5
16601 ac_status=$?
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); }; }; then
16604 ac_cv_c_ipx_gnu="yes"
16605else
16606 echo "$as_me: failed program was:" >&5
16607sed 's/^/| /' conftest.$ac_ext >&5
16608
16609ac_cv_c_ipx_gnu="no"
16610fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016611rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016612
16613fi
16614echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
16615echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
16616if test "$ac_cv_c_ipx_gnu" = "yes"
16617then
16618
16619cat >>confdefs.h <<\_ACEOF
16620#define HAVE_IPX_GNU 1
16621_ACEOF
16622
16623fi
16624
16625if test "$ac_cv_c_ipx_gnu" = "no"
16626then
16627 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
16628echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
16629if test "${ac_cv_c_ipx_linux+set}" = set; then
16630 echo $ECHO_N "(cached) $ECHO_C" >&6
16631else
16632 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016633/* confdefs.h. */
16634_ACEOF
16635cat confdefs.h >>conftest.$ac_ext
16636cat >>conftest.$ac_ext <<_ACEOF
16637/* end confdefs.h. */
16638#include <sys/types.h>
16639 #ifdef HAVE_SYS_SOCKET_H
16640 # include <sys/socket.h>
16641 #endif
16642 #include <asm/types.h>
16643 #include <linux/ipx.h>
16644int
16645main ()
16646{
16647((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
16648 ;
16649 return 0;
16650}
16651_ACEOF
16652rm -f conftest.$ac_objext
16653if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016654 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016655 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016656 grep -v '^ *+' conftest.er1 >conftest.err
16657 rm -f conftest.er1
16658 cat conftest.err >&5
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16660 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16663 (eval $ac_try) 2>&5
16664 ac_status=$?
16665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16666 (exit $ac_status); }; } &&
16667 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16669 (eval $ac_try) 2>&5
16670 ac_status=$?
16671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16672 (exit $ac_status); }; }; then
16673 ac_cv_c_ipx_linux="yes"
16674else
16675 echo "$as_me: failed program was:" >&5
16676sed 's/^/| /' conftest.$ac_ext >&5
16677
16678ac_cv_c_ipx_linux="no"
16679fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016680rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000016681
16682fi
16683echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
16684echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
16685 if test "$ac_cv_c_ipx_linux" = "yes"
16686 then
16687
16688cat >>confdefs.h <<\_ACEOF
16689#define HAVE_IPX_LINUX 1
16690_ACEOF
16691
16692 fi
16693fi
16694
16695
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016696echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016697echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
16698if test "${ac_cv_c_const+set}" = set; then
16699 echo $ECHO_N "(cached) $ECHO_C" >&6
16700else
16701 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016702/* confdefs.h. */
16703_ACEOF
16704cat confdefs.h >>conftest.$ac_ext
16705cat >>conftest.$ac_ext <<_ACEOF
16706/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016707
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016708int
16709main ()
16710{
16711/* FIXME: Include the comments suggested by Paul. */
16712#ifndef __cplusplus
16713 /* Ultrix mips cc rejects this. */
16714 typedef int charset[2];
16715 const charset x;
16716 /* SunOS 4.1.1 cc rejects this. */
16717 char const *const *ccp;
16718 char **p;
16719 /* NEC SVR4.0.2 mips cc rejects this. */
16720 struct point {int x, y;};
16721 static struct point const zero = {0,0};
16722 /* AIX XL C 1.02.0.0 rejects this.
16723 It does not let you subtract one const X* pointer from another in
16724 an arm of an if-expression whose if-part is not a constant
16725 expression */
16726 const char *g = "string";
16727 ccp = &g + (g ? g-g : 0);
16728 /* HPUX 7.0 cc rejects these. */
16729 ++ccp;
16730 p = (char**) ccp;
16731 ccp = (char const *const *) p;
16732 { /* SCO 3.2v4 cc rejects this. */
16733 char *t;
16734 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016735
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016736 *t++ = 0;
16737 }
16738 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16739 int x[] = {25, 17};
16740 const int *foo = &x[0];
16741 ++foo;
16742 }
16743 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16744 typedef const int *iptr;
16745 iptr p = 0;
16746 ++p;
16747 }
16748 { /* AIX XL C 1.02.0.0 rejects this saying
16749 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16750 struct s { int j; const int *ap[3]; };
16751 struct s *b; b->j = 5;
16752 }
16753 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16754 const int foo = 10;
16755 }
16756#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016757
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016758 ;
16759 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016760}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016761_ACEOF
16762rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016763if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016764 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016765 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016766 grep -v '^ *+' conftest.er1 >conftest.err
16767 rm -f conftest.er1
16768 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016770 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16773 (eval $ac_try) 2>&5
16774 ac_status=$?
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; } &&
16777 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016779 (eval $ac_try) 2>&5
16780 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016782 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016783 ac_cv_c_const=yes
16784else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016785 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016786sed 's/^/| /' conftest.$ac_ext >&5
16787
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016788ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016789fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016790rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016791fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016792echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016793echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016794if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016795
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016796cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016797#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016798_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016799
16800fi
16801
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016802echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016803echo $ECHO_N "checking for inline... $ECHO_C" >&6
16804if test "${ac_cv_c_inline+set}" = set; then
16805 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000016806else
16807 ac_cv_c_inline=no
16808for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016809 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016810/* confdefs.h. */
16811_ACEOF
16812cat confdefs.h >>conftest.$ac_ext
16813cat >>conftest.$ac_ext <<_ACEOF
16814/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016815#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016816typedef int foo_t;
16817static $ac_kw foo_t static_foo () {return 0; }
16818$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016819#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000016820
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016821_ACEOF
16822rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016823if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016824 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016825 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016826 grep -v '^ *+' conftest.er1 >conftest.err
16827 rm -f conftest.er1
16828 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016830 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16833 (eval $ac_try) 2>&5
16834 ac_status=$?
16835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16836 (exit $ac_status); }; } &&
16837 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016839 (eval $ac_try) 2>&5
16840 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016842 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000016843 ac_cv_c_inline=$ac_kw; break
16844else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016845 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016846sed 's/^/| /' conftest.$ac_ext >&5
16847
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000016848fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016849rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000016850done
16851
16852fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016853echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016854echo "${ECHO_T}$ac_cv_c_inline" >&6
Alexandre Julliard875927f2004-01-02 01:55:29 +000016855
16856
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016857case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000016858 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000016859 *)
16860 case $ac_cv_c_inline in
16861 no) ac_val=;;
16862 *) ac_val=$ac_cv_c_inline;;
16863 esac
16864 cat >>confdefs.h <<_ACEOF
16865#ifndef __cplusplus
16866#define inline $ac_val
16867#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016868_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000016869 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000016870esac
16871
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016872echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016873echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
16874if test "${ac_cv_type_mode_t+set}" = set; then
16875 echo $ECHO_N "(cached) $ECHO_C" >&6
16876else
16877 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016878/* confdefs.h. */
16879_ACEOF
16880cat confdefs.h >>conftest.$ac_ext
16881cat >>conftest.$ac_ext <<_ACEOF
16882/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016883$ac_includes_default
16884int
16885main ()
16886{
16887if ((mode_t *) 0)
16888 return 0;
16889if (sizeof (mode_t))
16890 return 0;
16891 ;
16892 return 0;
16893}
16894_ACEOF
16895rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016897 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016898 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016899 grep -v '^ *+' conftest.er1 >conftest.err
16900 rm -f conftest.er1
16901 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016903 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16906 (eval $ac_try) 2>&5
16907 ac_status=$?
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; } &&
16910 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016912 (eval $ac_try) 2>&5
16913 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016915 (exit $ac_status); }; }; then
16916 ac_cv_type_mode_t=yes
16917else
16918 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016919sed 's/^/| /' conftest.$ac_ext >&5
16920
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016921ac_cv_type_mode_t=no
16922fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016923rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016924fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016925echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016926echo "${ECHO_T}$ac_cv_type_mode_t" >&6
16927if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016928
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016929cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000016930#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016931_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016932
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016933
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000016934fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016935echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016936echo $ECHO_N "checking for off_t... $ECHO_C" >&6
16937if test "${ac_cv_type_off_t+set}" = set; then
16938 echo $ECHO_N "(cached) $ECHO_C" >&6
16939else
16940 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016941/* confdefs.h. */
16942_ACEOF
16943cat confdefs.h >>conftest.$ac_ext
16944cat >>conftest.$ac_ext <<_ACEOF
16945/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016946$ac_includes_default
16947int
16948main ()
16949{
16950if ((off_t *) 0)
16951 return 0;
16952if (sizeof (off_t))
16953 return 0;
16954 ;
16955 return 0;
16956}
16957_ACEOF
16958rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016959if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000016960 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016961 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000016962 grep -v '^ *+' conftest.er1 >conftest.err
16963 rm -f conftest.er1
16964 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016966 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000016967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16969 (eval $ac_try) 2>&5
16970 ac_status=$?
16971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972 (exit $ac_status); }; } &&
16973 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016975 (eval $ac_try) 2>&5
16976 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016978 (exit $ac_status); }; }; then
16979 ac_cv_type_off_t=yes
16980else
16981 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016982sed 's/^/| /' conftest.$ac_ext >&5
16983
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016984ac_cv_type_off_t=no
16985fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000016986rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016987fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016988echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016989echo "${ECHO_T}$ac_cv_type_off_t" >&6
16990if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016991
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016992cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000016993#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016994_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016995
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016996
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000016997fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016998echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016999echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
17000if test "${ac_cv_type_pid_t+set}" = set; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17002else
17003 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017004/* confdefs.h. */
17005_ACEOF
17006cat confdefs.h >>conftest.$ac_ext
17007cat >>conftest.$ac_ext <<_ACEOF
17008/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017009$ac_includes_default
17010int
17011main ()
17012{
17013if ((pid_t *) 0)
17014 return 0;
17015if (sizeof (pid_t))
17016 return 0;
17017 ;
17018 return 0;
17019}
17020_ACEOF
17021rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017022if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017023 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017024 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017025 grep -v '^ *+' conftest.er1 >conftest.err
17026 rm -f conftest.er1
17027 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017029 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17032 (eval $ac_try) 2>&5
17033 ac_status=$?
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; } &&
17036 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017038 (eval $ac_try) 2>&5
17039 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017041 (exit $ac_status); }; }; then
17042 ac_cv_type_pid_t=yes
17043else
17044 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017045sed 's/^/| /' conftest.$ac_ext >&5
17046
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017047ac_cv_type_pid_t=no
17048fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017049rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017050fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017051echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017052echo "${ECHO_T}$ac_cv_type_pid_t" >&6
17053if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017054
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017055cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017056#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017057_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017058
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017059
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017060fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017061echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017062echo $ECHO_N "checking for size_t... $ECHO_C" >&6
17063if test "${ac_cv_type_size_t+set}" = set; then
17064 echo $ECHO_N "(cached) $ECHO_C" >&6
17065else
17066 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017067/* confdefs.h. */
17068_ACEOF
17069cat confdefs.h >>conftest.$ac_ext
17070cat >>conftest.$ac_ext <<_ACEOF
17071/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017072$ac_includes_default
17073int
17074main ()
17075{
17076if ((size_t *) 0)
17077 return 0;
17078if (sizeof (size_t))
17079 return 0;
17080 ;
17081 return 0;
17082}
17083_ACEOF
17084rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017086 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017087 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017088 grep -v '^ *+' conftest.er1 >conftest.err
17089 rm -f conftest.er1
17090 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017092 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17095 (eval $ac_try) 2>&5
17096 ac_status=$?
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; } &&
17099 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017101 (eval $ac_try) 2>&5
17102 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017104 (exit $ac_status); }; }; then
17105 ac_cv_type_size_t=yes
17106else
17107 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017108sed 's/^/| /' conftest.$ac_ext >&5
17109
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017110ac_cv_type_size_t=no
17111fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017113fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017114echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017115echo "${ECHO_T}$ac_cv_type_size_t" >&6
17116if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017117
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017118cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017119#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017120_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017121
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017122
17123fi
17124echo "$as_me:$LINENO: checking for ssize_t" >&5
17125echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
17126if test "${ac_cv_type_ssize_t+set}" = set; then
17127 echo $ECHO_N "(cached) $ECHO_C" >&6
17128else
17129 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017130/* confdefs.h. */
17131_ACEOF
17132cat confdefs.h >>conftest.$ac_ext
17133cat >>conftest.$ac_ext <<_ACEOF
17134/* end confdefs.h. */
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017135$ac_includes_default
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017136int
17137main ()
17138{
17139if ((ssize_t *) 0)
17140 return 0;
17141if (sizeof (ssize_t))
17142 return 0;
17143 ;
17144 return 0;
17145}
17146_ACEOF
17147rm -f conftest.$ac_objext
17148if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017149 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017150 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17158 (eval $ac_try) 2>&5
17159 ac_status=$?
17160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); }; } &&
17162 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17164 (eval $ac_try) 2>&5
17165 ac_status=$?
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_cv_type_ssize_t=yes
17169else
17170 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017171sed 's/^/| /' conftest.$ac_ext >&5
17172
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017173ac_cv_type_ssize_t=no
17174fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017175rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000017176fi
17177echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
17178echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
17179if test $ac_cv_type_ssize_t = yes; then
17180
17181cat >>confdefs.h <<_ACEOF
17182#define HAVE_SSIZE_T 1
17183_ACEOF
17184
17185
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017186fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017187echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017188echo $ECHO_N "checking for long long... $ECHO_C" >&6
17189if test "${ac_cv_type_long_long+set}" = set; then
17190 echo $ECHO_N "(cached) $ECHO_C" >&6
17191else
17192 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017193/* confdefs.h. */
17194_ACEOF
17195cat confdefs.h >>conftest.$ac_ext
17196cat >>conftest.$ac_ext <<_ACEOF
17197/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017198$ac_includes_default
17199int
17200main ()
17201{
17202if ((long long *) 0)
17203 return 0;
17204if (sizeof (long long))
17205 return 0;
17206 ;
17207 return 0;
17208}
17209_ACEOF
17210rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017211if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017212 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017213 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017214 grep -v '^ *+' conftest.er1 >conftest.err
17215 rm -f conftest.er1
17216 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017218 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017219 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17221 (eval $ac_try) 2>&5
17222 ac_status=$?
17223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17224 (exit $ac_status); }; } &&
17225 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017227 (eval $ac_try) 2>&5
17228 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017230 (exit $ac_status); }; }; then
17231 ac_cv_type_long_long=yes
17232else
17233 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017234sed 's/^/| /' conftest.$ac_ext >&5
17235
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017236ac_cv_type_long_long=no
17237fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017238rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017239fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017240echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017241echo "${ECHO_T}$ac_cv_type_long_long" >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017242if test $ac_cv_type_long_long = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017243
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017244cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017245#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017246_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000017247
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017248
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017249fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000017250echo "$as_me:$LINENO: checking for fsblkcnt_t" >&5
17251echo $ECHO_N "checking for fsblkcnt_t... $ECHO_C" >&6
17252if test "${ac_cv_type_fsblkcnt_t+set}" = set; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17254else
17255 cat >conftest.$ac_ext <<_ACEOF
17256/* confdefs.h. */
17257_ACEOF
17258cat confdefs.h >>conftest.$ac_ext
17259cat >>conftest.$ac_ext <<_ACEOF
17260/* end confdefs.h. */
17261$ac_includes_default
17262int
17263main ()
17264{
17265if ((fsblkcnt_t *) 0)
17266 return 0;
17267if (sizeof (fsblkcnt_t))
17268 return 0;
17269 ;
17270 return 0;
17271}
17272_ACEOF
17273rm -f conftest.$ac_objext
17274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17275 (eval $ac_compile) 2>conftest.er1
17276 ac_status=$?
17277 grep -v '^ *+' conftest.er1 >conftest.err
17278 rm -f conftest.er1
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } &&
17282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17284 (eval $ac_try) 2>&5
17285 ac_status=$?
17286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17287 (exit $ac_status); }; } &&
17288 { ac_try='test -s conftest.$ac_objext'
17289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17290 (eval $ac_try) 2>&5
17291 ac_status=$?
17292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17293 (exit $ac_status); }; }; then
17294 ac_cv_type_fsblkcnt_t=yes
17295else
17296 echo "$as_me: failed program was:" >&5
17297sed 's/^/| /' conftest.$ac_ext >&5
17298
17299ac_cv_type_fsblkcnt_t=no
17300fi
17301rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17302fi
17303echo "$as_me:$LINENO: result: $ac_cv_type_fsblkcnt_t" >&5
17304echo "${ECHO_T}$ac_cv_type_fsblkcnt_t" >&6
17305if test $ac_cv_type_fsblkcnt_t = yes; then
17306
17307cat >>confdefs.h <<_ACEOF
17308#define HAVE_FSBLKCNT_T 1
17309_ACEOF
17310
17311
17312fi
17313echo "$as_me:$LINENO: checking for fsfilcnt_t" >&5
17314echo $ECHO_N "checking for fsfilcnt_t... $ECHO_C" >&6
17315if test "${ac_cv_type_fsfilcnt_t+set}" = set; then
17316 echo $ECHO_N "(cached) $ECHO_C" >&6
17317else
17318 cat >conftest.$ac_ext <<_ACEOF
17319/* confdefs.h. */
17320_ACEOF
17321cat confdefs.h >>conftest.$ac_ext
17322cat >>conftest.$ac_ext <<_ACEOF
17323/* end confdefs.h. */
17324$ac_includes_default
17325int
17326main ()
17327{
17328if ((fsfilcnt_t *) 0)
17329 return 0;
17330if (sizeof (fsfilcnt_t))
17331 return 0;
17332 ;
17333 return 0;
17334}
17335_ACEOF
17336rm -f conftest.$ac_objext
17337if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17338 (eval $ac_compile) 2>conftest.er1
17339 ac_status=$?
17340 grep -v '^ *+' conftest.er1 >conftest.err
17341 rm -f conftest.er1
17342 cat conftest.err >&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); } &&
17345 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347 (eval $ac_try) 2>&5
17348 ac_status=$?
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; } &&
17351 { ac_try='test -s conftest.$ac_objext'
17352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353 (eval $ac_try) 2>&5
17354 ac_status=$?
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; }; then
17357 ac_cv_type_fsfilcnt_t=yes
17358else
17359 echo "$as_me: failed program was:" >&5
17360sed 's/^/| /' conftest.$ac_ext >&5
17361
17362ac_cv_type_fsfilcnt_t=no
17363fi
17364rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17365fi
17366echo "$as_me:$LINENO: result: $ac_cv_type_fsfilcnt_t" >&5
17367echo "${ECHO_T}$ac_cv_type_fsfilcnt_t" >&6
17368if test $ac_cv_type_fsfilcnt_t = yes; then
17369
17370cat >>confdefs.h <<_ACEOF
17371#define HAVE_FSFILCNT_T 1
17372_ACEOF
17373
17374
17375fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000017376
Paul Millar10a6c562004-12-07 17:19:54 +000017377echo "$as_me:$LINENO: checking for sigset_t" >&5
17378echo $ECHO_N "checking for sigset_t... $ECHO_C" >&6
17379if test "${ac_cv_type_sigset_t+set}" = set; then
17380 echo $ECHO_N "(cached) $ECHO_C" >&6
17381else
17382 cat >conftest.$ac_ext <<_ACEOF
17383/* confdefs.h. */
17384_ACEOF
17385cat confdefs.h >>conftest.$ac_ext
17386cat >>conftest.$ac_ext <<_ACEOF
17387/* end confdefs.h. */
17388#include <signal.h>
17389
17390int
17391main ()
17392{
17393if ((sigset_t *) 0)
17394 return 0;
17395if (sizeof (sigset_t))
17396 return 0;
17397 ;
17398 return 0;
17399}
17400_ACEOF
17401rm -f conftest.$ac_objext
17402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17403 (eval $ac_compile) 2>conftest.er1
17404 ac_status=$?
17405 grep -v '^ *+' conftest.er1 >conftest.err
17406 rm -f conftest.er1
17407 cat conftest.err >&5
17408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17409 (exit $ac_status); } &&
17410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17412 (eval $ac_try) 2>&5
17413 ac_status=$?
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; } &&
17416 { ac_try='test -s conftest.$ac_objext'
17417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17418 (eval $ac_try) 2>&5
17419 ac_status=$?
17420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421 (exit $ac_status); }; }; then
17422 ac_cv_type_sigset_t=yes
17423else
17424 echo "$as_me: failed program was:" >&5
17425sed 's/^/| /' conftest.$ac_ext >&5
17426
17427ac_cv_type_sigset_t=no
17428fi
17429rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17430fi
17431echo "$as_me:$LINENO: result: $ac_cv_type_sigset_t" >&5
17432echo "${ECHO_T}$ac_cv_type_sigset_t" >&6
17433if test $ac_cv_type_sigset_t = yes; then
17434
17435cat >>confdefs.h <<_ACEOF
17436#define HAVE_SIGSET_T 1
17437_ACEOF
17438
17439
17440fi
17441
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000017442echo "$as_me:$LINENO: checking for request_sense" >&5
17443echo $ECHO_N "checking for request_sense... $ECHO_C" >&6
17444if test "${ac_cv_type_request_sense+set}" = set; then
17445 echo $ECHO_N "(cached) $ECHO_C" >&6
17446else
17447 cat >conftest.$ac_ext <<_ACEOF
17448/* confdefs.h. */
17449_ACEOF
17450cat confdefs.h >>conftest.$ac_ext
17451cat >>conftest.$ac_ext <<_ACEOF
17452/* end confdefs.h. */
17453#include <linux/cdrom.h>
17454
17455int
17456main ()
17457{
17458if ((request_sense *) 0)
17459 return 0;
17460if (sizeof (request_sense))
17461 return 0;
17462 ;
17463 return 0;
17464}
17465_ACEOF
17466rm -f conftest.$ac_objext
17467if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17468 (eval $ac_compile) 2>conftest.er1
17469 ac_status=$?
17470 grep -v '^ *+' conftest.er1 >conftest.err
17471 rm -f conftest.er1
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474 (exit $ac_status); } &&
17475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17477 (eval $ac_try) 2>&5
17478 ac_status=$?
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } &&
17481 { ac_try='test -s conftest.$ac_objext'
17482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17483 (eval $ac_try) 2>&5
17484 ac_status=$?
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; }; then
17487 ac_cv_type_request_sense=yes
17488else
17489 echo "$as_me: failed program was:" >&5
17490sed 's/^/| /' conftest.$ac_ext >&5
17491
17492ac_cv_type_request_sense=no
17493fi
17494rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17495fi
17496echo "$as_me:$LINENO: result: $ac_cv_type_request_sense" >&5
17497echo "${ECHO_T}$ac_cv_type_request_sense" >&6
17498if test $ac_cv_type_request_sense = yes; then
17499
17500cat >>confdefs.h <<_ACEOF
17501#define HAVE_REQUEST_SENSE 1
17502_ACEOF
17503
17504
17505fi
17506
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017507
17508echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017509echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
17510if test "${wine_cv_linux_input_h+set}" = set; then
17511 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017512else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017513 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017514/* confdefs.h. */
17515_ACEOF
17516cat confdefs.h >>conftest.$ac_ext
17517cat >>conftest.$ac_ext <<_ACEOF
17518/* end confdefs.h. */
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017519
17520 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017521
17522int
17523main ()
17524{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017525
17526 int foo = EVIOCGBIT(EV_ABS,42);
17527 int bar = BTN_PINKIE;
17528 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017529
17530 ;
17531 return 0;
17532}
17533_ACEOF
17534rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017535if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017536 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017537 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017538 grep -v '^ *+' conftest.er1 >conftest.err
17539 rm -f conftest.er1
17540 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017542 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17546 ac_status=$?
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017551 (eval $ac_try) 2>&5
17552 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017554 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017555 wine_cv_linux_input_h=yes
17556else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017557 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017558sed 's/^/| /' conftest.$ac_ext >&5
17559
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017560wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017561fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017562rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017563
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017564fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017565echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017566echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017567 if test "$wine_cv_linux_input_h" = "yes"
17568 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017569
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017570cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017571#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017572_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000017573
17574 fi
17575
Paul Millar10a6c562004-12-07 17:19:54 +000017576echo "$as_me:$LINENO: checking for sigaddset" >&5
17577echo $ECHO_N "checking for sigaddset... $ECHO_C" >&6
17578if test "${wine_cv_have_sigaddset+set}" = set; then
17579 echo $ECHO_N "(cached) $ECHO_C" >&6
17580else
17581 cat >conftest.$ac_ext <<_ACEOF
17582/* confdefs.h. */
17583_ACEOF
17584cat confdefs.h >>conftest.$ac_ext
17585cat >>conftest.$ac_ext <<_ACEOF
17586/* end confdefs.h. */
17587#include <signal.h>
17588int
17589main ()
17590{
17591sigset_t set; sigaddset(&set,SIGTERM);
17592 ;
17593 return 0;
17594}
17595_ACEOF
17596rm -f conftest.$ac_objext conftest$ac_exeext
17597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17598 (eval $ac_link) 2>conftest.er1
17599 ac_status=$?
17600 grep -v '^ *+' conftest.er1 >conftest.err
17601 rm -f conftest.er1
17602 cat conftest.err >&5
17603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604 (exit $ac_status); } &&
17605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17607 (eval $ac_try) 2>&5
17608 ac_status=$?
17609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17610 (exit $ac_status); }; } &&
17611 { ac_try='test -s conftest$ac_exeext'
17612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17613 (eval $ac_try) 2>&5
17614 ac_status=$?
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617 wine_cv_have_sigaddset=yes
17618else
17619 echo "$as_me: failed program was:" >&5
17620sed 's/^/| /' conftest.$ac_ext >&5
17621
17622wine_cv_have_sigaddset=no
17623fi
17624rm -f conftest.err conftest.$ac_objext \
17625 conftest$ac_exeext conftest.$ac_ext
17626fi
17627echo "$as_me:$LINENO: result: $wine_cv_have_sigaddset" >&5
17628echo "${ECHO_T}$wine_cv_have_sigaddset" >&6
17629if test "$wine_cv_have_sigaddset" = "yes"
17630then
17631
17632cat >>confdefs.h <<\_ACEOF
17633#define HAVE_SIGADDSET 1
17634_ACEOF
17635
17636fi
17637
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017638
17639echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017640echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
17641if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
17642 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000017643else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017644 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017645/* confdefs.h. */
17646_ACEOF
17647cat confdefs.h >>conftest.$ac_ext
17648cat >>conftest.$ac_ext <<_ACEOF
17649/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000017650
17651#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017652
17653int
17654main ()
17655{
Rein Klazesff7a61f2000-09-24 19:41:57 +000017656
17657 char *name=NULL;
17658 struct hostent he;
17659 struct hostent *result;
17660 char *buf=NULL;
17661 int bufsize=0;
17662 int res,errnr;
17663 char *addr=NULL;
17664 int addrlen=0;
17665 int addrtype=0;
17666 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
17667 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017668
17669 ;
17670 return 0;
17671}
17672_ACEOF
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000017673rm -f conftest.$ac_objext conftest$ac_exeext
17674if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17675 (eval $ac_link) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017676 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017677 grep -v '^ *+' conftest.er1 >conftest.err
17678 rm -f conftest.er1
17679 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017681 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017682 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17684 (eval $ac_try) 2>&5
17685 ac_status=$?
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); }; } &&
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000017688 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017690 (eval $ac_try) 2>&5
17691 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017693 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000017694 wine_cv_linux_gethostbyname_r_6=yes
17695else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017696 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017697sed 's/^/| /' conftest.$ac_ext >&5
17698
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017699wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000017700
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017701fi
Marcus Meissnerdfd315b2004-01-02 03:53:57 +000017702rm -f conftest.err conftest.$ac_objext \
17703 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017704
17705fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017706echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017707echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000017708 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
17709 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017710
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017711cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000017712#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017713_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000017714
17715 fi
17716
Marcus Meissner028e9a11999-08-04 15:07:56 +000017717if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017718then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017719 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017720echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
17721if test "${wine_cv_linux_joystick_22_api+set}" = set; then
17722 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017723else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017724 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017725/* confdefs.h. */
17726_ACEOF
17727cat confdefs.h >>conftest.$ac_ext
17728cat >>conftest.$ac_ext <<_ACEOF
17729/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017730
Marcus Meissner028e9a11999-08-04 15:07:56 +000017731 #include <sys/ioctl.h>
17732 #include <linux/joystick.h>
17733
17734 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000017735 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
17736 #error "no 2.2 header"
17737 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017738
17739int
17740main ()
17741{
Marcus Meissner028e9a11999-08-04 15:07:56 +000017742/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017743 ;
17744 return 0;
17745}
17746_ACEOF
17747rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017749 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017750 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017751 grep -v '^ *+' conftest.er1 >conftest.err
17752 rm -f conftest.er1
17753 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017755 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17758 (eval $ac_try) 2>&5
17759 ac_status=$?
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); }; } &&
17762 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017764 (eval $ac_try) 2>&5
17765 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017767 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000017768 wine_cv_linux_joystick_22_api=yes
17769else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017770 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017771sed 's/^/| /' conftest.$ac_ext >&5
17772
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017773wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000017774fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017775rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000017776
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017777fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017778echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017779echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000017780 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000017781 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017782
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017783cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000017784#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017785_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000017786
17787 fi
17788fi
17789
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017790
Marcus Meissner028e9a11999-08-04 15:07:56 +000017791if test "$ac_cv_header_sys_vfs_h" = "yes"
17792then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017793 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017794echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
17795if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
17796 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000017797else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017798 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017799/* confdefs.h. */
17800_ACEOF
17801cat confdefs.h >>conftest.$ac_ext
17802cat >>conftest.$ac_ext <<_ACEOF
17803/* end confdefs.h. */
Marcus Meissner028e9a11999-08-04 15:07:56 +000017804
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017805 #include <sys/types.h>
17806 #ifdef HAVE_SYS_PARAM_H
17807 # include <sys/param.h>
17808 #endif
17809 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017810
17811int
17812main ()
17813{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017814
17815 struct statfs stfs;
17816
17817 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017818
17819 ;
17820 return 0;
17821}
17822_ACEOF
17823rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017824if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017825 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017826 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017827 grep -v '^ *+' conftest.er1 >conftest.err
17828 rm -f conftest.er1
17829 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017831 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
17838 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017840 (eval $ac_try) 2>&5
17841 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017843 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017844 wine_cv_sys_vfs_has_statfs=yes
17845else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017846 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017847sed 's/^/| /' conftest.$ac_ext >&5
17848
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017849wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017850
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017851fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017852rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017853
17854fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017855echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017856echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017857 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
17858 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017859
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017860cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017861#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017862_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017863
17864 fi
17865fi
17866
17867if test "$ac_cv_header_sys_statfs_h" = "yes"
17868then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017869 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017870echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
17871if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
17872 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017873else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017874 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017875/* confdefs.h. */
17876_ACEOF
17877cat confdefs.h >>conftest.$ac_ext
17878cat >>conftest.$ac_ext <<_ACEOF
17879/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017880
17881 #include <sys/types.h>
17882 #ifdef HAVE_SYS_PARAM_H
17883 # include <sys/param.h>
17884 #endif
17885 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017886
17887int
17888main ()
17889{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017890
17891 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017892
17893 ;
17894 return 0;
17895}
17896_ACEOF
17897rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017898if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017899 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017900 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017901 grep -v '^ *+' conftest.er1 >conftest.err
17902 rm -f conftest.er1
17903 cat conftest.err >&5
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); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17908 (eval $ac_try) 2>&5
17909 ac_status=$?
17910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17911 (exit $ac_status); }; } &&
17912 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017914 (eval $ac_try) 2>&5
17915 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017917 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017918 wine_cv_sys_statfs_has_statfs=yes
17919else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017920 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017921sed 's/^/| /' conftest.$ac_ext >&5
17922
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017923wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017924
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017925fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000017926rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017927
17928fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017929echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017930echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017931 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
17932 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017933
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017934cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017935#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017936_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017937
17938 fi
17939fi
17940
17941if test "$ac_cv_header_sys_mount_h" = "yes"
17942then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017943 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017944echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
17945if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017947else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017948 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017949/* confdefs.h. */
17950_ACEOF
17951cat confdefs.h >>conftest.$ac_ext
17952cat >>conftest.$ac_ext <<_ACEOF
17953/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017954
17955 #include <sys/types.h>
17956 #ifdef HAVE_SYS_PARAM_H
17957 # include <sys/param.h>
17958 #endif
17959 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017960
17961int
17962main ()
17963{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017964
17965 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017966
17967 ;
17968 return 0;
17969}
17970_ACEOF
17971rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017972if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000017973 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017974 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000017975 grep -v '^ *+' conftest.er1 >conftest.err
17976 rm -f conftest.er1
17977 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017979 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000017980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17982 (eval $ac_try) 2>&5
17983 ac_status=$?
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); }; } &&
17986 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017988 (eval $ac_try) 2>&5
17989 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017991 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017992 wine_cv_sys_mount_has_statfs=yes
17993else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017994 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017995sed 's/^/| /' conftest.$ac_ext >&5
17996
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017997wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000017998
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017999fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018000rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018001
18002fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018003echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018004echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018005 if test "$wine_cv_sys_mount_has_statfs" = "yes"
18006 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018007
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018008cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018009#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018010_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018011
18012 fi
18013fi
18014
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018015
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018016echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
18017echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
18018if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018019 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018020else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018021 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018022/* confdefs.h. */
18023_ACEOF
18024cat confdefs.h >>conftest.$ac_ext
18025cat >>conftest.$ac_ext <<_ACEOF
18026/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018027#include <sys/types.h>
18028#ifdef HAVE_SYS_PARAM_H
18029# include <sys/param.h>
18030#endif
18031#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18032# include <sys/mount.h>
18033#else
18034# ifdef STATFS_DEFINED_BY_SYS_VFS
18035# include <sys/vfs.h>
18036# else
18037# ifdef STATFS_DEFINED_BY_SYS_STATFS
18038# include <sys/statfs.h>
18039# endif
18040# endif
18041#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018042
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018043int
18044main ()
18045{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018046static struct statfs ac_aggr;
18047if (ac_aggr.f_bfree)
18048return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018049 ;
18050 return 0;
18051}
18052_ACEOF
18053rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018054if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018055 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018056 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018057 grep -v '^ *+' conftest.er1 >conftest.err
18058 rm -f conftest.er1
18059 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018061 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18064 (eval $ac_try) 2>&5
18065 ac_status=$?
18066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18067 (exit $ac_status); }; } &&
18068 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018070 (eval $ac_try) 2>&5
18071 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018073 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018074 ac_cv_member_struct_statfs_f_bfree=yes
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018075else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018076 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018077sed 's/^/| /' conftest.$ac_ext >&5
18078
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018079cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018080/* confdefs.h. */
18081_ACEOF
18082cat confdefs.h >>conftest.$ac_ext
18083cat >>conftest.$ac_ext <<_ACEOF
18084/* end confdefs.h. */
18085#include <sys/types.h>
18086#ifdef HAVE_SYS_PARAM_H
18087# include <sys/param.h>
18088#endif
18089#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18090# include <sys/mount.h>
18091#else
18092# ifdef STATFS_DEFINED_BY_SYS_VFS
18093# include <sys/vfs.h>
18094# else
18095# ifdef STATFS_DEFINED_BY_SYS_STATFS
18096# include <sys/statfs.h>
18097# endif
18098# endif
18099#endif
18100
18101int
18102main ()
18103{
18104static struct statfs ac_aggr;
18105if (sizeof ac_aggr.f_bfree)
18106return 0;
18107 ;
18108 return 0;
18109}
18110_ACEOF
18111rm -f conftest.$ac_objext
18112if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018113 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018114 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018115 grep -v '^ *+' conftest.er1 >conftest.err
18116 rm -f conftest.er1
18117 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18122 (eval $ac_try) 2>&5
18123 ac_status=$?
18124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18125 (exit $ac_status); }; } &&
18126 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18128 (eval $ac_try) 2>&5
18129 ac_status=$?
18130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131 (exit $ac_status); }; }; then
18132 ac_cv_member_struct_statfs_f_bfree=yes
18133else
18134 echo "$as_me: failed program was:" >&5
18135sed 's/^/| /' conftest.$ac_ext >&5
18136
18137ac_cv_member_struct_statfs_f_bfree=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018138fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018139rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018140fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018141rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018142fi
18143echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
18144echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
18145if test $ac_cv_member_struct_statfs_f_bfree = yes; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018146
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018147cat >>confdefs.h <<_ACEOF
18148#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018149_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018150
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018151
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000018152fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018153echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
18154echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
18155if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018156 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000018157else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018158 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018159/* confdefs.h. */
18160_ACEOF
18161cat confdefs.h >>conftest.$ac_ext
18162cat >>conftest.$ac_ext <<_ACEOF
18163/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018164#include <sys/types.h>
18165#ifdef HAVE_SYS_PARAM_H
18166# include <sys/param.h>
18167#endif
18168#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18169# include <sys/mount.h>
18170#else
18171# ifdef STATFS_DEFINED_BY_SYS_VFS
18172# include <sys/vfs.h>
18173# else
18174# ifdef STATFS_DEFINED_BY_SYS_STATFS
18175# include <sys/statfs.h>
18176# endif
18177# endif
18178#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018179
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018180int
18181main ()
18182{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018183static struct statfs ac_aggr;
18184if (ac_aggr.f_bavail)
18185return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018186 ;
18187 return 0;
18188}
18189_ACEOF
18190rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018191if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018192 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018193 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018194 grep -v '^ *+' conftest.er1 >conftest.err
18195 rm -f conftest.er1
18196 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018198 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18201 (eval $ac_try) 2>&5
18202 ac_status=$?
18203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18204 (exit $ac_status); }; } &&
18205 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018207 (eval $ac_try) 2>&5
18208 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018210 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018211 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000018212else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018213 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018214sed 's/^/| /' conftest.$ac_ext >&5
18215
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018216cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018217/* confdefs.h. */
18218_ACEOF
18219cat confdefs.h >>conftest.$ac_ext
18220cat >>conftest.$ac_ext <<_ACEOF
18221/* end confdefs.h. */
Alexandre Julliard829fe321998-07-26 14:27:39 +000018222#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018223#ifdef HAVE_SYS_PARAM_H
18224# include <sys/param.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000018225#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018226#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18227# include <sys/mount.h>
18228#else
18229# ifdef STATFS_DEFINED_BY_SYS_VFS
18230# include <sys/vfs.h>
18231# else
18232# ifdef STATFS_DEFINED_BY_SYS_STATFS
18233# include <sys/statfs.h>
18234# endif
18235# endif
18236#endif
18237
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018238int
18239main ()
18240{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018241static struct statfs ac_aggr;
18242if (sizeof ac_aggr.f_bavail)
18243return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018244 ;
18245 return 0;
18246}
18247_ACEOF
18248rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018249if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018250 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018251 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018252 grep -v '^ *+' conftest.er1 >conftest.err
18253 rm -f conftest.er1
18254 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018256 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18259 (eval $ac_try) 2>&5
18260 ac_status=$?
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }; } &&
18263 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018265 (eval $ac_try) 2>&5
18266 ac_status=$?
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); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018269 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliard829fe321998-07-26 14:27:39 +000018270else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018271 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018272sed 's/^/| /' conftest.$ac_ext >&5
18273
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018274ac_cv_member_struct_statfs_f_bavail=no
Alexandre Julliard829fe321998-07-26 14:27:39 +000018275fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000018277fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000018278rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000018279fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018280echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
18281echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
18282if test $ac_cv_member_struct_statfs_f_bavail = yes; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000018283
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018284cat >>confdefs.h <<_ACEOF
18285#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018286_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000018287
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018288
Patrik Stridvall09da9662001-07-08 22:30:50 +000018289fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000018290echo "$as_me:$LINENO: checking for struct statfs.f_frsize" >&5
18291echo $ECHO_N "checking for struct statfs.f_frsize... $ECHO_C" >&6
18292if test "${ac_cv_member_struct_statfs_f_frsize+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18294else
18295 cat >conftest.$ac_ext <<_ACEOF
18296/* confdefs.h. */
18297_ACEOF
18298cat confdefs.h >>conftest.$ac_ext
18299cat >>conftest.$ac_ext <<_ACEOF
18300/* end confdefs.h. */
18301#include <sys/types.h>
18302#ifdef HAVE_SYS_PARAM_H
18303# include <sys/param.h>
18304#endif
18305#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18306# include <sys/mount.h>
18307#else
18308# ifdef STATFS_DEFINED_BY_SYS_VFS
18309# include <sys/vfs.h>
18310# else
18311# ifdef STATFS_DEFINED_BY_SYS_STATFS
18312# include <sys/statfs.h>
18313# endif
18314# endif
18315#endif
18316
18317int
18318main ()
18319{
18320static struct statfs ac_aggr;
18321if (ac_aggr.f_frsize)
18322return 0;
18323 ;
18324 return 0;
18325}
18326_ACEOF
18327rm -f conftest.$ac_objext
18328if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18329 (eval $ac_compile) 2>conftest.er1
18330 ac_status=$?
18331 grep -v '^ *+' conftest.er1 >conftest.err
18332 rm -f conftest.er1
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18338 (eval $ac_try) 2>&5
18339 ac_status=$?
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); }; } &&
18342 { ac_try='test -s conftest.$ac_objext'
18343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18344 (eval $ac_try) 2>&5
18345 ac_status=$?
18346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347 (exit $ac_status); }; }; then
18348 ac_cv_member_struct_statfs_f_frsize=yes
18349else
18350 echo "$as_me: failed program was:" >&5
18351sed 's/^/| /' conftest.$ac_ext >&5
18352
18353cat >conftest.$ac_ext <<_ACEOF
18354/* confdefs.h. */
18355_ACEOF
18356cat confdefs.h >>conftest.$ac_ext
18357cat >>conftest.$ac_ext <<_ACEOF
18358/* end confdefs.h. */
18359#include <sys/types.h>
18360#ifdef HAVE_SYS_PARAM_H
18361# include <sys/param.h>
18362#endif
18363#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18364# include <sys/mount.h>
18365#else
18366# ifdef STATFS_DEFINED_BY_SYS_VFS
18367# include <sys/vfs.h>
18368# else
18369# ifdef STATFS_DEFINED_BY_SYS_STATFS
18370# include <sys/statfs.h>
18371# endif
18372# endif
18373#endif
18374
18375int
18376main ()
18377{
18378static struct statfs ac_aggr;
18379if (sizeof ac_aggr.f_frsize)
18380return 0;
18381 ;
18382 return 0;
18383}
18384_ACEOF
18385rm -f conftest.$ac_objext
18386if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18387 (eval $ac_compile) 2>conftest.er1
18388 ac_status=$?
18389 grep -v '^ *+' conftest.er1 >conftest.err
18390 rm -f conftest.er1
18391 cat conftest.err >&5
18392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); } &&
18394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18396 (eval $ac_try) 2>&5
18397 ac_status=$?
18398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18399 (exit $ac_status); }; } &&
18400 { ac_try='test -s conftest.$ac_objext'
18401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18402 (eval $ac_try) 2>&5
18403 ac_status=$?
18404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18405 (exit $ac_status); }; }; then
18406 ac_cv_member_struct_statfs_f_frsize=yes
18407else
18408 echo "$as_me: failed program was:" >&5
18409sed 's/^/| /' conftest.$ac_ext >&5
18410
18411ac_cv_member_struct_statfs_f_frsize=no
18412fi
18413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18414fi
18415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18416fi
18417echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_frsize" >&5
18418echo "${ECHO_T}$ac_cv_member_struct_statfs_f_frsize" >&6
18419if test $ac_cv_member_struct_statfs_f_frsize = yes; then
18420
18421cat >>confdefs.h <<_ACEOF
18422#define HAVE_STRUCT_STATFS_F_FRSIZE 1
18423_ACEOF
18424
18425
18426fi
18427echo "$as_me:$LINENO: checking for struct statfs.f_ffree" >&5
18428echo $ECHO_N "checking for struct statfs.f_ffree... $ECHO_C" >&6
18429if test "${ac_cv_member_struct_statfs_f_ffree+set}" = set; then
18430 echo $ECHO_N "(cached) $ECHO_C" >&6
18431else
18432 cat >conftest.$ac_ext <<_ACEOF
18433/* confdefs.h. */
18434_ACEOF
18435cat confdefs.h >>conftest.$ac_ext
18436cat >>conftest.$ac_ext <<_ACEOF
18437/* end confdefs.h. */
18438#include <sys/types.h>
18439#ifdef HAVE_SYS_PARAM_H
18440# include <sys/param.h>
18441#endif
18442#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18443# include <sys/mount.h>
18444#else
18445# ifdef STATFS_DEFINED_BY_SYS_VFS
18446# include <sys/vfs.h>
18447# else
18448# ifdef STATFS_DEFINED_BY_SYS_STATFS
18449# include <sys/statfs.h>
18450# endif
18451# endif
18452#endif
18453
18454int
18455main ()
18456{
18457static struct statfs ac_aggr;
18458if (ac_aggr.f_ffree)
18459return 0;
18460 ;
18461 return 0;
18462}
18463_ACEOF
18464rm -f conftest.$ac_objext
18465if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18466 (eval $ac_compile) 2>conftest.er1
18467 ac_status=$?
18468 grep -v '^ *+' conftest.er1 >conftest.err
18469 rm -f conftest.er1
18470 cat conftest.err >&5
18471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472 (exit $ac_status); } &&
18473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18475 (eval $ac_try) 2>&5
18476 ac_status=$?
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; } &&
18479 { ac_try='test -s conftest.$ac_objext'
18480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18481 (eval $ac_try) 2>&5
18482 ac_status=$?
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; }; then
18485 ac_cv_member_struct_statfs_f_ffree=yes
18486else
18487 echo "$as_me: failed program was:" >&5
18488sed 's/^/| /' conftest.$ac_ext >&5
18489
18490cat >conftest.$ac_ext <<_ACEOF
18491/* confdefs.h. */
18492_ACEOF
18493cat confdefs.h >>conftest.$ac_ext
18494cat >>conftest.$ac_ext <<_ACEOF
18495/* end confdefs.h. */
18496#include <sys/types.h>
18497#ifdef HAVE_SYS_PARAM_H
18498# include <sys/param.h>
18499#endif
18500#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18501# include <sys/mount.h>
18502#else
18503# ifdef STATFS_DEFINED_BY_SYS_VFS
18504# include <sys/vfs.h>
18505# else
18506# ifdef STATFS_DEFINED_BY_SYS_STATFS
18507# include <sys/statfs.h>
18508# endif
18509# endif
18510#endif
18511
18512int
18513main ()
18514{
18515static struct statfs ac_aggr;
18516if (sizeof ac_aggr.f_ffree)
18517return 0;
18518 ;
18519 return 0;
18520}
18521_ACEOF
18522rm -f conftest.$ac_objext
18523if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18524 (eval $ac_compile) 2>conftest.er1
18525 ac_status=$?
18526 grep -v '^ *+' conftest.er1 >conftest.err
18527 rm -f conftest.er1
18528 cat conftest.err >&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); } &&
18531 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18533 (eval $ac_try) 2>&5
18534 ac_status=$?
18535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536 (exit $ac_status); }; } &&
18537 { ac_try='test -s conftest.$ac_objext'
18538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18539 (eval $ac_try) 2>&5
18540 ac_status=$?
18541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542 (exit $ac_status); }; }; then
18543 ac_cv_member_struct_statfs_f_ffree=yes
18544else
18545 echo "$as_me: failed program was:" >&5
18546sed 's/^/| /' conftest.$ac_ext >&5
18547
18548ac_cv_member_struct_statfs_f_ffree=no
18549fi
18550rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18551fi
18552rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18553fi
18554echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_ffree" >&5
18555echo "${ECHO_T}$ac_cv_member_struct_statfs_f_ffree" >&6
18556if test $ac_cv_member_struct_statfs_f_ffree = yes; then
18557
18558cat >>confdefs.h <<_ACEOF
18559#define HAVE_STRUCT_STATFS_F_FFREE 1
18560_ACEOF
18561
18562
18563fi
18564echo "$as_me:$LINENO: checking for struct statfs.f_favail" >&5
18565echo $ECHO_N "checking for struct statfs.f_favail... $ECHO_C" >&6
18566if test "${ac_cv_member_struct_statfs_f_favail+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18568else
18569 cat >conftest.$ac_ext <<_ACEOF
18570/* confdefs.h. */
18571_ACEOF
18572cat confdefs.h >>conftest.$ac_ext
18573cat >>conftest.$ac_ext <<_ACEOF
18574/* end confdefs.h. */
18575#include <sys/types.h>
18576#ifdef HAVE_SYS_PARAM_H
18577# include <sys/param.h>
18578#endif
18579#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18580# include <sys/mount.h>
18581#else
18582# ifdef STATFS_DEFINED_BY_SYS_VFS
18583# include <sys/vfs.h>
18584# else
18585# ifdef STATFS_DEFINED_BY_SYS_STATFS
18586# include <sys/statfs.h>
18587# endif
18588# endif
18589#endif
18590
18591int
18592main ()
18593{
18594static struct statfs ac_aggr;
18595if (ac_aggr.f_favail)
18596return 0;
18597 ;
18598 return 0;
18599}
18600_ACEOF
18601rm -f conftest.$ac_objext
18602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18603 (eval $ac_compile) 2>conftest.er1
18604 ac_status=$?
18605 grep -v '^ *+' conftest.er1 >conftest.err
18606 rm -f conftest.er1
18607 cat conftest.err >&5
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); } &&
18610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18612 (eval $ac_try) 2>&5
18613 ac_status=$?
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; } &&
18616 { ac_try='test -s conftest.$ac_objext'
18617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18618 (eval $ac_try) 2>&5
18619 ac_status=$?
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); }; }; then
18622 ac_cv_member_struct_statfs_f_favail=yes
18623else
18624 echo "$as_me: failed program was:" >&5
18625sed 's/^/| /' conftest.$ac_ext >&5
18626
18627cat >conftest.$ac_ext <<_ACEOF
18628/* confdefs.h. */
18629_ACEOF
18630cat confdefs.h >>conftest.$ac_ext
18631cat >>conftest.$ac_ext <<_ACEOF
18632/* end confdefs.h. */
18633#include <sys/types.h>
18634#ifdef HAVE_SYS_PARAM_H
18635# include <sys/param.h>
18636#endif
18637#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18638# include <sys/mount.h>
18639#else
18640# ifdef STATFS_DEFINED_BY_SYS_VFS
18641# include <sys/vfs.h>
18642# else
18643# ifdef STATFS_DEFINED_BY_SYS_STATFS
18644# include <sys/statfs.h>
18645# endif
18646# endif
18647#endif
18648
18649int
18650main ()
18651{
18652static struct statfs ac_aggr;
18653if (sizeof ac_aggr.f_favail)
18654return 0;
18655 ;
18656 return 0;
18657}
18658_ACEOF
18659rm -f conftest.$ac_objext
18660if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18661 (eval $ac_compile) 2>conftest.er1
18662 ac_status=$?
18663 grep -v '^ *+' conftest.er1 >conftest.err
18664 rm -f conftest.er1
18665 cat conftest.err >&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); } &&
18668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670 (eval $ac_try) 2>&5
18671 ac_status=$?
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); }; } &&
18674 { ac_try='test -s conftest.$ac_objext'
18675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18676 (eval $ac_try) 2>&5
18677 ac_status=$?
18678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18679 (exit $ac_status); }; }; then
18680 ac_cv_member_struct_statfs_f_favail=yes
18681else
18682 echo "$as_me: failed program was:" >&5
18683sed 's/^/| /' conftest.$ac_ext >&5
18684
18685ac_cv_member_struct_statfs_f_favail=no
18686fi
18687rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18688fi
18689rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18690fi
18691echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_favail" >&5
18692echo "${ECHO_T}$ac_cv_member_struct_statfs_f_favail" >&6
18693if test $ac_cv_member_struct_statfs_f_favail = yes; then
18694
18695cat >>confdefs.h <<_ACEOF
18696#define HAVE_STRUCT_STATFS_F_FAVAIL 1
18697_ACEOF
18698
18699
18700fi
Alexandre Julliardb859a682004-03-07 03:16:43 +000018701echo "$as_me:$LINENO: checking for struct statfs.f_namelen" >&5
18702echo $ECHO_N "checking for struct statfs.f_namelen... $ECHO_C" >&6
18703if test "${ac_cv_member_struct_statfs_f_namelen+set}" = set; then
18704 echo $ECHO_N "(cached) $ECHO_C" >&6
18705else
18706 cat >conftest.$ac_ext <<_ACEOF
18707/* confdefs.h. */
18708_ACEOF
18709cat confdefs.h >>conftest.$ac_ext
18710cat >>conftest.$ac_ext <<_ACEOF
18711/* end confdefs.h. */
18712#include <sys/types.h>
18713#ifdef HAVE_SYS_PARAM_H
18714# include <sys/param.h>
18715#endif
18716#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18717# include <sys/mount.h>
18718#else
18719# ifdef STATFS_DEFINED_BY_SYS_VFS
18720# include <sys/vfs.h>
18721# else
18722# ifdef STATFS_DEFINED_BY_SYS_STATFS
18723# include <sys/statfs.h>
18724# endif
18725# endif
18726#endif
18727
18728int
18729main ()
18730{
18731static struct statfs ac_aggr;
18732if (ac_aggr.f_namelen)
18733return 0;
18734 ;
18735 return 0;
18736}
18737_ACEOF
18738rm -f conftest.$ac_objext
18739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18740 (eval $ac_compile) 2>conftest.er1
18741 ac_status=$?
18742 grep -v '^ *+' conftest.er1 >conftest.err
18743 rm -f conftest.er1
18744 cat conftest.err >&5
18745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746 (exit $ac_status); } &&
18747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18749 (eval $ac_try) 2>&5
18750 ac_status=$?
18751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18752 (exit $ac_status); }; } &&
18753 { ac_try='test -s conftest.$ac_objext'
18754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18755 (eval $ac_try) 2>&5
18756 ac_status=$?
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 ac_cv_member_struct_statfs_f_namelen=yes
18760else
18761 echo "$as_me: failed program was:" >&5
18762sed 's/^/| /' conftest.$ac_ext >&5
18763
18764cat >conftest.$ac_ext <<_ACEOF
18765/* confdefs.h. */
18766_ACEOF
18767cat confdefs.h >>conftest.$ac_ext
18768cat >>conftest.$ac_ext <<_ACEOF
18769/* end confdefs.h. */
18770#include <sys/types.h>
18771#ifdef HAVE_SYS_PARAM_H
18772# include <sys/param.h>
18773#endif
18774#ifdef STATFS_DEFINED_BY_SYS_MOUNT
18775# include <sys/mount.h>
18776#else
18777# ifdef STATFS_DEFINED_BY_SYS_VFS
18778# include <sys/vfs.h>
18779# else
18780# ifdef STATFS_DEFINED_BY_SYS_STATFS
18781# include <sys/statfs.h>
18782# endif
18783# endif
18784#endif
18785
18786int
18787main ()
18788{
18789static struct statfs ac_aggr;
18790if (sizeof ac_aggr.f_namelen)
18791return 0;
18792 ;
18793 return 0;
18794}
18795_ACEOF
18796rm -f conftest.$ac_objext
18797if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18798 (eval $ac_compile) 2>conftest.er1
18799 ac_status=$?
18800 grep -v '^ *+' conftest.er1 >conftest.err
18801 rm -f conftest.er1
18802 cat conftest.err >&5
18803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18804 (exit $ac_status); } &&
18805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18807 (eval $ac_try) 2>&5
18808 ac_status=$?
18809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18810 (exit $ac_status); }; } &&
18811 { ac_try='test -s conftest.$ac_objext'
18812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18813 (eval $ac_try) 2>&5
18814 ac_status=$?
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); }; }; then
18817 ac_cv_member_struct_statfs_f_namelen=yes
18818else
18819 echo "$as_me: failed program was:" >&5
18820sed 's/^/| /' conftest.$ac_ext >&5
18821
18822ac_cv_member_struct_statfs_f_namelen=no
18823fi
18824rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18825fi
18826rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18827fi
18828echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_namelen" >&5
18829echo "${ECHO_T}$ac_cv_member_struct_statfs_f_namelen" >&6
18830if test $ac_cv_member_struct_statfs_f_namelen = yes; then
18831
18832cat >>confdefs.h <<_ACEOF
18833#define HAVE_STRUCT_STATFS_F_NAMELEN 1
18834_ACEOF
18835
18836
18837fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000018838
18839
18840echo "$as_me:$LINENO: checking for struct statvfs.f_blocks" >&5
18841echo $ECHO_N "checking for struct statvfs.f_blocks... $ECHO_C" >&6
18842if test "${ac_cv_member_struct_statvfs_f_blocks+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18844else
18845 cat >conftest.$ac_ext <<_ACEOF
18846/* confdefs.h. */
18847_ACEOF
18848cat confdefs.h >>conftest.$ac_ext
18849cat >>conftest.$ac_ext <<_ACEOF
18850/* end confdefs.h. */
18851#ifdef HAVE_SYS_STATVFS_H
18852#include <sys/statvfs.h>
18853#endif
18854
18855int
18856main ()
18857{
18858static struct statvfs ac_aggr;
18859if (ac_aggr.f_blocks)
18860return 0;
18861 ;
18862 return 0;
18863}
18864_ACEOF
18865rm -f conftest.$ac_objext
18866if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18867 (eval $ac_compile) 2>conftest.er1
18868 ac_status=$?
18869 grep -v '^ *+' conftest.er1 >conftest.err
18870 rm -f conftest.er1
18871 cat conftest.err >&5
18872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18873 (exit $ac_status); } &&
18874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18876 (eval $ac_try) 2>&5
18877 ac_status=$?
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; } &&
18880 { ac_try='test -s conftest.$ac_objext'
18881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18882 (eval $ac_try) 2>&5
18883 ac_status=$?
18884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885 (exit $ac_status); }; }; then
18886 ac_cv_member_struct_statvfs_f_blocks=yes
18887else
18888 echo "$as_me: failed program was:" >&5
18889sed 's/^/| /' conftest.$ac_ext >&5
18890
18891cat >conftest.$ac_ext <<_ACEOF
18892/* confdefs.h. */
18893_ACEOF
18894cat confdefs.h >>conftest.$ac_ext
18895cat >>conftest.$ac_ext <<_ACEOF
18896/* end confdefs.h. */
18897#ifdef HAVE_SYS_STATVFS_H
18898#include <sys/statvfs.h>
18899#endif
18900
18901int
18902main ()
18903{
18904static struct statvfs ac_aggr;
18905if (sizeof ac_aggr.f_blocks)
18906return 0;
18907 ;
18908 return 0;
18909}
18910_ACEOF
18911rm -f conftest.$ac_objext
18912if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18913 (eval $ac_compile) 2>conftest.er1
18914 ac_status=$?
18915 grep -v '^ *+' conftest.er1 >conftest.err
18916 rm -f conftest.er1
18917 cat conftest.err >&5
18918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18919 (exit $ac_status); } &&
18920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18922 (eval $ac_try) 2>&5
18923 ac_status=$?
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; } &&
18926 { ac_try='test -s conftest.$ac_objext'
18927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18928 (eval $ac_try) 2>&5
18929 ac_status=$?
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; }; then
18932 ac_cv_member_struct_statvfs_f_blocks=yes
18933else
18934 echo "$as_me: failed program was:" >&5
18935sed 's/^/| /' conftest.$ac_ext >&5
18936
18937ac_cv_member_struct_statvfs_f_blocks=no
18938fi
18939rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18940fi
18941rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18942fi
18943echo "$as_me:$LINENO: result: $ac_cv_member_struct_statvfs_f_blocks" >&5
18944echo "${ECHO_T}$ac_cv_member_struct_statvfs_f_blocks" >&6
18945if test $ac_cv_member_struct_statvfs_f_blocks = yes; then
18946
18947cat >>confdefs.h <<_ACEOF
18948#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
18949_ACEOF
18950
18951
18952fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000018953
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018954
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018955echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
18956echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
18957if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018958 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000018959else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018960 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018961/* confdefs.h. */
18962_ACEOF
18963cat confdefs.h >>conftest.$ac_ext
18964cat >>conftest.$ac_ext <<_ACEOF
18965/* end confdefs.h. */
Patrik Stridvall09da9662001-07-08 22:30:50 +000018966#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000018967#ifdef HAVE_SYS_SOCKET_H
18968# include <sys/socket.h>
18969#endif
18970#ifdef HAVE_SYS_UN_H
18971# include <sys/un.h>
18972#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018973
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018974int
18975main ()
18976{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000018977static struct msghdr ac_aggr;
18978if (ac_aggr.msg_accrights)
18979return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018980 ;
18981 return 0;
18982}
18983_ACEOF
18984rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000018986 (eval $ac_compile) 2>conftest.er1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018987 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000018988 grep -v '^ *+' conftest.er1 >conftest.err
18989 rm -f conftest.er1
18990 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018992 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000018993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18995 (eval $ac_try) 2>&5
18996 ac_status=$?
18997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18998 (exit $ac_status); }; } &&
18999 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019001 (eval $ac_try) 2>&5
19002 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019004 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019005 ac_cv_member_struct_msghdr_msg_accrights=yes
Juergen Lock2d33ab92000-02-13 16:03:29 +000019006else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000019007 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000019008sed 's/^/| /' conftest.$ac_ext >&5
19009
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019010cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019011/* confdefs.h. */
19012_ACEOF
19013cat confdefs.h >>conftest.$ac_ext
19014cat >>conftest.$ac_ext <<_ACEOF
19015/* end confdefs.h. */
19016#include <sys/types.h>
19017#ifdef HAVE_SYS_SOCKET_H
19018# include <sys/socket.h>
19019#endif
19020#ifdef HAVE_SYS_UN_H
19021# include <sys/un.h>
19022#endif
19023
19024int
19025main ()
19026{
19027static struct msghdr ac_aggr;
19028if (sizeof ac_aggr.msg_accrights)
19029return 0;
19030 ;
19031 return 0;
19032}
19033_ACEOF
19034rm -f conftest.$ac_objext
19035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019036 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019037 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019038 grep -v '^ *+' conftest.er1 >conftest.err
19039 rm -f conftest.er1
19040 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19045 (eval $ac_try) 2>&5
19046 ac_status=$?
19047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19048 (exit $ac_status); }; } &&
19049 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19051 (eval $ac_try) 2>&5
19052 ac_status=$?
19053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19054 (exit $ac_status); }; }; then
19055 ac_cv_member_struct_msghdr_msg_accrights=yes
19056else
19057 echo "$as_me: failed program was:" >&5
19058sed 's/^/| /' conftest.$ac_ext >&5
19059
19060ac_cv_member_struct_msghdr_msg_accrights=no
Juergen Lock2d33ab92000-02-13 16:03:29 +000019061fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000019063fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019064rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019065fi
19066echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
19067echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
19068if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000019069
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019070cat >>confdefs.h <<_ACEOF
19071#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019072_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000019073
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019074
19075fi
19076echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
19077echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
19078if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
19079 echo $ECHO_N "(cached) $ECHO_C" >&6
19080else
19081 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019082/* confdefs.h. */
19083_ACEOF
19084cat confdefs.h >>conftest.$ac_ext
19085cat >>conftest.$ac_ext <<_ACEOF
19086/* end confdefs.h. */
19087#include <sys/types.h>
19088#ifdef HAVE_SYS_SOCKET_H
19089# include <sys/socket.h>
19090#endif
19091#ifdef HAVE_SYS_UN_H
19092# include <sys/un.h>
19093#endif
19094
19095int
19096main ()
19097{
19098static struct sockaddr ac_aggr;
19099if (ac_aggr.sa_len)
19100return 0;
19101 ;
19102 return 0;
19103}
19104_ACEOF
19105rm -f conftest.$ac_objext
19106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019107 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019108 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019109 grep -v '^ *+' conftest.er1 >conftest.err
19110 rm -f conftest.er1
19111 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19116 (eval $ac_try) 2>&5
19117 ac_status=$?
19118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119 (exit $ac_status); }; } &&
19120 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19122 (eval $ac_try) 2>&5
19123 ac_status=$?
19124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19125 (exit $ac_status); }; }; then
19126 ac_cv_member_struct_sockaddr_sa_len=yes
19127else
19128 echo "$as_me: failed program was:" >&5
19129sed 's/^/| /' conftest.$ac_ext >&5
19130
19131cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019132/* confdefs.h. */
19133_ACEOF
19134cat confdefs.h >>conftest.$ac_ext
19135cat >>conftest.$ac_ext <<_ACEOF
19136/* end confdefs.h. */
19137#include <sys/types.h>
19138#ifdef HAVE_SYS_SOCKET_H
19139# include <sys/socket.h>
19140#endif
19141#ifdef HAVE_SYS_UN_H
19142# include <sys/un.h>
19143#endif
19144
19145int
19146main ()
19147{
19148static struct sockaddr ac_aggr;
19149if (sizeof ac_aggr.sa_len)
19150return 0;
19151 ;
19152 return 0;
19153}
19154_ACEOF
19155rm -f conftest.$ac_objext
19156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019157 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019158 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019159 grep -v '^ *+' conftest.er1 >conftest.err
19160 rm -f conftest.er1
19161 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166 (eval $ac_try) 2>&5
19167 ac_status=$?
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); }; } &&
19170 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19172 (eval $ac_try) 2>&5
19173 ac_status=$?
19174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); }; }; then
19176 ac_cv_member_struct_sockaddr_sa_len=yes
19177else
19178 echo "$as_me: failed program was:" >&5
19179sed 's/^/| /' conftest.$ac_ext >&5
19180
19181ac_cv_member_struct_sockaddr_sa_len=no
19182fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019183rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019184fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019186fi
19187echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
19188echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
19189if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
19190
19191cat >>confdefs.h <<_ACEOF
19192#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
19193_ACEOF
19194
19195
19196fi
19197echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
19198echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
19199if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19201else
19202 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019203/* confdefs.h. */
19204_ACEOF
19205cat confdefs.h >>conftest.$ac_ext
19206cat >>conftest.$ac_ext <<_ACEOF
19207/* end confdefs.h. */
19208#include <sys/types.h>
19209#ifdef HAVE_SYS_SOCKET_H
19210# include <sys/socket.h>
19211#endif
19212#ifdef HAVE_SYS_UN_H
19213# include <sys/un.h>
19214#endif
19215
19216int
19217main ()
19218{
19219static struct sockaddr_un ac_aggr;
19220if (ac_aggr.sun_len)
19221return 0;
19222 ;
19223 return 0;
19224}
19225_ACEOF
19226rm -f conftest.$ac_objext
19227if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019228 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019229 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019230 grep -v '^ *+' conftest.er1 >conftest.err
19231 rm -f conftest.er1
19232 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19237 (eval $ac_try) 2>&5
19238 ac_status=$?
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); }; } &&
19241 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19243 (eval $ac_try) 2>&5
19244 ac_status=$?
19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19246 (exit $ac_status); }; }; then
19247 ac_cv_member_struct_sockaddr_un_sun_len=yes
19248else
19249 echo "$as_me: failed program was:" >&5
19250sed 's/^/| /' conftest.$ac_ext >&5
19251
19252cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019253/* confdefs.h. */
19254_ACEOF
19255cat confdefs.h >>conftest.$ac_ext
19256cat >>conftest.$ac_ext <<_ACEOF
19257/* end confdefs.h. */
19258#include <sys/types.h>
19259#ifdef HAVE_SYS_SOCKET_H
19260# include <sys/socket.h>
19261#endif
19262#ifdef HAVE_SYS_UN_H
19263# include <sys/un.h>
19264#endif
19265
19266int
19267main ()
19268{
19269static struct sockaddr_un ac_aggr;
19270if (sizeof ac_aggr.sun_len)
19271return 0;
19272 ;
19273 return 0;
19274}
19275_ACEOF
19276rm -f conftest.$ac_objext
19277if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019278 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019279 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019280 grep -v '^ *+' conftest.er1 >conftest.err
19281 rm -f conftest.er1
19282 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19287 (eval $ac_try) 2>&5
19288 ac_status=$?
19289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19290 (exit $ac_status); }; } &&
19291 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19293 (eval $ac_try) 2>&5
19294 ac_status=$?
19295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19296 (exit $ac_status); }; }; then
19297 ac_cv_member_struct_sockaddr_un_sun_len=yes
19298else
19299 echo "$as_me: failed program was:" >&5
19300sed 's/^/| /' conftest.$ac_ext >&5
19301
19302ac_cv_member_struct_sockaddr_un_sun_len=no
19303fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019304rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019305fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019307fi
19308echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
19309echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
19310if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
19311
19312cat >>confdefs.h <<_ACEOF
19313#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
19314_ACEOF
19315
19316
Juergen Lock2d33ab92000-02-13 16:03:29 +000019317fi
19318
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019319
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000019320echo "$as_me:$LINENO: checking for scsireq_t.cmd" >&5
19321echo $ECHO_N "checking for scsireq_t.cmd... $ECHO_C" >&6
19322if test "${ac_cv_member_scsireq_t_cmd+set}" = set; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
19324else
19325 cat >conftest.$ac_ext <<_ACEOF
19326/* confdefs.h. */
19327_ACEOF
19328cat confdefs.h >>conftest.$ac_ext
19329cat >>conftest.$ac_ext <<_ACEOF
19330/* end confdefs.h. */
19331#include <sys/types.h>
19332#ifdef HAVE_SCSI_SG_H
19333#include <scsi/sg.h>
19334#endif
19335
19336int
19337main ()
19338{
19339static scsireq_t ac_aggr;
19340if (ac_aggr.cmd)
19341return 0;
19342 ;
19343 return 0;
19344}
19345_ACEOF
19346rm -f conftest.$ac_objext
19347if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19348 (eval $ac_compile) 2>conftest.er1
19349 ac_status=$?
19350 grep -v '^ *+' conftest.er1 >conftest.err
19351 rm -f conftest.er1
19352 cat conftest.err >&5
19353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19354 (exit $ac_status); } &&
19355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19357 (eval $ac_try) 2>&5
19358 ac_status=$?
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; } &&
19361 { ac_try='test -s conftest.$ac_objext'
19362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19363 (eval $ac_try) 2>&5
19364 ac_status=$?
19365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366 (exit $ac_status); }; }; then
19367 ac_cv_member_scsireq_t_cmd=yes
19368else
19369 echo "$as_me: failed program was:" >&5
19370sed 's/^/| /' conftest.$ac_ext >&5
19371
19372cat >conftest.$ac_ext <<_ACEOF
19373/* confdefs.h. */
19374_ACEOF
19375cat confdefs.h >>conftest.$ac_ext
19376cat >>conftest.$ac_ext <<_ACEOF
19377/* end confdefs.h. */
19378#include <sys/types.h>
19379#ifdef HAVE_SCSI_SG_H
19380#include <scsi/sg.h>
19381#endif
19382
19383int
19384main ()
19385{
19386static scsireq_t ac_aggr;
19387if (sizeof ac_aggr.cmd)
19388return 0;
19389 ;
19390 return 0;
19391}
19392_ACEOF
19393rm -f conftest.$ac_objext
19394if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19395 (eval $ac_compile) 2>conftest.er1
19396 ac_status=$?
19397 grep -v '^ *+' conftest.er1 >conftest.err
19398 rm -f conftest.er1
19399 cat conftest.err >&5
19400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19401 (exit $ac_status); } &&
19402 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19404 (eval $ac_try) 2>&5
19405 ac_status=$?
19406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); }; } &&
19408 { ac_try='test -s conftest.$ac_objext'
19409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19410 (eval $ac_try) 2>&5
19411 ac_status=$?
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); }; }; then
19414 ac_cv_member_scsireq_t_cmd=yes
19415else
19416 echo "$as_me: failed program was:" >&5
19417sed 's/^/| /' conftest.$ac_ext >&5
19418
19419ac_cv_member_scsireq_t_cmd=no
19420fi
19421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19422fi
19423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19424fi
19425echo "$as_me:$LINENO: result: $ac_cv_member_scsireq_t_cmd" >&5
19426echo "${ECHO_T}$ac_cv_member_scsireq_t_cmd" >&6
19427if test $ac_cv_member_scsireq_t_cmd = yes; then
19428
19429cat >>confdefs.h <<_ACEOF
19430#define HAVE_SCSIREQ_T_CMD 1
19431_ACEOF
19432
19433
19434fi
19435echo "$as_me:$LINENO: checking for sg_io_hdr_t.interface_id" >&5
19436echo $ECHO_N "checking for sg_io_hdr_t.interface_id... $ECHO_C" >&6
19437if test "${ac_cv_member_sg_io_hdr_t_interface_id+set}" = set; then
19438 echo $ECHO_N "(cached) $ECHO_C" >&6
19439else
19440 cat >conftest.$ac_ext <<_ACEOF
19441/* confdefs.h. */
19442_ACEOF
19443cat confdefs.h >>conftest.$ac_ext
19444cat >>conftest.$ac_ext <<_ACEOF
19445/* end confdefs.h. */
19446#include <sys/types.h>
19447#ifdef HAVE_SCSI_SG_H
19448#include <scsi/sg.h>
19449#endif
19450
19451int
19452main ()
19453{
19454static sg_io_hdr_t ac_aggr;
19455if (ac_aggr.interface_id)
19456return 0;
19457 ;
19458 return 0;
19459}
19460_ACEOF
19461rm -f conftest.$ac_objext
19462if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19463 (eval $ac_compile) 2>conftest.er1
19464 ac_status=$?
19465 grep -v '^ *+' conftest.er1 >conftest.err
19466 rm -f conftest.er1
19467 cat conftest.err >&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
19470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19473 ac_status=$?
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; } &&
19476 { ac_try='test -s conftest.$ac_objext'
19477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19478 (eval $ac_try) 2>&5
19479 ac_status=$?
19480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19481 (exit $ac_status); }; }; then
19482 ac_cv_member_sg_io_hdr_t_interface_id=yes
19483else
19484 echo "$as_me: failed program was:" >&5
19485sed 's/^/| /' conftest.$ac_ext >&5
19486
19487cat >conftest.$ac_ext <<_ACEOF
19488/* confdefs.h. */
19489_ACEOF
19490cat confdefs.h >>conftest.$ac_ext
19491cat >>conftest.$ac_ext <<_ACEOF
19492/* end confdefs.h. */
19493#include <sys/types.h>
19494#ifdef HAVE_SCSI_SG_H
19495#include <scsi/sg.h>
19496#endif
19497
19498int
19499main ()
19500{
19501static sg_io_hdr_t ac_aggr;
19502if (sizeof ac_aggr.interface_id)
19503return 0;
19504 ;
19505 return 0;
19506}
19507_ACEOF
19508rm -f conftest.$ac_objext
19509if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19510 (eval $ac_compile) 2>conftest.er1
19511 ac_status=$?
19512 grep -v '^ *+' conftest.er1 >conftest.err
19513 rm -f conftest.er1
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19516 (exit $ac_status); } &&
19517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19519 (eval $ac_try) 2>&5
19520 ac_status=$?
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); }; } &&
19523 { ac_try='test -s conftest.$ac_objext'
19524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19525 (eval $ac_try) 2>&5
19526 ac_status=$?
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); }; }; then
19529 ac_cv_member_sg_io_hdr_t_interface_id=yes
19530else
19531 echo "$as_me: failed program was:" >&5
19532sed 's/^/| /' conftest.$ac_ext >&5
19533
19534ac_cv_member_sg_io_hdr_t_interface_id=no
19535fi
19536rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19537fi
19538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19539fi
19540echo "$as_me:$LINENO: result: $ac_cv_member_sg_io_hdr_t_interface_id" >&5
19541echo "${ECHO_T}$ac_cv_member_sg_io_hdr_t_interface_id" >&6
19542if test $ac_cv_member_sg_io_hdr_t_interface_id = yes; then
19543
19544cat >>confdefs.h <<_ACEOF
19545#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
19546_ACEOF
19547
19548
19549fi
19550
19551
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019552echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
19553echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
19554if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556else
19557 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019558/* confdefs.h. */
19559_ACEOF
19560cat confdefs.h >>conftest.$ac_ext
19561cat >>conftest.$ac_ext <<_ACEOF
19562/* end confdefs.h. */
19563#include <signal.h>
19564
19565int
19566main ()
19567{
19568static siginfo_t ac_aggr;
19569if (ac_aggr.si_fd)
19570return 0;
19571 ;
19572 return 0;
19573}
19574_ACEOF
19575rm -f conftest.$ac_objext
19576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019577 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019578 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019579 grep -v '^ *+' conftest.er1 >conftest.err
19580 rm -f conftest.er1
19581 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19586 (eval $ac_try) 2>&5
19587 ac_status=$?
19588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19589 (exit $ac_status); }; } &&
19590 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19592 (eval $ac_try) 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; }; then
19596 ac_cv_member_siginfo_t_si_fd=yes
19597else
19598 echo "$as_me: failed program was:" >&5
19599sed 's/^/| /' conftest.$ac_ext >&5
19600
19601cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019602/* confdefs.h. */
19603_ACEOF
19604cat confdefs.h >>conftest.$ac_ext
19605cat >>conftest.$ac_ext <<_ACEOF
19606/* end confdefs.h. */
19607#include <signal.h>
19608
19609int
19610main ()
19611{
19612static siginfo_t ac_aggr;
19613if (sizeof ac_aggr.si_fd)
19614return 0;
19615 ;
19616 return 0;
19617}
19618_ACEOF
19619rm -f conftest.$ac_objext
19620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019621 (eval $ac_compile) 2>conftest.er1
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019622 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019623 grep -v '^ *+' conftest.er1 >conftest.err
19624 rm -f conftest.er1
19625 cat conftest.err >&5
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19627 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019628 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19630 (eval $ac_try) 2>&5
19631 ac_status=$?
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); }; } &&
19634 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19637 ac_status=$?
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; }; then
19640 ac_cv_member_siginfo_t_si_fd=yes
19641else
19642 echo "$as_me: failed program was:" >&5
19643sed 's/^/| /' conftest.$ac_ext >&5
19644
19645ac_cv_member_siginfo_t_si_fd=no
19646fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019647rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019648fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019649rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000019650fi
19651echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
19652echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
19653if test $ac_cv_member_siginfo_t_si_fd = yes; then
19654
19655cat >>confdefs.h <<_ACEOF
19656#define HAVE_SIGINFO_T_SI_FD 1
19657_ACEOF
19658
19659
19660fi
19661
Alexandre Julliarddaa28862002-04-11 21:54:01 +000019662
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019663echo "$as_me:$LINENO: checking for struct option.name" >&5
19664echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
19665if test "${ac_cv_member_struct_option_name+set}" = set; then
19666 echo $ECHO_N "(cached) $ECHO_C" >&6
19667else
19668 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019669/* confdefs.h. */
19670_ACEOF
19671cat confdefs.h >>conftest.$ac_ext
19672cat >>conftest.$ac_ext <<_ACEOF
19673/* end confdefs.h. */
19674#ifdef HAVE_GETOPT_H
19675#include <getopt.h>
19676#endif
19677
19678int
19679main ()
19680{
19681static struct option ac_aggr;
19682if (ac_aggr.name)
19683return 0;
19684 ;
19685 return 0;
19686}
19687_ACEOF
19688rm -f conftest.$ac_objext
19689if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019690 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019691 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019692 grep -v '^ *+' conftest.er1 >conftest.err
19693 rm -f conftest.er1
19694 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19700 ac_status=$?
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; } &&
19703 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19706 ac_status=$?
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
19709 ac_cv_member_struct_option_name=yes
19710else
19711 echo "$as_me: failed program was:" >&5
19712sed 's/^/| /' conftest.$ac_ext >&5
19713
19714cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019715/* confdefs.h. */
19716_ACEOF
19717cat confdefs.h >>conftest.$ac_ext
19718cat >>conftest.$ac_ext <<_ACEOF
19719/* end confdefs.h. */
19720#ifdef HAVE_GETOPT_H
19721#include <getopt.h>
19722#endif
19723
19724int
19725main ()
19726{
19727static struct option ac_aggr;
19728if (sizeof ac_aggr.name)
19729return 0;
19730 ;
19731 return 0;
19732}
19733_ACEOF
19734rm -f conftest.$ac_objext
19735if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019736 (eval $ac_compile) 2>conftest.er1
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019737 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019738 grep -v '^ *+' conftest.er1 >conftest.err
19739 rm -f conftest.er1
19740 cat conftest.err >&5
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019743 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19745 (eval $ac_try) 2>&5
19746 ac_status=$?
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); }; } &&
19749 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19752 ac_status=$?
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 ac_cv_member_struct_option_name=yes
19756else
19757 echo "$as_me: failed program was:" >&5
19758sed 's/^/| /' conftest.$ac_ext >&5
19759
19760ac_cv_member_struct_option_name=no
19761fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019763fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019764rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddb89a542003-04-20 02:56:14 +000019765fi
19766echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
19767echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
19768if test $ac_cv_member_struct_option_name = yes; then
19769
19770cat >>confdefs.h <<_ACEOF
19771#define HAVE_STRUCT_OPTION_NAME 1
19772_ACEOF
19773
19774
19775fi
19776
19777
Pavel Roskind6507192003-10-03 03:28:40 +000019778echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
19779echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6
19780if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
19781 echo $ECHO_N "(cached) $ECHO_C" >&6
19782else
19783 cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000019784/* confdefs.h. */
19785_ACEOF
19786cat confdefs.h >>conftest.$ac_ext
19787cat >>conftest.$ac_ext <<_ACEOF
19788/* end confdefs.h. */
19789$ac_includes_default
19790int
19791main ()
19792{
19793static struct stat ac_aggr;
19794if (ac_aggr.st_blocks)
19795return 0;
19796 ;
19797 return 0;
19798}
19799_ACEOF
19800rm -f conftest.$ac_objext
19801if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019802 (eval $ac_compile) 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000019803 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000019807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19812 ac_status=$?
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; } &&
19815 { ac_try='test -s conftest.$ac_objext'
Pavel Roskind6507192003-10-03 03:28:40 +000019816 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19817 (eval $ac_try) 2>&5
19818 ac_status=$?
19819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19820 (exit $ac_status); }; }; then
19821 ac_cv_member_struct_stat_st_blocks=yes
19822else
19823 echo "$as_me: failed program was:" >&5
19824sed 's/^/| /' conftest.$ac_ext >&5
19825
19826cat >conftest.$ac_ext <<_ACEOF
Pavel Roskind6507192003-10-03 03:28:40 +000019827/* confdefs.h. */
19828_ACEOF
19829cat confdefs.h >>conftest.$ac_ext
19830cat >>conftest.$ac_ext <<_ACEOF
19831/* end confdefs.h. */
19832$ac_includes_default
19833int
19834main ()
19835{
19836static struct stat ac_aggr;
19837if (sizeof ac_aggr.st_blocks)
19838return 0;
19839 ;
19840 return 0;
19841}
19842_ACEOF
19843rm -f conftest.$ac_objext
19844if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliard875927f2004-01-02 01:55:29 +000019845 (eval $ac_compile) 2>conftest.er1
Pavel Roskind6507192003-10-03 03:28:40 +000019846 ac_status=$?
Alexandre Julliard875927f2004-01-02 01:55:29 +000019847 grep -v '^ *+' conftest.er1 >conftest.err
19848 rm -f conftest.er1
19849 cat conftest.err >&5
Pavel Roskind6507192003-10-03 03:28:40 +000019850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851 (exit $ac_status); } &&
Alexandre Julliard875927f2004-01-02 01:55:29 +000019852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19854 (eval $ac_try) 2>&5
19855 ac_status=$?
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; } &&
19858 { ac_try='test -s conftest.$ac_objext'
Pavel Roskind6507192003-10-03 03:28:40 +000019859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19860 (eval $ac_try) 2>&5
19861 ac_status=$?
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); }; }; then
19864 ac_cv_member_struct_stat_st_blocks=yes
19865else
19866 echo "$as_me: failed program was:" >&5
19867sed 's/^/| /' conftest.$ac_ext >&5
19868
19869ac_cv_member_struct_stat_st_blocks=no
19870fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019871rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000019872fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000019873rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
Pavel Roskind6507192003-10-03 03:28:40 +000019874fi
19875echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
19876echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6
19877if test $ac_cv_member_struct_stat_st_blocks = yes; then
19878
19879cat >>confdefs.h <<_ACEOF
19880#define HAVE_STRUCT_STAT_ST_BLOCKS 1
19881_ACEOF
19882
19883
19884fi
19885
19886
Phil Krylov6618b032005-05-24 11:52:46 +000019887echo "$as_me:$LINENO: checking for timezone variable" >&5
19888echo $ECHO_N "checking for timezone variable... $ECHO_C" >&6
19889if test "${ac_cv_have_timezone+set}" = set; then
19890 echo $ECHO_N "(cached) $ECHO_C" >&6
19891else
19892 cat >conftest.$ac_ext <<_ACEOF
19893/* confdefs.h. */
19894_ACEOF
19895cat confdefs.h >>conftest.$ac_ext
19896cat >>conftest.$ac_ext <<_ACEOF
19897/* end confdefs.h. */
19898#include <time.h>
19899int
19900main ()
19901{
19902timezone;
19903 ;
19904 return 0;
19905}
19906_ACEOF
19907rm -f conftest.$ac_objext conftest$ac_exeext
19908if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19909 (eval $ac_link) 2>conftest.er1
19910 ac_status=$?
19911 grep -v '^ *+' conftest.er1 >conftest.err
19912 rm -f conftest.er1
19913 cat conftest.err >&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); } &&
19916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19918 (eval $ac_try) 2>&5
19919 ac_status=$?
19920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19921 (exit $ac_status); }; } &&
19922 { ac_try='test -s conftest$ac_exeext'
19923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19924 (eval $ac_try) 2>&5
19925 ac_status=$?
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); }; }; then
19928 ac_cv_have_timezone="yes"
19929else
19930 echo "$as_me: failed program was:" >&5
19931sed 's/^/| /' conftest.$ac_ext >&5
19932
19933ac_cv_have_timezone="no"
19934fi
19935rm -f conftest.err conftest.$ac_objext \
19936 conftest$ac_exeext conftest.$ac_ext
19937fi
19938echo "$as_me:$LINENO: result: $ac_cv_have_timezone" >&5
19939echo "${ECHO_T}$ac_cv_have_timezone" >&6
19940if test "$ac_cv_have_timezone" = "yes"
19941then
19942
19943cat >>confdefs.h <<\_ACEOF
19944#define HAVE_TIMEZONE 1
19945_ACEOF
19946
19947fi
19948echo "$as_me:$LINENO: checking for daylight variable" >&5
19949echo $ECHO_N "checking for daylight variable... $ECHO_C" >&6
19950if test "${ac_cv_have_daylight+set}" = set; then
19951 echo $ECHO_N "(cached) $ECHO_C" >&6
19952else
19953 cat >conftest.$ac_ext <<_ACEOF
19954/* confdefs.h. */
19955_ACEOF
19956cat confdefs.h >>conftest.$ac_ext
19957cat >>conftest.$ac_ext <<_ACEOF
19958/* end confdefs.h. */
19959#include <time.h>
19960int
19961main ()
19962{
19963daylight;
19964 ;
19965 return 0;
19966}
19967_ACEOF
19968rm -f conftest.$ac_objext conftest$ac_exeext
19969if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19970 (eval $ac_link) 2>conftest.er1
19971 ac_status=$?
19972 grep -v '^ *+' conftest.er1 >conftest.err
19973 rm -f conftest.er1
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19976 (exit $ac_status); } &&
19977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19979 (eval $ac_try) 2>&5
19980 ac_status=$?
19981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19982 (exit $ac_status); }; } &&
19983 { ac_try='test -s conftest$ac_exeext'
19984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19985 (eval $ac_try) 2>&5
19986 ac_status=$?
19987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19988 (exit $ac_status); }; }; then
19989 ac_cv_have_daylight="yes"
19990else
19991 echo "$as_me: failed program was:" >&5
19992sed 's/^/| /' conftest.$ac_ext >&5
19993
19994ac_cv_have_daylight="no"
19995fi
19996rm -f conftest.err conftest.$ac_objext \
19997 conftest$ac_exeext conftest.$ac_ext
19998fi
19999echo "$as_me:$LINENO: result: $ac_cv_have_daylight" >&5
20000echo "${ECHO_T}$ac_cv_have_daylight" >&6
20001if test "$ac_cv_have_daylight" = "yes"
20002then
20003
20004cat >>confdefs.h <<\_ACEOF
20005#define HAVE_DAYLIGHT 1
20006_ACEOF
20007
20008fi
20009
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020010
Alexandre Julliardfc01b722002-05-12 03:16:39 +000020011case $host_cpu in
Alexandre Julliard05783b52002-12-11 00:21:55 +000020012 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020013echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000020014if test "${ac_cv_cpp_def___i386__+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020015 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000020016else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020017 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020018/* confdefs.h. */
20019_ACEOF
20020cat confdefs.h >>conftest.$ac_ext
20021cat >>conftest.$ac_ext <<_ACEOF
20022/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020023#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000020024yes
20025#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020026_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000020027if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020028 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000020029 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000020030else
Alexandre Julliard05783b52002-12-11 00:21:55 +000020031 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000020032fi
20033rm -f conftest*
20034
20035fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020036echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
20037echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
20038if test $ac_cv_cpp_def___i386__ = yes; then
20039 CFLAGS="$CFLAGS -D__i386__"
20040 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000020041fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020042 ;;
20043 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
Steven Edwards69b67862002-12-10 22:48:48 +000020044echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000020045if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
Steven Edwards69b67862002-12-10 22:48:48 +000020046 echo $ECHO_N "(cached) $ECHO_C" >&6
20047else
20048 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020049/* confdefs.h. */
20050_ACEOF
20051cat confdefs.h >>conftest.$ac_ext
20052cat >>conftest.$ac_ext <<_ACEOF
20053/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000020054#ifndef __ALPHA__
20055yes
20056#endif
20057_ACEOF
20058if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20059 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000020060 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000020061else
Alexandre Julliard05783b52002-12-11 00:21:55 +000020062 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000020063fi
20064rm -f conftest*
20065
20066fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020067echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
20068echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
20069if test $ac_cv_cpp_def___ALPHA__ = yes; then
20070 CFLAGS="$CFLAGS -D__ALPHA__"
20071 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Steven Edwards69b67862002-12-10 22:48:48 +000020072fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020073 ;;
20074 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020075echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000020076if test "${ac_cv_cpp_def___sparc__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020077 echo $ECHO_N "(cached) $ECHO_C" >&6
20078else
20079 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020080/* confdefs.h. */
20081_ACEOF
20082cat confdefs.h >>conftest.$ac_ext
20083cat >>conftest.$ac_ext <<_ACEOF
20084/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020085#ifndef __sparc__
20086yes
20087#endif
20088_ACEOF
20089if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020090 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000020091 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020092else
Alexandre Julliard05783b52002-12-11 00:21:55 +000020093 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020094fi
20095rm -f conftest*
20096
20097fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020098echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
20099echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
20100if test $ac_cv_cpp_def___sparc__ = yes; then
20101 CFLAGS="$CFLAGS -D__sparc__"
20102 LINTFLAGS="$LINTFLAGS -D__sparc__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020103fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020104 ;;
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000020105 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
20106echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
20107if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
20108 echo $ECHO_N "(cached) $ECHO_C" >&6
20109else
20110 cat >conftest.$ac_ext <<_ACEOF
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000020111/* confdefs.h. */
20112_ACEOF
20113cat confdefs.h >>conftest.$ac_ext
20114cat >>conftest.$ac_ext <<_ACEOF
20115/* end confdefs.h. */
20116#ifndef __powerpc__
20117yes
20118#endif
20119_ACEOF
20120if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20121 $EGREP "yes" >/dev/null 2>&1; then
20122 ac_cv_cpp_def___powerpc__=yes
20123else
20124 ac_cv_cpp_def___powerpc__=no
20125fi
20126rm -f conftest*
20127
20128fi
20129echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
20130echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
20131if test $ac_cv_cpp_def___powerpc__ = yes; then
20132 CFLAGS="$CFLAGS -D__powerpc__"
20133 LINTFLAGS="$LINTFLAGS -D__powerpc__"
20134fi
20135 ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000020136esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020137
20138case $host_vendor in
Alexandre Julliard05783b52002-12-11 00:21:55 +000020139 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020140echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000020141if test "${ac_cv_cpp_def___sun__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020142 echo $ECHO_N "(cached) $ECHO_C" >&6
20143else
20144 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020145/* confdefs.h. */
20146_ACEOF
20147cat confdefs.h >>conftest.$ac_ext
20148cat >>conftest.$ac_ext <<_ACEOF
20149/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020150#ifndef __sun__
20151yes
20152#endif
20153_ACEOF
20154if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020155 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000020156 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020157else
Alexandre Julliard05783b52002-12-11 00:21:55 +000020158 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020159fi
20160rm -f conftest*
20161
20162fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020163echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
20164echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
20165if test $ac_cv_cpp_def___sun__ = yes; then
20166 CFLAGS="$CFLAGS -D__sun__"
20167 LINTFLAGS="$LINTFLAGS -D__sun__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020168fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000020169 ;;
20170esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000020171
20172
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020173
20174
20175
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020176 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000020177
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020178 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000020179
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020180 ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020181
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020182 ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020183
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020184 ac_config_commands="$ac_config_commands dlls/wineps/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020185
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020186 ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020187
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020188 ac_config_commands="$ac_config_commands programs/regedit/tests"
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000020189
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000020190
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000020191MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020192
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020193
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000020194MAKE_DLL_RULES=dlls/Makedll.rules
20195
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020196
Alexandre Julliardedeee892002-08-09 01:22:40 +000020197MAKE_TEST_RULES=dlls/Maketest.rules
20198
20199
Alexandre Julliard117436e2003-05-01 00:39:29 +000020200MAKE_LIB_RULES=libs/Makelib.rules
20201
20202
Alexandre Julliard626f4252000-11-10 23:35:20 +000020203MAKE_PROG_RULES=programs/Makeprog.rules
20204
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020205
Hans Leidekker8d63dfb2005-07-13 11:56:15 +000020206 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/activeds/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/advpack/Makefile dlls/advpack/tests/Makefile dlls/amstream/Makefile dlls/atl/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/capi2032/Makefile dlls/cards/Makefile dlls/cfgmgr32/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/crypt32/tests/Makefile dlls/cryptdll/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3drm/Makefile dlls/d3dx8/Makefile dlls/d3dxof/Makefile dlls/dbghelp/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/ddraw/tests/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput/tests/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnet/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/dswave/Makefile dlls/dxdiagn/Makefile dlls/dxerr8/Makefile dlls/dxerr9/Makefile dlls/dxguid/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/glut32/Makefile dlls/hhctrl.ocx/Makefile dlls/iccvid/Makefile dlls/icmp/Makefile dlls/ifsmgr.vxd/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/iphlpapi/tests/Makefile dlls/itss/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/lzexpand/tests/Makefile dlls/mapi32/Makefile dlls/mapi32/tests/Makefile dlls/mlang/Makefile dlls/mlang/tests/Makefile dlls/mmdevldr.vxd/Makefile dlls/monodebg.vxd/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msacm/tests/Makefile dlls/mscms/Makefile dlls/mscms/tests/Makefile dlls/msdmo/Makefile dlls/mshtml/Makefile dlls/mshtml/tests/Makefile dlls/msi/Makefile dlls/msi/tests/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msrle32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrt40/Makefile dlls/msvcrtd/Makefile dlls/msvcrtd/tests/Makefile dlls/msvidc32/Makefile dlls/msvideo/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/newdev/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/odbccp32/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/powrprof/Makefile dlls/psapi/Makefile dlls/psapi/tests/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/quartz/tests/Makefile dlls/rasapi32/Makefile dlls/riched20/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/rsabase/Makefile dlls/rsabase/tests/Makefile dlls/rsaenh/Makefile dlls/rsaenh/tests/Makefile dlls/secur32/Makefile dlls/sensapi/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/stdole32.tlb/Makefile dlls/sti/Makefile dlls/strmiids/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/unicows/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/uuid/Makefile dlls/uxtheme/Makefile dlls/vdhcp.vxd/Makefile dlls/vdmdbg/Makefile dlls/version/Makefile dlls/version/tests/Makefile dlls/vmm.vxd/Makefile dlls/vnbt.vxd/Makefile dlls/vnetbios.vxd/Makefile dlls/vtdapi.vxd/Makefile dlls/vwin32.vxd/Makefile dlls/win32s/Makefile dlls/winaspi/Makefile dlls/wined3d/Makefile dlls/winedos/Makefile dlls/wineps/Makefile dlls/wininet/Makefile dlls/wininet/tests/Makefile dlls/winmm/Makefile dlls/winmm/joystick/Makefile dlls/winmm/mcianim/Makefile dlls/winmm/mciavi/Makefile dlls/winmm/mcicda/Makefile dlls/winmm/mciseq/Makefile dlls/winmm/mciwave/Makefile dlls/winmm/midimap/Makefile dlls/winmm/tests/Makefile dlls/winmm/wavemap/Makefile dlls/winmm/winealsa/Makefile dlls/winmm/winearts/Makefile dlls/winmm/wineaudioio/Makefile dlls/winmm/winejack/Makefile dlls/winmm/winenas/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wldap32/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/wtsapi32/Makefile dlls/x11drv/Makefile documentation/Makefile fonts/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/wine/Makefile libs/wpp/Makefile loader/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/hh/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 +000020207
Alexandre Julliard626f4252000-11-10 23:35:20 +000020208
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020209cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020210# This file is a shell script that caches the results of configure
20211# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020212# scripts and configure runs, see configure's option --config-cache.
20213# It is not useful on other systems. If it contains results you don't
20214# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020215#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020216# config.status only pays attention to the cache file if you give it
20217# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020218#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020219# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020220# loading this file, other *unset* `ac_cv_foo' will be assigned the
20221# following values.
20222
20223_ACEOF
20224
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000020225# The following way of writing the cache mishandles newlines in values,
20226# but we know of no workaround that is simple, portable, and efficient.
20227# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020228# Ultrix sh set writes to stderr and can't be redirected directly,
20229# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020230{
20231 (set) 2>&1 |
20232 case `(ac_space=' '; set | grep ac_space) 2>&1` in
20233 *ac_space=\ *)
20234 # `set' does not quote correctly, so add quotes (double-quote
20235 # substitution turns \\\\ into \\, and sed turns \\ into \).
20236 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000020237 "s/'/'\\\\''/g;
20238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020239 ;;
20240 *)
20241 # `set' quotes correctly as required by POSIX, so do not add quotes.
20242 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000020243 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020244 ;;
20245 esac;
20246} |
20247 sed '
20248 t clear
20249 : clear
20250 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20251 t end
20252 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20253 : end' >>confcache
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020254if diff $cache_file confcache >/dev/null 2>&1; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020255 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020256 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20257 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020258 else
20259 echo "not updating unwritable cache $cache_file"
20260 fi
20261fi
20262rm -f confcache
20263
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020264test "x$prefix" = xNONE && prefix=$ac_default_prefix
20265# Let make expand exec_prefix.
20266test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20267
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020268# VPATH may cause trouble with some makes, so we remove $(srcdir),
20269# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20270# trailing colons and then remove the whole line if VPATH becomes empty
20271# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020272if test "x$srcdir" = x.; then
Alexandre Julliard875927f2004-01-02 01:55:29 +000020273 ac_vpsub='/^[ ]*VPATH[ ]*=/{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020274s/:*\$(srcdir):*/:/;
20275s/:*\${srcdir}:*/:/;
20276s/:*@srcdir@:*/:/;
Alexandre Julliard875927f2004-01-02 01:55:29 +000020277s/^\([^=]*=[ ]*\):*/\1/;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020278s/:*$//;
Alexandre Julliard875927f2004-01-02 01:55:29 +000020279s/^[^=]*=[ ]*$//;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020280}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020281fi
20282
Alexandre Julliard18f92e71996-07-17 20:02:21 +000020283DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020284
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020285ac_libobjs=
20286ac_ltlibobjs=
20287for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20288 # 1. Remove the extension, and $U if already installed.
20289 ac_i=`echo "$ac_i" |
Alexandre Julliard875927f2004-01-02 01:55:29 +000020290 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020291 # 2. Add them.
20292 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20293 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20294done
20295LIBOBJS=$ac_libobjs
20296
20297LTLIBOBJS=$ac_ltlibobjs
20298
20299
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020300
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020301: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020302ac_clean_files_save=$ac_clean_files
20303ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020304{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020305echo "$as_me: creating $CONFIG_STATUS" >&6;}
20306cat >$CONFIG_STATUS <<_ACEOF
20307#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020308# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020309# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020310# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020311# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020312
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020313debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020314ac_cs_recheck=false
20315ac_cs_silent=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020316SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020317_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020318
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020319cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020320## --------------------- ##
20321## M4sh Initialization. ##
20322## --------------------- ##
20323
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020324# Be Bourne compatible
20325if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20326 emulate sh
20327 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020328 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20329 # is contrary to our usage. Disable this feature.
20330 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020331elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20332 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000020333fi
Alexandre Julliard875927f2004-01-02 01:55:29 +000020334DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020335
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020336# Support unset when possible.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020337if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020338 as_unset=unset
20339else
20340 as_unset=false
20341fi
20342
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020343
20344# Work around bugs in pre-3.0 UWIN ksh.
20345$as_unset ENV MAIL MAILPATH
20346PS1='$ '
20347PS2='> '
20348PS4='+ '
20349
20350# NLS nuisances.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020351for as_var in \
20352 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20353 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20354 LC_TELEPHONE LC_TIME
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020355do
Alexandre Julliard875927f2004-01-02 01:55:29 +000020356 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020357 eval $as_var=C; export $as_var
20358 else
20359 $as_unset $as_var
20360 fi
20361done
20362
20363# Required to use basename.
20364if expr a : '\(a\)' >/dev/null 2>&1; then
20365 as_expr=expr
20366else
20367 as_expr=false
20368fi
20369
20370if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20371 as_basename=basename
20372else
20373 as_basename=false
20374fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020375
20376
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020377# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020378as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020379$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20380 X"$0" : 'X\(//\)$' \| \
20381 X"$0" : 'X\(/\)$' \| \
20382 . : '\(.\)' 2>/dev/null ||
20383echo X/"$0" |
20384 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20385 /^X\/\(\/\/\)$/{ s//\1/; q; }
20386 /^X\/\(\/\).*/{ s//\1/; q; }
20387 s/.*/./; q'`
20388
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020389
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020390# PATH needs CR, and LINENO needs CR and PATH.
20391# Avoid depending upon Character Ranges.
20392as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20393as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20394as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20395as_cr_digits='0123456789'
20396as_cr_alnum=$as_cr_Letters$as_cr_digits
20397
20398# The user is always right.
20399if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020400 echo "#! /bin/sh" >conf$$.sh
20401 echo "exit 0" >>conf$$.sh
20402 chmod +x conf$$.sh
20403 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020404 PATH_SEPARATOR=';'
20405 else
20406 PATH_SEPARATOR=:
20407 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020408 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020409fi
20410
20411
20412 as_lineno_1=$LINENO
20413 as_lineno_2=$LINENO
20414 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20415 test "x$as_lineno_1" != "x$as_lineno_2" &&
20416 test "x$as_lineno_3" = "x$as_lineno_2" || {
20417 # Find who we are. Look in the path if we contain no path at all
20418 # relative or not.
20419 case $0 in
20420 *[\\/]* ) as_myself=$0 ;;
20421 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20422for as_dir in $PATH
20423do
20424 IFS=$as_save_IFS
20425 test -z "$as_dir" && as_dir=.
20426 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20427done
20428
20429 ;;
20430 esac
20431 # We did not find ourselves, most probably we were run as `sh COMMAND'
20432 # in which case we are not to be found in the path.
20433 if test "x$as_myself" = x; then
20434 as_myself=$0
20435 fi
20436 if test ! -f "$as_myself"; then
20437 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20438echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20439 { (exit 1); exit 1; }; }
20440 fi
20441 case $CONFIG_SHELL in
20442 '')
20443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20444for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20445do
20446 IFS=$as_save_IFS
20447 test -z "$as_dir" && as_dir=.
20448 for as_base in sh bash ksh sh5; do
20449 case $as_dir in
20450 /*)
20451 if ("$as_dir/$as_base" -c '
20452 as_lineno_1=$LINENO
20453 as_lineno_2=$LINENO
20454 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20455 test "x$as_lineno_1" != "x$as_lineno_2" &&
20456 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020457 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20458 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020459 CONFIG_SHELL=$as_dir/$as_base
20460 export CONFIG_SHELL
20461 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20462 fi;;
20463 esac
20464 done
20465done
20466;;
20467 esac
20468
20469 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20470 # uniformly replaced by the line number. The first 'sed' inserts a
20471 # line-number line before each line; the second 'sed' does the real
20472 # work. The second script uses 'N' to pair each line-number line
20473 # with the numbered line, and appends trailing '-' during
20474 # substitution so that $LINENO is not a special case at line end.
20475 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20476 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20477 sed '=' <$as_myself |
20478 sed '
20479 N
20480 s,$,-,
20481 : loop
20482 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20483 t loop
20484 s,-$,,
20485 s,^['$as_cr_digits']*\n,,
20486 ' >$as_me.lineno &&
20487 chmod +x $as_me.lineno ||
20488 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20489echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20490 { (exit 1); exit 1; }; }
20491
20492 # Don't try to exec as it changes $[0], causing all sort of problems
20493 # (the dirname of $[0] is not the place where we might find the
20494 # original and so on. Autoconf is especially sensible to this).
20495 . ./$as_me.lineno
20496 # Exit status is that of the last command.
20497 exit
20498}
20499
20500
20501case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20502 *c*,-n*) ECHO_N= ECHO_C='
20503' ECHO_T=' ' ;;
20504 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20505 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20506esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020507
20508if expr a : '\(a\)' >/dev/null 2>&1; then
20509 as_expr=expr
20510else
20511 as_expr=false
20512fi
20513
20514rm -f conf$$ conf$$.exe conf$$.file
20515echo >conf$$.file
20516if ln -s conf$$.file conf$$ 2>/dev/null; then
20517 # We could just check for DJGPP; but this test a) works b) is more generic
20518 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20519 if test -f conf$$.exe; then
20520 # Don't use ln at all; we don't have any links
20521 as_ln_s='cp -p'
20522 else
20523 as_ln_s='ln -s'
20524 fi
20525elif ln conf$$.file conf$$ 2>/dev/null; then
20526 as_ln_s=ln
20527else
20528 as_ln_s='cp -p'
20529fi
20530rm -f conf$$ conf$$.exe conf$$.file
20531
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020532if mkdir -p . 2>/dev/null; then
20533 as_mkdir_p=:
20534else
Alexandre Julliard875927f2004-01-02 01:55:29 +000020535 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020536 as_mkdir_p=false
20537fi
20538
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020539as_executable_p="test -f"
20540
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020541# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020542as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020543
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020544# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000020545as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020546
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020547
20548# IFS
20549# We need space, tab and new line, in precisely that order.
20550as_nl='
20551'
20552IFS=" $as_nl"
20553
20554# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020555$as_unset CDPATH
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020556
20557exec 6>&1
20558
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020559# Open the log real soon, to keep \$[0] and so on meaningful, and to
20560# report actual input values of CONFIG_FILES etc. instead of their
20561# values after options handling. Logging --version etc. is OK.
20562exec 5>>config.log
20563{
20564 echo
20565 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20566## Running $as_me. ##
20567_ASBOX
20568} >&5
20569cat >&5 <<_CSEOF
20570
Alexandre Julliard471a7ed2005-06-28 14:39:19 +000020571This file was extended by Wine $as_me 20050628, which was
Eric Pouech53fa0d52004-02-05 01:27:38 +000020572generated by GNU Autoconf 2.59. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020573
20574 CONFIG_FILES = $CONFIG_FILES
20575 CONFIG_HEADERS = $CONFIG_HEADERS
20576 CONFIG_LINKS = $CONFIG_LINKS
20577 CONFIG_COMMANDS = $CONFIG_COMMANDS
20578 $ $0 $@
20579
20580_CSEOF
20581echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20582echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020583_ACEOF
20584
20585# Files that config.status was made for.
20586if test -n "$ac_config_files"; then
20587 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20588fi
20589
20590if test -n "$ac_config_headers"; then
20591 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20592fi
20593
20594if test -n "$ac_config_links"; then
20595 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20596fi
20597
20598if test -n "$ac_config_commands"; then
20599 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20600fi
20601
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020602cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020603
20604ac_cs_usage="\
20605\`$as_me' instantiates files from templates according to the
20606current configuration.
20607
20608Usage: $0 [OPTIONS] [FILE]...
20609
20610 -h, --help print this help, then exit
20611 -V, --version print version number, then exit
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020612 -q, --quiet do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020613 -d, --debug don't remove temporary files
20614 --recheck update $as_me by reconfiguring in the same conditions
20615 --file=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000020616 instantiate the configuration file FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020617 --header=FILE[:TEMPLATE]
Alexandre Julliard875927f2004-01-02 01:55:29 +000020618 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020619
20620Configuration files:
20621$config_files
20622
20623Configuration headers:
20624$config_headers
20625
20626Configuration commands:
20627$config_commands
20628
20629Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020630_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000020631
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020632cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020633ac_cs_version="\\
Alexandre Julliard471a7ed2005-06-28 14:39:19 +000020634Wine config.status 20050628
Eric Pouech53fa0d52004-02-05 01:27:38 +000020635configured by $0, generated by GNU Autoconf 2.59,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020636 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020637
Alexandre Julliard875927f2004-01-02 01:55:29 +000020638Copyright (C) 2003 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020639This config.status script is free software; the Free Software Foundation
20640gives unlimited permission to copy, distribute and modify it."
20641srcdir=$srcdir
20642INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020643_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020644
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020645cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020646# If no file are specified by the user, then we need to provide default
20647# value. By we need to know if files were specified by the user.
20648ac_need_defaults=:
20649while test $# != 0
20650do
20651 case $1 in
20652 --*=*)
20653 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20654 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020655 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020656 ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020657 -*)
20658 ac_option=$1
20659 ac_optarg=$2
20660 ac_shift=shift
20661 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020662 *) # This is not an option, so the user has probably given explicit
20663 # arguments.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020664 ac_option=$1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020665 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020666 esac
20667
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020668 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020669 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020670_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020671cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020672 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20673 ac_cs_recheck=: ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020674 --version | --vers* | -V )
20675 echo "$ac_cs_version"; exit 0 ;;
20676 --he | --h)
20677 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020678 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020679Try \`$0 --help' for more information." >&5
20680echo "$as_me: error: ambiguous option: $1
20681Try \`$0 --help' for more information." >&2;}
20682 { (exit 1); exit 1; }; };;
20683 --help | --hel | -h )
20684 echo "$ac_cs_usage"; exit 0 ;;
20685 --debug | --d* | -d )
20686 debug=: ;;
20687 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020688 $ac_shift
20689 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020690 ac_need_defaults=false;;
20691 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000020692 $ac_shift
20693 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020694 ac_need_defaults=false;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20696 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20697 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000020698
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020699 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020700 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020701Try \`$0 --help' for more information." >&5
20702echo "$as_me: error: unrecognized option: $1
20703Try \`$0 --help' for more information." >&2;}
20704 { (exit 1); exit 1; }; } ;;
20705
20706 *) ac_config_targets="$ac_config_targets $1" ;;
20707
20708 esac
20709 shift
20710done
20711
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000020712ac_configure_extra_args=
20713
20714if $ac_cs_silent; then
20715 exec 6>/dev/null
20716 ac_configure_extra_args="$ac_configure_extra_args --silent"
20717fi
20718
20719_ACEOF
20720cat >>$CONFIG_STATUS <<_ACEOF
20721if \$ac_cs_recheck; then
20722 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20723 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20724fi
20725
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020726_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020727
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020728
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020729
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020730
Alexandre Julliarddaa28862002-04-11 21:54:01 +000020731
20732cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020733for ac_config_target in $ac_config_targets
20734do
20735 case "$ac_config_target" in
20736 # Handling of arguments.
20737 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
20738 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020739 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
Alexandre Julliard117436e2003-05-01 00:39:29 +000020740 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020741 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
20742 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020743 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
Detlef Riekenberg29056632005-06-13 11:47:46 +000020744 "dlls/activeds/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/activeds/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020745 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020746 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
Huw Davies20313b82004-09-27 20:39:40 +000020747 "dlls/advpack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/Makefile" ;;
Robert Reif97199822005-01-20 20:03:13 +000020748 "dlls/advpack/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advpack/tests/Makefile" ;;
Christian Costa76b77872004-03-09 01:29:56 +000020749 "dlls/amstream/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/amstream/Makefile" ;;
Aric Stewart4bd374f2004-07-06 21:01:18 +000020750 "dlls/atl/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/atl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020751 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
20752 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
Patrik Stridvalld1447fa2002-11-19 00:47:12 +000020753 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000020754 "dlls/capi2032/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/capi2032/Makefile" ;;
Sami Nopanen9063cef2004-03-15 20:26:42 +000020755 "dlls/cards/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cards/Makefile" ;;
Mike McCormackb107b922003-10-31 03:38:07 +000020756 "dlls/cfgmgr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cfgmgr32/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000020757 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020758 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
Uwe Bonnes2c4fd422003-05-15 23:58:48 +000020759 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020760 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
20761 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
20762 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
Kees Cook255541a2005-05-24 09:58:26 +000020763 "dlls/crypt32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/tests/Makefile" ;;
Ulrich Czekallac173f6a2005-01-24 19:07:16 +000020764 "dlls/cryptdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cryptdll/Makefile" ;;
Dmitry Timoshkov5a23a002003-01-02 19:34:14 +000020765 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
Sylvain Petreolle3a99d8b2002-06-25 23:23:03 +000020766 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
Alexandre Julliardaa1bdc42003-07-01 01:11:13 +000020767 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
Enrico Horneaae7052003-01-24 01:08:15 +000020768 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
Ivan Leo Murray-Smith8f14eb02004-05-18 00:54:12 +000020769 "dlls/d3drm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3drm/Makefile" ;;
Raphael Junqueirae31ae922002-12-17 01:15:15 +000020770 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
Christian Costa7590fe52004-06-03 00:03:23 +000020771 "dlls/d3dxof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dxof/Makefile" ;;
Eric Pouech800864a2004-04-05 22:21:27 +000020772 "dlls/dbghelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dbghelp/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020773 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
20774 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
Sami Aariof22a4722003-11-18 00:12:00 +000020775 "dlls/ddraw/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020776 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
20777 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
Robert Reif8bffed52005-05-11 12:05:17 +000020778 "dlls/dinput/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/tests/Makefile" ;;
Ove Kaavend2d08f02002-06-14 00:39:44 +000020779 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020780 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
20781 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
20782 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
20783 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
20784 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
20785 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
20786 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
Rok Mandeljc2d04be72003-03-21 00:42:38 +000020787 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020788 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020789 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
20790 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
Raphael Junqueira5f3f2142004-04-07 20:39:00 +000020791 "dlls/dpnet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnet/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000020792 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020793 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
Francois Gougetd523a452002-12-05 19:19:41 +000020794 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
Rok Mandeljc0382ea12004-01-20 00:21:40 +000020795 "dlls/dswave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dswave/Makefile" ;;
Raphael Junqueira033ae922004-04-16 00:26:14 +000020796 "dlls/dxdiagn/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxdiagn/Makefile" ;;
Robert Reifcc02d952004-03-09 23:25:57 +000020797 "dlls/dxerr8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr8/Makefile" ;;
20798 "dlls/dxerr9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxerr9/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020799 "dlls/dxguid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dxguid/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020800 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
Patrik Stridvall928ecb42002-10-02 19:58:27 +000020801 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020802 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
Jacek Cabanef799c42003-12-02 04:11:09 +000020803 "dlls/glut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glut32/Makefile" ;;
Krzysztof Foltman9bca6902004-04-22 03:45:00 +000020804 "dlls/hhctrl.ocx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/hhctrl.ocx/Makefile" ;;
Alexandre Julliard0a106bf2004-01-15 04:56:18 +000020805 "dlls/iccvid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iccvid/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020806 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020807 "dlls/ifsmgr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ifsmgr.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020808 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
20809 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
Juan Lang38fa5ad2003-05-13 03:32:20 +000020810 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
Juan Lange6f491a2004-01-07 01:08:55 +000020811 "dlls/iphlpapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/tests/Makefile" ;;
Alexandre Julliard5f6e3c82004-08-24 21:00:15 +000020812 "dlls/itss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/itss/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020813 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020814 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020815 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
Evan G. Parryd23f5ef2004-11-21 16:05:14 +000020816 "dlls/lzexpand/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020817 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
Jon Griffiths4ec0d3b2004-04-23 23:30:00 +000020818 "dlls/mapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/tests/Makefile" ;;
Alexandre Julliard94a9d332004-08-04 18:33:06 +000020819 "dlls/mlang/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/Makefile" ;;
20820 "dlls/mlang/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mlang/tests/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020821 "dlls/mmdevldr.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mmdevldr.vxd/Makefile" ;;
20822 "dlls/monodebg.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/monodebg.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020823 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
20824 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000020825 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000020826 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000020827 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Eric Pouechb706b232002-06-04 17:53:46 +000020828 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
Robert Reif00cd2b22004-05-03 20:17:43 +000020829 "dlls/msacm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/tests/Makefile" ;;
Hans Leidekker51647572004-09-22 04:08:38 +000020830 "dlls/mscms/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/Makefile" ;;
Hans Leidekker081b2502004-10-07 19:12:41 +000020831 "dlls/mscms/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mscms/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020832 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
Mike McCormackaa1c2a32003-09-08 19:32:14 +000020833 "dlls/mshtml/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/Makefile" ;;
Jacek Caban51bb3f62005-06-27 11:19:49 +000020834 "dlls/mshtml/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mshtml/tests/Makefile" ;;
Mike McCormack6386edc2003-08-13 01:27:48 +000020835 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
Mike McCormack23b291a2005-01-05 13:26:34 +000020836 "dlls/msi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020837 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000020838 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020839 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
Alexandre Julliard7ba8fba2004-02-27 21:51:12 +000020840 "dlls/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msrle32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020841 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
Uwe Bonnesa768fa32002-10-30 23:49:03 +000020842 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020843 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
Mike McCormackd0779462004-01-12 22:12:27 +000020844 "dlls/msvcrt40/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt40/Makefile" ;;
Adam Gundy19a15132003-04-04 19:37:57 +000020845 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
Patrik Stridvall5c4420f2004-05-18 01:05:36 +000020846 "dlls/msvcrtd/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/tests/Makefile" ;;
Mike McCormack4cc64c82004-01-23 05:00:37 +000020847 "dlls/msvidc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvidc32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020848 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
André Johansen2123c132003-08-02 00:52:02 +000020849 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020850 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
Andriy Palamarchukb812c902002-09-11 02:35:17 +000020851 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
Ulrich Czekalla9655a5f2003-12-30 22:19:30 +000020852 "dlls/newdev/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/newdev/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020853 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
Jon Griffiths1da29712002-08-15 22:08:40 +000020854 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020855 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
Mike McCormackb5c63ed2005-05-16 19:42:47 +000020856 "dlls/odbccp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbccp32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020857 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
Mike McCormack06b80462004-08-11 00:17:52 +000020858 "dlls/ole32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/tests/Makefile" ;;
Eric Pouech5caccaf2003-06-23 03:43:00 +000020859 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020860 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020861 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020862 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
20863 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
20864 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
20865 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
20866 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
Benjamin Cutler250a8ae2005-04-20 19:15:31 +000020867 "dlls/powrprof/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/powrprof/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020868 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
Stefan Leichter0d4fff42004-06-15 20:23:47 +000020869 "dlls/psapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020870 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
20871 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
Christian Costae3a288f2004-08-16 21:14:28 +000020872 "dlls/quartz/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020873 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
Krzysztof Foltmand488f3f2005-03-05 11:19:14 +000020874 "dlls/riched20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/riched20/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020875 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
20876 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
Greg Turnerac89cc22002-10-07 21:54:07 +000020877 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
Mike McCormackb6de3042004-02-13 20:47:07 +000020878 "dlls/rsabase/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/Makefile" ;;
Michael Jungb4b0c242004-07-30 00:06:54 +000020879 "dlls/rsabase/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsabase/tests/Makefile" ;;
Michael Jung64dce8a2004-11-04 21:15:32 +000020880 "dlls/rsaenh/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/Makefile" ;;
20881 "dlls/rsaenh/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rsaenh/tests/Makefile" ;;
Juan Lang3ed89c32004-03-02 04:57:35 +000020882 "dlls/secur32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/secur32/Makefile" ;;
Steven Edwards160e6472005-01-28 11:41:23 +000020883 "dlls/sensapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sensapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020884 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
20885 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
20886 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
20887 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
Andriy Palamarchuk5b5bea02002-08-27 01:34:33 +000020888 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020889 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
20890 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020891 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000020892 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Huw Davies40468462005-01-28 14:13:08 +000020893 "dlls/stdole32.tlb/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/stdole32.tlb/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020894 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
Francois Gougeta8963892004-08-19 19:31:20 +000020895 "dlls/strmiids/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/strmiids/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020896 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
20897 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000020898 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliard46321f42003-11-27 01:10:26 +000020899 "dlls/unicows/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/unicows/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020900 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
20901 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
Patrik Stridvall9398d9c2002-11-12 01:13:10 +000020902 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020903 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020904 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020905 "dlls/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uuid/Makefile" ;;
Kevin Koltzau0af4fb92003-10-04 03:48:11 +000020906 "dlls/uxtheme/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/uxtheme/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020907 "dlls/vdhcp.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdhcp.vxd/Makefile" ;;
Sami Aario78f12242004-04-07 19:41:21 +000020908 "dlls/vdmdbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vdmdbg/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020909 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
Stefan Leichter09733db2004-04-05 22:54:03 +000020910 "dlls/version/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/tests/Makefile" ;;
Alexandre Julliard6c8147b2004-02-21 04:13:56 +000020911 "dlls/vmm.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vmm.vxd/Makefile" ;;
Juan Lange9ed2f32004-03-01 23:35:25 +000020912 "dlls/vnbt.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnbt.vxd/Makefile" ;;
Alexandre Julliarda21cf072004-02-20 01:18:43 +000020913 "dlls/vnetbios.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vnetbios.vxd/Makefile" ;;
20914 "dlls/vtdapi.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vtdapi.vxd/Makefile" ;;
20915 "dlls/vwin32.vxd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/vwin32.vxd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020916 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
20917 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020918 "dlls/wined3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wined3d/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020919 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
20920 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
20921 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020922 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020923 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
20924 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
20925 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
20926 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
20927 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
20928 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
20929 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
20930 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
Francois Gouget4ce28372002-11-04 23:47:49 +000020931 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020932 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Eric Pouecha120ce02002-06-28 17:40:16 +000020933 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000020934 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000020935 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
Chris Morgan4691b182002-12-13 02:26:18 +000020936 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
Alexandre Julliardc3eac432004-01-26 21:29:05 +000020937 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020938 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
20939 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
20940 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000020941 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020942 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
Stefan Leichter88b11062003-01-15 00:50:48 +000020943 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
Patrik Stridvall5caddc72002-12-17 01:49:16 +000020944 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020945 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
Hans Leidekker8d63dfb2005-07-13 11:56:15 +000020946 "dlls/wldap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wldap32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020947 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
20948 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
Ulrich Czekalla04f63462005-01-24 19:42:02 +000020949 "dlls/wtsapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wtsapi32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020950 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
20951 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Huw Davies00acb5f2004-08-17 22:33:14 +000020952 "fonts/Makefile" ) CONFIG_FILES="$CONFIG_FILES fonts/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020953 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
Alexandre Julliard6a9fe362003-03-19 22:09:16 +000020954 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
20955 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000020956 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
Alexandre Julliard2d1c7902003-03-22 20:40:48 +000020957 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
Alexandre Julliarde1a9b102003-05-01 03:16:21 +000020958 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
Alexandre Julliard357c7402003-11-06 01:17:56 +000020959 "loader/Makefile" ) CONFIG_FILES="$CONFIG_FILES loader/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020960 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
20961 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
20962 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
20963 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
20964 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000020965 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Jacek Caban88313292005-07-12 20:41:52 +000020966 "programs/hh/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/hh/Makefile" ;;
Vincent BĂ©ron34966892004-07-19 19:44:07 +000020967 "programs/msiexec/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/msiexec/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020968 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020969 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000020970 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000020971 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardd77294a2002-12-02 21:17:04 +000020972 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
Alberto Massari15e8e0a2002-11-15 01:41:20 +000020973 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
Dan Kegelba02ae42003-01-21 20:14:36 +000020974 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
Eric Pouechd6b348f2004-03-23 01:19:54 +000020975 "programs/taskmgr/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/taskmgr/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020976 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
20977 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
20978 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
Shachar Shemesh175d0592003-01-04 02:52:05 +000020979 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
Chris Morgand888d362004-01-06 20:49:58 +000020980 "programs/winebrowser/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winebrowser/Makefile" ;;
Dimitrie O. Paun82ce2cc2003-03-31 19:41:55 +000020981 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020982 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
Alexandre Julliardf264bd32002-09-13 17:54:27 +000020983 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
Alexandre Julliard65a42162002-06-04 21:29:40 +000020984 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
Mike McCormack88090b42003-05-21 18:50:53 +000020985 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020986 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000020987 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliard9f71bd92003-12-04 02:01:39 +000020988 "programs/winetest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winetest/Makefile" ;;
Alexandre Julliardfedc4112003-04-27 00:47:58 +000020989 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020990 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
20991 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020992 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
20993 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Alexandre Julliard7d4ee772002-07-16 03:20:45 +000020994 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020995 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
20996 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
20997 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
Alexandre Julliard280661c2003-09-11 21:27:58 +000020998 "tools/winegcc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winegcc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020999 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
21000 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000021001 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
21002 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021003 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021004 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
21005 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
21006 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000021007 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021008 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021009 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021010echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21011 { (exit 1); exit 1; }; };;
21012 esac
21013done
21014
21015# If the user did not use the arguments to specify the items to instantiate,
21016# then the envvar interface is used. Set only those that are not.
21017# We use the long form for the default assignment because of an extremely
21018# bizarre bug on SunOS 4.1.3.
21019if $ac_need_defaults; then
21020 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21021 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21022 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21023fi
21024
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021025# Have a temporary directory for convenience. Make it in the build tree
21026# simply because there is no reason to put it here, and in addition,
21027# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021028# Create a temporary directory, and hook for its removal unless debugging.
21029$debug ||
21030{
21031 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21032 trap '{ (exit 1); exit 1; }' 1 2 13 15
21033}
21034
21035# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021036
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021037{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021038 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021039 test -n "$tmp" && test -d "$tmp"
21040} ||
21041{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021042 tmp=./confstat$$-$RANDOM
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021043 (umask 077 && mkdir $tmp)
21044} ||
21045{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021046 echo "$me: cannot create a temporary directory in ." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021047 { (exit 1); exit 1; }
21048}
21049
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021050_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021051
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021052cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021053
21054#
21055# CONFIG_FILES section.
21056#
21057
21058# No need to generate the scripts if there are no CONFIG_FILES.
21059# This happens for instance when ./config.status config.h
21060if test -n "\$CONFIG_FILES"; then
21061 # Protect against being on the right side of a sed subst in config.status.
21062 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21063 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21064s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021065s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21066s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21067s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21068s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21069s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21070s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021071s,@exec_prefix@,$exec_prefix,;t t
21072s,@prefix@,$prefix,;t t
21073s,@program_transform_name@,$program_transform_name,;t t
21074s,@bindir@,$bindir,;t t
21075s,@sbindir@,$sbindir,;t t
21076s,@libexecdir@,$libexecdir,;t t
21077s,@datadir@,$datadir,;t t
21078s,@sysconfdir@,$sysconfdir,;t t
21079s,@sharedstatedir@,$sharedstatedir,;t t
21080s,@localstatedir@,$localstatedir,;t t
21081s,@libdir@,$libdir,;t t
21082s,@includedir@,$includedir,;t t
21083s,@oldincludedir@,$oldincludedir,;t t
21084s,@infodir@,$infodir,;t t
21085s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021086s,@build_alias@,$build_alias,;t t
21087s,@host_alias@,$host_alias,;t t
21088s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021089s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021090s,@ECHO_C@,$ECHO_C,;t t
21091s,@ECHO_N@,$ECHO_N,;t t
21092s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021093s,@LIBS@,$LIBS,;t t
Vincent BĂ©ron1f504142004-10-19 23:06:11 +000021094s,@DLLDEFS@,$DLLDEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021095s,@build@,$build,;t t
21096s,@build_cpu@,$build_cpu,;t t
21097s,@build_vendor@,$build_vendor,;t t
21098s,@build_os@,$build_os,;t t
21099s,@host@,$host,;t t
21100s,@host_cpu@,$host_cpu,;t t
21101s,@host_vendor@,$host_vendor,;t t
21102s,@host_os@,$host_os,;t t
Alexandre Julliard71440f32005-05-19 14:28:17 +000021103s,@WIN16_FILES@,$WIN16_FILES,;t t
21104s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021105s,@SET_MAKE@,$SET_MAKE,;t t
21106s,@CC@,$CC,;t t
21107s,@CFLAGS@,$CFLAGS,;t t
21108s,@LDFLAGS@,$LDFLAGS,;t t
21109s,@CPPFLAGS@,$CPPFLAGS,;t t
21110s,@ac_ct_CC@,$ac_ct_CC,;t t
21111s,@EXEEXT@,$EXEEXT,;t t
21112s,@OBJEXT@,$OBJEXT,;t t
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000021113s,@CXX@,$CXX,;t t
21114s,@CXXFLAGS@,$CXXFLAGS,;t t
21115s,@ac_ct_CXX@,$ac_ct_CXX,;t t
Alexandre Julliarda631ef62004-03-03 20:30:46 +000021116s,@CPPBIN@,$CPPBIN,;t t
21117s,@ac_ct_CPPBIN@,$ac_ct_CPPBIN,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021118s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliarda631ef62004-03-03 20:30:46 +000021119s,@CPP@,$CPP,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021120s,@X_CFLAGS@,$X_CFLAGS,;t t
21121s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
21122s,@X_LIBS@,$X_LIBS,;t t
21123s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021124s,@LEX@,$LEX,;t t
21125s,@LEXLIB@,$LEXLIB,;t t
21126s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021127s,@XLEX@,$XLEX,;t t
Mike McCormackc068f672004-03-16 03:11:39 +000021128s,@BISON@,$BISON,;t t
Marcus Meissner1d4db782003-01-09 00:46:54 +000021129s,@AS@,$AS,;t t
21130s,@ac_ct_AS@,$ac_ct_AS,;t t
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +000021131s,@LD@,$LD,;t t
21132s,@ac_ct_LD@,$ac_ct_LD,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021133s,@AR@,$AR,;t t
21134s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021135s,@RANLIB@,$RANLIB,;t t
21136s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021137s,@STRIP@,$STRIP,;t t
21138s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21139s,@WINDRES@,$WINDRES,;t t
21140s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021141s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000021142s,@LN@,$LN,;t t
Alexandre Julliardc6264912004-08-16 20:09:37 +000021143s,@EGREP@,$EGREP,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021144s,@LDCONFIG@,$LDCONFIG,;t t
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021145s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21146s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21147s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021148s,@LINT@,$LINT,;t t
21149s,@LINTFLAGS@,$LINTFLAGS,;t t
Huw Davies00acb5f2004-08-17 22:33:14 +000021150s,@FONTFORGE@,$FONTFORGE,;t t
Alexandre Julliardf45325e2003-11-06 23:05:41 +000021151s,@LIBPTHREAD@,$LIBPTHREAD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021152s,@XLIB@,$XLIB,;t t
21153s,@XFILES@,$XFILES,;t t
21154s,@OPENGLFILES@,$OPENGLFILES,;t t
21155s,@GLU32FILES@,$GLU32FILES,;t t
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000021156s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
Jacek Cabanef799c42003-12-02 04:11:09 +000021157s,@GLUT_LIBS@,$GLUT_LIBS,;t t
21158s,@GLUT32FILES@,$GLUT32FILES,;t t
Francois Gouget6f670b12002-10-10 17:54:27 +000021159s,@NASLIBS@,$NASLIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021160s,@CURSESLIBS@,$CURSESLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000021161s,@sane_devel@,$sane_devel,;t t
21162s,@SANELIBS@,$SANELIBS,;t t
21163s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliard4ee82902003-06-20 21:38:10 +000021164s,@ICULIBS@,$ICULIBS,;t t
Hans Leidekkerd3447022005-07-15 10:09:43 +000021165s,@LCMSLIBS@,$LCMSLIBS,;t t
Hans Leidekkerea524de2005-07-15 16:39:42 +000021166s,@LDAPLIBS@,$LDAPLIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021167s,@ft_devel@,$ft_devel,;t t
21168s,@ft_devel2@,$ft_devel2,;t t
Huw Davies00acb5f2004-08-17 22:33:14 +000021169s,@FREETYPELIBS@,$FREETYPELIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021170s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Huw Davies00acb5f2004-08-17 22:33:14 +000021171s,@FONTSSUBDIRS@,$FONTSSUBDIRS,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000021172s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
21173s,@ARTSLIBS@,$ARTSLIBS,;t t
21174s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000021175s,@ALSALIBS@,$ALSALIBS,;t t
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000021176s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
Alexandre Julliardfc094232003-04-14 21:46:41 +000021177s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000021178s,@DLLEXT@,$DLLEXT,;t t
21179s,@DLLFLAGS@,$DLLFLAGS,;t t
21180s,@DLLIBS@,$DLLIBS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000021181s,@LDSHARED@,$LDSHARED,;t t
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000021182s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
Alexandre Julliardada5e652002-12-12 22:03:14 +000021183s,@LIBEXT@,$LIBEXT,;t t
21184s,@IMPLIBEXT@,$IMPLIBEXT,;t t
21185s,@DLLTOOL@,$DLLTOOL,;t t
21186s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021187s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000021188s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliard4d52d372003-03-24 19:33:20 +000021189s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
Emmanuel Maillard46718f82004-07-22 19:48:41 +000021190s,@LDLIBWINEFLAGS@,$LDLIBWINEFLAGS,;t t
Emmanuel Maillard2300ce62004-08-19 01:20:45 +000021191s,@COREFOUNDATIONLIB@,$COREFOUNDATIONLIB,;t t
21192s,@IOKITLIB@,$IOKITLIB,;t t
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000021193s,@CROSSTEST@,$CROSSTEST,;t t
21194s,@CROSSCC@,$CROSSCC,;t t
Alexandre Julliard21ee3292003-04-21 22:52:31 +000021195s,@CROSSWINDRES@,$CROSSWINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021196s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000021197s,@CRTLIBS@,$CRTLIBS,;t t
Steven Edwardsc91ae452004-09-03 18:57:19 +000021198s,@SOCKETLIBS@,$SOCKETLIBS,;t t
Alexandre Julliard546839f2003-11-11 00:48:21 +000021199s,@WINE_BINARIES@,$WINE_BINARIES,;t t
21200s,@MAIN_BINARY@,$MAIN_BINARY,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000021201s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021202s,@ALLOCA@,$ALLOCA,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021203s,@LIBOBJS@,$LIBOBJS,;t t
21204s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021205/@MAKE_RULES@/r $MAKE_RULES
21206s,@MAKE_RULES@,,;t t
21207/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
21208s,@MAKE_DLL_RULES@,,;t t
Alexandre Julliardedeee892002-08-09 01:22:40 +000021209/@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
21210s,@MAKE_TEST_RULES@,,;t t
Alexandre Julliard117436e2003-05-01 00:39:29 +000021211/@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
21212s,@MAKE_LIB_RULES@,,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021213/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
21214s,@MAKE_PROG_RULES@,,;t t
21215CEOF
21216
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021217_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021218
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021219 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021220 # Split the substitutions into bite-sized pieces for seds with
21221 # small command number limits, like on Digital OSF/1 and HP-UX.
21222 ac_max_sed_lines=48
21223 ac_sed_frag=1 # Number of current file.
21224 ac_beg=1 # First line for current file.
21225 ac_end=$ac_max_sed_lines # Line after last line for current file.
21226 ac_more_lines=:
21227 ac_sed_cmds=
21228 while $ac_more_lines; do
21229 if test $ac_beg -gt 1; then
21230 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21231 else
21232 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21233 fi
21234 if test ! -s $tmp/subs.frag; then
21235 ac_more_lines=false
21236 else
21237 # The purpose of the label and of the branching condition is to
21238 # speed up the sed processing (if there are no `@' at all, there
21239 # is no need to browse any of the substitutions).
21240 # These are the two extra sed commands mentioned above.
21241 (echo ':t
21242 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21243 if test -z "$ac_sed_cmds"; then
Alexandre Julliard875927f2004-01-02 01:55:29 +000021244 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021245 else
Alexandre Julliard875927f2004-01-02 01:55:29 +000021246 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021247 fi
21248 ac_sed_frag=`expr $ac_sed_frag + 1`
21249 ac_beg=$ac_end
21250 ac_end=`expr $ac_end + $ac_max_sed_lines`
21251 fi
21252 done
21253 if test -z "$ac_sed_cmds"; then
21254 ac_sed_cmds=cat
21255 fi
21256fi # test -n "$CONFIG_FILES"
21257
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021258_ACEOF
21259cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021260for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21261 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21262 case $ac_file in
21263 - | *:- | *:-:* ) # input from stdin
Alexandre Julliard875927f2004-01-02 01:55:29 +000021264 cat >$tmp/stdin
21265 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21266 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021267 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021268 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021269 * ) ac_file_in=$ac_file.in ;;
21270 esac
21271
21272 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021273 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21274$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021275 X"$ac_file" : 'X\(//\)[^/]' \| \
21276 X"$ac_file" : 'X\(//\)$' \| \
21277 X"$ac_file" : 'X\(/\)' \| \
21278 . : '\(.\)' 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021279echo X"$ac_file" |
21280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21281 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21282 /^X\(\/\/\)$/{ s//\1/; q; }
21283 /^X\(\/\).*/{ s//\1/; q; }
21284 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021285 { if $as_mkdir_p; then
21286 mkdir -p "$ac_dir"
21287 else
21288 as_dir="$ac_dir"
21289 as_dirs=
21290 while test ! -d "$as_dir"; do
21291 as_dirs="$as_dir $as_dirs"
21292 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21293$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021294 X"$as_dir" : 'X\(//\)[^/]' \| \
21295 X"$as_dir" : 'X\(//\)$' \| \
21296 X"$as_dir" : 'X\(/\)' \| \
21297 . : '\(.\)' 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021298echo X"$as_dir" |
21299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21300 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21301 /^X\(\/\/\)$/{ s//\1/; q; }
21302 /^X\(\/\).*/{ s//\1/; q; }
21303 s/.*/./; q'`
21304 done
21305 test ! -n "$as_dirs" || mkdir $as_dirs
21306 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21307echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21308 { (exit 1); exit 1; }; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021309
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021310 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021311
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021312if test "$ac_dir" != .; then
21313 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21314 # A "../" for each directory in $ac_dir_suffix.
21315 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21316else
21317 ac_dir_suffix= ac_top_builddir=
21318fi
21319
21320case $srcdir in
21321 .) # No --srcdir option. We are building in place.
21322 ac_srcdir=.
21323 if test -z "$ac_top_builddir"; then
21324 ac_top_srcdir=.
21325 else
21326 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21327 fi ;;
21328 [\\/]* | ?:[\\/]* ) # Absolute path.
21329 ac_srcdir=$srcdir$ac_dir_suffix;
21330 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021331 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021332 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21333 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21334esac
Alexandre Julliard875927f2004-01-02 01:55:29 +000021335
21336# Do not use `cd foo && pwd` to compute absolute paths, because
21337# the directories may not exist.
21338case `pwd` in
21339.) ac_abs_builddir="$ac_dir";;
21340*)
21341 case "$ac_dir" in
21342 .) ac_abs_builddir=`pwd`;;
21343 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21344 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21345 esac;;
21346esac
21347case $ac_abs_builddir in
21348.) ac_abs_top_builddir=${ac_top_builddir}.;;
21349*)
21350 case ${ac_top_builddir}. in
21351 .) ac_abs_top_builddir=$ac_abs_builddir;;
21352 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21353 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21354 esac;;
21355esac
21356case $ac_abs_builddir in
21357.) ac_abs_srcdir=$ac_srcdir;;
21358*)
21359 case $ac_srcdir in
21360 .) ac_abs_srcdir=$ac_abs_builddir;;
21361 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21362 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21363 esac;;
21364esac
21365case $ac_abs_builddir in
21366.) ac_abs_top_srcdir=$ac_top_srcdir;;
21367*)
21368 case $ac_top_srcdir in
21369 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21370 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21371 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21372 esac;;
21373esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021374
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021375
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021376 case $INSTALL in
21377 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021378 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000021379 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000021380
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021381 # Let's still pretend it is `configure' which instantiates (i.e., don't
21382 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021383 # /* config.h. Generated by config.status. */
21384 if test x"$ac_file" = x-; then
21385 configure_input=
21386 else
21387 configure_input="$ac_file. "
21388 fi
21389 configure_input=$configure_input"Generated from `echo $ac_file_in |
Alexandre Julliard875927f2004-01-02 01:55:29 +000021390 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000021391
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021392 # First look for the input files in the build tree, otherwise in the
21393 # src tree.
21394 ac_file_inputs=`IFS=:
21395 for f in $ac_file_in; do
21396 case $f in
21397 -) echo $tmp/stdin ;;
21398 [\\/$]*)
Alexandre Julliard875927f2004-01-02 01:55:29 +000021399 # Absolute (can't be DOS-style, as IFS=:)
21400 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021401echo "$as_me: error: cannot find input file: $f" >&2;}
21402 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021403 echo "$f";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021404 *) # Relative
Alexandre Julliard875927f2004-01-02 01:55:29 +000021405 if test -f "$f"; then
21406 # Build tree
21407 echo "$f"
21408 elif test -f "$srcdir/$f"; then
21409 # Source tree
21410 echo "$srcdir/$f"
21411 else
21412 # /dev/null tree
21413 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021414echo "$as_me: error: cannot find input file: $f" >&2;}
21415 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021416 fi;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021417 esac
21418 done` || { (exit 1); exit 1; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021419
21420 if test x"$ac_file" != x-; then
21421 { echo "$as_me:$LINENO: creating $ac_file" >&5
21422echo "$as_me: creating $ac_file" >&6;}
21423 rm -f "$ac_file"
21424 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021425_ACEOF
21426cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021427 sed "$ac_vpsub
21428$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021429_ACEOF
21430cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021431:t
21432/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21433s,@configure_input@,$configure_input,;t t
21434s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021435s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021436s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021437s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21438s,@builddir@,$ac_builddir,;t t
21439s,@abs_builddir@,$ac_abs_builddir,;t t
21440s,@top_builddir@,$ac_top_builddir,;t t
21441s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021442s,@INSTALL@,$ac_INSTALL,;t t
21443" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21444 rm -f $tmp/stdin
21445 if test x"$ac_file" != x-; then
21446 mv $tmp/out $ac_file
21447 else
21448 cat $tmp/out
21449 rm -f $tmp/out
21450 fi
21451
21452done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021453_ACEOF
21454cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021455
21456#
21457# CONFIG_HEADER section.
21458#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021459
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021460# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21461# NAME is the cpp macro being defined and VALUE is the value it is being given.
21462#
21463# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021464ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
21465ac_dB='[ ].*$,\1#\2'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021466ac_dC=' '
21467ac_dD=',;t'
21468# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
Alexandre Julliard875927f2004-01-02 01:55:29 +000021469ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021470ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021471ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021472ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021473
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021474for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000021475 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021476 case $ac_file in
21477 - | *:- | *:-:* ) # input from stdin
Alexandre Julliard875927f2004-01-02 01:55:29 +000021478 cat >$tmp/stdin
21479 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21480 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021481 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021482 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021483 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021484 esac
21485
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021486 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021487echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021488
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021489 # First look for the input files in the build tree, otherwise in the
21490 # src tree.
21491 ac_file_inputs=`IFS=:
21492 for f in $ac_file_in; do
21493 case $f in
21494 -) echo $tmp/stdin ;;
21495 [\\/$]*)
Alexandre Julliard875927f2004-01-02 01:55:29 +000021496 # Absolute (can't be DOS-style, as IFS=:)
21497 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021498echo "$as_me: error: cannot find input file: $f" >&2;}
21499 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021500 # Do quote $f, to prevent DOS paths from being IFS'd.
21501 echo "$f";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021502 *) # Relative
Alexandre Julliard875927f2004-01-02 01:55:29 +000021503 if test -f "$f"; then
21504 # Build tree
21505 echo "$f"
21506 elif test -f "$srcdir/$f"; then
21507 # Source tree
21508 echo "$srcdir/$f"
21509 else
21510 # /dev/null tree
21511 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021512echo "$as_me: error: cannot find input file: $f" >&2;}
21513 { (exit 1); exit 1; }; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000021514 fi;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021515 esac
21516 done` || { (exit 1); exit 1; }
21517 # Remove the trailing spaces.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021518 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021519
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021520_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021521
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021522# Transform confdefs.h into two sed scripts, `conftest.defines' and
21523# `conftest.undefs', that substitutes the proper values into
21524# config.h.in to produce config.h. The first handles `#define'
21525# templates, and the second `#undef' templates.
21526# And first: Protect against being on the right side of a sed subst in
21527# config.status. Protect against being in an unquoted here document
21528# in config.status.
21529rm -f conftest.defines conftest.undefs
21530# Using a here document instead of a string reduces the quoting nightmare.
21531# Putting comments in sed scripts is not portable.
21532#
21533# `end' is used to avoid that the second main sed command (meant for
21534# 0-ary CPP macros) applies to n-ary macro definitions.
21535# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021536cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021537s/[\\&,]/\\&/g
21538s,[\\$`],\\&,g
21539t clear
21540: clear
Alexandre Julliard875927f2004-01-02 01:55:29 +000021541s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021542t end
Alexandre Julliard875927f2004-01-02 01:55:29 +000021543s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021544: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021545_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021546# If some macros were called several times there might be several times
21547# the same #defines, which is useless. Nevertheless, we may not want to
21548# sort them, since we want the *last* AC-DEFINE to be honored.
21549uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21550sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21551rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021552
21553# This sed command replaces #undef with comments. This is necessary, for
21554# example, in the case of _POSIX_SOURCE, which is predefined and required
21555# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021556cat >>conftest.undefs <<\_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000021557s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021558_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021559
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021560# Break up conftest.defines because some shells have a limit on the size
21561# of here documents, and old seds have small limits too (100 cmds).
21562echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Alexandre Julliard875927f2004-01-02 01:55:29 +000021563echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021564echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21565echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021566rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021567while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021568do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021569 # Write a limited-size here document to $tmp/defines.sed.
21570 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21571 # Speed up: don't consider the non `#define' lines.
Alexandre Julliard875927f2004-01-02 01:55:29 +000021572 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021573 # Work around the forget-to-reset-the-flag bug.
21574 echo 't clr' >>$CONFIG_STATUS
21575 echo ': clr' >>$CONFIG_STATUS
21576 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021577 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021578 sed -f $tmp/defines.sed $tmp/in >$tmp/out
21579 rm -f $tmp/in
21580 mv $tmp/out $tmp/in
21581' >>$CONFIG_STATUS
21582 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21583 rm -f conftest.defines
21584 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021585done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021586rm -f conftest.defines
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021587echo ' fi # grep' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021588echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021589
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021590# Break up conftest.undefs because some shells have a limit on the size
21591# of here documents, and old seds have small limits too (100 cmds).
21592echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
21593rm -f conftest.tail
21594while grep . conftest.undefs >/dev/null
21595do
21596 # Write a limited-size here document to $tmp/undefs.sed.
21597 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21598 # Speed up: don't consider the non `#undef'
Alexandre Julliard875927f2004-01-02 01:55:29 +000021599 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021600 # Work around the forget-to-reset-the-flag bug.
21601 echo 't clr' >>$CONFIG_STATUS
21602 echo ': clr' >>$CONFIG_STATUS
21603 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21604 echo 'CEOF
21605 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21606 rm -f $tmp/in
21607 mv $tmp/out $tmp/in
21608' >>$CONFIG_STATUS
21609 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21610 rm -f conftest.undefs
21611 mv conftest.tail conftest.undefs
21612done
21613rm -f conftest.undefs
21614
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021615cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021616 # Let's still pretend it is `configure' which instantiates (i.e., don't
21617 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021618 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021619 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021620 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021621 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021622 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021623 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021624 cat $tmp/in >>$tmp/config.h
21625 rm -f $tmp/in
21626 if test x"$ac_file" != x-; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021627 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021628 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021629echo "$as_me: $ac_file is unchanged" >&6;}
21630 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021631 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21632$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021633 X"$ac_file" : 'X\(//\)[^/]' \| \
21634 X"$ac_file" : 'X\(//\)$' \| \
21635 X"$ac_file" : 'X\(/\)' \| \
21636 . : '\(.\)' 2>/dev/null ||
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021637echo X"$ac_file" |
21638 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21639 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21640 /^X\(\/\/\)$/{ s//\1/; q; }
21641 /^X\(\/\).*/{ s//\1/; q; }
21642 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021643 { if $as_mkdir_p; then
21644 mkdir -p "$ac_dir"
21645 else
21646 as_dir="$ac_dir"
21647 as_dirs=
21648 while test ! -d "$as_dir"; do
21649 as_dirs="$as_dir $as_dirs"
21650 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21651$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021652 X"$as_dir" : 'X\(//\)[^/]' \| \
21653 X"$as_dir" : 'X\(//\)$' \| \
21654 X"$as_dir" : 'X\(/\)' \| \
21655 . : '\(.\)' 2>/dev/null ||
Alexandre Julliard11af04e2002-10-10 03:48:04 +000021656echo X"$as_dir" |
21657 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21658 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21659 /^X\(\/\/\)$/{ s//\1/; q; }
21660 /^X\(\/\).*/{ s//\1/; q; }
21661 s/.*/./; q'`
21662 done
21663 test ! -n "$as_dirs" || mkdir $as_dirs
21664 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21665echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21666 { (exit 1); exit 1; }; }; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000021667
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021668 rm -f $ac_file
21669 mv $tmp/config.h $ac_file
21670 fi
21671 else
21672 cat $tmp/config.h
21673 rm -f $tmp/config.h
21674 fi
21675done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021676_ACEOF
21677cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021678
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021679#
21680# CONFIG_COMMANDS section.
21681#
21682for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21683 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21684 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021685 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21686$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000021687 X"$ac_dest" : 'X\(//\)[^/]' \| \
21688 X"$ac_dest" : 'X\(//\)$' \| \
21689 X"$ac_dest" : 'X\(/\)' \| \
21690 . : '\(.\)' 2>/dev/null ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021691echo X"$ac_dest" |
21692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21693 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21694 /^X\(\/\/\)$/{ s//\1/; q; }
21695 /^X\(\/\).*/{ s//\1/; q; }
21696 s/.*/./; q'`
Alexandre Julliard875927f2004-01-02 01:55:29 +000021697 { if $as_mkdir_p; then
21698 mkdir -p "$ac_dir"
21699 else
21700 as_dir="$ac_dir"
21701 as_dirs=
21702 while test ! -d "$as_dir"; do
21703 as_dirs="$as_dir $as_dirs"
21704 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21705$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21706 X"$as_dir" : 'X\(//\)[^/]' \| \
21707 X"$as_dir" : 'X\(//\)$' \| \
21708 X"$as_dir" : 'X\(/\)' \| \
21709 . : '\(.\)' 2>/dev/null ||
21710echo X"$as_dir" |
21711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21712 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21713 /^X\(\/\/\)$/{ s//\1/; q; }
21714 /^X\(\/\).*/{ s//\1/; q; }
21715 s/.*/./; q'`
21716 done
21717 test ! -n "$as_dirs" || mkdir $as_dirs
21718 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21719echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21720 { (exit 1); exit 1; }; }; }
21721
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021722 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000021723
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021724if test "$ac_dir" != .; then
21725 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21726 # A "../" for each directory in $ac_dir_suffix.
21727 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021728else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021729 ac_dir_suffix= ac_top_builddir=
21730fi
21731
21732case $srcdir in
21733 .) # No --srcdir option. We are building in place.
21734 ac_srcdir=.
21735 if test -z "$ac_top_builddir"; then
21736 ac_top_srcdir=.
21737 else
21738 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21739 fi ;;
21740 [\\/]* | ?:[\\/]* ) # Absolute path.
21741 ac_srcdir=$srcdir$ac_dir_suffix;
21742 ac_top_srcdir=$srcdir ;;
21743 *) # Relative path.
21744 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21745 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21746esac
Alexandre Julliard875927f2004-01-02 01:55:29 +000021747
21748# Do not use `cd foo && pwd` to compute absolute paths, because
21749# the directories may not exist.
21750case `pwd` in
21751.) ac_abs_builddir="$ac_dir";;
21752*)
21753 case "$ac_dir" in
21754 .) ac_abs_builddir=`pwd`;;
21755 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21756 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21757 esac;;
21758esac
21759case $ac_abs_builddir in
21760.) ac_abs_top_builddir=${ac_top_builddir}.;;
21761*)
21762 case ${ac_top_builddir}. in
21763 .) ac_abs_top_builddir=$ac_abs_builddir;;
21764 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21765 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21766 esac;;
21767esac
21768case $ac_abs_builddir in
21769.) ac_abs_srcdir=$ac_srcdir;;
21770*)
21771 case $ac_srcdir in
21772 .) ac_abs_srcdir=$ac_abs_builddir;;
21773 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21774 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21775 esac;;
21776esac
21777case $ac_abs_builddir in
21778.) ac_abs_top_srcdir=$ac_top_srcdir;;
21779*)
21780 case $ac_top_srcdir in
21781 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21782 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21783 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21784 esac;;
21785esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021786
21787
21788 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21789echo "$as_me: executing $ac_dest commands" >&6;}
21790 case $ac_dest in
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021791 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
21792echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
21793 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
21794echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021795 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
21796echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021797 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
21798echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021799 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
21800echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
21801 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
21802echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000021803 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
21804echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021805 esac
21806done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021807_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021808
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021809cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000021810
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021811{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021812_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021813chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021814ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021815
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021816
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021817# configure is writing to config.log, and then calls config.status.
21818# config.status does its own redirection, appending to config.log.
21819# Unfortunately, on DOS this fails, as config.log is still kept open
21820# by configure, so config.status won't be able to write to it; its
21821# output is simply discarded. So we exec the FD to /dev/null,
21822# effectively closing config.log, so it can be properly (re)opened and
21823# appended to by config.status. When coming back to configure, we
21824# need to make the FD available again.
21825if test "$no_create" != yes; then
21826 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021827 ac_config_status_args=
21828 test "$silent" = yes &&
21829 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021830 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000021831 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021832 exec 5>>config.log
21833 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21834 # would make configure fail if this is the last instruction.
21835 $ac_cs_success || { (exit 1); exit 1; }
21836fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021837
Alexandre Julliarddaa28862002-04-11 21:54:01 +000021838
Ove Kaaven8b4431f1999-01-23 13:59:11 +000021839if test "$have_x" = "no"
21840then
21841 echo
21842 echo "*** Warning: X development files not found. Wine will be built without"
21843 echo "*** X support, which currently does not work, and would probably not be"
21844 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000021845 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000021846fi
21847
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000021848if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000021849then
21850 echo
21851 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000021852 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
21853fi
21854
Ian Pilcher563598d2001-05-16 20:56:05 +000021855if test "$wine_cv_msg_freetype" = "yes"
21856then
21857 echo
21858 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000021859 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
21860 echo "*** freetype-devel package (or its equivalent on your distribution) to"
21861 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000021862fi
21863
Francois Gouget99d026f2005-03-19 17:08:18 +000021864if test -z "$ALSALIBS" -a -z "$ARTSC_LIBS" -a -z "$AUDIOIOLIBS" -a \
21865 -z "$ac_cv_lib_soname_jack" -a -z "$NASLIBS" -a \
21866 "$ac_cv_c_opensoundsystem" = "no"
21867then
21868 echo "*** No sound system was found. Windows applications will be silent."
21869 echo "*** The currently supported sound systems are:"
21870 echo "*** ALSA, ARTS, AudioIO, Jack, NAS and OSS"
21871fi
21872
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021873echo
Vincent BĂ©ron5606d102004-08-19 00:03:45 +000021874echo "Configure finished. Do '${ac_make} depend && ${ac_make}' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000021875echo
21876