blob: 587b4ae336ddaef41f5ce09bc4fe3d20b2a2cf6d [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 Julliarde4cc8c02003-07-09 23:30:36 +00003# Generated by GNU Autoconf 2.57 for Wine 20030709.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004#
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006# Free Software Foundation, Inc.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012
13# Be Bourne compatible
14if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000020elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
22fi
23
Alexandre Julliarddaa28862002-04-11 21:54:01 +000024# Support unset when possible.
25if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
26 as_unset=unset
27else
28 as_unset=false
29fi
30
Alexandre Julliard11af04e2002-10-10 03:48:04 +000031
32# Work around bugs in pre-3.0 UWIN ksh.
33$as_unset ENV MAIL MAILPATH
34PS1='$ '
35PS2='> '
36PS4='+ '
37
38# NLS nuisances.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000039for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
Alexandre Julliard11af04e2002-10-10 03:48:04 +000043do
44 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49done
50
51# Required to use basename.
52if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54else
55 as_expr=false
56fi
57
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60else
61 as_basename=false
62fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000063
64
Alexandre Julliardf5818d22002-02-14 19:47:29 +000065# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000066as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000067$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
Alexandre Julliard11af04e2002-10-10 03:48:04 +000077
Alexandre Julliarddaa28862002-04-11 21:54:01 +000078# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000088 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000092 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000096 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000097fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184}
185
186
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000193
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file
202if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else
214 as_ln_s='cp -p'
215fi
216rm -f conf$$ conf$$.exe conf$$.file
217
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000218if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220else
221 as_mkdir_p=false
222fi
223
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000224as_executable_p="test -f"
225
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000226# Sed expression to map a string onto a valid CPP name.
227as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000228
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000229# Sed expression to map a string onto a valid variable name.
230as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000232
233# IFS
234# We need space, tab and new line, in precisely that order.
235as_nl='
236'
237IFS=" $as_nl"
238
239# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000240$as_unset CDPATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000241
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000242
243# Name of the host.
244# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
245# so uname gets run too.
246ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
247
248exec 6>&1
249
250#
251# Initializations.
252#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000253ac_default_prefix=/usr/local
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000254ac_config_libobj_dir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000255cross_compiling=no
256subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000257MFLAGS=
258MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000259SHELL=${CONFIG_SHELL-/bin/sh}
260
261# Maximum number of lines to put in a shell here document.
262# This variable seems obsolete. It should probably be removed, and
263# only ac_max_sed_lines should be used.
264: ${ac_max_here_lines=38}
265
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000266# Identity of this package.
267PACKAGE_NAME='Wine'
268PACKAGE_TARNAME='wine'
Alexandre Julliarde4cc8c02003-07-09 23:30:36 +0000269PACKAGE_VERSION='20030709'
270PACKAGE_STRING='Wine 20030709'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000271PACKAGE_BUGREPORT=''
272
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000273ac_unique_file="server/atom.c"
274# Factoring default headers for most tests.
275ac_includes_default="\
276#include <stdio.h>
277#if HAVE_SYS_TYPES_H
278# include <sys/types.h>
279#endif
280#if HAVE_SYS_STAT_H
281# include <sys/stat.h>
282#endif
283#if STDC_HEADERS
284# include <stdlib.h>
285# include <stddef.h>
286#else
287# if HAVE_STDLIB_H
288# include <stdlib.h>
289# endif
290#endif
291#if HAVE_STRING_H
292# if !STDC_HEADERS && HAVE_MEMORY_H
293# include <memory.h>
294# endif
295# include <string.h>
296#endif
297#if HAVE_STRINGS_H
298# include <strings.h>
299#endif
300#if HAVE_INTTYPES_H
301# include <inttypes.h>
302#else
303# if HAVE_STDINT_H
304# include <stdint.h>
305# endif
306#endif
307#if HAVE_UNISTD_H
308# include <unistd.h>
309#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000310
Richard Cohen6039fb02003-07-21 22:01:07 +0000311ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS WIN16_FILES WIN16_INSTALL LIBPTHREAD build build_cpu build_vendor build_os host host_cpu host_vendor host_os SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP TOOLSDIR X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS YACC LEX LEXLIB LEX_OUTPUT_ROOT XYACC XLEX AS ac_ct_AS LD ac_ct_LD AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP WINDRES ac_ct_WINDRES LN_S LN LDCONFIG INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LINT LINTFLAGS DB2HTML DB2PDF DB2PS JPEGLIB EGREP GIFLIB XLIB XFILES OPENGLFILES GLU32FILES OPENGL_LIBS NASLIBS CURSESLIBS sane_devel SANELIBS SANEINCL ICULIBS ft_devel ft_devel2 FREETYPEINCL ARTSCCONFIG ARTSLIBS ARTSINCL ALSALIBS AUDIOIOLIBS EXTRACFLAGS DLLEXT DLLFLAGS DLLIBS LDDLLFLAGS LDSHARED LIBEXT IMPLIBEXT DLLTOOL ac_ct_DLLTOOL DLLWRAP ac_ct_DLLWRAP LDEXECFLAGS CROSSTEST CROSSCC CROSSWINDRES LDPATH CRTLIBS LDD ALLOCA LIBOBJS LTLIBOBJS'
Alexandre Julliard117436e2003-05-01 00:39:29 +0000312ac_subst_files='MAKE_RULES MAKE_DLL_RULES MAKE_TEST_RULES MAKE_LIB_RULES MAKE_PROG_RULES'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000313
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000314# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000315ac_init_help=
316ac_init_version=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000317# The variables have the same names as the options, with
318# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000319cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000320exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000321no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000322no_recursion=
323prefix=NONE
324program_prefix=NONE
325program_suffix=NONE
326program_transform_name=s,x,x,
327silent=
328site=
329srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000330verbose=
331x_includes=NONE
332x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000333
334# Installation directory options.
335# These are left unexpanded so users can "make install exec_prefix=/foo"
336# and all the variables that are supposed to be based on exec_prefix
337# by default will actually change.
338# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000339bindir='${exec_prefix}/bin'
340sbindir='${exec_prefix}/sbin'
341libexecdir='${exec_prefix}/libexec'
342datadir='${prefix}/share'
343sysconfdir='${prefix}/etc'
344sharedstatedir='${prefix}/com'
345localstatedir='${prefix}/var'
346libdir='${exec_prefix}/lib'
347includedir='${prefix}/include'
348oldincludedir='/usr/include'
349infodir='${prefix}/info'
350mandir='${prefix}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000351
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000352ac_prev=
353for ac_option
354do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000355 # If the previous option needs an argument, assign it.
356 if test -n "$ac_prev"; then
357 eval "$ac_prev=\$ac_option"
358 ac_prev=
359 continue
360 fi
361
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000362 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000363
364 # Accept the important Cygnus configure options, so we can diagnose typos.
365
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000366 case $ac_option in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000367
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000368 -bindir | --bindir | --bindi | --bind | --bin | --bi)
369 ac_prev=bindir ;;
370 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000371 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000372
373 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000374 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000375 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000376 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000377
378 -cache-file | --cache-file | --cache-fil | --cache-fi \
379 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
380 ac_prev=cache_file ;;
381 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
382 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000383 cache_file=$ac_optarg ;;
384
385 --config-cache | -C)
386 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000387
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000388 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
389 ac_prev=datadir ;;
390 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
391 | --da=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000392 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000393
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000394 -disable-* | --disable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000395 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000396 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000397 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
398 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
399 { (exit 1); exit 1; }; }
400 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
401 eval "enable_$ac_feature=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000402
403 -enable-* | --enable-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000404 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000405 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000406 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
407 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
408 { (exit 1); exit 1; }; }
409 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
410 case $ac_option in
411 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000412 *) ac_optarg=yes ;;
413 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000414 eval "enable_$ac_feature='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000415
416 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
417 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
418 | --exec | --exe | --ex)
419 ac_prev=exec_prefix ;;
420 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
421 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
422 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000423 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000424
425 -gas | --gas | --ga | --g)
426 # Obsolete; use --with-gas.
427 with_gas=yes ;;
428
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000429 -help | --help | --hel | --he | -h)
430 ac_init_help=long ;;
431 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
432 ac_init_help=recursive ;;
433 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
434 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000435
436 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000437 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000438 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000439 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000440
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000441 -includedir | --includedir | --includedi | --included | --include \
442 | --includ | --inclu | --incl | --inc)
443 ac_prev=includedir ;;
444 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
445 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000446 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000447
448 -infodir | --infodir | --infodi | --infod | --info | --inf)
449 ac_prev=infodir ;;
450 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000451 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000452
453 -libdir | --libdir | --libdi | --libd)
454 ac_prev=libdir ;;
455 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000456 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000457
458 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
459 | --libexe | --libex | --libe)
460 ac_prev=libexecdir ;;
461 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
462 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000463 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000464
465 -localstatedir | --localstatedir | --localstatedi | --localstated \
466 | --localstate | --localstat | --localsta | --localst \
467 | --locals | --local | --loca | --loc | --lo)
468 ac_prev=localstatedir ;;
469 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
470 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
471 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000472 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000473
474 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
475 ac_prev=mandir ;;
476 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000477 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000478
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000479 -nfp | --nfp | --nf)
480 # Obsolete; use --without-fp.
481 with_fp=no ;;
482
483 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000484 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000485 no_create=yes ;;
486
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
489 no_recursion=yes ;;
490
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000491 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
492 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
493 | --oldin | --oldi | --old | --ol | --o)
494 ac_prev=oldincludedir ;;
495 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
496 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
497 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000498 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000499
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000500 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
501 ac_prev=prefix ;;
502 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000503 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000504
505 -program-prefix | --program-prefix | --program-prefi | --program-pref \
506 | --program-pre | --program-pr | --program-p)
507 ac_prev=program_prefix ;;
508 -program-prefix=* | --program-prefix=* | --program-prefi=* \
509 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000510 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000511
512 -program-suffix | --program-suffix | --program-suffi | --program-suff \
513 | --program-suf | --program-su | --program-s)
514 ac_prev=program_suffix ;;
515 -program-suffix=* | --program-suffix=* | --program-suffi=* \
516 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000517 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000518
519 -program-transform-name | --program-transform-name \
520 | --program-transform-nam | --program-transform-na \
521 | --program-transform-n | --program-transform- \
522 | --program-transform | --program-transfor \
523 | --program-transfo | --program-transf \
524 | --program-trans | --program-tran \
525 | --progr-tra | --program-tr | --program-t)
526 ac_prev=program_transform_name ;;
527 -program-transform-name=* | --program-transform-name=* \
528 | --program-transform-nam=* | --program-transform-na=* \
529 | --program-transform-n=* | --program-transform-=* \
530 | --program-transform=* | --program-transfor=* \
531 | --program-transfo=* | --program-transf=* \
532 | --program-trans=* | --program-tran=* \
533 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000534 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000535
536 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
537 | -silent | --silent | --silen | --sile | --sil)
538 silent=yes ;;
539
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
541 ac_prev=sbindir ;;
542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
543 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000544 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000545
546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
548 | --sharedst | --shareds | --shared | --share | --shar \
549 | --sha | --sh)
550 ac_prev=sharedstatedir ;;
551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
554 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000555 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000556
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000557 -site | --site | --sit)
558 ac_prev=site ;;
559 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000560 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000561
562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
563 ac_prev=srcdir ;;
564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000565 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000566
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
568 | --syscon | --sysco | --sysc | --sys | --sy)
569 ac_prev=sysconfdir ;;
570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000572 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000573
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000574 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000575 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000577 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000578
579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
580 verbose=yes ;;
581
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000582 -version | --version | --versio | --versi | --vers | -V)
583 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000584
585 -with-* | --with-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000586 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000587 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000588 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
589 { echo "$as_me: error: invalid package name: $ac_package" >&2
590 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000591 ac_package=`echo $ac_package| sed 's/-/_/g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000592 case $ac_option in
593 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000594 *) ac_optarg=yes ;;
595 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000596 eval "with_$ac_package='$ac_optarg'" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000597
598 -without-* | --without-*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000599 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000600 # Reject names that are not valid shell variable names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000601 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
602 { echo "$as_me: error: invalid package name: $ac_package" >&2
603 { (exit 1); exit 1; }; }
604 ac_package=`echo $ac_package | sed 's/-/_/g'`
605 eval "with_$ac_package=no" ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000606
607 --x)
608 # Obsolete; use --with-x.
609 with_x=yes ;;
610
611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
612 | --x-incl | --x-inc | --x-in | --x-i)
613 ac_prev=x_includes ;;
614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000616 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000617
618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
620 ac_prev=x_libraries ;;
621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000623 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000624
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000625 -*) { echo "$as_me: error: unrecognized option: $ac_option
626Try \`$0 --help' for more information." >&2
627 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000628 ;;
629
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000630 *=*)
631 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
632 # Reject names that are not valid shell variable names.
633 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
634 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
635 { (exit 1); exit 1; }; }
636 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
637 eval "$ac_envvar='$ac_optarg'"
638 export $ac_envvar ;;
639
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000640 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000641 # FIXME: should be removed in autoconf 3.0.
642 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
643 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
644 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
645 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000646 ;;
647
648 esac
649done
650
651if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000652 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
653 { echo "$as_me: error: missing argument to $ac_option" >&2
654 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000655fi
656
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000657# Be sure to have absolute paths.
658for ac_var in exec_prefix prefix
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000659do
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000660 eval ac_val=$`echo $ac_var`
661 case $ac_val in
662 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000663 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000664 { (exit 1); exit 1; }; };;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000665 esac
666done
667
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000668# Be sure to have absolute paths.
669for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
670 localstatedir libdir includedir oldincludedir infodir mandir
671do
672 eval ac_val=$`echo $ac_var`
673 case $ac_val in
674 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000675 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000676 { (exit 1); exit 1; }; };;
677 esac
678done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000679
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000680# There might be people who depend on the old broken behavior: `$host'
681# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000682# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000683build=$build_alias
684host=$host_alias
685target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000686
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000687# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000688if test "x$host_alias" != x; then
689 if test "x$build_alias" = x; then
690 cross_compiling=maybe
691 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
692 If a cross compiler is detected then cross compile mode will be used." >&2
693 elif test "x$build_alias" != "x$host_alias"; then
694 cross_compiling=yes
695 fi
696fi
697
698ac_tool_prefix=
699test -n "$host_alias" && ac_tool_prefix=$host_alias-
700
701test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000702
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000703
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000704# Find the source files, if location was not specified.
705if test -z "$srcdir"; then
706 ac_srcdir_defaulted=yes
707 # Try the directory containing this script, then its parent.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000708 ac_confdir=`(dirname "$0") 2>/dev/null ||
709$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
710 X"$0" : 'X\(//\)[^/]' \| \
711 X"$0" : 'X\(//\)$' \| \
712 X"$0" : 'X\(/\)' \| \
713 . : '\(.\)' 2>/dev/null ||
714echo X"$0" |
715 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
716 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
717 /^X\(\/\/\)$/{ s//\1/; q; }
718 /^X\(\/\).*/{ s//\1/; q; }
719 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000720 srcdir=$ac_confdir
721 if test ! -r $srcdir/$ac_unique_file; then
722 srcdir=..
723 fi
724else
725 ac_srcdir_defaulted=no
726fi
727if test ! -r $srcdir/$ac_unique_file; then
728 if test "$ac_srcdir_defaulted" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000729 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000730 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000731 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000732 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000733 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000734 fi
735fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000736(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
737 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
738 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000739srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
740ac_env_build_alias_set=${build_alias+set}
741ac_env_build_alias_value=$build_alias
742ac_cv_env_build_alias_set=${build_alias+set}
743ac_cv_env_build_alias_value=$build_alias
744ac_env_host_alias_set=${host_alias+set}
745ac_env_host_alias_value=$host_alias
746ac_cv_env_host_alias_set=${host_alias+set}
747ac_cv_env_host_alias_value=$host_alias
748ac_env_target_alias_set=${target_alias+set}
749ac_env_target_alias_value=$target_alias
750ac_cv_env_target_alias_set=${target_alias+set}
751ac_cv_env_target_alias_value=$target_alias
752ac_env_CC_set=${CC+set}
753ac_env_CC_value=$CC
754ac_cv_env_CC_set=${CC+set}
755ac_cv_env_CC_value=$CC
756ac_env_CFLAGS_set=${CFLAGS+set}
757ac_env_CFLAGS_value=$CFLAGS
758ac_cv_env_CFLAGS_set=${CFLAGS+set}
759ac_cv_env_CFLAGS_value=$CFLAGS
760ac_env_LDFLAGS_set=${LDFLAGS+set}
761ac_env_LDFLAGS_value=$LDFLAGS
762ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
763ac_cv_env_LDFLAGS_value=$LDFLAGS
764ac_env_CPPFLAGS_set=${CPPFLAGS+set}
765ac_env_CPPFLAGS_value=$CPPFLAGS
766ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
767ac_cv_env_CPPFLAGS_value=$CPPFLAGS
768ac_env_CPP_set=${CPP+set}
769ac_env_CPP_value=$CPP
770ac_cv_env_CPP_set=${CPP+set}
771ac_cv_env_CPP_value=$CPP
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000772
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000773#
774# Report the --help message.
775#
776if test "$ac_init_help" = "long"; then
777 # Omit some internal or obsolete options to make the list less imposing.
778 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000779 cat <<_ACEOF
Alexandre Julliarde4cc8c02003-07-09 23:30:36 +0000780\`configure' configures Wine 20030709 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000781
782Usage: $0 [OPTION]... [VAR=VALUE]...
783
784To assign environment variables (e.g., CC, CFLAGS...), specify them as
785VAR=VALUE. See below for descriptions of some of the useful variables.
786
787Defaults for the options are specified in brackets.
788
789Configuration:
790 -h, --help display this help and exit
791 --help=short display options specific to this package
792 --help=recursive display the short help of all the included packages
793 -V, --version display version information and exit
794 -q, --quiet, --silent do not print \`checking...' messages
795 --cache-file=FILE cache test results in FILE [disabled]
796 -C, --config-cache alias for \`--cache-file=config.cache'
797 -n, --no-create do not create output files
798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
799
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000800_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000801
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000802 cat <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000803Installation directories:
804 --prefix=PREFIX install architecture-independent files in PREFIX
805 [$ac_default_prefix]
806 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
807 [PREFIX]
808
809By default, \`make install' will install all the files in
810\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
811an installation prefix other than \`$ac_default_prefix' using \`--prefix',
812for instance \`--prefix=\$HOME'.
813
814For better control, use the options below.
815
816Fine tuning of the installation directories:
817 --bindir=DIR user executables [EPREFIX/bin]
818 --sbindir=DIR system admin executables [EPREFIX/sbin]
819 --libexecdir=DIR program executables [EPREFIX/libexec]
820 --datadir=DIR read-only architecture-independent data [PREFIX/share]
821 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
822 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
823 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
824 --libdir=DIR object code libraries [EPREFIX/lib]
825 --includedir=DIR C header files [PREFIX/include]
826 --oldincludedir=DIR C header files for non-gcc [/usr/include]
827 --infodir=DIR info documentation [PREFIX/info]
828 --mandir=DIR man documentation [PREFIX/man]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000829_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000830
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000831 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000832
833X features:
834 --x-includes=DIR X include files are in DIR
835 --x-libraries=DIR X library files are in DIR
836
837System types:
838 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000839 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000840_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000841fi
842
843if test -n "$ac_init_help"; then
844 case $ac_init_help in
Alexandre Julliarde4cc8c02003-07-09 23:30:36 +0000845 short | recursive ) echo "Configuration of Wine 20030709:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000846 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000847 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000848
849Optional Features:
850 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
851 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Alexandre Julliardc728efc2002-10-02 02:34:09 +0000852 --disable-win16 do not include Win16 support
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000853 --disable-debug compile out all debugging messages
854 --disable-trace compile out TRACE messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000855
856Optional Packages:
857 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
858 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Julliardb8074992002-11-21 21:51:24 +0000859 --without-opengl do not use OpenGL
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000860 --without-curses do not use curses
Alexandre Julliard6a9cea92003-04-03 02:54:54 +0000861 --with-nptl use glibc NPTL threading support
Alexandre Julliardfc01b722002-05-12 03:16:39 +0000862 --with-wine-tools=<dir> use Wine tools from directory <dir>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000863 --with-x use the X Window System
864
865Some influential environment variables:
866 CC C compiler command
867 CFLAGS C compiler flags
868 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
869 nonstandard directory <lib dir>
870 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
871 headers in a nonstandard directory <include dir>
872 CPP C preprocessor
873
874Use these variables to override the choices made by `configure' or to help
875it to find libraries and programs with nonstandard names/locations.
876
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000877_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000878fi
879
880if test "$ac_init_help" = "recursive"; then
881 # If there are subdirs, report their specific --help.
882 ac_popdir=`pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000883 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
884 test -d $ac_dir || continue
885 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000886
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000887if test "$ac_dir" != .; then
888 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
889 # A "../" for each directory in $ac_dir_suffix.
890 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
891else
892 ac_dir_suffix= ac_top_builddir=
893fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000894
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000895case $srcdir in
896 .) # No --srcdir option. We are building in place.
897 ac_srcdir=.
898 if test -z "$ac_top_builddir"; then
899 ac_top_srcdir=.
900 else
901 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
902 fi ;;
903 [\\/]* | ?:[\\/]* ) # Absolute path.
904 ac_srcdir=$srcdir$ac_dir_suffix;
905 ac_top_srcdir=$srcdir ;;
906 *) # Relative path.
907 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
908 ac_top_srcdir=$ac_top_builddir$srcdir ;;
909esac
910# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
911# absolute.
912ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000913ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000914ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
915ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
916
917 cd $ac_dir
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000918 # Check for guested configure; otherwise get Cygnus style configure.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000919 if test -f $ac_srcdir/configure.gnu; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000920 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000921 $SHELL $ac_srcdir/configure.gnu --help=recursive
922 elif test -f $ac_srcdir/configure; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000923 echo
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000924 $SHELL $ac_srcdir/configure --help=recursive
925 elif test -f $ac_srcdir/configure.ac ||
926 test -f $ac_srcdir/configure.in; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000927 echo
928 $ac_configure --help
929 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000930 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000931 fi
932 cd $ac_popdir
933 done
934fi
935
936test -n "$ac_init_help" && exit 0
937if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000938 cat <<\_ACEOF
Alexandre Julliarde4cc8c02003-07-09 23:30:36 +0000939Wine configure 20030709
Alexandre Julliarde24bcc72002-12-24 00:35:19 +0000940generated by GNU Autoconf 2.57
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000941
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000942Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000943Free Software Foundation, Inc.
944This configure script is free software; the Free Software Foundation
945gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000946_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000947 exit 0
948fi
949exec 5>config.log
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000950cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000951This file contains any messages produced by compilers while
952running configure, to aid debugging if configure makes a mistake.
953
Alexandre Julliarde4cc8c02003-07-09 23:30:36 +0000954It was created by Wine $as_me 20030709, which was
Alexandre Julliarde24bcc72002-12-24 00:35:19 +0000955generated by GNU Autoconf 2.57. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000956
957 $ $0 $@
958
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000959_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000960{
961cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000962## --------- ##
963## Platform. ##
964## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000965
966hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
967uname -m = `(uname -m) 2>/dev/null || echo unknown`
968uname -r = `(uname -r) 2>/dev/null || echo unknown`
969uname -s = `(uname -s) 2>/dev/null || echo unknown`
970uname -v = `(uname -v) 2>/dev/null || echo unknown`
971
972/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
973/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
974
975/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
976/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
977/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
978hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
979/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
980/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
981/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
982
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000983_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000984
985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
986for as_dir in $PATH
987do
988 IFS=$as_save_IFS
989 test -z "$as_dir" && as_dir=.
990 echo "PATH: $as_dir"
991done
992
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000993} >&5
994
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000995cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000996
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000997
998## ----------- ##
999## Core tests. ##
1000## ----------- ##
1001
1002_ACEOF
1003
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001004
1005# Keep a trace of the command line.
1006# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001007# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001008# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001009# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001010ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001011ac_configure_args0=
1012ac_configure_args1=
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001013ac_sep=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001014ac_must_keep_next=false
1015for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001016do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001017 for ac_arg
1018 do
1019 case $ac_arg in
1020 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1021 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1022 | -silent | --silent | --silen | --sile | --sil)
1023 continue ;;
1024 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1025 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1026 esac
1027 case $ac_pass in
1028 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1029 2)
1030 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1031 if test $ac_must_keep_next = true; then
1032 ac_must_keep_next=false # Got value, back to normal.
1033 else
1034 case $ac_arg in
1035 *=* | --config-cache | -C | -disable-* | --disable-* \
1036 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1037 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1038 | -with-* | --with-* | -without-* | --without-* | --x)
1039 case "$ac_configure_args0 " in
1040 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1041 esac
1042 ;;
1043 -* ) ac_must_keep_next=true ;;
1044 esac
1045 fi
1046 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1047 # Get rid of the leading space.
1048 ac_sep=" "
1049 ;;
1050 esac
1051 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001052done
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001053$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1054$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 +00001055
1056# When interrupted or exit'd, cleanup temporary files, and complete
1057# config.log. We remove comments because anyway the quotes in there
1058# would cause problems or look ugly.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001059# WARNING: Be sure not to use single quotes in there, as some shells,
1060# such as our DU 5.0 friend, will then `close' the trap.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001061trap 'exit_status=$?
1062 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001063 {
1064 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001065
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001066 cat <<\_ASBOX
1067## ---------------- ##
1068## Cache variables. ##
1069## ---------------- ##
1070_ASBOX
1071 echo
1072 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001073{
1074 (set) 2>&1 |
1075 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1076 *ac_space=\ *)
1077 sed -n \
1078 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1079 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1080 ;;
1081 *)
1082 sed -n \
1083 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1084 ;;
1085 esac;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001086}
1087 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001088
1089 cat <<\_ASBOX
1090## ----------------- ##
1091## Output variables. ##
1092## ----------------- ##
1093_ASBOX
1094 echo
1095 for ac_var in $ac_subst_vars
1096 do
1097 eval ac_val=$`echo $ac_var`
1098 echo "$ac_var='"'"'$ac_val'"'"'"
1099 done | sort
1100 echo
1101
1102 if test -n "$ac_subst_files"; then
1103 cat <<\_ASBOX
1104## ------------- ##
1105## Output files. ##
1106## ------------- ##
1107_ASBOX
1108 echo
1109 for ac_var in $ac_subst_files
1110 do
1111 eval ac_val=$`echo $ac_var`
1112 echo "$ac_var='"'"'$ac_val'"'"'"
1113 done | sort
1114 echo
1115 fi
1116
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001117 if test -s confdefs.h; then
1118 cat <<\_ASBOX
1119## ----------- ##
1120## confdefs.h. ##
1121## ----------- ##
1122_ASBOX
1123 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001124 sed "/^$/d" confdefs.h | sort
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001125 echo
1126 fi
1127 test "$ac_signal" != 0 &&
1128 echo "$as_me: caught signal $ac_signal"
1129 echo "$as_me: exit $exit_status"
1130 } >&5
1131 rm -f core core.* *.core &&
1132 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001133 exit $exit_status
1134 ' 0
1135for ac_signal in 1 2 13 15; do
1136 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1137done
1138ac_signal=0
1139
1140# confdefs.h avoids OS command line length limits that DEFS can exceed.
1141rm -rf conftest* confdefs.h
1142# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1143echo >confdefs.h
1144
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001145# Predefined preprocessor variables.
1146
1147cat >>confdefs.h <<_ACEOF
1148#define PACKAGE_NAME "$PACKAGE_NAME"
1149_ACEOF
1150
1151
1152cat >>confdefs.h <<_ACEOF
1153#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1154_ACEOF
1155
1156
1157cat >>confdefs.h <<_ACEOF
1158#define PACKAGE_VERSION "$PACKAGE_VERSION"
1159_ACEOF
1160
1161
1162cat >>confdefs.h <<_ACEOF
1163#define PACKAGE_STRING "$PACKAGE_STRING"
1164_ACEOF
1165
1166
1167cat >>confdefs.h <<_ACEOF
1168#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1169_ACEOF
1170
1171
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001172# Let the site file select an alternate cache file if it wants to.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001173# Prefer explicitly selected file to automatically selected ones.
1174if test -z "$CONFIG_SITE"; then
1175 if test "x$prefix" != xNONE; then
1176 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1177 else
1178 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1179 fi
1180fi
1181for ac_site_file in $CONFIG_SITE; do
1182 if test -r "$ac_site_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001183 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001184echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001185 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001186 . "$ac_site_file"
1187 fi
1188done
1189
1190if test -r "$cache_file"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001191 # Some versions of bash will fail to source /dev/null (special
1192 # files actually), so we avoid doing that.
1193 if test -f "$cache_file"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001194 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001195echo "$as_me: loading cache $cache_file" >&6;}
1196 case $cache_file in
1197 [\\/]* | ?:[\\/]* ) . $cache_file;;
1198 *) . ./$cache_file;;
1199 esac
1200 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001201else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001202 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001203echo "$as_me: creating cache $cache_file" >&6;}
1204 >$cache_file
1205fi
1206
1207# Check that the precious variables saved in the cache have kept the same
1208# value.
1209ac_cache_corrupted=false
1210for ac_var in `(set) 2>&1 |
1211 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1212 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1213 eval ac_new_set=\$ac_env_${ac_var}_set
1214 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1215 eval ac_new_val="\$ac_env_${ac_var}_value"
1216 case $ac_old_set,$ac_new_set in
1217 set,)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001218 { 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 +00001219echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1220 ac_cache_corrupted=: ;;
1221 ,set)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001222 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001223echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1224 ac_cache_corrupted=: ;;
1225 ,);;
1226 *)
1227 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001228 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001229echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001230 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001231echo "$as_me: former value: $ac_old_val" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001232 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001233echo "$as_me: current value: $ac_new_val" >&2;}
1234 ac_cache_corrupted=:
1235 fi;;
1236 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001237 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001238 if test "$ac_new_set" = set; then
1239 case $ac_new_val in
1240 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001241 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1242 *) ac_arg=$ac_var=$ac_new_val ;;
1243 esac
1244 case " $ac_configure_args " in
1245 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1246 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001247 esac
1248 fi
1249done
1250if $ac_cache_corrupted; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001251 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001252echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001253 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001254echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1255 { (exit 1); exit 1; }; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001256fi
1257
1258ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001259ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001260ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1261ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1262ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001263
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001289
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001290
1291 ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00001292
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001293ac_aux_dir=
1294for ac_dir in tools $srcdir/tools; do
1295 if test -f $ac_dir/install-sh; then
1296 ac_aux_dir=$ac_dir
1297 ac_install_sh="$ac_aux_dir/install-sh -c"
1298 break
1299 elif test -f $ac_dir/install.sh; then
1300 ac_aux_dir=$ac_dir
1301 ac_install_sh="$ac_aux_dir/install.sh -c"
1302 break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001303 elif test -f $ac_dir/shtool; then
1304 ac_aux_dir=$ac_dir
1305 ac_install_sh="$ac_aux_dir/shtool install -c"
1306 break
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001307 fi
1308done
1309if test -z "$ac_aux_dir"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001310 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001311echo "$as_me: error: cannot find install-sh or install.sh in tools $srcdir/tools" >&2;}
1312 { (exit 1); exit 1; }; }
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001313fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001314ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1315ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1316ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
Howard Abrams13277481999-07-10 13:16:29 +00001317
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001318
1319
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001320# Check whether --enable-win16 or --disable-win16 was given.
1321if test "${enable_win16+set}" = set; then
1322 enableval="$enable_win16"
1323
1324fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001325# Check whether --enable-debug or --disable-debug was given.
1326if test "${enable_debug+set}" = set; then
1327 enableval="$enable_debug"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001328
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001329fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001330# Check whether --enable-trace or --disable-trace was given.
1331if test "${enable_trace+set}" = set; then
1332 enableval="$enable_trace"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001333
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001334fi;
Alexandre Julliardb8074992002-11-21 21:51:24 +00001335
1336
1337# Check whether --with-opengl or --without-opengl was given.
1338if test "${with_opengl+set}" = set; then
1339 withval="$with_opengl"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001340
1341fi;
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001342
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001343# Check whether --with-curses or --without-curses was given.
1344if test "${with_curses+set}" = set; then
1345 withval="$with_curses"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001346
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001347fi;
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00001348
Alexandre Julliard6a9cea92003-04-03 02:54:54 +00001349# Check whether --with-nptl or --without-nptl was given.
1350if test "${with_nptl+set}" = set; then
1351 withval="$with_nptl"
1352
1353fi;
1354
Alexandre Julliardfc01b722002-05-12 03:16:39 +00001355# Check whether --with-wine-tools or --without-wine-tools was given.
1356if test "${with_wine_tools+set}" = set; then
1357 withval="$with_wine_tools"
1358
1359fi;
1360
Alexandre Julliardc728efc2002-10-02 02:34:09 +00001361WIN16_FILES="\$(WIN16_FILES)"
1362
1363WIN16_INSTALL="\$(WIN16_INSTALL)"
1364
1365if test "x$enable_win16" = "xno"
1366then
1367 WIN16_FILES=""
1368 WIN16_INSTALL=""
1369fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001370if test "x$enable_debug" = "xno"
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001371then
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001372
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001373cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001374#define NO_DEBUG_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001375_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001376
1377fi
1378if test "x$enable_trace" = "xno" -o "x$enable_debug" = "xno"
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00001379then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001380
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001381cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001382#define NO_TRACE_MSGS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001383_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001384
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001385fi
Alexandre Julliard6a9cea92003-04-03 02:54:54 +00001386if test "x$with_nptl" = "xyes"
1387then
1388
1389cat >>confdefs.h <<\_ACEOF
1390#define HAVE_NPTL 1
1391_ACEOF
1392
1393 LIBPTHREAD="-lpthread"
1394
1395fi
Alexandre Julliardf90efa91998-06-14 15:24:15 +00001396
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001397
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001398# Make sure we can run config.sub.
1399$ac_config_sub sun4 >/dev/null 2>&1 ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001400 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001401echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1402 { (exit 1); exit 1; }; }
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00001403
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001404echo "$as_me:$LINENO: checking build system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001405echo $ECHO_N "checking build system type... $ECHO_C" >&6
1406if test "${ac_cv_build+set}" = set; then
1407 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001408else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001409 ac_cv_build_alias=$build_alias
1410test -z "$ac_cv_build_alias" &&
1411 ac_cv_build_alias=`$ac_config_guess`
1412test -z "$ac_cv_build_alias" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001413 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001414echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1415 { (exit 1); exit 1; }; }
1416ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001417 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1418echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001419 { (exit 1); exit 1; }; }
1420
1421fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001422echo "$as_me:$LINENO: result: $ac_cv_build" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001423echo "${ECHO_T}$ac_cv_build" >&6
1424build=$ac_cv_build
1425build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1426build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1427build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1428
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001429
1430echo "$as_me:$LINENO: checking host system type" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001431echo $ECHO_N "checking host system type... $ECHO_C" >&6
1432if test "${ac_cv_host+set}" = set; then
1433 echo $ECHO_N "(cached) $ECHO_C" >&6
1434else
1435 ac_cv_host_alias=$host_alias
1436test -z "$ac_cv_host_alias" &&
1437 ac_cv_host_alias=$ac_cv_build_alias
1438ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001439 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001440echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1441 { (exit 1); exit 1; }; }
1442
1443fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001444echo "$as_me:$LINENO: result: $ac_cv_host" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001445echo "${ECHO_T}$ac_cv_host" >&6
1446host=$ac_cv_host
1447host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1448host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1449host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1450
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001451
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001452echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1453echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001454set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1455if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1456 echo $ECHO_N "(cached) $ECHO_C" >&6
1457else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001458 cat >conftest.make <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001459all:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001460 @echo 'ac_maketemp="$(MAKE)"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001461_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001462# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001463eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001464if test -n "$ac_maketemp"; then
1465 eval ac_cv_prog_make_${ac_make}_set=yes
1466else
1467 eval ac_cv_prog_make_${ac_make}_set=no
1468fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001469rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001470fi
1471if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001472 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001473echo "${ECHO_T}yes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001474 SET_MAKE=
1475else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001476 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001477echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001478 SET_MAKE="MAKE=${MAKE-make}"
1479fi
1480
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001481ac_ext=c
1482ac_cpp='$CPP $CPPFLAGS'
1483ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486if test -n "$ac_tool_prefix"; then
1487 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1488set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001489echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001490echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1491if test "${ac_cv_prog_CC+set}" = set; then
1492 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001493else
1494 if test -n "$CC"; then
1495 ac_cv_prog_CC="$CC" # Let the user override the test.
1496else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498for as_dir in $PATH
1499do
1500 IFS=$as_save_IFS
1501 test -z "$as_dir" && as_dir=.
1502 for ac_exec_ext in '' $ac_executable_extensions; do
1503 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1504 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1506 break 2
1507 fi
1508done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001509done
1510
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001511fi
1512fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001513CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001514if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001515 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001516echo "${ECHO_T}$CC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001517else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001518 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001519echo "${ECHO_T}no" >&6
1520fi
1521
1522fi
1523if test -z "$ac_cv_prog_CC"; then
1524 ac_ct_CC=$CC
1525 # Extract the first word of "gcc", so it can be a program name with args.
1526set dummy gcc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001527echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001528echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1531else
1532 if test -n "$ac_ct_CC"; then
1533 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1534else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1536for as_dir in $PATH
1537do
1538 IFS=$as_save_IFS
1539 test -z "$as_dir" && as_dir=.
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542 ac_cv_prog_ac_ct_CC="gcc"
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1544 break 2
1545 fi
1546done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001547done
1548
1549fi
1550fi
1551ac_ct_CC=$ac_cv_prog_ac_ct_CC
1552if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001553 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001554echo "${ECHO_T}$ac_ct_CC" >&6
1555else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001556 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001557echo "${ECHO_T}no" >&6
1558fi
1559
1560 CC=$ac_ct_CC
1561else
1562 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001563fi
1564
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001565if test -z "$CC"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001566 if test -n "$ac_tool_prefix"; then
1567 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1568set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001569echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001570echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1571if test "${ac_cv_prog_CC+set}" = set; then
1572 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001573else
1574 if test -n "$CC"; then
1575 ac_cv_prog_CC="$CC" # Let the user override the test.
1576else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1578for as_dir in $PATH
1579do
1580 IFS=$as_save_IFS
1581 test -z "$as_dir" && as_dir=.
1582 for ac_exec_ext in '' $ac_executable_extensions; do
1583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1584 ac_cv_prog_CC="${ac_tool_prefix}cc"
1585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1586 break 2
1587 fi
1588done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001589done
1590
1591fi
1592fi
1593CC=$ac_cv_prog_CC
1594if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001595 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001596echo "${ECHO_T}$CC" >&6
1597else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001598 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001599echo "${ECHO_T}no" >&6
1600fi
1601
1602fi
1603if test -z "$ac_cv_prog_CC"; then
1604 ac_ct_CC=$CC
1605 # Extract the first word of "cc", so it can be a program name with args.
1606set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001607echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001608echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1611else
1612 if test -n "$ac_ct_CC"; then
1613 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1614else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1616for as_dir in $PATH
1617do
1618 IFS=$as_save_IFS
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_ac_ct_CC="cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1624 break 2
1625 fi
1626done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001627done
1628
1629fi
1630fi
1631ac_ct_CC=$ac_cv_prog_ac_ct_CC
1632if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001633 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001634echo "${ECHO_T}$ac_ct_CC" >&6
1635else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001636 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001637echo "${ECHO_T}no" >&6
1638fi
1639
1640 CC=$ac_ct_CC
1641else
1642 CC="$ac_cv_prog_CC"
1643fi
1644
1645fi
1646if test -z "$CC"; then
1647 # Extract the first word of "cc", so it can be a program name with args.
1648set dummy cc; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001649echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001650echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1651if test "${ac_cv_prog_CC+set}" = set; then
1652 echo $ECHO_N "(cached) $ECHO_C" >&6
1653else
1654 if test -n "$CC"; then
1655 ac_cv_prog_CC="$CC" # Let the user override the test.
1656else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001657 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659for as_dir in $PATH
1660do
1661 IFS=$as_save_IFS
1662 test -z "$as_dir" && as_dir=.
1663 for ac_exec_ext in '' $ac_executable_extensions; do
1664 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1665 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1666 ac_prog_rejected=yes
1667 continue
1668 fi
1669 ac_cv_prog_CC="cc"
1670 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 break 2
1672 fi
1673done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001674done
1675
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001676if test $ac_prog_rejected = yes; then
1677 # We found a bogon in the path, so make sure we never use it.
1678 set dummy $ac_cv_prog_CC
1679 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001680 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001681 # We chose a different compiler from the bogus one.
1682 # However, it has the same basename, so the bogon will be chosen
1683 # first if we set CC to just the basename; use the full file name.
1684 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001685 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001686 fi
1687fi
1688fi
1689fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001690CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001691if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001692 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001693echo "${ECHO_T}$CC" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001694else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001695 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001696echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001697fi
1698
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001699fi
1700if test -z "$CC"; then
1701 if test -n "$ac_tool_prefix"; then
1702 for ac_prog in cl
1703 do
1704 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1705set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001706echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1708if test "${ac_cv_prog_CC+set}" = set; then
1709 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001710else
1711 if test -n "$CC"; then
1712 ac_cv_prog_CC="$CC" # Let the user override the test.
1713else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001714as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1715for as_dir in $PATH
1716do
1717 IFS=$as_save_IFS
1718 test -z "$as_dir" && as_dir=.
1719 for ac_exec_ext in '' $ac_executable_extensions; do
1720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1721 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
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
Eric Pouech18ad24a2000-01-16 22:16:33 +00001728fi
1729fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001730CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00001731if test -n "$CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001732 echo "$as_me:$LINENO: result: $CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001733echo "${ECHO_T}$CC" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00001734else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001735 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001736echo "${ECHO_T}no" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00001737fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001738
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001739 test -n "$CC" && break
1740 done
1741fi
1742if test -z "$CC"; then
1743 ac_ct_CC=$CC
1744 for ac_prog in cl
1745do
1746 # Extract the first word of "$ac_prog", so it can be a program name with args.
1747set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001748echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001749echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1750if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1751 echo $ECHO_N "(cached) $ECHO_C" >&6
1752else
1753 if test -n "$ac_ct_CC"; then
1754 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1755else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001756as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1757for as_dir in $PATH
1758do
1759 IFS=$as_save_IFS
1760 test -z "$as_dir" && as_dir=.
1761 for ac_exec_ext in '' $ac_executable_extensions; do
1762 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1763 ac_cv_prog_ac_ct_CC="$ac_prog"
1764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1765 break 2
1766 fi
1767done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001768done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001769
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001770fi
1771fi
1772ac_ct_CC=$ac_cv_prog_ac_ct_CC
1773if test -n "$ac_ct_CC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001774 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001775echo "${ECHO_T}$ac_ct_CC" >&6
1776else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001777 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001778echo "${ECHO_T}no" >&6
1779fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001780
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001781 test -n "$ac_ct_CC" && break
1782done
Eric Pouech18ad24a2000-01-16 22:16:33 +00001783
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001784 CC=$ac_ct_CC
1785fi
1786
1787fi
1788
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001789
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001790test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1791See \`config.log' for more details." >&5
1792echo "$as_me: error: no acceptable C compiler found in \$PATH
1793See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001794 { (exit 1); exit 1; }; }
1795
1796# Provide some information about the compiler.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001797echo "$as_me:$LINENO:" \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001798 "checking for C compiler version" >&5
1799ac_compiler=`set X $ac_compile; echo $2`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001800{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001801 (eval $ac_compiler --version </dev/null >&5) 2>&5
1802 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001804 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001805{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001806 (eval $ac_compiler -v </dev/null >&5) 2>&5
1807 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001809 (exit $ac_status); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001810{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001811 (eval $ac_compiler -V </dev/null >&5) 2>&5
1812 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001814 (exit $ac_status); }
1815
1816cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001817#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001818/* confdefs.h. */
1819_ACEOF
1820cat confdefs.h >>conftest.$ac_ext
1821cat >>conftest.$ac_ext <<_ACEOF
1822/* end confdefs.h. */
Eric Pouech18ad24a2000-01-16 22:16:33 +00001823
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001824int
1825main ()
1826{
1827
1828 ;
1829 return 0;
1830}
1831_ACEOF
1832ac_clean_files_save=$ac_clean_files
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001833ac_clean_files="$ac_clean_files a.out a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001834# Try to create an executable without -o first, disregard a.out.
1835# It will help us diagnose broken compilers, and finding out an intuition
1836# of exeext.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001837echo "$as_me:$LINENO: checking for C compiler default output" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001838echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1839ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001840if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001841 (eval $ac_link_default) 2>&5
1842 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001844 (exit $ac_status); }; then
1845 # Find the output, starting from the most likely. This scheme is
1846# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1847# resort.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001848
1849# Be careful to initialize this variable, since it used to be cached.
1850# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1851ac_cv_exeext=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001852# b.out is created by i960 compilers.
1853for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1854do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001855 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001856 case $ac_file in
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001857 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1858 ;;
1859 conftest.$ac_ext )
1860 # This is the source file.
1861 ;;
1862 [ab].out )
1863 # We found the default executable, but exeext='' is most
1864 # certainly right.
1865 break;;
1866 *.* )
1867 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1868 # FIXME: I believe we export ac_cv_exeext for Libtool,
1869 # but it would be cool to find out if it's true. Does anybody
1870 # maintain Libtool? --akim.
1871 export ac_cv_exeext
1872 break;;
1873 * )
1874 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001875 esac
1876done
1877else
1878 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001879sed 's/^/| /' conftest.$ac_ext >&5
1880
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001881{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001882See \`config.log' for more details." >&5
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001883echo "$as_me: error: C compiler cannot create executables
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001884See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001885 { (exit 77); exit 77; }; }
1886fi
1887
1888ac_exeext=$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001889echo "$as_me:$LINENO: result: $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001890echo "${ECHO_T}$ac_file" >&6
1891
1892# Check the compiler produces executables we can run. If not, either
1893# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001894echo "$as_me:$LINENO: checking whether the C compiler works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001895echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1896# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1897# If not cross compiling, check that we can run a simple program.
1898if test "$cross_compiling" != yes; then
1899 if { ac_try='./$ac_file'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001901 (eval $ac_try) 2>&5
1902 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001904 (exit $ac_status); }; }; then
1905 cross_compiling=no
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001906 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001907 if test "$cross_compiling" = maybe; then
1908 cross_compiling=yes
1909 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001910 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001911If you meant to cross compile, use \`--host'.
1912See \`config.log' for more details." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001913echo "$as_me: error: cannot run C compiled programs.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001914If you meant to cross compile, use \`--host'.
1915See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001916 { (exit 1); exit 1; }; }
1917 fi
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00001918 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001919fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001920echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001921echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001922
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001923rm -f a.out a.exe conftest$ac_cv_exeext b.out
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001924ac_clean_files=$ac_clean_files_save
1925# Check the compiler produces executables we can run. If not, either
1926# the compiler is broken, or we cross compile.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001927echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001928echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001929echo "$as_me:$LINENO: result: $cross_compiling" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001930echo "${ECHO_T}$cross_compiling" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00001931
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001932echo "$as_me:$LINENO: checking for suffix of executables" >&5
1933echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1934if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001935 (eval $ac_link) 2>&5
1936 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001938 (exit $ac_status); }; then
1939 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1940# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1941# work properly (i.e., refer to `conftest.exe'), while it won't with
1942# `rm'.
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001943for ac_file in conftest.exe conftest conftest.*; do
1944 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001945 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001946 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001947 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1948 export ac_cv_exeext
1949 break;;
1950 * ) break;;
1951 esac
1952done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001953else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001954 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1955See \`config.log' for more details." >&5
1956echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1957See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001958 { (exit 1); exit 1; }; }
1959fi
1960
1961rm -f conftest$ac_cv_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001962echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001963echo "${ECHO_T}$ac_cv_exeext" >&6
1964
1965rm -f conftest.$ac_ext
1966EXEEXT=$ac_cv_exeext
1967ac_exeext=$EXEEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001968echo "$as_me:$LINENO: checking for suffix of object files" >&5
1969echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001970if test "${ac_cv_objext+set}" = set; then
1971 echo $ECHO_N "(cached) $ECHO_C" >&6
1972else
1973 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001974#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00001975/* confdefs.h. */
1976_ACEOF
1977cat confdefs.h >>conftest.$ac_ext
1978cat >>conftest.$ac_ext <<_ACEOF
1979/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001980
1981int
1982main ()
1983{
1984
1985 ;
1986 return 0;
1987}
1988_ACEOF
1989rm -f conftest.o conftest.obj
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001991 (eval $ac_compile) 2>&5
1992 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001994 (exit $ac_status); }; then
1995 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1996 case $ac_file in
Alexandre Julliard11af04e2002-10-10 03:48:04 +00001997 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001998 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1999 break;;
2000 esac
2001done
2002else
2003 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002004sed 's/^/| /' conftest.$ac_ext >&5
2005
2006{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2007See \`config.log' for more details." >&5
2008echo "$as_me: error: cannot compute suffix of object files: cannot compile
2009See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002010 { (exit 1); exit 1; }; }
2011fi
2012
2013rm -f conftest.$ac_cv_objext conftest.$ac_ext
2014fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002015echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002016echo "${ECHO_T}$ac_cv_objext" >&6
2017OBJEXT=$ac_cv_objext
2018ac_objext=$OBJEXT
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002019echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002020echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2021if test "${ac_cv_c_compiler_gnu+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2023else
2024 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002025#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002026/* confdefs.h. */
2027_ACEOF
2028cat confdefs.h >>conftest.$ac_ext
2029cat >>conftest.$ac_ext <<_ACEOF
2030/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002031
2032int
2033main ()
2034{
2035#ifndef __GNUC__
2036 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002037#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002038
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002039 ;
2040 return 0;
2041}
2042_ACEOF
2043rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002044if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002045 (eval $ac_compile) 2>&5
2046 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002048 (exit $ac_status); } &&
2049 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002051 (eval $ac_try) 2>&5
2052 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002054 (exit $ac_status); }; }; then
2055 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00002056else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002057 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002058sed 's/^/| /' conftest.$ac_ext >&5
2059
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002060ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00002061fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002062rm -f conftest.$ac_objext conftest.$ac_ext
2063ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00002064
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002065fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002066echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002067echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2068GCC=`test $ac_compiler_gnu = yes && echo yes`
2069ac_test_CFLAGS=${CFLAGS+set}
2070ac_save_CFLAGS=$CFLAGS
2071CFLAGS="-g"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002072echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002073echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2074if test "${ac_cv_prog_cc_g+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002076else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002077 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002078#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002079/* confdefs.h. */
2080_ACEOF
2081cat confdefs.h >>conftest.$ac_ext
2082cat >>conftest.$ac_ext <<_ACEOF
2083/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002084
2085int
2086main ()
2087{
2088
2089 ;
2090 return 0;
2091}
2092_ACEOF
2093rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002094if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002095 (eval $ac_compile) 2>&5
2096 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002098 (exit $ac_status); } &&
2099 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002101 (eval $ac_try) 2>&5
2102 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002104 (exit $ac_status); }; }; then
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00002105 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002106else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002107 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002108sed 's/^/| /' conftest.$ac_ext >&5
2109
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002110ac_cv_prog_cc_g=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002111fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002112rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002113fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002114echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002115echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00002116if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002117 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00002118elif test $ac_cv_prog_cc_g = yes; then
2119 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002120 CFLAGS="-g -O2"
2121 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002122 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002123 fi
2124else
Eric Pouech18ad24a2000-01-16 22:16:33 +00002125 if test "$GCC" = yes; then
2126 CFLAGS="-O2"
2127 else
2128 CFLAGS=
2129 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002130fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002131echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2132echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2133if test "${ac_cv_prog_cc_stdc+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135else
2136 ac_cv_prog_cc_stdc=no
2137ac_save_CC=$CC
2138cat >conftest.$ac_ext <<_ACEOF
2139#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002140/* confdefs.h. */
2141_ACEOF
2142cat confdefs.h >>conftest.$ac_ext
2143cat >>conftest.$ac_ext <<_ACEOF
2144/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002145#include <stdarg.h>
2146#include <stdio.h>
2147#include <sys/types.h>
2148#include <sys/stat.h>
2149/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2150struct buf { int x; };
2151FILE * (*rcsopen) (struct buf *, struct stat *, int);
2152static char *e (p, i)
2153 char **p;
2154 int i;
2155{
2156 return p[i];
2157}
2158static char *f (char * (*g) (char **, int), char **p, ...)
2159{
2160 char *s;
2161 va_list v;
2162 va_start (v,p);
2163 s = g (p, va_arg (v,int));
2164 va_end (v);
2165 return s;
2166}
2167int test (int i, double x);
2168struct s1 {int (*f) (int a);};
2169struct s2 {int (*f) (double a);};
2170int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2171int argc;
2172char **argv;
2173int
2174main ()
2175{
2176return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2177 ;
2178 return 0;
2179}
2180_ACEOF
2181# Don't try gcc -ansi; that turns off useful extensions and
2182# breaks some systems' header files.
2183# AIX -qlanglvl=ansi
2184# Ultrix and OSF/1 -std1
2185# HP-UX 10.20 and later -Ae
2186# HP-UX older versions -Aa -D_HPUX_SOURCE
2187# SVR4 -Xc -D__EXTENSIONS__
2188for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2189do
2190 CC="$ac_save_CC $ac_arg"
2191 rm -f conftest.$ac_objext
2192if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2193 (eval $ac_compile) 2>&5
2194 ac_status=$?
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); } &&
2197 { ac_try='test -s conftest.$ac_objext'
2198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2199 (eval $ac_try) 2>&5
2200 ac_status=$?
2201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202 (exit $ac_status); }; }; then
2203 ac_cv_prog_cc_stdc=$ac_arg
2204break
2205else
2206 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002207sed 's/^/| /' conftest.$ac_ext >&5
2208
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002209fi
2210rm -f conftest.$ac_objext
2211done
2212rm -f conftest.$ac_ext conftest.$ac_objext
2213CC=$ac_save_CC
2214
2215fi
2216
2217case "x$ac_cv_prog_cc_stdc" in
2218 x|xno)
2219 echo "$as_me:$LINENO: result: none needed" >&5
2220echo "${ECHO_T}none needed" >&6 ;;
2221 *)
2222 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2223echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2224 CC="$CC $ac_cv_prog_cc_stdc" ;;
2225esac
2226
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002227# Some people use a C++ compiler to compile C. Since we use `exit',
2228# in C++ we need to declare it. In case someone uses the same compiler
2229# for both compiling C and C++ we need to have the C++ compiler decide
2230# the declaration of exit, since it's the most demanding environment.
2231cat >conftest.$ac_ext <<_ACEOF
2232#ifndef __cplusplus
2233 choke me
2234#endif
2235_ACEOF
2236rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002237if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002238 (eval $ac_compile) 2>&5
2239 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002241 (exit $ac_status); } &&
2242 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002244 (eval $ac_try) 2>&5
2245 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002247 (exit $ac_status); }; }; then
2248 for ac_declaration in \
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002249 '' \
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002250 'extern "C" void std::exit (int) throw (); using std::exit;' \
2251 'extern "C" void std::exit (int); using std::exit;' \
2252 'extern "C" void exit (int) throw ();' \
2253 'extern "C" void exit (int);' \
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002254 'void exit (int);'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002255do
2256 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002257#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002258/* confdefs.h. */
2259_ACEOF
2260cat confdefs.h >>conftest.$ac_ext
2261cat >>conftest.$ac_ext <<_ACEOF
2262/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002263$ac_declaration
Alexandre Julliard90b1c2c2003-06-18 20:35:38 +00002264#include <stdlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002265int
2266main ()
2267{
2268exit (42);
2269 ;
2270 return 0;
2271}
2272_ACEOF
2273rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002275 (eval $ac_compile) 2>&5
2276 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002278 (exit $ac_status); } &&
2279 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002281 (eval $ac_try) 2>&5
2282 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002284 (exit $ac_status); }; }; then
2285 :
2286else
2287 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002288sed 's/^/| /' conftest.$ac_ext >&5
2289
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002290continue
2291fi
2292rm -f conftest.$ac_objext conftest.$ac_ext
2293 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002294#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002295/* confdefs.h. */
2296_ACEOF
2297cat confdefs.h >>conftest.$ac_ext
2298cat >>conftest.$ac_ext <<_ACEOF
2299/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002300$ac_declaration
2301int
2302main ()
2303{
2304exit (42);
2305 ;
2306 return 0;
2307}
2308_ACEOF
2309rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002310if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002311 (eval $ac_compile) 2>&5
2312 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002314 (exit $ac_status); } &&
2315 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002317 (eval $ac_try) 2>&5
2318 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002320 (exit $ac_status); }; }; then
2321 break
2322else
2323 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002324sed 's/^/| /' conftest.$ac_ext >&5
2325
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002326fi
2327rm -f conftest.$ac_objext conftest.$ac_ext
2328done
2329rm -f conftest*
2330if test -n "$ac_declaration"; then
2331 echo '#ifdef __cplusplus' >>confdefs.h
2332 echo $ac_declaration >>confdefs.h
2333 echo '#endif' >>confdefs.h
2334fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002335
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002336else
2337 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002338sed 's/^/| /' conftest.$ac_ext >&5
2339
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002340fi
2341rm -f conftest.$ac_objext conftest.$ac_ext
2342ac_ext=c
2343ac_cpp='$CPP $CPPFLAGS'
2344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2346ac_compiler_gnu=$ac_cv_c_compiler_gnu
2347
2348ac_ext=c
2349ac_cpp='$CPP $CPPFLAGS'
2350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2352ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002353echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002354echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002355# On Suns, sometimes $CPP names a directory.
2356if test -n "$CPP" && test -d "$CPP"; then
2357 CPP=
2358fi
2359if test -z "$CPP"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002360 if test "${ac_cv_prog_CPP+set}" = set; then
2361 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002362else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002363 # Double quotes because CPP needs to be expanded
2364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2365 do
2366 ac_preproc_ok=false
2367for ac_c_preproc_warn_flag in '' yes
2368do
2369 # Use a header file that comes with gcc, so configuring glibc
2370 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2372 # <limits.h> exists even on freestanding compilers.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002373 # On the NeXT, cc -E runs the code through the compiler's parser,
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002374 # not just through cpp. "Syntax error" is here to catch this case.
2375 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002376#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002377/* confdefs.h. */
2378_ACEOF
2379cat confdefs.h >>conftest.$ac_ext
2380cat >>conftest.$ac_ext <<_ACEOF
2381/* end confdefs.h. */
2382#ifdef __STDC__
2383# include <limits.h>
2384#else
2385# include <assert.h>
2386#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002387 Syntax error
2388_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002389if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002390 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2391 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002392 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002393 rm -f conftest.er1
2394 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002396 (exit $ac_status); } >/dev/null; then
2397 if test -s conftest.err; then
2398 ac_cpp_err=$ac_c_preproc_warn_flag
2399 else
2400 ac_cpp_err=
2401 fi
2402else
2403 ac_cpp_err=yes
2404fi
2405if test -z "$ac_cpp_err"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002406 :
2407else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002408 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002409sed 's/^/| /' conftest.$ac_ext >&5
2410
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002411 # Broken: fails on valid input.
2412continue
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002413fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002414rm -f conftest.err conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002415
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002416 # OK, works on sane cases. Now check whether non-existent headers
2417 # can be detected and how.
2418 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002419#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002420/* confdefs.h. */
2421_ACEOF
2422cat confdefs.h >>conftest.$ac_ext
2423cat >>conftest.$ac_ext <<_ACEOF
2424/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002425#include <ac_nonexistent.h>
2426_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002427if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002428 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2429 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002430 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002431 rm -f conftest.er1
2432 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002434 (exit $ac_status); } >/dev/null; then
2435 if test -s conftest.err; then
2436 ac_cpp_err=$ac_c_preproc_warn_flag
2437 else
2438 ac_cpp_err=
2439 fi
2440else
2441 ac_cpp_err=yes
2442fi
2443if test -z "$ac_cpp_err"; then
2444 # Broken: success on invalid input.
2445continue
2446else
2447 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002448sed 's/^/| /' conftest.$ac_ext >&5
2449
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002450 # Passes both tests.
2451ac_preproc_ok=:
2452break
2453fi
2454rm -f conftest.err conftest.$ac_ext
2455
2456done
2457# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2458rm -f conftest.err conftest.$ac_ext
2459if $ac_preproc_ok; then
2460 break
2461fi
2462
2463 done
2464 ac_cv_prog_CPP=$CPP
2465
2466fi
2467 CPP=$ac_cv_prog_CPP
2468else
2469 ac_cv_prog_CPP=$CPP
2470fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002471echo "$as_me:$LINENO: result: $CPP" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002472echo "${ECHO_T}$CPP" >&6
2473ac_preproc_ok=false
2474for ac_c_preproc_warn_flag in '' yes
2475do
2476 # Use a header file that comes with gcc, so configuring glibc
2477 # with a fresh cross-compiler works.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002478 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2479 # <limits.h> exists even on freestanding compilers.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002480 # On the NeXT, cc -E runs the code through the compiler's parser,
2481 # not just through cpp. "Syntax error" is here to catch this case.
2482 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002483#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002484/* confdefs.h. */
2485_ACEOF
2486cat confdefs.h >>conftest.$ac_ext
2487cat >>conftest.$ac_ext <<_ACEOF
2488/* end confdefs.h. */
2489#ifdef __STDC__
2490# include <limits.h>
2491#else
2492# include <assert.h>
2493#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002494 Syntax error
2495_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2498 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002499 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002500 rm -f conftest.er1
2501 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002503 (exit $ac_status); } >/dev/null; then
2504 if test -s conftest.err; then
2505 ac_cpp_err=$ac_c_preproc_warn_flag
2506 else
2507 ac_cpp_err=
2508 fi
2509else
2510 ac_cpp_err=yes
2511fi
2512if test -z "$ac_cpp_err"; then
2513 :
2514else
2515 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002516sed 's/^/| /' conftest.$ac_ext >&5
2517
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002518 # Broken: fails on valid input.
2519continue
2520fi
2521rm -f conftest.err conftest.$ac_ext
2522
2523 # OK, works on sane cases. Now check whether non-existent headers
2524 # can be detected and how.
2525 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002526#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002527/* confdefs.h. */
2528_ACEOF
2529cat confdefs.h >>conftest.$ac_ext
2530cat >>conftest.$ac_ext <<_ACEOF
2531/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002532#include <ac_nonexistent.h>
2533_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002534if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002535 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2536 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002537 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002538 rm -f conftest.er1
2539 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002541 (exit $ac_status); } >/dev/null; then
2542 if test -s conftest.err; then
2543 ac_cpp_err=$ac_c_preproc_warn_flag
2544 else
2545 ac_cpp_err=
2546 fi
2547else
2548 ac_cpp_err=yes
2549fi
2550if test -z "$ac_cpp_err"; then
2551 # Broken: success on invalid input.
2552continue
2553else
2554 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002555sed 's/^/| /' conftest.$ac_ext >&5
2556
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002557 # Passes both tests.
2558ac_preproc_ok=:
2559break
2560fi
2561rm -f conftest.err conftest.$ac_ext
2562
2563done
2564# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2565rm -f conftest.err conftest.$ac_ext
2566if $ac_preproc_ok; then
2567 :
2568else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002569 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2570See \`config.log' for more details." >&5
2571echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2572See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002573 { (exit 1); exit 1; }; }
2574fi
2575
2576ac_ext=c
2577ac_cpp='$CPP $CPPFLAGS'
2578ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2579ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2580ac_compiler_gnu=$ac_cv_c_compiler_gnu
2581
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002582
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002583echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
2584echo $ECHO_N "checking for the directory containing the Wine tools... $ECHO_C" >&6
2585if test "${wine_cv_toolsdir+set}" = set; then
2586 echo $ECHO_N "(cached) $ECHO_C" >&6
2587else
2588 if test -z "$with_wine_tools"; then
2589 if test "$cross_compiling" = "yes"; then
2590 { { echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
2591echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
2592 { (exit 1); exit 1; }; }
2593 else
2594 wine_cv_toolsdir="\$(TOPOBJDIR)"
2595 fi
2596 elif test -d "$with_wine_tools/tools/winebuild"; then
2597 case $with_wine_tools in
2598 /*) wine_cv_toolsdir="$with_wine_tools" ;;
2599 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
2600 esac
2601 else
2602 { { echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
2603echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
2604 { (exit 1); exit 1; }; }
2605 fi
2606fi
2607echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
2608echo "${ECHO_T}$wine_cv_toolsdir" >&6
2609TOOLSDIR=$wine_cv_toolsdir
2610
2611
2612
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002613
2614echo "$as_me:$LINENO: checking for X" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002615echo $ECHO_N "checking for X... $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002616
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002617
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002618# Check whether --with-x or --without-x was given.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002619if test "${with_x+set}" = set; then
2620 withval="$with_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002621
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002622fi;
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002623# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002624if test "x$with_x" = xno; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002625 # The user explicitly disabled X.
2626 have_x=disabled
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002627else
2628 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002629 # Both variables are already set.
2630 have_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002631 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002632 if test "${ac_cv_have_x+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002634else
2635 # One or both of the vars are not set, and there is no cached value.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002636ac_x_includes=no ac_x_libraries=no
2637rm -fr conftest.dir
2638if mkdir conftest.dir; then
2639 cd conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002640 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002641 cat >Imakefile <<'_ACEOF'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002642acfindx:
2643 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002644_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002645 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002646 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002647 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002648 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2649 for ac_extension in a so sl; do
2650 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002651 test -f $ac_im_libdir/libX11.$ac_extension; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002652 ac_im_usrlibdir=$ac_im_libdir; break
2653 fi
2654 done
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002655 # Screen out bogus values from the imake configuration. They are
2656 # bogus both because they are the default anyway, and because
2657 # using them would break gcc on systems where it needs fixed includes.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002658 case $ac_im_incroot in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002659 /usr/include) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002660 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002661 esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002662 case $ac_im_usrlibdir in
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002663 /usr/lib | /lib) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002664 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002665 esac
2666 fi
2667 cd ..
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002668 rm -fr conftest.dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002669fi
2670
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002671# Standard set of common directories for X headers.
2672# Check X11 before X11Rn because it is often a symlink to the current release.
2673ac_x_header_dirs='
2674/usr/X11/include
2675/usr/X11R6/include
2676/usr/X11R5/include
2677/usr/X11R4/include
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002678
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002679/usr/include/X11
2680/usr/include/X11R6
2681/usr/include/X11R5
2682/usr/include/X11R4
2683
2684/usr/local/X11/include
2685/usr/local/X11R6/include
2686/usr/local/X11R5/include
2687/usr/local/X11R4/include
2688
2689/usr/local/include/X11
2690/usr/local/include/X11R6
2691/usr/local/include/X11R5
2692/usr/local/include/X11R4
2693
2694/usr/X386/include
2695/usr/x386/include
2696/usr/XFree86/include/X11
2697
2698/usr/include
2699/usr/local/include
2700/usr/unsupported/include
2701/usr/athena/include
2702/usr/local/x11r5/include
2703/usr/lpp/Xamples/include
2704
2705/usr/openwin/include
2706/usr/openwin/share/include'
2707
2708if test "$ac_x_includes" = no; then
2709 # Guess where to find include files, by looking for Intrinsic.h.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002710 # First, try using that file with no special directory specified.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002711 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002712#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002713/* confdefs.h. */
2714_ACEOF
2715cat confdefs.h >>conftest.$ac_ext
2716cat >>conftest.$ac_ext <<_ACEOF
2717/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002718#include <X11/Intrinsic.h>
2719_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002720if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002721 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2722 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002723 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002724 rm -f conftest.er1
2725 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002727 (exit $ac_status); } >/dev/null; then
2728 if test -s conftest.err; then
2729 ac_cpp_err=$ac_c_preproc_warn_flag
2730 else
2731 ac_cpp_err=
2732 fi
2733else
2734 ac_cpp_err=yes
2735fi
2736if test -z "$ac_cpp_err"; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002737 # We can compile using X headers with no special include directory.
2738ac_x_includes=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002739else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002740 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002741sed 's/^/| /' conftest.$ac_ext >&5
2742
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002743 for ac_dir in $ac_x_header_dirs; do
2744 if test -r "$ac_dir/X11/Intrinsic.h"; then
2745 ac_x_includes=$ac_dir
2746 break
2747 fi
2748done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002749fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002750rm -f conftest.err conftest.$ac_ext
2751fi # $ac_x_includes = no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002752
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002753if test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002754 # Check for the libraries.
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002755 # See if we find them without any special options.
2756 # Don't add to $LIBS permanently.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002757 ac_save_LIBS=$LIBS
2758 LIBS="-lXt $LIBS"
2759 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002760#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002761/* confdefs.h. */
2762_ACEOF
2763cat confdefs.h >>conftest.$ac_ext
2764cat >>conftest.$ac_ext <<_ACEOF
2765/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002766#include <X11/Intrinsic.h>
2767int
2768main ()
2769{
2770XtMalloc (0)
2771 ;
2772 return 0;
2773}
2774_ACEOF
2775rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002776if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002777 (eval $ac_link) 2>&5
2778 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002780 (exit $ac_status); } &&
2781 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002783 (eval $ac_try) 2>&5
2784 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002786 (exit $ac_status); }; }; then
2787 LIBS=$ac_save_LIBS
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002788# We can link X programs with no special library path.
2789ac_x_libraries=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002790else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002791 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002792sed 's/^/| /' conftest.$ac_ext >&5
2793
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002794LIBS=$ac_save_LIBS
2795for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002796do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002797 # Don't even attempt the hair of trying to link an X program!
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002798 for ac_extension in a so sl; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002799 if test -r $ac_dir/libXt.$ac_extension; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002800 ac_x_libraries=$ac_dir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002801 break 2
2802 fi
2803 done
2804done
2805fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002806rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2807fi # $ac_x_libraries = no
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002808
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002809if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002810 # Didn't find X anywhere. Cache the known absence of X.
2811 ac_cv_have_x="have_x=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002812else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002813 # Record where we found X for the cache.
2814 ac_cv_have_x="have_x=yes \
2815 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002816fi
2817fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002818
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002819 fi
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002820 eval "$ac_cv_have_x"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002821fi # $with_x != no
2822
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002823if test "$have_x" != yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002824 echo "$as_me:$LINENO: result: $have_x" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002825echo "${ECHO_T}$have_x" >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002826 no_x=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002827else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002828 # If each of the values was on the command line, it overrides each guess.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002829 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2830 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002831 # Update the cache value to reflect the command line values.
2832 ac_cv_have_x="have_x=yes \
2833 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002834 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002835echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002836fi
2837
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002838if test "$no_x" = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002839 # Not all programs may use this symbol, but it does not hurt to define it.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002840
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002841cat >>confdefs.h <<\_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002842#define X_DISPLAY_MISSING 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002843_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002844
2845 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002846else
2847 if test -n "$x_includes"; then
2848 X_CFLAGS="$X_CFLAGS -I$x_includes"
2849 fi
2850
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002851 # It would also be nice to do this for all -L options, not just this one.
2852 if test -n "$x_libraries"; then
2853 X_LIBS="$X_LIBS -L$x_libraries"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002854 # For Solaris; some versions of Sun CC require a space after -R and
2855 # others require no space. Words are not sufficient . . . .
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002856 case `(uname -sr) 2>/dev/null` in
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002857 "SunOS 5"*)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002858 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002859echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
2860 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
2861 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002862#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002863/* confdefs.h. */
2864_ACEOF
2865cat confdefs.h >>conftest.$ac_ext
2866cat >>conftest.$ac_ext <<_ACEOF
2867/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002868
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002869int
2870main ()
2871{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002872
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002873 ;
2874 return 0;
2875}
2876_ACEOF
2877rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002879 (eval $ac_link) 2>&5
2880 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002882 (exit $ac_status); } &&
2883 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002885 (eval $ac_try) 2>&5
2886 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002888 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002889 ac_R_nospace=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002890else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002891 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002892sed 's/^/| /' conftest.$ac_ext >&5
2893
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002894ac_R_nospace=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002895fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002896rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002897 if test $ac_R_nospace = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002898 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002899echo "${ECHO_T}no" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002900 X_LIBS="$X_LIBS -R$x_libraries"
2901 else
2902 LIBS="$ac_xsave_LIBS -R $x_libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002903 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002904#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002905/* confdefs.h. */
2906_ACEOF
2907cat confdefs.h >>conftest.$ac_ext
2908cat >>conftest.$ac_ext <<_ACEOF
2909/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002910
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002911int
2912main ()
2913{
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002914
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002915 ;
2916 return 0;
2917}
2918_ACEOF
2919rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002920if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002921 (eval $ac_link) 2>&5
2922 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002924 (exit $ac_status); } &&
2925 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002927 (eval $ac_try) 2>&5
2928 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002930 (exit $ac_status); }; }; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002931 ac_R_space=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002932else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002933 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002934sed 's/^/| /' conftest.$ac_ext >&5
2935
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002936ac_R_space=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002937fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002938rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002939 if test $ac_R_space = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002940 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002941echo "${ECHO_T}yes" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002942 X_LIBS="$X_LIBS -R $x_libraries"
2943 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002944 echo "$as_me:$LINENO: result: neither works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002945echo "${ECHO_T}neither works" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002946 fi
2947 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002948 LIBS=$ac_xsave_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002949 esac
2950 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002951
2952 # Check for system-dependent libraries X programs must link with.
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00002953 # Do this before checking for the system-independent R6 libraries
2954 # (-lICE), since we may need -lsocket or whatever for X linking.
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002955
2956 if test "$ISC" = yes; then
2957 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2958 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002959 # Martyn Johnson says this is needed for Ultrix, if the X
2960 # libraries were built with DECnet support. And Karl Berry says
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002961 # the Alpha needs dnet_stub (dnet does not exist).
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002962 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
2963 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002964#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002965/* confdefs.h. */
2966_ACEOF
2967cat confdefs.h >>conftest.$ac_ext
2968cat >>conftest.$ac_ext <<_ACEOF
2969/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002970
Alexandre Julliard59730ae1996-03-24 16:20:51 +00002971/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002972#ifdef __cplusplus
2973extern "C"
2974#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00002975/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002976 builtin and then its argument prototype would still apply. */
2977char XOpenDisplay ();
2978int
2979main ()
2980{
2981XOpenDisplay ();
2982 ;
2983 return 0;
2984}
2985_ACEOF
2986rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002987if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002988 (eval $ac_link) 2>&5
2989 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002991 (exit $ac_status); } &&
2992 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002994 (eval $ac_try) 2>&5
2995 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002997 (exit $ac_status); }; }; then
2998 :
Alexandre Julliardff8331e1995-09-18 11:19:54 +00002999else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003000 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003001sed 's/^/| /' conftest.$ac_ext >&5
3002
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003003echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003004echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
3005if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007else
3008 ac_check_lib_save_LIBS=$LIBS
3009LIBS="-ldnet $LIBS"
3010cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003011#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003012/* confdefs.h. */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h. */
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003017
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003018/* Override any gcc2 internal prototype to avoid an error. */
3019#ifdef __cplusplus
3020extern "C"
3021#endif
3022/* We use char because int might match the return type of a gcc2
3023 builtin and then its argument prototype would still apply. */
3024char dnet_ntoa ();
3025int
3026main ()
3027{
3028dnet_ntoa ();
3029 ;
3030 return 0;
3031}
3032_ACEOF
3033rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003035 (eval $ac_link) 2>&5
3036 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003038 (exit $ac_status); } &&
3039 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003041 (eval $ac_try) 2>&5
3042 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003044 (exit $ac_status); }; }; then
3045 ac_cv_lib_dnet_dnet_ntoa=yes
3046else
3047 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003048sed 's/^/| /' conftest.$ac_ext >&5
3049
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003050ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003051fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003052rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3053LIBS=$ac_check_lib_save_LIBS
3054fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003055echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003056echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
3057if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003058 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003059fi
3060
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003061 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003062 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003063echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
3064if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003066else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003067 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003068LIBS="-ldnet_stub $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003069cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003070#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003071/* confdefs.h. */
3072_ACEOF
3073cat confdefs.h >>conftest.$ac_ext
3074cat >>conftest.$ac_ext <<_ACEOF
3075/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003076
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003077/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003078#ifdef __cplusplus
3079extern "C"
3080#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003081/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003082 builtin and then its argument prototype would still apply. */
3083char dnet_ntoa ();
3084int
3085main ()
3086{
3087dnet_ntoa ();
3088 ;
3089 return 0;
3090}
3091_ACEOF
3092rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003094 (eval $ac_link) 2>&5
3095 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003097 (exit $ac_status); } &&
3098 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003100 (eval $ac_try) 2>&5
3101 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003103 (exit $ac_status); }; }; then
3104 ac_cv_lib_dnet_stub_dnet_ntoa=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003105else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003106 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003107sed 's/^/| /' conftest.$ac_ext >&5
3108
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003109ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003110fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003111rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3112LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003113fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003114echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003115echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
3116if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003117 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003118fi
3119
3120 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003121fi
3122rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3123 LIBS="$ac_xsave_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003124
3125 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3126 # to get the SysV transport functions.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003127 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003128 # needs -lnsl.
3129 # The nsl library prevents programs from opening the X display
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003130 # on Irix 5.2, according to T.E. Dickey.
3131 # The functions gethostbyname, getservbyname, and inet_addr are
3132 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003133 echo "$as_me:$LINENO: checking for gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003134echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3135if test "${ac_cv_func_gethostbyname+set}" = set; then
3136 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003137else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003138 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003139#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003140/* confdefs.h. */
3141_ACEOF
3142cat confdefs.h >>conftest.$ac_ext
3143cat >>conftest.$ac_ext <<_ACEOF
3144/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003145/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003146 which can conflict with char gethostbyname (); below.
3147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3148 <limits.h> exists even on freestanding compilers. */
3149#ifdef __STDC__
3150# include <limits.h>
3151#else
3152# include <assert.h>
3153#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003154/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003155#ifdef __cplusplus
3156extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003157{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003158#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003159/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003160 builtin and then its argument prototype would still apply. */
3161char gethostbyname ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003162/* The GNU C library defines this for functions which it implements
3163 to always fail with ENOSYS. Some functions are actually named
3164 something starting with __ and the normal name is an alias. */
3165#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3166choke me
3167#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003168char (*f) () = gethostbyname;
3169#endif
3170#ifdef __cplusplus
3171}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003172#endif
3173
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003174int
3175main ()
3176{
3177return f != gethostbyname;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003178 ;
3179 return 0;
3180}
3181_ACEOF
3182rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003184 (eval $ac_link) 2>&5
3185 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003187 (exit $ac_status); } &&
3188 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003190 (eval $ac_try) 2>&5
3191 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003193 (exit $ac_status); }; }; then
3194 ac_cv_func_gethostbyname=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003195else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003196 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003197sed 's/^/| /' conftest.$ac_ext >&5
3198
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003199ac_cv_func_gethostbyname=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003200fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003202fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003203echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003204echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003205
3206 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003207 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003208echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3209if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003211else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003212 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003213LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003214cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003215#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003216/* confdefs.h. */
3217_ACEOF
3218cat confdefs.h >>conftest.$ac_ext
3219cat >>conftest.$ac_ext <<_ACEOF
3220/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003221
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003222/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003223#ifdef __cplusplus
3224extern "C"
3225#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003226/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003227 builtin and then its argument prototype would still apply. */
3228char gethostbyname ();
3229int
3230main ()
3231{
3232gethostbyname ();
3233 ;
3234 return 0;
3235}
3236_ACEOF
3237rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003238if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003239 (eval $ac_link) 2>&5
3240 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003242 (exit $ac_status); } &&
3243 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003245 (eval $ac_try) 2>&5
3246 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003248 (exit $ac_status); }; }; then
3249 ac_cv_lib_nsl_gethostbyname=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003250else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003251 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003252sed 's/^/| /' conftest.$ac_ext >&5
3253
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003254ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003255fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003256rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3257LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003258fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003259echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003260echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3261if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003262 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003263fi
3264
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003265 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003266 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003267echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
3268if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
3269 echo $ECHO_N "(cached) $ECHO_C" >&6
3270else
3271 ac_check_lib_save_LIBS=$LIBS
3272LIBS="-lbsd $LIBS"
3273cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003274#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003275/* confdefs.h. */
3276_ACEOF
3277cat confdefs.h >>conftest.$ac_ext
3278cat >>conftest.$ac_ext <<_ACEOF
3279/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003280
3281/* Override any gcc2 internal prototype to avoid an error. */
3282#ifdef __cplusplus
3283extern "C"
3284#endif
3285/* We use char because int might match the return type of a gcc2
3286 builtin and then its argument prototype would still apply. */
3287char gethostbyname ();
3288int
3289main ()
3290{
3291gethostbyname ();
3292 ;
3293 return 0;
3294}
3295_ACEOF
3296rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003297if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003298 (eval $ac_link) 2>&5
3299 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003301 (exit $ac_status); } &&
3302 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003304 (eval $ac_try) 2>&5
3305 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003307 (exit $ac_status); }; }; then
3308 ac_cv_lib_bsd_gethostbyname=yes
3309else
3310 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003311sed 's/^/| /' conftest.$ac_ext >&5
3312
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003313ac_cv_lib_bsd_gethostbyname=no
3314fi
3315rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3316LIBS=$ac_check_lib_save_LIBS
3317fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003318echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003319echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
3320if test $ac_cv_lib_bsd_gethostbyname = yes; then
3321 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
3322fi
3323
3324 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003325 fi
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003326
3327 # lieder@skyler.mavd.honeywell.com says without -lsocket,
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003328 # socket/setsockopt and other routines are undefined under SCO ODT
3329 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003330 # on later versions), says Simon Leinen: it contains gethostby*
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003331 # variants that don't use the name server (or something). -lsocket
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003332 # must be given before -lnsl if both are needed. We assume that
3333 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003334 echo "$as_me:$LINENO: checking for connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003335echo $ECHO_N "checking for connect... $ECHO_C" >&6
3336if test "${ac_cv_func_connect+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003338else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003339 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003340#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003341/* confdefs.h. */
3342_ACEOF
3343cat confdefs.h >>conftest.$ac_ext
3344cat >>conftest.$ac_ext <<_ACEOF
3345/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003346/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003347 which can conflict with char connect (); below.
3348 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3349 <limits.h> exists even on freestanding compilers. */
3350#ifdef __STDC__
3351# include <limits.h>
3352#else
3353# include <assert.h>
3354#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003355/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003356#ifdef __cplusplus
3357extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003358{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003359#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003360/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003361 builtin and then its argument prototype would still apply. */
3362char connect ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003363/* The GNU C library defines this for functions which it implements
3364 to always fail with ENOSYS. Some functions are actually named
3365 something starting with __ and the normal name is an alias. */
3366#if defined (__stub_connect) || defined (__stub___connect)
3367choke me
3368#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003369char (*f) () = connect;
3370#endif
3371#ifdef __cplusplus
3372}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003373#endif
3374
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003375int
3376main ()
3377{
3378return f != connect;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003379 ;
3380 return 0;
3381}
3382_ACEOF
3383rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003384if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003385 (eval $ac_link) 2>&5
3386 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003388 (exit $ac_status); } &&
3389 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003391 (eval $ac_try) 2>&5
3392 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003394 (exit $ac_status); }; }; then
3395 ac_cv_func_connect=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003396else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003397 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003398sed 's/^/| /' conftest.$ac_ext >&5
3399
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003400ac_cv_func_connect=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003401fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003402rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003403fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003404echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003405echo "${ECHO_T}$ac_cv_func_connect" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003406
3407 if test $ac_cv_func_connect = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003408 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003409echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
3410if test "${ac_cv_lib_socket_connect+set}" = set; then
3411 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003412else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003413 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003414LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003415cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003416#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003417/* confdefs.h. */
3418_ACEOF
3419cat confdefs.h >>conftest.$ac_ext
3420cat >>conftest.$ac_ext <<_ACEOF
3421/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003422
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003423/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003424#ifdef __cplusplus
3425extern "C"
3426#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003427/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003428 builtin and then its argument prototype would still apply. */
3429char connect ();
3430int
3431main ()
3432{
3433connect ();
3434 ;
3435 return 0;
3436}
3437_ACEOF
3438rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003440 (eval $ac_link) 2>&5
3441 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003443 (exit $ac_status); } &&
3444 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003446 (eval $ac_try) 2>&5
3447 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003449 (exit $ac_status); }; }; then
3450 ac_cv_lib_socket_connect=yes
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003451else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003452 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003453sed 's/^/| /' conftest.$ac_ext >&5
3454
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003455ac_cv_lib_socket_connect=no
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003456fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003457rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3458LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003459fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003460echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003461echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
3462if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003463 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003464fi
3465
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003466 fi
3467
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003468 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003469 echo "$as_me:$LINENO: checking for remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003470echo $ECHO_N "checking for remove... $ECHO_C" >&6
3471if test "${ac_cv_func_remove+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003473else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003474 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003475#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003476/* confdefs.h. */
3477_ACEOF
3478cat confdefs.h >>conftest.$ac_ext
3479cat >>conftest.$ac_ext <<_ACEOF
3480/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003481/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003482 which can conflict with char remove (); below.
3483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3484 <limits.h> exists even on freestanding compilers. */
3485#ifdef __STDC__
3486# include <limits.h>
3487#else
3488# include <assert.h>
3489#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003490/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003491#ifdef __cplusplus
3492extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003493{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003494#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003495/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003496 builtin and then its argument prototype would still apply. */
3497char remove ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003498/* The GNU C library defines this for functions which it implements
3499 to always fail with ENOSYS. Some functions are actually named
3500 something starting with __ and the normal name is an alias. */
3501#if defined (__stub_remove) || defined (__stub___remove)
3502choke me
3503#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003504char (*f) () = remove;
3505#endif
3506#ifdef __cplusplus
3507}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003508#endif
3509
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003510int
3511main ()
3512{
3513return f != remove;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003514 ;
3515 return 0;
3516}
3517_ACEOF
3518rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003519if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003520 (eval $ac_link) 2>&5
3521 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003523 (exit $ac_status); } &&
3524 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003526 (eval $ac_try) 2>&5
3527 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003529 (exit $ac_status); }; }; then
3530 ac_cv_func_remove=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003531else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003532 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003533sed 's/^/| /' conftest.$ac_ext >&5
3534
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003535ac_cv_func_remove=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003536fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003537rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003538fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003539echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003540echo "${ECHO_T}$ac_cv_func_remove" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003541
3542 if test $ac_cv_func_remove = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003543 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003544echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
3545if test "${ac_cv_lib_posix_remove+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003547else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003548 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003549LIBS="-lposix $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003550cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003551#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003552/* confdefs.h. */
3553_ACEOF
3554cat confdefs.h >>conftest.$ac_ext
3555cat >>conftest.$ac_ext <<_ACEOF
3556/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003557
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003558/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003559#ifdef __cplusplus
3560extern "C"
3561#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003562/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003563 builtin and then its argument prototype would still apply. */
3564char remove ();
3565int
3566main ()
3567{
3568remove ();
3569 ;
3570 return 0;
3571}
3572_ACEOF
3573rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003574if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003575 (eval $ac_link) 2>&5
3576 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003578 (exit $ac_status); } &&
3579 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003581 (eval $ac_try) 2>&5
3582 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003584 (exit $ac_status); }; }; then
3585 ac_cv_lib_posix_remove=yes
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003586else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003587 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003588sed 's/^/| /' conftest.$ac_ext >&5
3589
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003590ac_cv_lib_posix_remove=no
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003591fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003592rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3593LIBS=$ac_check_lib_save_LIBS
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003594fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003595echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003596echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
3597if test $ac_cv_lib_posix_remove = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003598 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003599fi
3600
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003601 fi
3602
3603 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003604 echo "$as_me:$LINENO: checking for shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003605echo $ECHO_N "checking for shmat... $ECHO_C" >&6
3606if test "${ac_cv_func_shmat+set}" = set; then
3607 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003608else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003609 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003610#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003611/* confdefs.h. */
3612_ACEOF
3613cat confdefs.h >>conftest.$ac_ext
3614cat >>conftest.$ac_ext <<_ACEOF
3615/* end confdefs.h. */
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003616/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003617 which can conflict with char shmat (); below.
3618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3619 <limits.h> exists even on freestanding compilers. */
3620#ifdef __STDC__
3621# include <limits.h>
3622#else
3623# include <assert.h>
3624#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003625/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003626#ifdef __cplusplus
3627extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003628{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003629#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003630/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003631 builtin and then its argument prototype would still apply. */
3632char shmat ();
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003633/* The GNU C library defines this for functions which it implements
3634 to always fail with ENOSYS. Some functions are actually named
3635 something starting with __ and the normal name is an alias. */
3636#if defined (__stub_shmat) || defined (__stub___shmat)
3637choke me
3638#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003639char (*f) () = shmat;
3640#endif
3641#ifdef __cplusplus
3642}
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003643#endif
3644
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003645int
3646main ()
3647{
3648return f != shmat;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003649 ;
3650 return 0;
3651}
3652_ACEOF
3653rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003654if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003655 (eval $ac_link) 2>&5
3656 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003658 (exit $ac_status); } &&
3659 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003661 (eval $ac_try) 2>&5
3662 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003664 (exit $ac_status); }; }; then
3665 ac_cv_func_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003666else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003667 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003668sed 's/^/| /' conftest.$ac_ext >&5
3669
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003670ac_cv_func_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003671fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003672rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003673fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003674echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003675echo "${ECHO_T}$ac_cv_func_shmat" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003676
3677 if test $ac_cv_func_shmat = no; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003678 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003679echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
3680if test "${ac_cv_lib_ipc_shmat+set}" = set; then
3681 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003682else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003683 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003684LIBS="-lipc $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003685cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003686#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003687/* confdefs.h. */
3688_ACEOF
3689cat confdefs.h >>conftest.$ac_ext
3690cat >>conftest.$ac_ext <<_ACEOF
3691/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003692
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003693/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003694#ifdef __cplusplus
3695extern "C"
3696#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003697/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003698 builtin and then its argument prototype would still apply. */
3699char shmat ();
3700int
3701main ()
3702{
3703shmat ();
3704 ;
3705 return 0;
3706}
3707_ACEOF
3708rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003709if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003710 (eval $ac_link) 2>&5
3711 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003713 (exit $ac_status); } &&
3714 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003716 (eval $ac_try) 2>&5
3717 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003719 (exit $ac_status); }; }; then
3720 ac_cv_lib_ipc_shmat=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003721else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003722 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003723sed 's/^/| /' conftest.$ac_ext >&5
3724
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003725ac_cv_lib_ipc_shmat=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003726fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003727rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3728LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003729fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003730echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003731echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
3732if test $ac_cv_lib_ipc_shmat = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003733 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003734fi
3735
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003736 fi
3737 fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003738
3739 # Check for libraries that X11R6 Xt/Xaw programs need.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003740 ac_save_LDFLAGS=$LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003741 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3742 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3743 # check for ICE first), but we must link in the order -lSM -lICE or
3744 # we get undefined symbols. So assume we have SM if we have ICE.
3745 # These have to be linked with before -lX11, unlike the other
3746 # libraries we check for below, so use a different variable.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003747 # John Interrante, Karl Berry
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003748 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003749echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
3750if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003752else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003753 ac_check_lib_save_LIBS=$LIBS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003754LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003755cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003756#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003757/* confdefs.h. */
3758_ACEOF
3759cat confdefs.h >>conftest.$ac_ext
3760cat >>conftest.$ac_ext <<_ACEOF
3761/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003762
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"
3766#endif
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003767/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003768 builtin and then its argument prototype would still apply. */
3769char IceConnectionNumber ();
3770int
3771main ()
3772{
3773IceConnectionNumber ();
3774 ;
3775 return 0;
3776}
3777_ACEOF
3778rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003779if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003780 (eval $ac_link) 2>&5
3781 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003783 (exit $ac_status); } &&
3784 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003786 (eval $ac_try) 2>&5
3787 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003789 (exit $ac_status); }; }; then
3790 ac_cv_lib_ICE_IceConnectionNumber=yes
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003791else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003792 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003793sed 's/^/| /' conftest.$ac_ext >&5
3794
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003795ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003796fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003797rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3798LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003799fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003800echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003801echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
3802if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003803 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003804fi
3805
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003806 LDFLAGS=$ac_save_LDFLAGS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003807
Alexandre Julliardff8331e1995-09-18 11:19:54 +00003808fi
3809
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003810for ac_prog in 'bison -y' byacc
3811do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003812 # Extract the first word of "$ac_prog", so it can be a program name with args.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003813set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003814echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003815echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3816if test "${ac_cv_prog_YACC+set}" = set; then
3817 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003818else
3819 if test -n "$YACC"; then
3820 ac_cv_prog_YACC="$YACC" # Let the user override the test.
3821else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823for as_dir in $PATH
3824do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_YACC="$ac_prog"
3830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3832 fi
3833done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003834done
3835
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003836fi
3837fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003838YACC=$ac_cv_prog_YACC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003839if test -n "$YACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003840 echo "$as_me:$LINENO: result: $YACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003841echo "${ECHO_T}$YACC" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003842else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003843 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003844echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003845fi
3846
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003847 test -n "$YACC" && break
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003848done
3849test -n "$YACC" || YACC="yacc"
3850
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003851for ac_prog in flex lex
3852do
3853 # Extract the first word of "$ac_prog", so it can be a program name with args.
3854set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003855echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003856echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3857if test "${ac_cv_prog_LEX+set}" = set; then
3858 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003859else
3860 if test -n "$LEX"; then
3861 ac_cv_prog_LEX="$LEX" # Let the user override the test.
3862else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_LEX="$ac_prog"
3871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3873 fi
3874done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003875done
3876
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003877fi
3878fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003879LEX=$ac_cv_prog_LEX
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003880if test -n "$LEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003881 echo "$as_me:$LINENO: result: $LEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003882echo "${ECHO_T}$LEX" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003883else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003884 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003885echo "${ECHO_T}no" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003886fi
3887
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003888 test -n "$LEX" && break
3889done
3890test -n "$LEX" || LEX=":"
3891
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003892if test -z "$LEXLIB"
3893then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003894 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003895echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
3896if test "${ac_cv_lib_fl_yywrap+set}" = set; then
3897 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003898else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003899 ac_check_lib_save_LIBS=$LIBS
3900LIBS="-lfl $LIBS"
3901cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003902#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003903/* confdefs.h. */
3904_ACEOF
3905cat confdefs.h >>conftest.$ac_ext
3906cat >>conftest.$ac_ext <<_ACEOF
3907/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003908
Alexandre Julliard59730ae1996-03-24 16:20:51 +00003909/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003910#ifdef __cplusplus
3911extern "C"
3912#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00003913/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003914 builtin and then its argument prototype would still apply. */
3915char yywrap ();
3916int
3917main ()
3918{
3919yywrap ();
3920 ;
3921 return 0;
3922}
3923_ACEOF
3924rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003925if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003926 (eval $ac_link) 2>&5
3927 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003929 (exit $ac_status); } &&
3930 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003932 (eval $ac_try) 2>&5
3933 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003935 (exit $ac_status); }; }; then
3936 ac_cv_lib_fl_yywrap=yes
3937else
3938 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003939sed 's/^/| /' conftest.$ac_ext >&5
3940
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003941ac_cv_lib_fl_yywrap=no
3942fi
3943rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3944LIBS=$ac_check_lib_save_LIBS
3945fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003946echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003947echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
3948if test $ac_cv_lib_fl_yywrap = yes; then
3949 LEXLIB="-lfl"
3950else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003951 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003952echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
3953if test "${ac_cv_lib_l_yywrap+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3955else
3956 ac_check_lib_save_LIBS=$LIBS
3957LIBS="-ll $LIBS"
3958cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003959#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003960/* confdefs.h. */
3961_ACEOF
3962cat confdefs.h >>conftest.$ac_ext
3963cat >>conftest.$ac_ext <<_ACEOF
3964/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003965
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003966/* Override any gcc2 internal prototype to avoid an error. */
3967#ifdef __cplusplus
3968extern "C"
3969#endif
3970/* We use char because int might match the return type of a gcc2
3971 builtin and then its argument prototype would still apply. */
3972char yywrap ();
3973int
3974main ()
3975{
3976yywrap ();
3977 ;
3978 return 0;
3979}
3980_ACEOF
3981rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003982if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003983 (eval $ac_link) 2>&5
3984 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003986 (exit $ac_status); } &&
3987 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003989 (eval $ac_try) 2>&5
3990 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003992 (exit $ac_status); }; }; then
3993 ac_cv_lib_l_yywrap=yes
3994else
3995 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003996sed 's/^/| /' conftest.$ac_ext >&5
3997
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003998ac_cv_lib_l_yywrap=no
3999fi
4000rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4001LIBS=$ac_check_lib_save_LIBS
4002fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004003echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004004echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
4005if test $ac_cv_lib_l_yywrap = yes; then
4006 LEXLIB="-ll"
4007fi
4008
4009fi
4010
4011fi
4012
4013if test "x$LEX" != "x:"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004014 echo "$as_me:$LINENO: checking lex output file root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004015echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
4016if test "${ac_cv_prog_lex_root+set}" = set; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4018else
4019 # The minimal lex program is just a single line: %%. But some broken lexes
4020# (Solaris, I think it was) want two %% lines, so accommodate them.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004021cat >conftest.l <<_ACEOF
4022%%
4023%%
4024_ACEOF
4025{ (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
4026 (eval $LEX conftest.l) 2>&5
4027 ac_status=$?
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004030if test -f lex.yy.c; then
4031 ac_cv_prog_lex_root=lex.yy
4032elif test -f lexyy.c; then
4033 ac_cv_prog_lex_root=lexyy
4034else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004035 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004036echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
4037 { (exit 1); exit 1; }; }
4038fi
4039fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004040echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004041echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004042rm -f conftest.l
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004043LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4044
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004045echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004046echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
4047if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049else
4050 # POSIX says lex can declare yytext either as a pointer or an array; the
4051# default is implementation-dependent. Figure out which it is, since
4052# not all implementations provide the %pointer and %array declarations.
4053ac_cv_prog_lex_yytext_pointer=no
4054echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
4055ac_save_LIBS=$LIBS
4056LIBS="$LIBS $LEXLIB"
4057cat >conftest.$ac_ext <<_ACEOF
4058`cat $LEX_OUTPUT_ROOT.c`
4059_ACEOF
4060rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004061if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004062 (eval $ac_link) 2>&5
4063 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004065 (exit $ac_status); } &&
4066 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004068 (eval $ac_try) 2>&5
4069 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004071 (exit $ac_status); }; }; then
4072 ac_cv_prog_lex_yytext_pointer=yes
4073else
4074 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004075sed 's/^/| /' conftest.$ac_ext >&5
4076
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004077fi
4078rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4079LIBS=$ac_save_LIBS
4080rm -f "${LEX_OUTPUT_ROOT}.c"
4081
4082fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004083echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004084echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
4085if test $ac_cv_prog_lex_yytext_pointer = yes; then
4086
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004087cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004088#define YYTEXT_POINTER 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004089_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004090
4091fi
4092
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004093fi
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004094
4095for ac_prog in $YACC bison yacc
4096do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004097 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004098set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004099echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004100echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4101if test "${ac_cv_prog_XYACC+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004103else
4104 if test -n "$XYACC"; then
4105 ac_cv_prog_XYACC="$XYACC" # Let the user override the test.
4106else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004107as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4108for as_dir in $PATH
4109do
4110 IFS=$as_save_IFS
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_prog_XYACC="$ac_prog"
4115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4116 break 2
4117 fi
4118done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004119done
4120
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004121fi
4122fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004123XYACC=$ac_cv_prog_XYACC
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004124if test -n "$XYACC"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004125 echo "$as_me:$LINENO: result: $XYACC" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004126echo "${ECHO_T}$XYACC" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004127else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004128 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004129echo "${ECHO_T}no" >&6
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004130fi
4131
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004132 test -n "$XYACC" && break
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004133done
4134test -n "$XYACC" || XYACC="none"
4135
4136if test "$XYACC" = "none"
4137then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004138 { { echo "$as_me:$LINENO: error: no suitable bison/yacc found. Please install the 'bison' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004139echo "$as_me: error: no suitable bison/yacc found. Please install the 'bison' package." >&2;}
4140 { (exit 1); exit 1; }; }
Marcus Meissner5c5a6212002-01-22 18:28:25 +00004141fi
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004142for ac_prog in $LEX flex lex
4143do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004144 # Extract the first word of "$ac_prog", so it can be a program name with args.
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004145set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004146echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004147echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4148if test "${ac_cv_prog_XLEX+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004150else
4151 if test -n "$XLEX"; then
4152 ac_cv_prog_XLEX="$XLEX" # Let the user override the test.
4153else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4155for as_dir in $PATH
4156do
4157 IFS=$as_save_IFS
4158 test -z "$as_dir" && as_dir=.
4159 for ac_exec_ext in '' $ac_executable_extensions; do
4160 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4161 ac_cv_prog_XLEX="$ac_prog"
4162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 break 2
4164 fi
4165done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004166done
4167
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004168fi
4169fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004170XLEX=$ac_cv_prog_XLEX
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004171if test -n "$XLEX"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004172 echo "$as_me:$LINENO: result: $XLEX" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004173echo "${ECHO_T}$XLEX" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004174else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004175 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004176echo "${ECHO_T}no" >&6
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004177fi
4178
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004179 test -n "$XLEX" && break
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004180done
4181test -n "$XLEX" || XLEX="none"
4182
4183if test "$XLEX" = "none"
4184then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004185 { { echo "$as_me:$LINENO: error: no suitable lex found. Please install the 'flex' package." >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004186echo "$as_me: error: no suitable lex found. Please install the 'flex' package." >&2;}
4187 { (exit 1); exit 1; }; }
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004188fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004189
4190if test -n "$ac_tool_prefix"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004191 for ac_prog in gas as
4192 do
4193 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4194set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Marcus Meissner1d4db782003-01-09 00:46:54 +00004195echo "$as_me:$LINENO: checking for $ac_word" >&5
4196echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197if test "${ac_cv_prog_AS+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200 if test -n "$AS"; then
4201 ac_cv_prog_AS="$AS" # Let the user override the test.
4202else
4203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204for as_dir in $PATH
4205do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004210 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00004211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 break 2
4213 fi
4214done
4215done
4216
4217fi
4218fi
4219AS=$ac_cv_prog_AS
4220if test -n "$AS"; then
4221 echo "$as_me:$LINENO: result: $AS" >&5
4222echo "${ECHO_T}$AS" >&6
4223else
4224 echo "$as_me:$LINENO: result: no" >&5
4225echo "${ECHO_T}no" >&6
4226fi
4227
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004228 test -n "$AS" && break
4229 done
Marcus Meissner1d4db782003-01-09 00:46:54 +00004230fi
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004231if test -z "$AS"; then
Marcus Meissner1d4db782003-01-09 00:46:54 +00004232 ac_ct_AS=$AS
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004233 for ac_prog in gas as
4234do
4235 # Extract the first word of "$ac_prog", so it can be a program name with args.
4236set dummy $ac_prog; ac_word=$2
Marcus Meissner1d4db782003-01-09 00:46:54 +00004237echo "$as_me:$LINENO: checking for $ac_word" >&5
4238echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4239if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4241else
4242 if test -n "$ac_ct_AS"; then
4243 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4244else
4245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4246for as_dir in $PATH
4247do
4248 IFS=$as_save_IFS
4249 test -z "$as_dir" && as_dir=.
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004252 ac_cv_prog_ac_ct_AS="$ac_prog"
Marcus Meissner1d4db782003-01-09 00:46:54 +00004253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4254 break 2
4255 fi
4256done
4257done
4258
Marcus Meissner1d4db782003-01-09 00:46:54 +00004259fi
4260fi
4261ac_ct_AS=$ac_cv_prog_ac_ct_AS
4262if test -n "$ac_ct_AS"; then
4263 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4264echo "${ECHO_T}$ac_ct_AS" >&6
4265else
4266 echo "$as_me:$LINENO: result: no" >&5
4267echo "${ECHO_T}no" >&6
4268fi
4269
Alexandre Julliardc80c2902003-05-06 18:41:52 +00004270 test -n "$ac_ct_AS" && break
4271done
4272test -n "$ac_ct_AS" || ac_ct_AS="as"
4273
Marcus Meissner1d4db782003-01-09 00:46:54 +00004274 AS=$ac_ct_AS
Marcus Meissner1d4db782003-01-09 00:46:54 +00004275fi
4276
4277if test -n "$ac_tool_prefix"; then
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +00004278 # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
4279set dummy ${ac_tool_prefix}ld; ac_word=$2
4280echo "$as_me:$LINENO: checking for $ac_word" >&5
4281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4282if test "${ac_cv_prog_LD+set}" = set; then
4283 echo $ECHO_N "(cached) $ECHO_C" >&6
4284else
4285 if test -n "$LD"; then
4286 ac_cv_prog_LD="$LD" # Let the user override the test.
4287else
4288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4289for as_dir in $PATH
4290do
4291 IFS=$as_save_IFS
4292 test -z "$as_dir" && as_dir=.
4293 for ac_exec_ext in '' $ac_executable_extensions; do
4294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4295 ac_cv_prog_LD="${ac_tool_prefix}ld"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4298 fi
4299done
4300done
4301
4302fi
4303fi
4304LD=$ac_cv_prog_LD
4305if test -n "$LD"; then
4306 echo "$as_me:$LINENO: result: $LD" >&5
4307echo "${ECHO_T}$LD" >&6
4308else
4309 echo "$as_me:$LINENO: result: no" >&5
4310echo "${ECHO_T}no" >&6
4311fi
4312
4313fi
4314if test -z "$ac_cv_prog_LD"; then
4315 ac_ct_LD=$LD
4316 # Extract the first word of "ld", so it can be a program name with args.
4317set dummy ld; ac_word=$2
4318echo "$as_me:$LINENO: checking for $ac_word" >&5
4319echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4320if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4321 echo $ECHO_N "(cached) $ECHO_C" >&6
4322else
4323 if test -n "$ac_ct_LD"; then
4324 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4325else
4326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4327for as_dir in $PATH
4328do
4329 IFS=$as_save_IFS
4330 test -z "$as_dir" && as_dir=.
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4333 ac_cv_prog_ac_ct_LD="ld"
4334 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4335 break 2
4336 fi
4337done
4338done
4339
4340 test -z "$ac_cv_prog_ac_ct_LD" && ac_cv_prog_ac_ct_LD="ld"
4341fi
4342fi
4343ac_ct_LD=$ac_cv_prog_ac_ct_LD
4344if test -n "$ac_ct_LD"; then
4345 echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4346echo "${ECHO_T}$ac_ct_LD" >&6
4347else
4348 echo "$as_me:$LINENO: result: no" >&5
4349echo "${ECHO_T}no" >&6
4350fi
4351
4352 LD=$ac_ct_LD
4353else
4354 LD="$ac_cv_prog_LD"
4355fi
4356
4357if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004358 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4359set dummy ${ac_tool_prefix}ar; ac_word=$2
4360echo "$as_me:$LINENO: checking for $ac_word" >&5
4361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4362if test "${ac_cv_prog_AR+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364else
4365 if test -n "$AR"; then
4366 ac_cv_prog_AR="$AR" # Let the user override the test.
4367else
4368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369for as_dir in $PATH
4370do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_exec_ext in '' $ac_executable_extensions; do
4374 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4375 ac_cv_prog_AR="${ac_tool_prefix}ar"
4376 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 break 2
4378 fi
4379done
4380done
4381
4382fi
4383fi
4384AR=$ac_cv_prog_AR
4385if test -n "$AR"; then
4386 echo "$as_me:$LINENO: result: $AR" >&5
4387echo "${ECHO_T}$AR" >&6
4388else
4389 echo "$as_me:$LINENO: result: no" >&5
4390echo "${ECHO_T}no" >&6
4391fi
4392
4393fi
4394if test -z "$ac_cv_prog_AR"; then
4395 ac_ct_AR=$AR
4396 # Extract the first word of "ar", so it can be a program name with args.
4397set dummy ar; ac_word=$2
4398echo "$as_me:$LINENO: checking for $ac_word" >&5
4399echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4400if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4402else
4403 if test -n "$ac_ct_AR"; then
4404 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4405else
4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4407for as_dir in $PATH
4408do
4409 IFS=$as_save_IFS
4410 test -z "$as_dir" && as_dir=.
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4413 ac_cv_prog_ac_ct_AR="ar"
4414 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 break 2
4416 fi
4417done
4418done
4419
4420 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
4421fi
4422fi
4423ac_ct_AR=$ac_cv_prog_ac_ct_AR
4424if test -n "$ac_ct_AR"; then
4425 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4426echo "${ECHO_T}$ac_ct_AR" >&6
4427else
4428 echo "$as_me:$LINENO: result: no" >&5
4429echo "${ECHO_T}no" >&6
4430fi
4431
4432 AR=$ac_ct_AR
4433else
4434 AR="$ac_cv_prog_AR"
4435fi
4436
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004437if test -n "$ac_tool_prefix"; then
4438 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4439set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004440echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4442if test "${ac_cv_prog_RANLIB+set}" = set; then
4443 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004444else
4445 if test -n "$RANLIB"; then
4446 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4447else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4449for as_dir in $PATH
4450do
4451 IFS=$as_save_IFS
4452 test -z "$as_dir" && as_dir=.
4453 for ac_exec_ext in '' $ac_executable_extensions; do
4454 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4456 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4457 break 2
4458 fi
4459done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004460done
4461
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004462fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004463fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004464RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004465if test -n "$RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004466 echo "$as_me:$LINENO: result: $RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004467echo "${ECHO_T}$RANLIB" >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004468else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004469 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004470echo "${ECHO_T}no" >&6
4471fi
4472
4473fi
4474if test -z "$ac_cv_prog_RANLIB"; then
4475 ac_ct_RANLIB=$RANLIB
4476 # Extract the first word of "ranlib", so it can be a program name with args.
4477set dummy ranlib; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004478echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004479echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4480if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4482else
4483 if test -n "$ac_ct_RANLIB"; then
4484 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4485else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487for as_dir in $PATH
4488do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_prog_ac_ct_RANLIB="ranlib"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4495 break 2
4496 fi
4497done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004498done
4499
4500 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
4501fi
4502fi
4503ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4504if test -n "$ac_ct_RANLIB"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004505 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004506echo "${ECHO_T}$ac_ct_RANLIB" >&6
4507else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004508 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004509echo "${ECHO_T}no" >&6
4510fi
4511
4512 RANLIB=$ac_ct_RANLIB
4513else
4514 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004515fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004516
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004517if test -n "$ac_tool_prefix"; then
4518 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4519set dummy ${ac_tool_prefix}strip; ac_word=$2
4520echo "$as_me:$LINENO: checking for $ac_word" >&5
4521echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4522if test "${ac_cv_prog_STRIP+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4524else
4525 if test -n "$STRIP"; then
4526 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4527else
4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH
4530do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4538 fi
4539done
4540done
4541
4542fi
4543fi
4544STRIP=$ac_cv_prog_STRIP
4545if test -n "$STRIP"; then
4546 echo "$as_me:$LINENO: result: $STRIP" >&5
4547echo "${ECHO_T}$STRIP" >&6
4548else
4549 echo "$as_me:$LINENO: result: no" >&5
4550echo "${ECHO_T}no" >&6
4551fi
4552
4553fi
4554if test -z "$ac_cv_prog_STRIP"; then
4555 ac_ct_STRIP=$STRIP
4556 # Extract the first word of "strip", so it can be a program name with args.
4557set dummy strip; ac_word=$2
4558echo "$as_me:$LINENO: checking for $ac_word" >&5
4559echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4560if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4561 echo $ECHO_N "(cached) $ECHO_C" >&6
4562else
4563 if test -n "$ac_ct_STRIP"; then
4564 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4565else
4566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567for as_dir in $PATH
4568do
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4573 ac_cv_prog_ac_ct_STRIP="strip"
4574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4576 fi
4577done
4578done
4579
4580 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP="strip"
4581fi
4582fi
4583ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4584if test -n "$ac_ct_STRIP"; then
4585 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4586echo "${ECHO_T}$ac_ct_STRIP" >&6
4587else
4588 echo "$as_me:$LINENO: result: no" >&5
4589echo "${ECHO_T}no" >&6
4590fi
4591
4592 STRIP=$ac_ct_STRIP
4593else
4594 STRIP="$ac_cv_prog_STRIP"
4595fi
4596
4597if test -n "$ac_tool_prefix"; then
4598 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4599set dummy ${ac_tool_prefix}windres; ac_word=$2
4600echo "$as_me:$LINENO: checking for $ac_word" >&5
4601echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4602if test "${ac_cv_prog_WINDRES+set}" = set; then
4603 echo $ECHO_N "(cached) $ECHO_C" >&6
4604else
4605 if test -n "$WINDRES"; then
4606 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4607else
4608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH
4610do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
4613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4615 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 break 2
4618 fi
4619done
4620done
4621
4622fi
4623fi
4624WINDRES=$ac_cv_prog_WINDRES
4625if test -n "$WINDRES"; then
4626 echo "$as_me:$LINENO: result: $WINDRES" >&5
4627echo "${ECHO_T}$WINDRES" >&6
4628else
4629 echo "$as_me:$LINENO: result: no" >&5
4630echo "${ECHO_T}no" >&6
4631fi
4632
4633fi
4634if test -z "$ac_cv_prog_WINDRES"; then
4635 ac_ct_WINDRES=$WINDRES
4636 # Extract the first word of "windres", so it can be a program name with args.
4637set dummy windres; ac_word=$2
4638echo "$as_me:$LINENO: checking for $ac_word" >&5
4639echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4640if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4641 echo $ECHO_N "(cached) $ECHO_C" >&6
4642else
4643 if test -n "$ac_ct_WINDRES"; then
4644 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4645else
4646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647for as_dir in $PATH
4648do
4649 IFS=$as_save_IFS
4650 test -z "$as_dir" && as_dir=.
4651 for ac_exec_ext in '' $ac_executable_extensions; do
4652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4653 ac_cv_prog_ac_ct_WINDRES="windres"
4654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4655 break 2
4656 fi
4657done
4658done
4659
4660 test -z "$ac_cv_prog_ac_ct_WINDRES" && ac_cv_prog_ac_ct_WINDRES="false"
4661fi
4662fi
4663ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4664if test -n "$ac_ct_WINDRES"; then
4665 echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4666echo "${ECHO_T}$ac_ct_WINDRES" >&6
4667else
4668 echo "$as_me:$LINENO: result: no" >&5
4669echo "${ECHO_T}no" >&6
4670fi
4671
4672 WINDRES=$ac_ct_WINDRES
4673else
4674 WINDRES="$ac_cv_prog_WINDRES"
4675fi
4676
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004677echo "$as_me:$LINENO: checking whether ln -s works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004678echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4679LN_S=$as_ln_s
4680if test "$LN_S" = "ln -s"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004681 echo "$as_me:$LINENO: result: yes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004682echo "${ECHO_T}yes" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004683else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004684 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004685echo "${ECHO_T}no, using $LN_S" >&6
Alexandre Julliard641ee761997-08-04 16:34:36 +00004686fi
4687
Alexandre Julliarddf234a92002-05-22 02:10:39 +00004688echo "$as_me:$LINENO: checking whether ln works" >&5
4689echo $ECHO_N "checking whether ln works... $ECHO_C" >&6
4690rm -f conf$$ conf$$.file
4691echo >conf$$.file
4692if ln conf$$.file conf$$ 2>/dev/null; then
4693 LN=ln
4694
4695 echo "$as_me:$LINENO: result: yes" >&5
4696echo "${ECHO_T}yes" >&6
4697else
4698 LN="cp -p"
4699
4700 echo "$as_me:$LINENO: result: no, using $LN" >&5
4701echo "${ECHO_T}no, using $LN" >&6
4702fi
4703rm -f conf$$ conf$$.file
James Juranffe6b761999-06-12 08:21:57 +00004704# Extract the first word of "ldconfig", so it can be a program name with args.
4705set dummy ldconfig; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004706echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004707echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4708if test "${ac_cv_path_LDCONFIG+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
James Juranffe6b761999-06-12 08:21:57 +00004710else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004711 case $LDCONFIG in
4712 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004713 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4714 ;;
4715 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004717for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004718do
4719 IFS=$as_save_IFS
4720 test -z "$as_dir" && as_dir=.
4721 for ac_exec_ext in '' $ac_executable_extensions; do
4722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4723 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 break 2
4726 fi
4727done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004728done
4729
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004730 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004731 ;;
4732esac
4733fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004734LDCONFIG=$ac_cv_path_LDCONFIG
4735
James Juranffe6b761999-06-12 08:21:57 +00004736if test -n "$LDCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004737 echo "$as_me:$LINENO: result: $LDCONFIG" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004738echo "${ECHO_T}$LDCONFIG" >&6
James Juranffe6b761999-06-12 08:21:57 +00004739else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004740 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004741echo "${ECHO_T}no" >&6
James Juranffe6b761999-06-12 08:21:57 +00004742fi
4743
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004744# Find a good install program. We prefer a C program (faster),
4745# so one script is as good as another. But avoid the broken or
4746# incompatible versions:
4747# SysV /etc/install, /usr/sbin/install
4748# SunOS /usr/etc/install
4749# IRIX /sbin/install
4750# AIX /bin/install
4751# AmigaOS /C/install, which installs bootblocks on floppy discs
4752# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4753# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4754# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4755# ./install, which can be erroneously created by make from ./install.sh.
4756echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4757echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
4758if test -z "$INSTALL"; then
4759if test "${ac_cv_path_install+set}" = set; then
4760 echo $ECHO_N "(cached) $ECHO_C" >&6
4761else
4762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4763for as_dir in $PATH
4764do
4765 IFS=$as_save_IFS
4766 test -z "$as_dir" && as_dir=.
4767 # Account for people who put trailing slashes in PATH elements.
4768case $as_dir/ in
4769 ./ | .// | /cC/* | \
4770 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4771 /usr/ucb/* ) ;;
4772 *)
4773 # OSF1 and SCO ODT 3.0 have their own names for install.
4774 # Don't use installbsd from OSF since it installs stuff as root
4775 # by default.
4776 for ac_prog in ginstall scoinst install; do
4777 for ac_exec_ext in '' $ac_executable_extensions; do
4778 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4779 if test $ac_prog = install &&
4780 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4781 # AIX install. It has an incompatible calling convention.
4782 :
4783 elif test $ac_prog = install &&
4784 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4785 # program-specific install script used by HP pwplus--don't use.
4786 :
4787 else
4788 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4789 break 3
4790 fi
4791 fi
4792 done
4793 done
4794 ;;
4795esac
4796done
4797
4798
4799fi
4800 if test "${ac_cv_path_install+set}" = set; then
4801 INSTALL=$ac_cv_path_install
4802 else
4803 # As a last resort, use the slow shell script. We don't cache a
4804 # path for INSTALL within a source directory, because that will
4805 # break other packages using the cache if that directory is
4806 # removed, or if the path is relative.
4807 INSTALL=$ac_install_sh
4808 fi
4809fi
4810echo "$as_me:$LINENO: result: $INSTALL" >&5
4811echo "${ECHO_T}$INSTALL" >&6
4812
4813# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4814# It thinks the first close brace ends the variable substitution.
4815test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4816
4817test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4818
4819test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4820
4821case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00004822 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004823 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4824esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004825
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004826for ac_prog in lclint lint
4827do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004828 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004829set dummy $ac_prog; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004830echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004831echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4832if test "${ac_cv_prog_LINT+set}" = set; then
4833 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004834else
4835 if test -n "$LINT"; then
4836 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4837else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4839for as_dir in $PATH
4840do
4841 IFS=$as_save_IFS
4842 test -z "$as_dir" && as_dir=.
4843 for ac_exec_ext in '' $ac_executable_extensions; do
4844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4845 ac_cv_prog_LINT="$ac_prog"
4846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4847 break 2
4848 fi
4849done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004850done
4851
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004852fi
4853fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004854LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004855if test -n "$LINT"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004856 echo "$as_me:$LINENO: result: $LINT" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004857echo "${ECHO_T}$LINT" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004858else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004859 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004860echo "${ECHO_T}no" >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004861fi
4862
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004863 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004864done
4865
4866if test "$LINT" = "lint"
4867then
4868 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4869 fi
4870
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004871
4872
Vincent Béron1d8cb6e2002-11-23 01:20:02 +00004873for ac_prog in docbook2html db2html
4874do
4875 # Extract the first word of "$ac_prog", so it can be a program name with args.
4876set dummy $ac_prog; ac_word=$2
4877echo "$as_me:$LINENO: checking for $ac_word" >&5
4878echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4879if test "${ac_cv_prog_DB2HTML+set}" = set; then
4880 echo $ECHO_N "(cached) $ECHO_C" >&6
4881else
4882 if test -n "$DB2HTML"; then
4883 ac_cv_prog_DB2HTML="$DB2HTML" # Let the user override the test.
4884else
4885as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4886for as_dir in $PATH
4887do
4888 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=.
4890 for ac_exec_ext in '' $ac_executable_extensions; do
4891 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4892 ac_cv_prog_DB2HTML="$ac_prog"
4893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4894 break 2
4895 fi
4896done
4897done
4898
4899fi
4900fi
4901DB2HTML=$ac_cv_prog_DB2HTML
4902if test -n "$DB2HTML"; then
4903 echo "$as_me:$LINENO: result: $DB2HTML" >&5
4904echo "${ECHO_T}$DB2HTML" >&6
4905else
4906 echo "$as_me:$LINENO: result: no" >&5
4907echo "${ECHO_T}no" >&6
4908fi
4909
4910 test -n "$DB2HTML" && break
4911done
4912test -n "$DB2HTML" || DB2HTML="false"
4913
4914
4915
4916for ac_prog in docbook2pdf db2pdf
4917do
4918 # Extract the first word of "$ac_prog", so it can be a program name with args.
4919set dummy $ac_prog; ac_word=$2
4920echo "$as_me:$LINENO: checking for $ac_word" >&5
4921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4922if test "${ac_cv_prog_DB2PDF+set}" = set; then
4923 echo $ECHO_N "(cached) $ECHO_C" >&6
4924else
4925 if test -n "$DB2PDF"; then
4926 ac_cv_prog_DB2PDF="$DB2PDF" # Let the user override the test.
4927else
4928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929for as_dir in $PATH
4930do
4931 IFS=$as_save_IFS
4932 test -z "$as_dir" && as_dir=.
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4935 ac_cv_prog_DB2PDF="$ac_prog"
4936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4937 break 2
4938 fi
4939done
4940done
4941
4942fi
4943fi
4944DB2PDF=$ac_cv_prog_DB2PDF
4945if test -n "$DB2PDF"; then
4946 echo "$as_me:$LINENO: result: $DB2PDF" >&5
4947echo "${ECHO_T}$DB2PDF" >&6
4948else
4949 echo "$as_me:$LINENO: result: no" >&5
4950echo "${ECHO_T}no" >&6
4951fi
4952
4953 test -n "$DB2PDF" && break
4954done
4955test -n "$DB2PDF" || DB2PDF="false"
4956
4957
4958
4959for ac_prog in docbook2ps db2ps
4960do
4961 # Extract the first word of "$ac_prog", so it can be a program name with args.
4962set dummy $ac_prog; ac_word=$2
4963echo "$as_me:$LINENO: checking for $ac_word" >&5
4964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4965if test "${ac_cv_prog_DB2PS+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968 if test -n "$DB2PS"; then
4969 ac_cv_prog_DB2PS="$DB2PS" # Let the user override the test.
4970else
4971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972for as_dir in $PATH
4973do
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_prog_DB2PS="$ac_prog"
4979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 break 2
4981 fi
4982done
4983done
4984
4985fi
4986fi
4987DB2PS=$ac_cv_prog_DB2PS
4988if test -n "$DB2PS"; then
4989 echo "$as_me:$LINENO: result: $DB2PS" >&5
4990echo "${ECHO_T}$DB2PS" >&6
4991else
4992 echo "$as_me:$LINENO: result: no" >&5
4993echo "${ECHO_T}no" >&6
4994fi
4995
4996 test -n "$DB2PS" && break
4997done
4998test -n "$DB2PS" || DB2PS="false"
4999
5000
5001
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005002
5003
5004echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005005echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6
5006if test "${ac_cv_lib_m_sqrt+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paun79e44ab2000-12-05 04:13:36 +00005008else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005009 ac_check_lib_save_LIBS=$LIBS
Howard Abrams13277481999-07-10 13:16:29 +00005010LIBS="-lm $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005011cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005012#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005013/* confdefs.h. */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005018
Howard Abrams13277481999-07-10 13:16:29 +00005019/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005020#ifdef __cplusplus
5021extern "C"
5022#endif
Howard Abrams13277481999-07-10 13:16:29 +00005023/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005024 builtin and then its argument prototype would still apply. */
5025char sqrt ();
5026int
5027main ()
5028{
5029sqrt ();
5030 ;
5031 return 0;
5032}
5033_ACEOF
5034rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005036 (eval $ac_link) 2>&5
5037 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005039 (exit $ac_status); } &&
5040 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005042 (eval $ac_try) 2>&5
5043 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005045 (exit $ac_status); }; }; then
5046 ac_cv_lib_m_sqrt=yes
Howard Abrams13277481999-07-10 13:16:29 +00005047else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005048 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005049sed 's/^/| /' conftest.$ac_ext >&5
5050
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005051ac_cv_lib_m_sqrt=no
Howard Abrams13277481999-07-10 13:16:29 +00005052fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005053rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5054LIBS=$ac_check_lib_save_LIBS
Howard Abrams13277481999-07-10 13:16:29 +00005055fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005056echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005057echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6
5058if test $ac_cv_lib_m_sqrt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005059 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005060#define HAVE_LIBM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005061_ACEOF
Howard Abrams13277481999-07-10 13:16:29 +00005062
5063 LIBS="-lm $LIBS"
5064
Howard Abrams13277481999-07-10 13:16:29 +00005065fi
5066
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005067
5068echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005069echo $ECHO_N "checking for i386_set_ldt in -li386... $ECHO_C" >&6
5070if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5071 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005072else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005073 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005074LIBS="-li386 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005075cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005076#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005077/* confdefs.h. */
5078_ACEOF
5079cat confdefs.h >>conftest.$ac_ext
5080cat >>conftest.$ac_ext <<_ACEOF
5081/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005082
Alexandre Julliard59730ae1996-03-24 16:20:51 +00005083/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005084#ifdef __cplusplus
5085extern "C"
5086#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +00005087/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005088 builtin and then its argument prototype would still apply. */
5089char i386_set_ldt ();
5090int
5091main ()
5092{
5093i386_set_ldt ();
5094 ;
5095 return 0;
5096}
5097_ACEOF
5098rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005099if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005100 (eval $ac_link) 2>&5
5101 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005103 (exit $ac_status); } &&
5104 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005106 (eval $ac_try) 2>&5
5107 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005109 (exit $ac_status); }; }; then
5110 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005111else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005112 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005113sed 's/^/| /' conftest.$ac_ext >&5
5114
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005115ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005116fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005117rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5118LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005119fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005120echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005121echo "${ECHO_T}$ac_cv_lib_i386_i386_set_ldt" >&6
5122if test $ac_cv_lib_i386_i386_set_ldt = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005123 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005124#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005125_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005126
5127 LIBS="-li386 $LIBS"
5128
Alexandre Julliard02e90081998-01-04 17:49:09 +00005129fi
5130
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005131
5132echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005133echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6
5134if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5135 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005136else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005137 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005138LIBS="-lossaudio $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005139cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005140#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005141/* confdefs.h. */
5142_ACEOF
5143cat confdefs.h >>conftest.$ac_ext
5144cat >>conftest.$ac_ext <<_ACEOF
5145/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005146
Todd Vierlingecc76691998-12-15 17:49:02 +00005147/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005148#ifdef __cplusplus
5149extern "C"
5150#endif
Todd Vierlingecc76691998-12-15 17:49:02 +00005151/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005152 builtin and then its argument prototype would still apply. */
5153char _oss_ioctl ();
5154int
5155main ()
5156{
5157_oss_ioctl ();
5158 ;
5159 return 0;
5160}
5161_ACEOF
5162rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005163if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005164 (eval $ac_link) 2>&5
5165 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005167 (exit $ac_status); } &&
5168 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005170 (eval $ac_try) 2>&5
5171 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005173 (exit $ac_status); }; }; then
5174 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005175else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005176 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005177sed 's/^/| /' conftest.$ac_ext >&5
5178
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005179ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005180fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005181rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5182LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005183fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005184echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005185echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6
5186if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005187 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005188#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005189_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005190
5191 LIBS="-lossaudio $LIBS"
5192
Todd Vierlingecc76691998-12-15 17:49:02 +00005193fi
5194
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005195
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005196for ac_func in iswalnum
Patrik Stridvallea584721998-11-01 16:22:07 +00005197do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005198as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005199echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005200echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5201if eval "test \"\${$as_ac_var+set}\" = set"; then
5202 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005203else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005204 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005205#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005206/* confdefs.h. */
5207_ACEOF
5208cat confdefs.h >>conftest.$ac_ext
5209cat >>conftest.$ac_ext <<_ACEOF
5210/* end confdefs.h. */
Patrik Stridvallea584721998-11-01 16:22:07 +00005211/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005212 which can conflict with char $ac_func (); below.
5213 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5214 <limits.h> exists even on freestanding compilers. */
5215#ifdef __STDC__
5216# include <limits.h>
5217#else
5218# include <assert.h>
5219#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005220/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005221#ifdef __cplusplus
5222extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005223{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005224#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005225/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005226 builtin and then its argument prototype would still apply. */
5227char $ac_func ();
Patrik Stridvallea584721998-11-01 16:22:07 +00005228/* The GNU C library defines this for functions which it implements
5229 to always fail with ENOSYS. Some functions are actually named
5230 something starting with __ and the normal name is an alias. */
5231#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5232choke me
5233#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005234char (*f) () = $ac_func;
5235#endif
5236#ifdef __cplusplus
5237}
Patrik Stridvallea584721998-11-01 16:22:07 +00005238#endif
5239
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005240int
5241main ()
5242{
5243return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005244 ;
5245 return 0;
5246}
5247_ACEOF
5248rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005249if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005250 (eval $ac_link) 2>&5
5251 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005253 (exit $ac_status); } &&
5254 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005256 (eval $ac_try) 2>&5
5257 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005259 (exit $ac_status); }; }; then
5260 eval "$as_ac_var=yes"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005261else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005262 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005263sed 's/^/| /' conftest.$ac_ext >&5
5264
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005265eval "$as_ac_var=no"
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005266fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005267rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005268fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005269echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005270echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5271if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005272 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005273#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005274_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005275
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005276else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005277
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005278echo "$as_me:$LINENO: checking for iswalnum in -lw" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005279echo $ECHO_N "checking for iswalnum in -lw... $ECHO_C" >&6
5280if test "${ac_cv_lib_w_iswalnum+set}" = set; then
5281 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005282else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005283 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005284LIBS="-lw $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005285cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005286#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005287/* confdefs.h. */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005292
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005293/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005294#ifdef __cplusplus
5295extern "C"
5296#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005297/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005298 builtin and then its argument prototype would still apply. */
5299char iswalnum ();
5300int
5301main ()
5302{
5303iswalnum ();
5304 ;
5305 return 0;
5306}
5307_ACEOF
5308rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005309if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005310 (eval $ac_link) 2>&5
5311 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005313 (exit $ac_status); } &&
5314 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005316 (eval $ac_try) 2>&5
5317 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005319 (exit $ac_status); }; }; then
5320 ac_cv_lib_w_iswalnum=yes
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005321else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005322 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005323sed 's/^/| /' conftest.$ac_ext >&5
5324
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005325ac_cv_lib_w_iswalnum=no
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005326fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005327rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5328LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005329fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005330echo "$as_me:$LINENO: result: $ac_cv_lib_w_iswalnum" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005331echo "${ECHO_T}$ac_cv_lib_w_iswalnum" >&6
5332if test $ac_cv_lib_w_iswalnum = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005333 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005334#define HAVE_LIBW 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005335_ACEOF
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005336
5337 LIBS="-lw $LIBS"
5338
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005339fi
5340
5341fi
5342done
5343
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005344
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005345for ac_func in gethostbyname
5346do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005347as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005348echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005349echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5350if eval "test \"\${$as_ac_var+set}\" = set"; then
5351 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005352else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005353 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005354#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005355/* confdefs.h. */
5356_ACEOF
5357cat confdefs.h >>conftest.$ac_ext
5358cat >>conftest.$ac_ext <<_ACEOF
5359/* end confdefs.h. */
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005360/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005361 which can conflict with char $ac_func (); below.
5362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5363 <limits.h> exists even on freestanding compilers. */
5364#ifdef __STDC__
5365# include <limits.h>
5366#else
5367# include <assert.h>
5368#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005369/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005370#ifdef __cplusplus
5371extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005372{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005373#endif
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005374/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005375 builtin and then its argument prototype would still apply. */
5376char $ac_func ();
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005377/* The GNU C library defines this for functions which it implements
5378 to always fail with ENOSYS. Some functions are actually named
5379 something starting with __ and the normal name is an alias. */
5380#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5381choke me
5382#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005383char (*f) () = $ac_func;
5384#endif
5385#ifdef __cplusplus
5386}
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005387#endif
5388
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005389int
5390main ()
5391{
5392return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005393 ;
5394 return 0;
5395}
5396_ACEOF
5397rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005399 (eval $ac_link) 2>&5
5400 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005402 (exit $ac_status); } &&
5403 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005405 (eval $ac_try) 2>&5
5406 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005408 (exit $ac_status); }; }; then
5409 eval "$as_ac_var=yes"
Patrik Stridvallea584721998-11-01 16:22:07 +00005410else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005411 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005412sed 's/^/| /' conftest.$ac_ext >&5
5413
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005414eval "$as_ac_var=no"
Patrik Stridvallea584721998-11-01 16:22:07 +00005415fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005416rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvallea584721998-11-01 16:22:07 +00005417fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005418echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005419echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5420if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005421 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005422#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005423_ACEOF
Patrik Stridvallea584721998-11-01 16:22:07 +00005424
Patrik Stridvallea584721998-11-01 16:22:07 +00005425else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005426
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005427echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005428echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
5429if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
5430 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvallea584721998-11-01 16:22:07 +00005431else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005432 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005433LIBS="-lnsl $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005434cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005435#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005436/* confdefs.h. */
5437_ACEOF
5438cat confdefs.h >>conftest.$ac_ext
5439cat >>conftest.$ac_ext <<_ACEOF
5440/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005441
Patrik Stridvallea584721998-11-01 16:22:07 +00005442/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005443#ifdef __cplusplus
5444extern "C"
5445#endif
Patrik Stridvallea584721998-11-01 16:22:07 +00005446/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005447 builtin and then its argument prototype would still apply. */
5448char gethostbyname ();
5449int
5450main ()
5451{
5452gethostbyname ();
5453 ;
5454 return 0;
5455}
5456_ACEOF
5457rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005458if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005459 (eval $ac_link) 2>&5
5460 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005462 (exit $ac_status); } &&
5463 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005465 (eval $ac_try) 2>&5
5466 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005468 (exit $ac_status); }; }; then
5469 ac_cv_lib_nsl_gethostbyname=yes
Patrik Stridvallea584721998-11-01 16:22:07 +00005470else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005471 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005472sed 's/^/| /' conftest.$ac_ext >&5
5473
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005474ac_cv_lib_nsl_gethostbyname=no
Patrik Stridvallea584721998-11-01 16:22:07 +00005475fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005476rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5477LIBS=$ac_check_lib_save_LIBS
Patrik Stridvallea584721998-11-01 16:22:07 +00005478fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005479echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005480echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5481if test $ac_cv_lib_nsl_gethostbyname = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005482 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005483#define HAVE_LIBNSL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005484_ACEOF
Ron Recorde977d6c1999-09-05 12:32:05 +00005485
Ulrich Weigand2e8e2332000-12-27 18:49:08 +00005486 LIBS="-lnsl $LIBS"
5487
Ron Recorde977d6c1999-09-05 12:32:05 +00005488fi
5489
Patrik Stridvallea584721998-11-01 16:22:07 +00005490fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005491done
5492
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005493
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005494for ac_func in connect
5495do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005496as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005497echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005498echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5499if eval "test \"\${$as_ac_var+set}\" = set"; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005501else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005502 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005503#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005504/* confdefs.h. */
5505_ACEOF
5506cat confdefs.h >>conftest.$ac_ext
5507cat >>conftest.$ac_ext <<_ACEOF
5508/* end confdefs.h. */
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005509/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005510 which can conflict with char $ac_func (); below.
5511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5512 <limits.h> exists even on freestanding compilers. */
5513#ifdef __STDC__
5514# include <limits.h>
5515#else
5516# include <assert.h>
5517#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005518/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005519#ifdef __cplusplus
5520extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005521{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005522#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005523/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005524 builtin and then its argument prototype would still apply. */
5525char $ac_func ();
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005526/* The GNU C library defines this for functions which it implements
5527 to always fail with ENOSYS. Some functions are actually named
5528 something starting with __ and the normal name is an alias. */
5529#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5530choke me
5531#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005532char (*f) () = $ac_func;
5533#endif
5534#ifdef __cplusplus
5535}
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005536#endif
5537
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005538int
5539main ()
5540{
5541return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005542 ;
5543 return 0;
5544}
5545_ACEOF
5546rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005547if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005548 (eval $ac_link) 2>&5
5549 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005551 (exit $ac_status); } &&
5552 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005554 (eval $ac_try) 2>&5
5555 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005557 (exit $ac_status); }; }; then
5558 eval "$as_ac_var=yes"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005559else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005560 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005561sed 's/^/| /' conftest.$ac_ext >&5
5562
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005563eval "$as_ac_var=no"
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005564fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005565rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005566fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005568echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5569if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005570 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005571#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005572_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005573
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005574else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005575
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005576echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005577echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
5578if test "${ac_cv_lib_socket_connect+set}" = set; then
5579 echo $ECHO_N "(cached) $ECHO_C" >&6
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005580else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005581 ac_check_lib_save_LIBS=$LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005582LIBS="-lsocket $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005583cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005584#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005585/* confdefs.h. */
5586_ACEOF
5587cat confdefs.h >>conftest.$ac_ext
5588cat >>conftest.$ac_ext <<_ACEOF
5589/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005590
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005591/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005592#ifdef __cplusplus
5593extern "C"
5594#endif
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005595/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005596 builtin and then its argument prototype would still apply. */
5597char connect ();
5598int
5599main ()
5600{
5601connect ();
5602 ;
5603 return 0;
5604}
5605_ACEOF
5606rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005607if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005608 (eval $ac_link) 2>&5
5609 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005611 (exit $ac_status); } &&
5612 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005614 (eval $ac_try) 2>&5
5615 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005617 (exit $ac_status); }; }; then
5618 ac_cv_lib_socket_connect=yes
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005619else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005620 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005621sed 's/^/| /' conftest.$ac_ext >&5
5622
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005623ac_cv_lib_socket_connect=no
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005624fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005625rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5626LIBS=$ac_check_lib_save_LIBS
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005627fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005628echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005629echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
5630if test $ac_cv_lib_socket_connect = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005631 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005632#define HAVE_LIBSOCKET 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005633_ACEOF
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005634
5635 LIBS="-lsocket $LIBS"
5636
Ulrich Weigand715a55e1999-04-18 13:19:56 +00005637fi
5638
5639fi
Marcus Meissnerf070fda1999-04-24 12:02:14 +00005640done
5641
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005642
Alexandre Julliardc5552742002-04-03 20:24:44 +00005643for ac_func in inet_aton
5644do
5645as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005646echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005647echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
5648if eval "test \"\${$as_ac_var+set}\" = set"; then
5649 echo $ECHO_N "(cached) $ECHO_C" >&6
5650else
5651 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005652#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005653/* confdefs.h. */
5654_ACEOF
5655cat confdefs.h >>conftest.$ac_ext
5656cat >>conftest.$ac_ext <<_ACEOF
5657/* end confdefs.h. */
Alexandre Julliardc5552742002-04-03 20:24:44 +00005658/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005659 which can conflict with char $ac_func (); below.
5660 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5661 <limits.h> exists even on freestanding compilers. */
5662#ifdef __STDC__
5663# include <limits.h>
5664#else
5665# include <assert.h>
5666#endif
Alexandre Julliardc5552742002-04-03 20:24:44 +00005667/* Override any gcc2 internal prototype to avoid an error. */
5668#ifdef __cplusplus
5669extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005670{
Alexandre Julliardc5552742002-04-03 20:24:44 +00005671#endif
5672/* We use char because int might match the return type of a gcc2
5673 builtin and then its argument prototype would still apply. */
5674char $ac_func ();
Alexandre Julliardc5552742002-04-03 20:24:44 +00005675/* The GNU C library defines this for functions which it implements
5676 to always fail with ENOSYS. Some functions are actually named
5677 something starting with __ and the normal name is an alias. */
5678#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
5679choke me
5680#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005681char (*f) () = $ac_func;
5682#endif
5683#ifdef __cplusplus
5684}
Alexandre Julliardc5552742002-04-03 20:24:44 +00005685#endif
5686
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005687int
5688main ()
5689{
5690return f != $ac_func;
Alexandre Julliardc5552742002-04-03 20:24:44 +00005691 ;
5692 return 0;
5693}
5694_ACEOF
5695rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005696if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005697 (eval $ac_link) 2>&5
5698 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005700 (exit $ac_status); } &&
5701 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005703 (eval $ac_try) 2>&5
5704 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005706 (exit $ac_status); }; }; then
5707 eval "$as_ac_var=yes"
5708else
5709 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005710sed 's/^/| /' conftest.$ac_ext >&5
5711
Alexandre Julliardc5552742002-04-03 20:24:44 +00005712eval "$as_ac_var=no"
5713fi
5714rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5715fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005716echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardc5552742002-04-03 20:24:44 +00005717echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
5718if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005719 cat >>confdefs.h <<_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005720#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005721_ACEOF
Alexandre Julliardc5552742002-04-03 20:24:44 +00005722
5723else
5724
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005725echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005726echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
5727if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
5728 echo $ECHO_N "(cached) $ECHO_C" >&6
5729else
5730 ac_check_lib_save_LIBS=$LIBS
5731LIBS="-lresolv $LIBS"
5732cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005733#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005734/* confdefs.h. */
5735_ACEOF
5736cat confdefs.h >>conftest.$ac_ext
5737cat >>conftest.$ac_ext <<_ACEOF
5738/* end confdefs.h. */
Francois Gouget3b943bc2002-04-01 21:05:15 +00005739
5740/* Override any gcc2 internal prototype to avoid an error. */
5741#ifdef __cplusplus
5742extern "C"
5743#endif
5744/* We use char because int might match the return type of a gcc2
5745 builtin and then its argument prototype would still apply. */
5746char inet_aton ();
5747int
5748main ()
5749{
5750inet_aton ();
5751 ;
5752 return 0;
5753}
5754_ACEOF
5755rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005756if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005757 (eval $ac_link) 2>&5
5758 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005760 (exit $ac_status); } &&
5761 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005763 (eval $ac_try) 2>&5
5764 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005766 (exit $ac_status); }; }; then
5767 ac_cv_lib_resolv_inet_aton=yes
5768else
5769 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005770sed 's/^/| /' conftest.$ac_ext >&5
5771
Francois Gouget3b943bc2002-04-01 21:05:15 +00005772ac_cv_lib_resolv_inet_aton=no
5773fi
5774rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5775LIBS=$ac_check_lib_save_LIBS
5776fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005777echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
Francois Gouget3b943bc2002-04-01 21:05:15 +00005778echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
5779if test $ac_cv_lib_resolv_inet_aton = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005780 cat >>confdefs.h <<_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005781#define HAVE_LIBRESOLV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005782_ACEOF
Francois Gouget3b943bc2002-04-01 21:05:15 +00005783
5784 LIBS="-lresolv $LIBS"
5785
5786fi
5787
Alexandre Julliardc5552742002-04-03 20:24:44 +00005788fi
5789done
5790
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005791
5792echo "$as_me:$LINENO: checking for _xpg4_setrunelocale in -lxpg4" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005793echo $ECHO_N "checking for _xpg4_setrunelocale in -lxpg4... $ECHO_C" >&6
5794if test "${ac_cv_lib_xpg4__xpg4_setrunelocale+set}" = set; then
5795 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005796else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005797 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005798LIBS="-lxpg4 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005799cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005800#line $LINENO "configure"
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 Julliardf5818d22002-02-14 19:47:29 +00005806
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005807/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005808#ifdef __cplusplus
5809extern "C"
5810#endif
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005811/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005812 builtin and then its argument prototype would still apply. */
5813char _xpg4_setrunelocale ();
5814int
5815main ()
5816{
5817_xpg4_setrunelocale ();
5818 ;
5819 return 0;
5820}
5821_ACEOF
5822rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005823if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005824 (eval $ac_link) 2>&5
5825 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005827 (exit $ac_status); } &&
5828 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005830 (eval $ac_try) 2>&5
5831 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005833 (exit $ac_status); }; }; then
5834 ac_cv_lib_xpg4__xpg4_setrunelocale=yes
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005835else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005836 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005837sed 's/^/| /' conftest.$ac_ext >&5
5838
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005839ac_cv_lib_xpg4__xpg4_setrunelocale=no
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005840fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005841rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5842LIBS=$ac_check_lib_save_LIBS
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005843fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005844echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4__xpg4_setrunelocale" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005845echo "${ECHO_T}$ac_cv_lib_xpg4__xpg4_setrunelocale" >&6
5846if test $ac_cv_lib_xpg4__xpg4_setrunelocale = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005847 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005848#define HAVE_LIBXPG4 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005849_ACEOF
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005850
5851 LIBS="-lxpg4 $LIBS"
5852
Alexandre Julliardd30dfd21998-09-27 18:28:36 +00005853fi
5854
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005855
5856echo "$as_me:$LINENO: checking for mmap in -lmmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005857echo $ECHO_N "checking for mmap in -lmmap... $ECHO_C" >&6
5858if test "${ac_cv_lib_mmap_mmap+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005860else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005861 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005862LIBS="-lmmap $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005863cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005864#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005865/* confdefs.h. */
5866_ACEOF
5867cat confdefs.h >>conftest.$ac_ext
5868cat >>conftest.$ac_ext <<_ACEOF
5869/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005870
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005871/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005872#ifdef __cplusplus
5873extern "C"
5874#endif
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005875/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005876 builtin and then its argument prototype would still apply. */
5877char mmap ();
5878int
5879main ()
5880{
5881mmap ();
5882 ;
5883 return 0;
5884}
5885_ACEOF
5886rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005887if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005888 (eval $ac_link) 2>&5
5889 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005891 (exit $ac_status); } &&
5892 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005894 (eval $ac_try) 2>&5
5895 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005897 (exit $ac_status); }; }; then
5898 ac_cv_lib_mmap_mmap=yes
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005899else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005900 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005901sed 's/^/| /' conftest.$ac_ext >&5
5902
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005903ac_cv_lib_mmap_mmap=no
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005904fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005905rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
5906LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005907fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005908echo "$as_me:$LINENO: result: $ac_cv_lib_mmap_mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005909echo "${ECHO_T}$ac_cv_lib_mmap_mmap" >&6
5910if test $ac_cv_lib_mmap_mmap = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005911 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005912#define HAVE_LIBMMAP 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005913_ACEOF
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005914
5915 LIBS="-lmmap $LIBS"
5916
Alexandre Julliard0e7bd081999-05-02 11:46:02 +00005917fi
5918
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005919
Alexandre Julliardfa3a5362002-05-09 01:49:54 +00005920JPEGLIB=""
Alexandre Julliard562089b2001-12-31 22:28:35 +00005921
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005922echo "$as_me:$LINENO: checking for egrep" >&5
5923echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5924if test "${ac_cv_prog_egrep+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5926else
5927 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5928 then ac_cv_prog_egrep='grep -E'
5929 else ac_cv_prog_egrep='egrep'
5930 fi
5931fi
5932echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5933echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5934 EGREP=$ac_cv_prog_egrep
5935
5936
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005937echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5938echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
5939if test "${ac_cv_header_stdc+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005940 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005941else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005942 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005943#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005944/* confdefs.h. */
5945_ACEOF
5946cat confdefs.h >>conftest.$ac_ext
5947cat >>conftest.$ac_ext <<_ACEOF
5948/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005949#include <stdlib.h>
5950#include <stdarg.h>
5951#include <string.h>
5952#include <float.h>
5953
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005954int
5955main ()
5956{
5957
5958 ;
5959 return 0;
5960}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005961_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005962rm -f conftest.$ac_objext
5963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5964 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005965 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005967 (exit $ac_status); } &&
5968 { ac_try='test -s conftest.$ac_objext'
5969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5970 (eval $ac_try) 2>&5
5971 ac_status=$?
5972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5973 (exit $ac_status); }; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005974 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005975else
5976 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005977sed 's/^/| /' conftest.$ac_ext >&5
5978
5979ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005980fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005981rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005982
5983if test $ac_cv_header_stdc = yes; then
5984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5985 cat >conftest.$ac_ext <<_ACEOF
5986#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005987/* confdefs.h. */
5988_ACEOF
5989cat confdefs.h >>conftest.$ac_ext
5990cat >>conftest.$ac_ext <<_ACEOF
5991/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005992#include <string.h>
5993
5994_ACEOF
5995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00005996 $EGREP "memchr" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005997 :
5998else
5999 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00006000fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006001rm -f conftest*
6002
6003fi
6004
6005if test $ac_cv_header_stdc = yes; then
6006 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6007 cat >conftest.$ac_ext <<_ACEOF
6008#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006009/* confdefs.h. */
6010_ACEOF
6011cat confdefs.h >>conftest.$ac_ext
6012cat >>conftest.$ac_ext <<_ACEOF
6013/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006014#include <stdlib.h>
6015
6016_ACEOF
6017if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006018 $EGREP "free" >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006019 :
6020else
6021 ac_cv_header_stdc=no
6022fi
6023rm -f conftest*
6024
6025fi
6026
6027if test $ac_cv_header_stdc = yes; then
6028 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6029 if test "$cross_compiling" = yes; then
6030 :
6031else
6032 cat >conftest.$ac_ext <<_ACEOF
6033#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006034/* confdefs.h. */
6035_ACEOF
6036cat confdefs.h >>conftest.$ac_ext
6037cat >>conftest.$ac_ext <<_ACEOF
6038/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006039#include <ctype.h>
6040#if ((' ' & 0x0FF) == 0x020)
6041# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6042# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6043#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006044# define ISLOWER(c) \
6045 (('a' <= (c) && (c) <= 'i') \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006046 || ('j' <= (c) && (c) <= 'r') \
6047 || ('s' <= (c) && (c) <= 'z'))
6048# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6049#endif
6050
6051#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6052int
6053main ()
6054{
6055 int i;
6056 for (i = 0; i < 256; i++)
6057 if (XOR (islower (i), ISLOWER (i))
6058 || toupper (i) != TOUPPER (i))
6059 exit(2);
6060 exit (0);
6061}
6062_ACEOF
6063rm -f conftest$ac_exeext
6064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6065 (eval $ac_link) 2>&5
6066 ac_status=$?
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6070 (eval $ac_try) 2>&5
6071 ac_status=$?
6072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6073 (exit $ac_status); }; }; then
6074 :
6075else
6076 echo "$as_me: program exited with status $ac_status" >&5
6077echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006078sed 's/^/| /' conftest.$ac_ext >&5
6079
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006080( exit $ac_status )
6081ac_cv_header_stdc=no
6082fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006083rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006084fi
6085fi
6086fi
6087echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6088echo "${ECHO_T}$ac_cv_header_stdc" >&6
6089if test $ac_cv_header_stdc = yes; then
6090
6091cat >>confdefs.h <<\_ACEOF
6092#define STDC_HEADERS 1
6093_ACEOF
6094
6095fi
6096
6097# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6108 inttypes.h stdint.h unistd.h
6109do
6110as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6111echo "$as_me:$LINENO: checking for $ac_header" >&5
6112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6113if eval "test \"\${$as_ac_Header+set}\" = set"; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6115else
6116 cat >conftest.$ac_ext <<_ACEOF
6117#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006118/* confdefs.h. */
6119_ACEOF
6120cat confdefs.h >>conftest.$ac_ext
6121cat >>conftest.$ac_ext <<_ACEOF
6122/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006123$ac_includes_default
6124
6125#include <$ac_header>
6126_ACEOF
6127rm -f conftest.$ac_objext
6128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6129 (eval $ac_compile) 2>&5
6130 ac_status=$?
6131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } &&
6133 { ac_try='test -s conftest.$ac_objext'
6134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6135 (eval $ac_try) 2>&5
6136 ac_status=$?
6137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6138 (exit $ac_status); }; }; then
6139 eval "$as_ac_Header=yes"
6140else
6141 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006142sed 's/^/| /' conftest.$ac_ext >&5
6143
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006144eval "$as_ac_Header=no"
6145fi
6146rm -f conftest.$ac_objext conftest.$ac_ext
6147fi
6148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6150if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006151 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006152#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006153_ACEOF
6154
6155fi
6156
6157done
6158
6159
6160
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006161for ac_header in jpeglib.h
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006162do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006163as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006164if eval "test \"\${$as_ac_Header+set}\" = set"; then
6165 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006166echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6167if eval "test \"\${$as_ac_Header+set}\" = set"; then
6168 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006169fi
6170echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6171echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006172else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006173 # Is the header compilable?
6174echo "$as_me:$LINENO: checking $ac_header usability" >&5
6175echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6176cat >conftest.$ac_ext <<_ACEOF
6177#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006178/* confdefs.h. */
6179_ACEOF
6180cat confdefs.h >>conftest.$ac_ext
6181cat >>conftest.$ac_ext <<_ACEOF
6182/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006183$ac_includes_default
6184#include <$ac_header>
6185_ACEOF
6186rm -f conftest.$ac_objext
6187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6188 (eval $ac_compile) 2>&5
6189 ac_status=$?
6190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6191 (exit $ac_status); } &&
6192 { ac_try='test -s conftest.$ac_objext'
6193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6194 (eval $ac_try) 2>&5
6195 ac_status=$?
6196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6197 (exit $ac_status); }; }; then
6198 ac_header_compiler=yes
6199else
6200 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006201sed 's/^/| /' conftest.$ac_ext >&5
6202
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006203ac_header_compiler=no
6204fi
6205rm -f conftest.$ac_objext conftest.$ac_ext
6206echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6207echo "${ECHO_T}$ac_header_compiler" >&6
6208
6209# Is the header present?
6210echo "$as_me:$LINENO: checking $ac_header presence" >&5
6211echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6212cat >conftest.$ac_ext <<_ACEOF
6213#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006214/* confdefs.h. */
6215_ACEOF
6216cat confdefs.h >>conftest.$ac_ext
6217cat >>conftest.$ac_ext <<_ACEOF
6218/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006219#include <$ac_header>
6220_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006221if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006222 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6223 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006224 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006225 rm -f conftest.er1
6226 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006228 (exit $ac_status); } >/dev/null; then
6229 if test -s conftest.err; then
6230 ac_cpp_err=$ac_c_preproc_warn_flag
6231 else
6232 ac_cpp_err=
6233 fi
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006234else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006235 ac_cpp_err=yes
6236fi
6237if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006238 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006239else
6240 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006241sed 's/^/| /' conftest.$ac_ext >&5
6242
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006243 ac_header_preproc=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006244fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006245rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006246echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6247echo "${ECHO_T}$ac_header_preproc" >&6
6248
6249# So? What about this header?
6250case $ac_header_compiler:$ac_header_preproc in
6251 yes:no )
6252 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6253echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6254 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006255echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6256 (
6257 cat <<\_ASBOX
6258## ------------------------------------ ##
6259## Report this to bug-autoconf@gnu.org. ##
6260## ------------------------------------ ##
6261_ASBOX
6262 ) |
6263 sed "s/^/$as_me: WARNING: /" >&2
6264 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006265 no:yes )
6266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6267echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6269echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6270 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006271echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6272 (
6273 cat <<\_ASBOX
6274## ------------------------------------ ##
6275## Report this to bug-autoconf@gnu.org. ##
6276## ------------------------------------ ##
6277_ASBOX
6278 ) |
6279 sed "s/^/$as_me: WARNING: /" >&2
6280 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006281esac
6282echo "$as_me:$LINENO: checking for $ac_header" >&5
6283echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6284if eval "test \"\${$as_ac_Header+set}\" = set"; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6286else
6287 eval "$as_ac_Header=$ac_header_preproc"
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006288fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006289echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006290echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006291
6292fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006293if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006294 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006295#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006296_ACEOF
6297 echo "$as_me:$LINENO: checking for jpeg_start_decompress in -ljpeg" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006298echo $ECHO_N "checking for jpeg_start_decompress in -ljpeg... $ECHO_C" >&6
6299if test "${ac_cv_lib_jpeg_jpeg_start_decompress+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006301else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006302 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006303LIBS="-ljpeg $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006304cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006305#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006306/* confdefs.h. */
6307_ACEOF
6308cat confdefs.h >>conftest.$ac_ext
6309cat >>conftest.$ac_ext <<_ACEOF
6310/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006311
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006312/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006313#ifdef __cplusplus
6314extern "C"
6315#endif
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006316/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006317 builtin and then its argument prototype would still apply. */
6318char jpeg_start_decompress ();
6319int
6320main ()
6321{
6322jpeg_start_decompress ();
6323 ;
6324 return 0;
6325}
6326_ACEOF
6327rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006328if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006329 (eval $ac_link) 2>&5
6330 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006332 (exit $ac_status); } &&
6333 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006335 (eval $ac_try) 2>&5
6336 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006338 (exit $ac_status); }; }; then
6339 ac_cv_lib_jpeg_jpeg_start_decompress=yes
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006340else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006341 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006342sed 's/^/| /' conftest.$ac_ext >&5
6343
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006344ac_cv_lib_jpeg_jpeg_start_decompress=no
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006345fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006346rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6347LIBS=$ac_check_lib_save_LIBS
6348fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006349echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_start_decompress" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006350echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_start_decompress" >&6
6351if test $ac_cv_lib_jpeg_jpeg_start_decompress = yes; then
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006352
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006353cat >>confdefs.h <<\_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006354#define HAVE_LIBJPEG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006355_ACEOF
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006356
6357 JPEGLIB="-ljpeg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006358
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006359fi
6360
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006361
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006362fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006363
Marcus Meissner252b0fe2001-08-06 18:52:14 +00006364done
6365
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006366
Marcus Meissner728bedc2003-01-09 06:04:33 +00006367GIFLIB=""
6368
6369
6370for ac_header in gif_lib.h
6371do
6372as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6373if eval "test \"\${$as_ac_Header+set}\" = set"; then
6374 echo "$as_me:$LINENO: checking for $ac_header" >&5
6375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6376if eval "test \"\${$as_ac_Header+set}\" = set"; then
6377 echo $ECHO_N "(cached) $ECHO_C" >&6
6378fi
6379echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6380echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6381else
6382 # Is the header compilable?
6383echo "$as_me:$LINENO: checking $ac_header usability" >&5
6384echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6385cat >conftest.$ac_ext <<_ACEOF
6386#line $LINENO "configure"
6387/* confdefs.h. */
6388_ACEOF
6389cat confdefs.h >>conftest.$ac_ext
6390cat >>conftest.$ac_ext <<_ACEOF
6391/* end confdefs.h. */
6392$ac_includes_default
6393#include <$ac_header>
6394_ACEOF
6395rm -f conftest.$ac_objext
6396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6397 (eval $ac_compile) 2>&5
6398 ac_status=$?
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } &&
6401 { ac_try='test -s conftest.$ac_objext'
6402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6403 (eval $ac_try) 2>&5
6404 ac_status=$?
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); }; }; then
6407 ac_header_compiler=yes
6408else
6409 echo "$as_me: failed program was:" >&5
6410sed 's/^/| /' conftest.$ac_ext >&5
6411
6412ac_header_compiler=no
6413fi
6414rm -f conftest.$ac_objext conftest.$ac_ext
6415echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6416echo "${ECHO_T}$ac_header_compiler" >&6
6417
6418# Is the header present?
6419echo "$as_me:$LINENO: checking $ac_header presence" >&5
6420echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6421cat >conftest.$ac_ext <<_ACEOF
6422#line $LINENO "configure"
6423/* confdefs.h. */
6424_ACEOF
6425cat confdefs.h >>conftest.$ac_ext
6426cat >>conftest.$ac_ext <<_ACEOF
6427/* end confdefs.h. */
6428#include <$ac_header>
6429_ACEOF
6430if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6431 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6432 ac_status=$?
6433 grep -v '^ *+' conftest.er1 >conftest.err
6434 rm -f conftest.er1
6435 cat conftest.err >&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); } >/dev/null; then
6438 if test -s conftest.err; then
6439 ac_cpp_err=$ac_c_preproc_warn_flag
6440 else
6441 ac_cpp_err=
6442 fi
6443else
6444 ac_cpp_err=yes
6445fi
6446if test -z "$ac_cpp_err"; then
6447 ac_header_preproc=yes
6448else
6449 echo "$as_me: failed program was:" >&5
6450sed 's/^/| /' conftest.$ac_ext >&5
6451
6452 ac_header_preproc=no
6453fi
6454rm -f conftest.err conftest.$ac_ext
6455echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6456echo "${ECHO_T}$ac_header_preproc" >&6
6457
6458# So? What about this header?
6459case $ac_header_compiler:$ac_header_preproc in
6460 yes:no )
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6462echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6464echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6465 (
6466 cat <<\_ASBOX
6467## ------------------------------------ ##
6468## Report this to bug-autoconf@gnu.org. ##
6469## ------------------------------------ ##
6470_ASBOX
6471 ) |
6472 sed "s/^/$as_me: WARNING: /" >&2
6473 ;;
6474 no:yes )
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6476echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6478echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6480echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6481 (
6482 cat <<\_ASBOX
6483## ------------------------------------ ##
6484## Report this to bug-autoconf@gnu.org. ##
6485## ------------------------------------ ##
6486_ASBOX
6487 ) |
6488 sed "s/^/$as_me: WARNING: /" >&2
6489 ;;
6490esac
6491echo "$as_me:$LINENO: checking for $ac_header" >&5
6492echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6493if eval "test \"\${$as_ac_Header+set}\" = set"; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495else
6496 eval "$as_ac_Header=$ac_header_preproc"
6497fi
6498echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6499echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6500
6501fi
6502if test `eval echo '${'$as_ac_Header'}'` = yes; then
6503 cat >>confdefs.h <<_ACEOF
6504#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6505_ACEOF
6506 echo "$as_me:$LINENO: checking for DGifOpen in -lungif" >&5
6507echo $ECHO_N "checking for DGifOpen in -lungif... $ECHO_C" >&6
6508if test "${ac_cv_lib_ungif_DGifOpen+set}" = set; then
6509 echo $ECHO_N "(cached) $ECHO_C" >&6
6510else
6511 ac_check_lib_save_LIBS=$LIBS
6512LIBS="-lungif $LIBS"
6513cat >conftest.$ac_ext <<_ACEOF
6514#line $LINENO "configure"
6515/* confdefs.h. */
6516_ACEOF
6517cat confdefs.h >>conftest.$ac_ext
6518cat >>conftest.$ac_ext <<_ACEOF
6519/* end confdefs.h. */
6520
6521/* Override any gcc2 internal prototype to avoid an error. */
6522#ifdef __cplusplus
6523extern "C"
6524#endif
6525/* We use char because int might match the return type of a gcc2
6526 builtin and then its argument prototype would still apply. */
6527char DGifOpen ();
6528int
6529main ()
6530{
6531DGifOpen ();
6532 ;
6533 return 0;
6534}
6535_ACEOF
6536rm -f conftest.$ac_objext conftest$ac_exeext
6537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6538 (eval $ac_link) 2>&5
6539 ac_status=$?
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); } &&
6542 { ac_try='test -s conftest$ac_exeext'
6543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6544 (eval $ac_try) 2>&5
6545 ac_status=$?
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); }; }; then
6548 ac_cv_lib_ungif_DGifOpen=yes
6549else
6550 echo "$as_me: failed program was:" >&5
6551sed 's/^/| /' conftest.$ac_ext >&5
6552
6553ac_cv_lib_ungif_DGifOpen=no
6554fi
6555rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6556LIBS=$ac_check_lib_save_LIBS
6557fi
6558echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_DGifOpen" >&5
6559echo "${ECHO_T}$ac_cv_lib_ungif_DGifOpen" >&6
6560if test $ac_cv_lib_ungif_DGifOpen = yes; then
6561
6562cat >>confdefs.h <<\_ACEOF
6563#define HAVE_LIBGIF 1
6564_ACEOF
6565
6566 GIFLIB="-lungif"
6567else
6568 echo "$as_me:$LINENO: checking for DGifOpen in -lgif" >&5
6569echo $ECHO_N "checking for DGifOpen in -lgif... $ECHO_C" >&6
6570if test "${ac_cv_lib_gif_DGifOpen+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6572else
6573 ac_check_lib_save_LIBS=$LIBS
6574LIBS="-lgif $LIBS"
6575cat >conftest.$ac_ext <<_ACEOF
6576#line $LINENO "configure"
6577/* confdefs.h. */
6578_ACEOF
6579cat confdefs.h >>conftest.$ac_ext
6580cat >>conftest.$ac_ext <<_ACEOF
6581/* end confdefs.h. */
6582
6583/* Override any gcc2 internal prototype to avoid an error. */
6584#ifdef __cplusplus
6585extern "C"
6586#endif
6587/* We use char because int might match the return type of a gcc2
6588 builtin and then its argument prototype would still apply. */
6589char DGifOpen ();
6590int
6591main ()
6592{
6593DGifOpen ();
6594 ;
6595 return 0;
6596}
6597_ACEOF
6598rm -f conftest.$ac_objext conftest$ac_exeext
6599if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6600 (eval $ac_link) 2>&5
6601 ac_status=$?
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -s conftest$ac_exeext'
6605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6606 (eval $ac_try) 2>&5
6607 ac_status=$?
6608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6609 (exit $ac_status); }; }; then
6610 ac_cv_lib_gif_DGifOpen=yes
6611else
6612 echo "$as_me: failed program was:" >&5
6613sed 's/^/| /' conftest.$ac_ext >&5
6614
6615ac_cv_lib_gif_DGifOpen=no
6616fi
6617rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6618LIBS=$ac_check_lib_save_LIBS
6619fi
6620echo "$as_me:$LINENO: result: $ac_cv_lib_gif_DGifOpen" >&5
6621echo "${ECHO_T}$ac_cv_lib_gif_DGifOpen" >&6
6622if test $ac_cv_lib_gif_DGifOpen = yes; then
6623 cat >>confdefs.h <<\_ACEOF
6624#define HAVE_LIBGIF 1
6625_ACEOF
6626
6627 GIFLIB="-lgif"
6628fi
6629
6630fi
6631
6632fi
6633
6634done
6635
6636
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006637
6638
Patrik Stridvall2941a212000-04-25 20:34:22 +00006639XFILES=""
Marcus Meissner10ad97c2000-04-09 14:30:50 +00006640
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00006641OPENGLFILES=""
6642
Marcus Meissnerb63ab442001-06-08 19:02:57 +00006643GLU32FILES=""
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00006644
6645OPENGL_LIBS=""
Patrik Stridvallea584721998-11-01 16:22:07 +00006646if test "$have_x" = "yes"
6647then
Patrik Stridvall24110281999-02-04 10:09:54 +00006648 XLIB="-lXext -lX11"
Ove Kaaven1eb593c1999-02-14 09:34:46 +00006649 ac_save_CPPFLAGS="$CPPFLAGS"
6650 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00006651
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006652
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006653for ac_header in X11/Xlib.h
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006654do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006655as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006656if eval "test \"\${$as_ac_Header+set}\" = set"; then
6657 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006658echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6659if eval "test \"\${$as_ac_Header+set}\" = set"; then
6660 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006661fi
6662echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6663echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006664else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006665 # Is the header compilable?
6666echo "$as_me:$LINENO: checking $ac_header usability" >&5
6667echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6668cat >conftest.$ac_ext <<_ACEOF
6669#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006670/* confdefs.h. */
6671_ACEOF
6672cat confdefs.h >>conftest.$ac_ext
6673cat >>conftest.$ac_ext <<_ACEOF
6674/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006675$ac_includes_default
6676#include <$ac_header>
6677_ACEOF
6678rm -f conftest.$ac_objext
6679if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6680 (eval $ac_compile) 2>&5
6681 ac_status=$?
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } &&
6684 { ac_try='test -s conftest.$ac_objext'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 (eval $ac_try) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; }; then
6690 ac_header_compiler=yes
6691else
6692 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006693sed 's/^/| /' conftest.$ac_ext >&5
6694
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006695ac_header_compiler=no
6696fi
6697rm -f conftest.$ac_objext conftest.$ac_ext
6698echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6699echo "${ECHO_T}$ac_header_compiler" >&6
6700
6701# Is the header present?
6702echo "$as_me:$LINENO: checking $ac_header presence" >&5
6703echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6704cat >conftest.$ac_ext <<_ACEOF
6705#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006706/* confdefs.h. */
6707_ACEOF
6708cat confdefs.h >>conftest.$ac_ext
6709cat >>conftest.$ac_ext <<_ACEOF
6710/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006711#include <$ac_header>
6712_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006713if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006714 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6715 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00006716 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006717 rm -f conftest.er1
6718 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006720 (exit $ac_status); } >/dev/null; then
6721 if test -s conftest.err; then
6722 ac_cpp_err=$ac_c_preproc_warn_flag
6723 else
6724 ac_cpp_err=
6725 fi
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006726else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006727 ac_cpp_err=yes
6728fi
6729if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006730 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006731else
6732 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006733sed 's/^/| /' conftest.$ac_ext >&5
6734
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006735 ac_header_preproc=no
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006736fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006737rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006738echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6739echo "${ECHO_T}$ac_header_preproc" >&6
6740
6741# So? What about this header?
6742case $ac_header_compiler:$ac_header_preproc in
6743 yes:no )
6744 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6745echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006747echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6748 (
6749 cat <<\_ASBOX
6750## ------------------------------------ ##
6751## Report this to bug-autoconf@gnu.org. ##
6752## ------------------------------------ ##
6753_ASBOX
6754 ) |
6755 sed "s/^/$as_me: WARNING: /" >&2
6756 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006757 no:yes )
6758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6759echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6761echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006763echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6764 (
6765 cat <<\_ASBOX
6766## ------------------------------------ ##
6767## Report this to bug-autoconf@gnu.org. ##
6768## ------------------------------------ ##
6769_ASBOX
6770 ) |
6771 sed "s/^/$as_me: WARNING: /" >&2
6772 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006773esac
6774echo "$as_me:$LINENO: checking for $ac_header" >&5
6775echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6776if eval "test \"\${$as_ac_Header+set}\" = set"; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6778else
6779 eval "$as_ac_Header=$ac_header_preproc"
Lionel Ulmera1d6d241999-01-30 15:54:43 +00006780fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006781echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006782echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006783
6784fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006785if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006786 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006787#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006788_ACEOF
6789
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006790
6791for ac_header in X11/XKBlib.h
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006792do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006793as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006794echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006795echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6796if eval "test \"\${$as_ac_Header+set}\" = set"; then
6797 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006798else
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006799 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006800#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006801/* confdefs.h. */
6802_ACEOF
6803cat confdefs.h >>conftest.$ac_ext
6804cat >>conftest.$ac_ext <<_ACEOF
6805/* end confdefs.h. */
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006806#include <X11/Xlib.h>
6807
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006808#include <$ac_header>
6809_ACEOF
6810rm -f conftest.$ac_objext
6811if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6812 (eval $ac_compile) 2>&5
6813 ac_status=$?
6814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6815 (exit $ac_status); } &&
6816 { ac_try='test -s conftest.$ac_objext'
6817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6818 (eval $ac_try) 2>&5
6819 ac_status=$?
6820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6821 (exit $ac_status); }; }; then
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006822 eval "$as_ac_Header=yes"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006823else
6824 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006825sed 's/^/| /' conftest.$ac_ext >&5
6826
Gregg Mattinson044b5c42002-07-19 03:16:51 +00006827eval "$as_ac_Header=no"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006828fi
6829rm -f conftest.$ac_objext conftest.$ac_ext
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006830fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006831echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006832echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6833if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006834 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006836_ACEOF
6837 echo "$as_me:$LINENO: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006838echo $ECHO_N "checking for XkbQueryExtension in -lX11... $ECHO_C" >&6
6839if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then
6840 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006841else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006842 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00006843LIBS="-lX11 $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006844cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006845#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006846/* confdefs.h. */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006851
Patrik Stridvall24110281999-02-04 10:09:54 +00006852/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006853#ifdef __cplusplus
6854extern "C"
6855#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00006856/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006857 builtin and then its argument prototype would still apply. */
6858char XkbQueryExtension ();
6859int
6860main ()
6861{
6862XkbQueryExtension ();
6863 ;
6864 return 0;
6865}
6866_ACEOF
6867rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006868if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006869 (eval $ac_link) 2>&5
6870 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006872 (exit $ac_status); } &&
6873 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006875 (eval $ac_try) 2>&5
6876 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006878 (exit $ac_status); }; }; then
6879 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00006880else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006881 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006882sed 's/^/| /' conftest.$ac_ext >&5
6883
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006884ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00006885fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006886rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6887LIBS=$ac_check_lib_save_LIBS
6888fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006889echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006890echo "${ECHO_T}$ac_cv_lib_X11_XkbQueryExtension" >&6
6891if test $ac_cv_lib_X11_XkbQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00006892
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006893cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00006894#define HAVE_XKB 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006895_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00006896
Patrik Stridvall24110281999-02-04 10:09:54 +00006897fi
6898
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006899
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006900else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006901 { echo "$as_me:$LINENO: WARNING: Xkb extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006902echo "$as_me: WARNING: Xkb extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006903fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006904
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00006905done
6906
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006907
6908
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006909for ac_header in X11/extensions/XShm.h
Patrik Stridvall24110281999-02-04 10:09:54 +00006910do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006911as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006912echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006913echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6914if eval "test \"\${$as_ac_Header+set}\" = set"; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00006916else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006917 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006918#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006919/* confdefs.h. */
6920_ACEOF
6921cat confdefs.h >>conftest.$ac_ext
6922cat >>conftest.$ac_ext <<_ACEOF
6923/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006924#include <X11/Xlib.h>
6925
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006926#include <$ac_header>
6927_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006928rm -f conftest.$ac_objext
6929if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6930 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006931 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } &&
6934 { ac_try='test -s conftest.$ac_objext'
6935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6936 (eval $ac_try) 2>&5
6937 ac_status=$?
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006940 eval "$as_ac_Header=yes"
6941else
6942 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006943sed 's/^/| /' conftest.$ac_ext >&5
6944
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006945eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00006946fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006947rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00006948fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006949echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006950echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6951if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006952 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006953#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006954_ACEOF
6955 echo "$as_me:$LINENO: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006956echo $ECHO_N "checking for XShmQueryExtension in -lXext... $ECHO_C" >&6
6957if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then
6958 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00006959else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006960 ac_check_lib_save_LIBS=$LIBS
Francois Jacques5b6879c2000-07-28 23:04:54 +00006961LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006962cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006963#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00006964/* confdefs.h. */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006969
Francois Jacques5b6879c2000-07-28 23:04:54 +00006970/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006971#ifdef __cplusplus
6972extern "C"
6973#endif
Francois Jacques5b6879c2000-07-28 23:04:54 +00006974/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006975 builtin and then its argument prototype would still apply. */
6976char XShmQueryExtension ();
6977int
6978main ()
6979{
6980XShmQueryExtension ();
6981 ;
6982 return 0;
6983}
6984_ACEOF
6985rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006986if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006987 (eval $ac_link) 2>&5
6988 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006990 (exit $ac_status); } &&
6991 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006993 (eval $ac_try) 2>&5
6994 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00006995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006996 (exit $ac_status); }; }; then
6997 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00006998else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00006999 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007000sed 's/^/| /' conftest.$ac_ext >&5
7001
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007002ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00007003fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007004rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7005LIBS=$ac_check_lib_save_LIBS
7006fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007007echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007008echo "${ECHO_T}$ac_cv_lib_Xext_XShmQueryExtension" >&6
7009if test $ac_cv_lib_Xext_XShmQueryExtension = yes; then
Francois Jacques5b6879c2000-07-28 23:04:54 +00007010
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007011cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007012#define HAVE_LIBXXSHM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007013_ACEOF
Francois Jacques5b6879c2000-07-28 23:04:54 +00007014
Francois Jacques5b6879c2000-07-28 23:04:54 +00007015fi
7016
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007017
Francois Jacques5b6879c2000-07-28 23:04:54 +00007018else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007019 { echo "$as_me:$LINENO: WARNING: XShm extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007020echo "$as_me: WARNING: XShm extension not found, Wine will be built without it" >&2;}
Francois Jacques5b6879c2000-07-28 23:04:54 +00007021fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007022
Francois Jacques5b6879c2000-07-28 23:04:54 +00007023done
7024
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007025
7026
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007027for ac_header in X11/Xutil.h
7028do
7029as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7030echo "$as_me:$LINENO: checking for $ac_header" >&5
7031echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7032if eval "test \"\${$as_ac_Header+set}\" = set"; then
7033 echo $ECHO_N "(cached) $ECHO_C" >&6
7034else
7035 cat >conftest.$ac_ext <<_ACEOF
7036#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007037/* confdefs.h. */
7038_ACEOF
7039cat confdefs.h >>conftest.$ac_ext
7040cat >>conftest.$ac_ext <<_ACEOF
7041/* end confdefs.h. */
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007042#include <X11/Xlib.h>
7043
7044#include <$ac_header>
7045_ACEOF
7046rm -f conftest.$ac_objext
7047if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7048 (eval $ac_compile) 2>&5
7049 ac_status=$?
7050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7051 (exit $ac_status); } &&
7052 { ac_try='test -s conftest.$ac_objext'
7053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7054 (eval $ac_try) 2>&5
7055 ac_status=$?
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); }; }; then
7058 eval "$as_ac_Header=yes"
7059else
7060 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007061sed 's/^/| /' conftest.$ac_ext >&5
7062
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007063eval "$as_ac_Header=no"
7064fi
7065rm -f conftest.$ac_objext conftest.$ac_ext
7066fi
7067echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7068echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7069if test `eval echo '${'$as_ac_Header'}'` = yes; then
7070 cat >>confdefs.h <<_ACEOF
7071#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7072_ACEOF
7073
7074fi
7075
7076done
7077
7078
7079
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007080for ac_header in X11/extensions/shape.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00007081do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007082as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007083echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007084echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7085if eval "test \"\${$as_ac_Header+set}\" = set"; then
7086 echo $ECHO_N "(cached) $ECHO_C" >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00007087else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007088 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007089#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007090/* confdefs.h. */
7091_ACEOF
7092cat confdefs.h >>conftest.$ac_ext
7093cat >>conftest.$ac_ext <<_ACEOF
7094/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007095#include <X11/Xlib.h>
Gregg Mattinson044b5c42002-07-19 03:16:51 +00007096 #ifdef HAVE_X11_XUTIL_H
7097 # include <X11/Xutil.h>
7098 #endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007099
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007100#include <$ac_header>
7101_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007102rm -f conftest.$ac_objext
7103if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7104 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007105 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7107 (exit $ac_status); } &&
7108 { ac_try='test -s conftest.$ac_objext'
7109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7110 (eval $ac_try) 2>&5
7111 ac_status=$?
7112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007114 eval "$as_ac_Header=yes"
7115else
7116 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007117sed 's/^/| /' conftest.$ac_ext >&5
7118
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007119eval "$as_ac_Header=no"
Francois Jacques5b6879c2000-07-28 23:04:54 +00007120fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007121rm -f conftest.$ac_objext conftest.$ac_ext
Francois Jacques5b6879c2000-07-28 23:04:54 +00007122fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007123echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007124echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7125if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007126 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007127#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007128_ACEOF
7129 echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007130echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6
7131if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00007133else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007134 ac_check_lib_save_LIBS=$LIBS
Ove Kaavenc90fb252001-01-02 22:39:14 +00007135LIBS="-lXext $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007136cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007137#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007138/* confdefs.h. */
7139_ACEOF
7140cat confdefs.h >>conftest.$ac_ext
7141cat >>conftest.$ac_ext <<_ACEOF
7142/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007143
Ove Kaavenc90fb252001-01-02 22:39:14 +00007144/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007145#ifdef __cplusplus
7146extern "C"
7147#endif
Ove Kaavenc90fb252001-01-02 22:39:14 +00007148/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007149 builtin and then its argument prototype would still apply. */
7150char XShapeQueryExtension ();
7151int
7152main ()
7153{
7154XShapeQueryExtension ();
7155 ;
7156 return 0;
7157}
7158_ACEOF
7159rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007161 (eval $ac_link) 2>&5
7162 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007164 (exit $ac_status); } &&
7165 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007167 (eval $ac_try) 2>&5
7168 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007170 (exit $ac_status); }; }; then
7171 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00007172else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007173 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007174sed 's/^/| /' conftest.$ac_ext >&5
7175
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007176ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00007177fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007178rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7179LIBS=$ac_check_lib_save_LIBS
7180fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007181echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007182echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6
7183if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
Ove Kaavenc90fb252001-01-02 22:39:14 +00007184
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007185cat >>confdefs.h <<\_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007186#define HAVE_LIBXSHAPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007187_ACEOF
Ove Kaavenc90fb252001-01-02 22:39:14 +00007188
Ove Kaavenc90fb252001-01-02 22:39:14 +00007189fi
7190
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007191
Ove Kaavenc90fb252001-01-02 22:39:14 +00007192else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007193 { echo "$as_me:$LINENO: WARNING: XShape extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007194echo "$as_me: WARNING: XShape extension not found, Wine will be built without it" >&2;}
Ove Kaavenc90fb252001-01-02 22:39:14 +00007195fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007196
Ove Kaavenc90fb252001-01-02 22:39:14 +00007197done
7198
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007199
7200
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007201for ac_header in X11/extensions/xf86dga.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00007202do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007203as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007204echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007205echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7206if eval "test \"\${$as_ac_Header+set}\" = set"; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00007208else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007209 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007210#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007211/* confdefs.h. */
7212_ACEOF
7213cat confdefs.h >>conftest.$ac_ext
7214cat >>conftest.$ac_ext <<_ACEOF
7215/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007216#include <X11/Xlib.h>
7217
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007218#include <$ac_header>
7219_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007220rm -f conftest.$ac_objext
7221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7222 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007223 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); } &&
7226 { ac_try='test -s conftest.$ac_objext'
7227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7228 (eval $ac_try) 2>&5
7229 ac_status=$?
7230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7231 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007232 eval "$as_ac_Header=yes"
7233else
7234 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007235sed 's/^/| /' conftest.$ac_ext >&5
7236
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007237eval "$as_ac_Header=no"
Ove Kaavenc90fb252001-01-02 22:39:14 +00007238fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007239rm -f conftest.$ac_objext conftest.$ac_ext
Ove Kaavenc90fb252001-01-02 22:39:14 +00007240fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007242echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7243if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007244 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007245#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007246_ACEOF
7247 echo "$as_me:$LINENO: checking for XDGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007248echo $ECHO_N "checking for XDGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7249if test "${ac_cv_lib_Xxf86dga_XDGAQueryExtension+set}" = set; then
7250 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007251else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007252 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007253LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007254 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007255cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007256#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007257/* confdefs.h. */
7258_ACEOF
7259cat confdefs.h >>conftest.$ac_ext
7260cat >>conftest.$ac_ext <<_ACEOF
7261/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007262
Patrik Stridvall24110281999-02-04 10:09:54 +00007263/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007264#ifdef __cplusplus
7265extern "C"
7266#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007267/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007268 builtin and then its argument prototype would still apply. */
7269char XDGAQueryExtension ();
7270int
7271main ()
7272{
7273XDGAQueryExtension ();
7274 ;
7275 return 0;
7276}
7277_ACEOF
7278rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007279if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007280 (eval $ac_link) 2>&5
7281 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007283 (exit $ac_status); } &&
7284 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007286 (eval $ac_try) 2>&5
7287 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007289 (exit $ac_status); }; }; then
7290 ac_cv_lib_Xxf86dga_XDGAQueryExtension=yes
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007291else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007292 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007293sed 's/^/| /' conftest.$ac_ext >&5
7294
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007295ac_cv_lib_Xxf86dga_XDGAQueryExtension=no
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007296fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007297rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7298LIBS=$ac_check_lib_save_LIBS
7299fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007300echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007301echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XDGAQueryExtension" >&6
7302if test $ac_cv_lib_Xxf86dga_XDGAQueryExtension = yes; then
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007303
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007304cat >>confdefs.h <<\_ACEOF
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007305#define HAVE_LIBXXF86DGA2 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007306_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007307
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007308 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007309
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007310else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007311 echo "$as_me:$LINENO: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007312echo $ECHO_N "checking for XF86DGAQueryExtension in -lXxf86dga... $ECHO_C" >&6
7313if test "${ac_cv_lib_Xxf86dga_XF86DGAQueryExtension+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007315else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007316 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007317LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7318 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007319cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007320#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007321/* confdefs.h. */
7322_ACEOF
7323cat confdefs.h >>conftest.$ac_ext
7324cat >>conftest.$ac_ext <<_ACEOF
7325/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007326
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007327/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007328#ifdef __cplusplus
7329extern "C"
7330#endif
Lionel Ulmerd94475b1999-09-20 18:42:46 +00007331/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007332 builtin and then its argument prototype would still apply. */
7333char XF86DGAQueryExtension ();
7334int
7335main ()
7336{
7337XF86DGAQueryExtension ();
7338 ;
7339 return 0;
7340}
7341_ACEOF
7342rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007343if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007344 (eval $ac_link) 2>&5
7345 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007347 (exit $ac_status); } &&
7348 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007350 (eval $ac_try) 2>&5
7351 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007353 (exit $ac_status); }; }; then
7354 ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007355else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007356 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007357sed 's/^/| /' conftest.$ac_ext >&5
7358
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007359ac_cv_lib_Xxf86dga_XF86DGAQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007360fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007361rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7362LIBS=$ac_check_lib_save_LIBS
7363fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007364echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007365echo "${ECHO_T}$ac_cv_lib_Xxf86dga_XF86DGAQueryExtension" >&6
7366if test $ac_cv_lib_Xxf86dga_XF86DGAQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007367
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007368cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007369#define HAVE_LIBXXF86DGA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007370_ACEOF
Marcus Meissner10ad97c2000-04-09 14:30:50 +00007371
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007372 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007373
Patrik Stridvall24110281999-02-04 10:09:54 +00007374fi
7375
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007376
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007377fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007378
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007379
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007380else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007381 { echo "$as_me:$LINENO: WARNING: DGA extension not found, Wine will be built without it" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007382echo "$as_me: WARNING: DGA extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007383fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007384
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007385done
7386
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007387
7388
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007389for ac_header in X11/extensions/xf86vmode.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007390do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007391as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007392echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007393echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7394if eval "test \"\${$as_ac_Header+set}\" = set"; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007396else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007397 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007398#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007399/* confdefs.h. */
7400_ACEOF
7401cat confdefs.h >>conftest.$ac_ext
7402cat >>conftest.$ac_ext <<_ACEOF
7403/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007404#include <X11/Xlib.h>
7405
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007406#include <$ac_header>
7407_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007408rm -f conftest.$ac_objext
7409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7410 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007411 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7413 (exit $ac_status); } &&
7414 { ac_try='test -s conftest.$ac_objext'
7415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7416 (eval $ac_try) 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007420 eval "$as_ac_Header=yes"
7421else
7422 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007423sed 's/^/| /' conftest.$ac_ext >&5
7424
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007425eval "$as_ac_Header=no"
Patrik Stridvall24110281999-02-04 10:09:54 +00007426fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007427rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall24110281999-02-04 10:09:54 +00007428fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007429echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007430echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7431if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007432 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007433#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007434_ACEOF
7435 echo "$as_me:$LINENO: checking for XF86VidModeQueryExtension in -lXxf86vm" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007436echo $ECHO_N "checking for XF86VidModeQueryExtension in -lXxf86vm... $ECHO_C" >&6
7437if test "${ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007439else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007440 ac_check_lib_save_LIBS=$LIBS
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007441LIBS="-lXxf86vm $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7442 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007443cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007444#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007445/* confdefs.h. */
7446_ACEOF
7447cat confdefs.h >>conftest.$ac_ext
7448cat >>conftest.$ac_ext <<_ACEOF
7449/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007450
Patrik Stridvall24110281999-02-04 10:09:54 +00007451/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007452#ifdef __cplusplus
7453extern "C"
7454#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007455/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007456 builtin and then its argument prototype would still apply. */
7457char XF86VidModeQueryExtension ();
7458int
7459main ()
7460{
7461XF86VidModeQueryExtension ();
7462 ;
7463 return 0;
7464}
7465_ACEOF
7466rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007467if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007468 (eval $ac_link) 2>&5
7469 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007471 (exit $ac_status); } &&
7472 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007474 (eval $ac_try) 2>&5
7475 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007477 (exit $ac_status); }; }; then
7478 ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007479else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007480 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007481sed 's/^/| /' conftest.$ac_ext >&5
7482
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007483ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007484fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007485rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7486LIBS=$ac_check_lib_save_LIBS
7487fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007488echo "$as_me:$LINENO: result: $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007489echo "${ECHO_T}$ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension" >&6
7490if test $ac_cv_lib_Xxf86vm_XF86VidModeQueryExtension = yes; then
Patrik Stridvall24110281999-02-04 10:09:54 +00007491
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007492cat >>confdefs.h <<\_ACEOF
Patrik Stridvall24110281999-02-04 10:09:54 +00007493#define HAVE_LIBXXF86VM 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007494_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007495
7496 X_PRE_LIBS="$X_PRE_LIBS -lXxf86vm"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007497
Patrik Stridvall24110281999-02-04 10:09:54 +00007498fi
7499
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007500
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007501else
7502 { echo "$as_me:$LINENO: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&5
7503echo "$as_me: WARNING: XFree86 VMODE extension not found, Wine will be built without it" >&2;}
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007504fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007505
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007506done
Lionel Ulmer5c085701999-02-28 19:48:53 +00007507
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007508
7509
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007510for ac_header in X11/extensions/Xvlib.h
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007511do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007512as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007513echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007514echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7515if eval "test \"\${$as_ac_Header+set}\" = set"; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007517else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007518 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007519#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007520/* confdefs.h. */
7521_ACEOF
7522cat confdefs.h >>conftest.$ac_ext
7523cat >>conftest.$ac_ext <<_ACEOF
7524/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007525#include <X11/Xlib.h>
7526
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007527#include <$ac_header>
7528_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007529rm -f conftest.$ac_objext
7530if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7531 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007532 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } &&
7535 { ac_try='test -s conftest.$ac_objext'
7536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537 (eval $ac_try) 2>&5
7538 ac_status=$?
7539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007541 eval "$as_ac_Header=yes"
7542else
7543 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007544sed 's/^/| /' conftest.$ac_ext >&5
7545
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007546eval "$as_ac_Header=no"
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007547fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007548rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007549fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007550echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007551echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7552if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007553 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007554#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007555_ACEOF
7556 echo "$as_me:$LINENO: checking for XvShmCreateImage in -lXv" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007557echo $ECHO_N "checking for XvShmCreateImage in -lXv... $ECHO_C" >&6
7558if test "${ac_cv_lib_Xv_XvShmCreateImage+set}" = set; then
7559 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007560else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007561 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007562LIBS="-lXv $X_LIBS -lXext -lX11 $X_EXTRA_LIBS
7563 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007564cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007565#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007566/* confdefs.h. */
7567_ACEOF
7568cat confdefs.h >>conftest.$ac_ext
7569cat >>conftest.$ac_ext <<_ACEOF
7570/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007571
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007572/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007573#ifdef __cplusplus
7574extern "C"
7575#endif
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007576/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007577 builtin and then its argument prototype would still apply. */
7578char XvShmCreateImage ();
7579int
7580main ()
7581{
7582XvShmCreateImage ();
7583 ;
7584 return 0;
7585}
7586_ACEOF
7587rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007588if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007589 (eval $ac_link) 2>&5
7590 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007592 (exit $ac_status); } &&
7593 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007595 (eval $ac_try) 2>&5
7596 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007598 (exit $ac_status); }; }; then
7599 ac_cv_lib_Xv_XvShmCreateImage=yes
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007600else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007601 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007602sed 's/^/| /' conftest.$ac_ext >&5
7603
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007604ac_cv_lib_Xv_XvShmCreateImage=no
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007605fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007606rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7607LIBS=$ac_check_lib_save_LIBS
7608fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007609echo "$as_me:$LINENO: result: $ac_cv_lib_Xv_XvShmCreateImage" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007610echo "${ECHO_T}$ac_cv_lib_Xv_XvShmCreateImage" >&6
7611if test $ac_cv_lib_Xv_XvShmCreateImage = yes; then
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007612
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007613cat >>confdefs.h <<\_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007614#define HAVE_XVIDEO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007615_ACEOF
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007616
7617 X_PRE_LIBS="$X_PRE_LIBS -lXv"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007618
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007619fi
7620
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007621
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007622else
7623 { echo "$as_me:$LINENO: WARNING: XVideo extension not found, Wine will be built without it" >&5
7624echo "$as_me: WARNING: XVideo extension not found, Wine will be built without it" >&2;}
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007625fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007626
Lionel Ulmer3d2f32d2000-09-06 19:46:59 +00007627done
7628
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007629
7630
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007631for ac_header in X11/extensions/Xrender.h
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007632do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007633as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007634echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007635echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7636if eval "test \"\${$as_ac_Header+set}\" = set"; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007638else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007639 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007640#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007641/* confdefs.h. */
7642_ACEOF
7643cat confdefs.h >>conftest.$ac_ext
7644cat >>conftest.$ac_ext <<_ACEOF
7645/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007646#include <X11/Xlib.h>
7647
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007648#include <$ac_header>
7649_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007650rm -f conftest.$ac_objext
7651if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652 (eval $ac_compile) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007653 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -s conftest.$ac_objext'
7657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7658 (eval $ac_try) 2>&5
7659 ac_status=$?
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); }; }; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007662 eval "$as_ac_Header=yes"
7663else
7664 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007665sed 's/^/| /' conftest.$ac_ext >&5
7666
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007667eval "$as_ac_Header=no"
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007668fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007669rm -f conftest.$ac_objext conftest.$ac_ext
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007670fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007671echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007672echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7673if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007674 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007675#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007676_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007677
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007678fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007679
Huw D M Daviesff453fc2001-09-14 01:04:25 +00007680done
7681
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007682
7683
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007684fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007685
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00007686done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007687
Alexandre Julliardb8074992002-11-21 21:51:24 +00007688 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007689 then
Francois Gouget42dcd972002-01-29 17:52:28 +00007690 if test -f /usr/X11R6/lib/libGL.a -a ! -f /usr/X11R6/lib/libGL.so
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007691 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007692 { { echo "$as_me:$LINENO: error: /usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007693This prevents linking to OpenGL. Delete the file and restart configure." >&5
7694echo "$as_me: error: /usr/X11R6/lib/libGL.a is present on your system.
7695This prevents linking to OpenGL. Delete the file and restart configure." >&2;}
7696 { (exit 1); exit 1; }; }
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00007697 fi
7698
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007699
7700
7701for ac_header in GL/gl.h GL/glx.h
Patrik Stridvall24110281999-02-04 10:09:54 +00007702do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007703as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007704if eval "test \"\${$as_ac_Header+set}\" = set"; then
7705 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007706echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7707if eval "test \"\${$as_ac_Header+set}\" = set"; then
7708 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007709fi
7710echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7711echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007712else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007713 # Is the header compilable?
7714echo "$as_me:$LINENO: checking $ac_header usability" >&5
7715echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7716cat >conftest.$ac_ext <<_ACEOF
7717#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007718/* confdefs.h. */
7719_ACEOF
7720cat confdefs.h >>conftest.$ac_ext
7721cat >>conftest.$ac_ext <<_ACEOF
7722/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007723$ac_includes_default
7724#include <$ac_header>
7725_ACEOF
7726rm -f conftest.$ac_objext
7727if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7728 (eval $ac_compile) 2>&5
7729 ac_status=$?
7730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7731 (exit $ac_status); } &&
7732 { ac_try='test -s conftest.$ac_objext'
7733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7734 (eval $ac_try) 2>&5
7735 ac_status=$?
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; }; then
7738 ac_header_compiler=yes
7739else
7740 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007741sed 's/^/| /' conftest.$ac_ext >&5
7742
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007743ac_header_compiler=no
7744fi
7745rm -f conftest.$ac_objext conftest.$ac_ext
7746echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7747echo "${ECHO_T}$ac_header_compiler" >&6
7748
7749# Is the header present?
7750echo "$as_me:$LINENO: checking $ac_header presence" >&5
7751echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7752cat >conftest.$ac_ext <<_ACEOF
7753#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007754/* confdefs.h. */
7755_ACEOF
7756cat confdefs.h >>conftest.$ac_ext
7757cat >>conftest.$ac_ext <<_ACEOF
7758/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007759#include <$ac_header>
7760_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007761if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007762 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7763 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00007764 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007765 rm -f conftest.er1
7766 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007768 (exit $ac_status); } >/dev/null; then
7769 if test -s conftest.err; then
7770 ac_cpp_err=$ac_c_preproc_warn_flag
7771 else
7772 ac_cpp_err=
7773 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00007774else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007775 ac_cpp_err=yes
7776fi
7777if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007778 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007779else
7780 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007781sed 's/^/| /' conftest.$ac_ext >&5
7782
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007783 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007784fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007785rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007786echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7787echo "${ECHO_T}$ac_header_preproc" >&6
7788
7789# So? What about this header?
7790case $ac_header_compiler:$ac_header_preproc in
7791 yes:no )
7792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7793echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007795echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7796 (
7797 cat <<\_ASBOX
7798## ------------------------------------ ##
7799## Report this to bug-autoconf@gnu.org. ##
7800## ------------------------------------ ##
7801_ASBOX
7802 ) |
7803 sed "s/^/$as_me: WARNING: /" >&2
7804 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007805 no:yes )
7806 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7807echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7808 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7809echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007811echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7812 (
7813 cat <<\_ASBOX
7814## ------------------------------------ ##
7815## Report this to bug-autoconf@gnu.org. ##
7816## ------------------------------------ ##
7817_ASBOX
7818 ) |
7819 sed "s/^/$as_me: WARNING: /" >&2
7820 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007821esac
7822echo "$as_me:$LINENO: checking for $ac_header" >&5
7823echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7824if eval "test \"\${$as_ac_Header+set}\" = set"; then
7825 echo $ECHO_N "(cached) $ECHO_C" >&6
7826else
7827 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00007828fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007829echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007830echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007831
Patrik Stridvall24110281999-02-04 10:09:54 +00007832fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007833if test `eval echo '${'$as_ac_Header'}'` = yes; then
7834 cat >>confdefs.h <<_ACEOF
7835#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7836_ACEOF
7837
7838fi
7839
Patrik Stridvall24110281999-02-04 10:09:54 +00007840done
7841
Marcus Meissner22a969b2000-08-08 20:46:50 +00007842 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007843 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007844
7845for ac_header in GL/glext.h
7846do
7847as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7848echo "$as_me:$LINENO: checking for $ac_header" >&5
7849echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7850if eval "test \"\${$as_ac_Header+set}\" = set"; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852else
7853 cat >conftest.$ac_ext <<_ACEOF
7854#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007855/* confdefs.h. */
7856_ACEOF
7857cat confdefs.h >>conftest.$ac_ext
7858cat >>conftest.$ac_ext <<_ACEOF
7859/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007860#include <GL/glx.h>
7861
7862#include <$ac_header>
7863_ACEOF
7864rm -f conftest.$ac_objext
7865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7866 (eval $ac_compile) 2>&5
7867 ac_status=$?
7868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7869 (exit $ac_status); } &&
7870 { ac_try='test -s conftest.$ac_objext'
7871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7872 (eval $ac_try) 2>&5
7873 ac_status=$?
7874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7875 (exit $ac_status); }; }; then
7876 eval "$as_ac_Header=yes"
7877else
7878 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007879sed 's/^/| /' conftest.$ac_ext >&5
7880
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007881eval "$as_ac_Header=no"
7882fi
7883rm -f conftest.$ac_objext conftest.$ac_ext
7884fi
7885echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7886echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7887if test `eval echo '${'$as_ac_Header'}'` = yes; then
7888 cat >>confdefs.h <<_ACEOF
7889#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7890_ACEOF
7891
7892fi
7893
7894done
7895
7896 echo "$as_me:$LINENO: checking for up-to-date OpenGL version" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007897echo $ECHO_N "checking for up-to-date OpenGL version... $ECHO_C" >&6
7898if test "${wine_cv_opengl_version_OK+set}" = set; then
7899 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00007900else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007901 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007902#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007903/* confdefs.h. */
7904_ACEOF
7905cat confdefs.h >>conftest.$ac_ext
7906cat >>conftest.$ac_ext <<_ACEOF
7907/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00007908#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007909int
7910main ()
7911{
Lionel Ulmer5c085701999-02-28 19:48:53 +00007912GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007913 ;
7914 return 0;
7915}
7916_ACEOF
7917rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007918if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007919 (eval $ac_compile) 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); } &&
7923 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007925 (eval $ac_try) 2>&5
7926 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007928 (exit $ac_status); }; }; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00007929 wine_cv_opengl_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007930else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007931 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007932sed 's/^/| /' conftest.$ac_ext >&5
7933
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007934wine_cv_opengl_version_OK="no"
Lionel Ulmer5c085701999-02-28 19:48:53 +00007935
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007936fi
7937rm -f conftest.$ac_objext conftest.$ac_ext
Lionel Ulmer5c085701999-02-28 19:48:53 +00007938
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007939fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007940echo "$as_me:$LINENO: result: $wine_cv_opengl_version_OK" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007941echo "${ECHO_T}$wine_cv_opengl_version_OK" >&6
7942
Alexandre Julliardb8074992002-11-21 21:51:24 +00007943 if test "$wine_cv_opengl_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00007944 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007945 echo "$as_me:$LINENO: checking for glXCreateContext in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007946echo $ECHO_N "checking for glXCreateContext in -lGL... $ECHO_C" >&6
7947if test "${ac_cv_lib_GL_glXCreateContext+set}" = set; then
7948 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007949else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007950 ac_check_lib_save_LIBS=$LIBS
Marcus Meissner376ec882000-01-05 03:24:52 +00007951LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007952cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007953#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007954/* confdefs.h. */
7955_ACEOF
7956cat confdefs.h >>conftest.$ac_ext
7957cat >>conftest.$ac_ext <<_ACEOF
7958/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007959
Patrik Stridvall24110281999-02-04 10:09:54 +00007960/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007961#ifdef __cplusplus
7962extern "C"
7963#endif
Patrik Stridvall24110281999-02-04 10:09:54 +00007964/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007965 builtin and then its argument prototype would still apply. */
7966char glXCreateContext ();
7967int
7968main ()
7969{
7970glXCreateContext ();
7971 ;
7972 return 0;
7973}
7974_ACEOF
7975rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007977 (eval $ac_link) 2>&5
7978 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007980 (exit $ac_status); } &&
7981 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007983 (eval $ac_try) 2>&5
7984 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007986 (exit $ac_status); }; }; then
7987 ac_cv_lib_GL_glXCreateContext=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007988else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007989 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007990sed 's/^/| /' conftest.$ac_ext >&5
7991
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007992ac_cv_lib_GL_glXCreateContext=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007993fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007994rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7995LIBS=$ac_check_lib_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00007996fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007997echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXCreateContext" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007998echo "${ECHO_T}$ac_cv_lib_GL_glXCreateContext" >&6
7999if test $ac_cv_lib_GL_glXCreateContext = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008000 OPENGL_LIBS="-lGL"
Patrik Stridvall24110281999-02-04 10:09:54 +00008001
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008002fi
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008003
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008004
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008005 if test "$ac_cv_lib_GL_glXCreateContext" = "yes"
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008006 then
Lionel Ulmerbd8ede12000-10-12 20:45:58 +00008007 OPENGLFILES='$(OPENGLFILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008008
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008009cat >>confdefs.h <<\_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008010#define HAVE_OPENGL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008011_ACEOF
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008012
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008013
8014 echo "$as_me:$LINENO: checking for glXGetProcAddressARB in -lGL" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008015echo $ECHO_N "checking for glXGetProcAddressARB in -lGL... $ECHO_C" >&6
8016if test "${ac_cv_lib_GL_glXGetProcAddressARB+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008018else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008019 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008020LIBS="-lGL $X_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008021cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008022#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008023/* confdefs.h. */
8024_ACEOF
8025cat confdefs.h >>conftest.$ac_ext
8026cat >>conftest.$ac_ext <<_ACEOF
8027/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008028
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008029/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008030#ifdef __cplusplus
8031extern "C"
8032#endif
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008033/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008034 builtin and then its argument prototype would still apply. */
8035char glXGetProcAddressARB ();
8036int
8037main ()
8038{
8039glXGetProcAddressARB ();
8040 ;
8041 return 0;
8042}
8043_ACEOF
8044rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008045if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008046 (eval $ac_link) 2>&5
8047 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008049 (exit $ac_status); } &&
8050 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008052 (eval $ac_try) 2>&5
8053 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008055 (exit $ac_status); }; }; then
8056 ac_cv_lib_GL_glXGetProcAddressARB=yes
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008057else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008058 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008059sed 's/^/| /' conftest.$ac_ext >&5
8060
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008061ac_cv_lib_GL_glXGetProcAddressARB=no
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008062fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008063rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8064LIBS=$ac_check_lib_save_LIBS
8065fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008066echo "$as_me:$LINENO: result: $ac_cv_lib_GL_glXGetProcAddressARB" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008067echo "${ECHO_T}$ac_cv_lib_GL_glXGetProcAddressARB" >&6
8068if test $ac_cv_lib_GL_glXGetProcAddressARB = yes; then
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008069
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008070cat >>confdefs.h <<\_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008071#define HAVE_GLX_GETPROCADDRESS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008072_ACEOF
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008073
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008074fi
8075
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008076
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008077 if test "$ac_cv_lib_GL_glXGetProcAddressARB" = "yes"
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008078 then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008079 echo "$as_me:$LINENO: checking for OpenGL extension functions prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008080echo $ECHO_N "checking for OpenGL extension functions prototypes... $ECHO_C" >&6
8081if test "${wine_cv_extension_prototypes+set}" = set; then
8082 echo $ECHO_N "(cached) $ECHO_C" >&6
Lionel Ulmer1434d872000-07-23 14:23:31 +00008083else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008084 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008085#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008086/* confdefs.h. */
8087_ACEOF
8088cat confdefs.h >>conftest.$ac_ext
8089cat >>conftest.$ac_ext <<_ACEOF
8090/* end confdefs.h. */
Lionel Ulmer1434d872000-07-23 14:23:31 +00008091#include <GL/gl.h>
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008092 #ifdef HAVE_GL_GLEXT_H
8093 # include <GL/glext.h>
8094 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008095
8096int
8097main ()
8098{
Lionel Ulmer1434d872000-07-23 14:23:31 +00008099PFNGLCOLORTABLEEXTPROC test_proc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008100 ;
8101 return 0;
8102}
8103_ACEOF
8104rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008105if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008106 (eval $ac_compile) 2>&5
8107 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008109 (exit $ac_status); } &&
8110 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008112 (eval $ac_try) 2>&5
8113 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008115 (exit $ac_status); }; }; then
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008116 wine_cv_extension_prototypes="yes"
Lionel Ulmer1434d872000-07-23 14:23:31 +00008117else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008118 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008119sed 's/^/| /' conftest.$ac_ext >&5
8120
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008121wine_cv_extension_prototypes="no"
Lionel Ulmer1434d872000-07-23 14:23:31 +00008122
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008123fi
8124rm -f conftest.$ac_objext conftest.$ac_ext
8125
8126fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008127echo "$as_me:$LINENO: result: $wine_cv_extension_prototypes" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008128echo "${ECHO_T}$wine_cv_extension_prototypes" >&6
Alexandre Julliardb508a1d2002-01-21 18:06:10 +00008129 if test "$wine_cv_extension_prototypes" = "yes"
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008130 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008131
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008132cat >>confdefs.h <<\_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008133#define HAVE_GLEXT_PROTOTYPES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008134_ACEOF
Lionel Ulmerfe210ef2000-07-29 11:30:56 +00008135
8136 fi
Lionel Ulmerbedf40b2000-05-12 20:18:14 +00008137 fi
Alexandre Julliardd6c0f9f2001-01-04 22:44:55 +00008138
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008139 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008140 echo "$as_me:$LINENO: checking for gluLookAt in -lGLU" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008141echo $ECHO_N "checking for gluLookAt in -lGLU... $ECHO_C" >&6
8142if test "${ac_cv_lib_GLU_gluLookAt+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008144else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008145 ac_check_lib_save_LIBS=$LIBS
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008146LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS -lXext -lX11 -lm $X_EXTRA_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008147 $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008148cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008149#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008150/* confdefs.h. */
8151_ACEOF
8152cat confdefs.h >>conftest.$ac_ext
8153cat >>conftest.$ac_ext <<_ACEOF
8154/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008155
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008156/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008157#ifdef __cplusplus
8158extern "C"
8159#endif
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008160/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008161 builtin and then its argument prototype would still apply. */
8162char gluLookAt ();
8163int
8164main ()
8165{
8166gluLookAt ();
8167 ;
8168 return 0;
8169}
8170_ACEOF
8171rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008172if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008173 (eval $ac_link) 2>&5
8174 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008176 (exit $ac_status); } &&
8177 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008179 (eval $ac_try) 2>&5
8180 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008182 (exit $ac_status); }; }; then
8183 ac_cv_lib_GLU_gluLookAt=yes
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008184else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008185 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008186sed 's/^/| /' conftest.$ac_ext >&5
8187
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008188ac_cv_lib_GLU_gluLookAt=no
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008189fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008190rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8191LIBS=$ac_check_lib_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008192fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008193echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_gluLookAt" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008194echo "${ECHO_T}$ac_cv_lib_GLU_gluLookAt" >&6
8195if test $ac_cv_lib_GLU_gluLookAt = yes; then
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +00008196 OPENGL_LIBS="$OPENGL_LIBS -lGLU"
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008197 GLU32FILES='$(GLU32FILES)'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008198
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008199fi
8200
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008201 fi
8202 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008203 fi
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008204
Francois Gouget6f670b12002-10-10 17:54:27 +00008205 NASLIBS=""
8206
8207
8208for ac_header in audio/audiolib.h
8209do
8210as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8211if eval "test \"\${$as_ac_Header+set}\" = set"; then
8212 echo "$as_me:$LINENO: checking for $ac_header" >&5
8213echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8214if eval "test \"\${$as_ac_Header+set}\" = set"; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8216fi
8217echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8218echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8219else
8220 # Is the header compilable?
8221echo "$as_me:$LINENO: checking $ac_header usability" >&5
8222echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8223cat >conftest.$ac_ext <<_ACEOF
8224#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008225/* confdefs.h. */
8226_ACEOF
8227cat confdefs.h >>conftest.$ac_ext
8228cat >>conftest.$ac_ext <<_ACEOF
8229/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008230$ac_includes_default
8231#include <$ac_header>
8232_ACEOF
8233rm -f conftest.$ac_objext
8234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8235 (eval $ac_compile) 2>&5
8236 ac_status=$?
8237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8238 (exit $ac_status); } &&
8239 { ac_try='test -s conftest.$ac_objext'
8240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8241 (eval $ac_try) 2>&5
8242 ac_status=$?
8243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8244 (exit $ac_status); }; }; then
8245 ac_header_compiler=yes
8246else
8247 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008248sed 's/^/| /' conftest.$ac_ext >&5
8249
Francois Gouget6f670b12002-10-10 17:54:27 +00008250ac_header_compiler=no
8251fi
8252rm -f conftest.$ac_objext conftest.$ac_ext
8253echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8254echo "${ECHO_T}$ac_header_compiler" >&6
8255
8256# Is the header present?
8257echo "$as_me:$LINENO: checking $ac_header presence" >&5
8258echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8259cat >conftest.$ac_ext <<_ACEOF
8260#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008261/* confdefs.h. */
8262_ACEOF
8263cat confdefs.h >>conftest.$ac_ext
8264cat >>conftest.$ac_ext <<_ACEOF
8265/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008266#include <$ac_header>
8267_ACEOF
8268if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8269 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8270 ac_status=$?
8271 grep -v '^ *+' conftest.er1 >conftest.err
8272 rm -f conftest.er1
8273 cat conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 (exit $ac_status); } >/dev/null; then
8276 if test -s conftest.err; then
8277 ac_cpp_err=$ac_c_preproc_warn_flag
8278 else
8279 ac_cpp_err=
8280 fi
8281else
8282 ac_cpp_err=yes
8283fi
8284if test -z "$ac_cpp_err"; then
8285 ac_header_preproc=yes
8286else
8287 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008288sed 's/^/| /' conftest.$ac_ext >&5
8289
Francois Gouget6f670b12002-10-10 17:54:27 +00008290 ac_header_preproc=no
8291fi
8292rm -f conftest.err conftest.$ac_ext
8293echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8294echo "${ECHO_T}$ac_header_preproc" >&6
8295
8296# So? What about this header?
8297case $ac_header_compiler:$ac_header_preproc in
8298 yes:no )
8299 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8300echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008302echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8303 (
8304 cat <<\_ASBOX
8305## ------------------------------------ ##
8306## Report this to bug-autoconf@gnu.org. ##
8307## ------------------------------------ ##
8308_ASBOX
8309 ) |
8310 sed "s/^/$as_me: WARNING: /" >&2
8311 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00008312 no:yes )
8313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8314echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8316echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8317 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008318echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8319 (
8320 cat <<\_ASBOX
8321## ------------------------------------ ##
8322## Report this to bug-autoconf@gnu.org. ##
8323## ------------------------------------ ##
8324_ASBOX
8325 ) |
8326 sed "s/^/$as_me: WARNING: /" >&2
8327 ;;
Francois Gouget6f670b12002-10-10 17:54:27 +00008328esac
8329echo "$as_me:$LINENO: checking for $ac_header" >&5
8330echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8331if eval "test \"\${$as_ac_Header+set}\" = set"; then
8332 echo $ECHO_N "(cached) $ECHO_C" >&6
8333else
8334 eval "$as_ac_Header=$ac_header_preproc"
8335fi
8336echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8337echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8338
8339fi
8340if test `eval echo '${'$as_ac_Header'}'` = yes; then
8341 cat >>confdefs.h <<_ACEOF
8342#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8343_ACEOF
8344
8345for ac_header in audio/soundlib.h
8346do
8347as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8348echo "$as_me:$LINENO: checking for $ac_header" >&5
8349echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8350if eval "test \"\${$as_ac_Header+set}\" = set"; then
8351 echo $ECHO_N "(cached) $ECHO_C" >&6
8352else
8353 cat >conftest.$ac_ext <<_ACEOF
8354#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008355/* confdefs.h. */
8356_ACEOF
8357cat confdefs.h >>conftest.$ac_ext
8358cat >>conftest.$ac_ext <<_ACEOF
8359/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008360#include <audio/audiolib.h>
8361
8362#include <$ac_header>
8363_ACEOF
8364rm -f conftest.$ac_objext
8365if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366 (eval $ac_compile) 2>&5
8367 ac_status=$?
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); } &&
8370 { ac_try='test -s conftest.$ac_objext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8372 (eval $ac_try) 2>&5
8373 ac_status=$?
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376 eval "$as_ac_Header=yes"
8377else
8378 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008379sed 's/^/| /' conftest.$ac_ext >&5
8380
Francois Gouget6f670b12002-10-10 17:54:27 +00008381eval "$as_ac_Header=no"
8382fi
8383rm -f conftest.$ac_objext conftest.$ac_ext
8384fi
8385echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8386echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
8387if test `eval echo '${'$as_ac_Header'}'` = yes; then
8388 cat >>confdefs.h <<_ACEOF
8389#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8390_ACEOF
8391
8392fi
8393
8394done
8395
8396 echo "$as_me:$LINENO: checking for AuCreateFlow in -laudio" >&5
8397echo $ECHO_N "checking for AuCreateFlow in -laudio... $ECHO_C" >&6
8398if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then
8399 echo $ECHO_N "(cached) $ECHO_C" >&6
8400else
8401 ac_check_lib_save_LIBS=$LIBS
8402LIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
8403cat >conftest.$ac_ext <<_ACEOF
8404#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008405/* confdefs.h. */
8406_ACEOF
8407cat confdefs.h >>conftest.$ac_ext
8408cat >>conftest.$ac_ext <<_ACEOF
8409/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008410
8411/* Override any gcc2 internal prototype to avoid an error. */
8412#ifdef __cplusplus
8413extern "C"
8414#endif
8415/* We use char because int might match the return type of a gcc2
8416 builtin and then its argument prototype would still apply. */
8417char AuCreateFlow ();
8418int
8419main ()
8420{
8421AuCreateFlow ();
8422 ;
8423 return 0;
8424}
8425_ACEOF
8426rm -f conftest.$ac_objext conftest$ac_exeext
8427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8428 (eval $ac_link) 2>&5
8429 ac_status=$?
8430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8431 (exit $ac_status); } &&
8432 { ac_try='test -s conftest$ac_exeext'
8433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 (eval $ac_try) 2>&5
8435 ac_status=$?
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 (exit $ac_status); }; }; then
8438 ac_cv_lib_audio_AuCreateFlow=yes
8439else
8440 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008441sed 's/^/| /' conftest.$ac_ext >&5
8442
Francois Gouget6f670b12002-10-10 17:54:27 +00008443ac_cv_lib_audio_AuCreateFlow=no
8444fi
8445rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8446LIBS=$ac_check_lib_save_LIBS
8447fi
8448echo "$as_me:$LINENO: result: $ac_cv_lib_audio_AuCreateFlow" >&5
8449echo "${ECHO_T}$ac_cv_lib_audio_AuCreateFlow" >&6
8450if test $ac_cv_lib_audio_AuCreateFlow = yes; then
8451
8452cat >>confdefs.h <<\_ACEOF
8453#define HAVE_NAS 1
8454_ACEOF
8455
8456 NASLIBS="-laudio -lXt $X_LIBS -lXext -lX11 $X_EXTRA_LIBS"
8457fi
8458
8459fi
8460
8461done
8462
8463
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008464 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvall2941a212000-04-25 20:34:22 +00008465 XFILES='$(XFILES)'
Patrik Stridvallea584721998-11-01 16:22:07 +00008466else
8467 XLIB=""
8468 X_CFLAGS=""
8469 X_LIBS=""
8470fi
Alexandre Julliard902da691995-11-05 14:39:02 +00008471
Alexandre Julliard48957682001-12-26 23:08:31 +00008472CURSESLIBS=""
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008473if test "x$with_curses" != "xno"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00008474then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008475
8476for ac_header in ncurses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008477do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008478as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008479if eval "test \"\${$as_ac_Header+set}\" = set"; then
8480 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008481echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8482if eval "test \"\${$as_ac_Header+set}\" = set"; then
8483 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008484fi
8485echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8486echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008487else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008488 # Is the header compilable?
8489echo "$as_me:$LINENO: checking $ac_header usability" >&5
8490echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8491cat >conftest.$ac_ext <<_ACEOF
8492#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008493/* confdefs.h. */
8494_ACEOF
8495cat confdefs.h >>conftest.$ac_ext
8496cat >>conftest.$ac_ext <<_ACEOF
8497/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008498$ac_includes_default
8499#include <$ac_header>
8500_ACEOF
8501rm -f conftest.$ac_objext
8502if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8503 (eval $ac_compile) 2>&5
8504 ac_status=$?
8505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8506 (exit $ac_status); } &&
8507 { ac_try='test -s conftest.$ac_objext'
8508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8509 (eval $ac_try) 2>&5
8510 ac_status=$?
8511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8512 (exit $ac_status); }; }; then
8513 ac_header_compiler=yes
8514else
8515 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008516sed 's/^/| /' conftest.$ac_ext >&5
8517
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008518ac_header_compiler=no
8519fi
8520rm -f conftest.$ac_objext conftest.$ac_ext
8521echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8522echo "${ECHO_T}$ac_header_compiler" >&6
8523
8524# Is the header present?
8525echo "$as_me:$LINENO: checking $ac_header presence" >&5
8526echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8527cat >conftest.$ac_ext <<_ACEOF
8528#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008529/* confdefs.h. */
8530_ACEOF
8531cat confdefs.h >>conftest.$ac_ext
8532cat >>conftest.$ac_ext <<_ACEOF
8533/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008534#include <$ac_header>
8535_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008536if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8538 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008539 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008540 rm -f conftest.er1
8541 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008543 (exit $ac_status); } >/dev/null; then
8544 if test -s conftest.err; then
8545 ac_cpp_err=$ac_c_preproc_warn_flag
8546 else
8547 ac_cpp_err=
8548 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008549else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008550 ac_cpp_err=yes
8551fi
8552if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008553 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008554else
8555 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008556sed 's/^/| /' conftest.$ac_ext >&5
8557
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008558 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008559fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008560rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008561echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8562echo "${ECHO_T}$ac_header_preproc" >&6
8563
8564# So? What about this header?
8565case $ac_header_compiler:$ac_header_preproc in
8566 yes:no )
8567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8568echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008570echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8571 (
8572 cat <<\_ASBOX
8573## ------------------------------------ ##
8574## Report this to bug-autoconf@gnu.org. ##
8575## ------------------------------------ ##
8576_ASBOX
8577 ) |
8578 sed "s/^/$as_me: WARNING: /" >&2
8579 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008580 no:yes )
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8582echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8584echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008586echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8587 (
8588 cat <<\_ASBOX
8589## ------------------------------------ ##
8590## Report this to bug-autoconf@gnu.org. ##
8591## ------------------------------------ ##
8592_ASBOX
8593 ) |
8594 sed "s/^/$as_me: WARNING: /" >&2
8595 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008596esac
8597echo "$as_me:$LINENO: checking for $ac_header" >&5
8598echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8599if eval "test \"\${$as_ac_Header+set}\" = set"; then
8600 echo $ECHO_N "(cached) $ECHO_C" >&6
8601else
8602 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00008603fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008604echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008605echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008606
8607fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008608if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008609 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008610#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008611_ACEOF
8612 echo "$as_me:$LINENO: checking for waddch in -lncurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008613echo $ECHO_N "checking for waddch in -lncurses... $ECHO_C" >&6
8614if test "${ac_cv_lib_ncurses_waddch+set}" = set; then
8615 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008616else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008617 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008618LIBS="-lncurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008619cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008620#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008621/* confdefs.h. */
8622_ACEOF
8623cat confdefs.h >>conftest.$ac_ext
8624cat >>conftest.$ac_ext <<_ACEOF
8625/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008626
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008627/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008628#ifdef __cplusplus
8629extern "C"
8630#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008631/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008632 builtin and then its argument prototype would still apply. */
8633char waddch ();
8634int
8635main ()
8636{
8637waddch ();
8638 ;
8639 return 0;
8640}
8641_ACEOF
8642rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008643if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008644 (eval $ac_link) 2>&5
8645 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008647 (exit $ac_status); } &&
8648 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008650 (eval $ac_try) 2>&5
8651 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008653 (exit $ac_status); }; }; then
8654 ac_cv_lib_ncurses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008655else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008656 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008657sed 's/^/| /' conftest.$ac_ext >&5
8658
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008659ac_cv_lib_ncurses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008660fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008661rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8662LIBS=$ac_check_lib_save_LIBS
8663fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008664echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008665echo "${ECHO_T}$ac_cv_lib_ncurses_waddch" >&6
8666if test $ac_cv_lib_ncurses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008667
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008668cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00008669#define HAVE_LIBNCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008670_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008671
Alexandre Julliard48957682001-12-26 23:08:31 +00008672 CURSESLIBS="-lncurses"
Alexandre Julliard638f1691999-01-17 16:32:32 +00008673else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008674
8675for ac_header in curses.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008676do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008677as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008678if eval "test \"\${$as_ac_Header+set}\" = set"; then
8679 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008680echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8681if eval "test \"\${$as_ac_Header+set}\" = set"; then
8682 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008683fi
8684echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
8685echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008686else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008687 # Is the header compilable?
8688echo "$as_me:$LINENO: checking $ac_header usability" >&5
8689echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
8690cat >conftest.$ac_ext <<_ACEOF
8691#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008692/* confdefs.h. */
8693_ACEOF
8694cat confdefs.h >>conftest.$ac_ext
8695cat >>conftest.$ac_ext <<_ACEOF
8696/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008697$ac_includes_default
8698#include <$ac_header>
8699_ACEOF
8700rm -f conftest.$ac_objext
8701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8702 (eval $ac_compile) 2>&5
8703 ac_status=$?
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } &&
8706 { ac_try='test -s conftest.$ac_objext'
8707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8708 (eval $ac_try) 2>&5
8709 ac_status=$?
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); }; }; then
8712 ac_header_compiler=yes
8713else
8714 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008715sed 's/^/| /' conftest.$ac_ext >&5
8716
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008717ac_header_compiler=no
8718fi
8719rm -f conftest.$ac_objext conftest.$ac_ext
8720echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8721echo "${ECHO_T}$ac_header_compiler" >&6
8722
8723# Is the header present?
8724echo "$as_me:$LINENO: checking $ac_header presence" >&5
8725echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
8726cat >conftest.$ac_ext <<_ACEOF
8727#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008728/* confdefs.h. */
8729_ACEOF
8730cat confdefs.h >>conftest.$ac_ext
8731cat >>conftest.$ac_ext <<_ACEOF
8732/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008733#include <$ac_header>
8734_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008735if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8737 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00008738 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008739 rm -f conftest.er1
8740 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008742 (exit $ac_status); } >/dev/null; then
8743 if test -s conftest.err; then
8744 ac_cpp_err=$ac_c_preproc_warn_flag
8745 else
8746 ac_cpp_err=
8747 fi
Patrik Stridvall24110281999-02-04 10:09:54 +00008748else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008749 ac_cpp_err=yes
8750fi
8751if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008752 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008753else
8754 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008755sed 's/^/| /' conftest.$ac_ext >&5
8756
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008757 ac_header_preproc=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008758fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008759rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008760echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8761echo "${ECHO_T}$ac_header_preproc" >&6
8762
8763# So? What about this header?
8764case $ac_header_compiler:$ac_header_preproc in
8765 yes:no )
8766 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8767echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8768 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008769echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8770 (
8771 cat <<\_ASBOX
8772## ------------------------------------ ##
8773## Report this to bug-autoconf@gnu.org. ##
8774## ------------------------------------ ##
8775_ASBOX
8776 ) |
8777 sed "s/^/$as_me: WARNING: /" >&2
8778 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008779 no:yes )
8780 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8781echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8782 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8783echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008785echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8786 (
8787 cat <<\_ASBOX
8788## ------------------------------------ ##
8789## Report this to bug-autoconf@gnu.org. ##
8790## ------------------------------------ ##
8791_ASBOX
8792 ) |
8793 sed "s/^/$as_me: WARNING: /" >&2
8794 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008795esac
8796echo "$as_me:$LINENO: checking for $ac_header" >&5
8797echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
8798if eval "test \"\${$as_ac_Header+set}\" = set"; then
8799 echo $ECHO_N "(cached) $ECHO_C" >&6
8800else
8801 eval "$as_ac_Header=$ac_header_preproc"
Patrik Stridvall24110281999-02-04 10:09:54 +00008802fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008803echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008804echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008805
8806fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008807if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008808 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008809#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008810_ACEOF
8811 echo "$as_me:$LINENO: checking for waddch in -lcurses" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008812echo $ECHO_N "checking for waddch in -lcurses... $ECHO_C" >&6
8813if test "${ac_cv_lib_curses_waddch+set}" = set; then
8814 echo $ECHO_N "(cached) $ECHO_C" >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008815else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008816 ac_check_lib_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008817LIBS="-lcurses $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008818cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008819#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008820/* confdefs.h. */
8821_ACEOF
8822cat confdefs.h >>conftest.$ac_ext
8823cat >>conftest.$ac_ext <<_ACEOF
8824/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008825
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008826/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008827#ifdef __cplusplus
8828extern "C"
8829#endif
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008830/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008831 builtin and then its argument prototype would still apply. */
8832char waddch ();
8833int
8834main ()
8835{
8836waddch ();
8837 ;
8838 return 0;
8839}
8840_ACEOF
8841rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008842if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008843 (eval $ac_link) 2>&5
8844 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008846 (exit $ac_status); } &&
8847 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008849 (eval $ac_try) 2>&5
8850 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008852 (exit $ac_status); }; }; then
8853 ac_cv_lib_curses_waddch=yes
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008854else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008855 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008856sed 's/^/| /' conftest.$ac_ext >&5
8857
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008858ac_cv_lib_curses_waddch=no
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008859fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008860rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8861LIBS=$ac_check_lib_save_LIBS
8862fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008863echo "$as_me:$LINENO: result: $ac_cv_lib_curses_waddch" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008864echo "${ECHO_T}$ac_cv_lib_curses_waddch" >&6
8865if test $ac_cv_lib_curses_waddch = yes; then
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008866
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008867cat >>confdefs.h <<\_ACEOF
Alexandre Julliard48957682001-12-26 23:08:31 +00008868#define HAVE_LIBCURSES 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008869_ACEOF
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008870
Alexandre Julliard48957682001-12-26 23:08:31 +00008871 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008872fi
8873
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008874fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008875
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008876done
8877
8878fi
Alexandre Julliard48957682001-12-26 23:08:31 +00008879
Alexandre Julliard48957682001-12-26 23:08:31 +00008880fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008881
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008882done
8883
Alexandre Julliard48957682001-12-26 23:08:31 +00008884 saved_libs="$LIBS"
8885 LIBS="$CURSESLIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008886
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008887
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008888for ac_func in getbkgd resizeterm
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008889do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008890as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008891echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008892echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
8893if eval "test \"\${$as_ac_var+set}\" = set"; then
8894 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard638f1691999-01-17 16:32:32 +00008895else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008896 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008897#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008898/* confdefs.h. */
8899_ACEOF
8900cat confdefs.h >>conftest.$ac_ext
8901cat >>conftest.$ac_ext <<_ACEOF
8902/* end confdefs.h. */
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008903/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008904 which can conflict with char $ac_func (); below.
8905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8906 <limits.h> exists even on freestanding compilers. */
8907#ifdef __STDC__
8908# include <limits.h>
8909#else
8910# include <assert.h>
8911#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00008912/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008913#ifdef __cplusplus
8914extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008915{
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008916#endif
Alexandre Julliard638f1691999-01-17 16:32:32 +00008917/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008918 builtin and then its argument prototype would still apply. */
8919char $ac_func ();
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008920/* The GNU C library defines this for functions which it implements
8921 to always fail with ENOSYS. Some functions are actually named
8922 something starting with __ and the normal name is an alias. */
8923#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
8924choke me
8925#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008926char (*f) () = $ac_func;
8927#endif
8928#ifdef __cplusplus
8929}
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008930#endif
8931
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008932int
8933main ()
8934{
8935return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008936 ;
8937 return 0;
8938}
8939_ACEOF
8940rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008941if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008942 (eval $ac_link) 2>&5
8943 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008945 (exit $ac_status); } &&
8946 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008948 (eval $ac_try) 2>&5
8949 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008951 (exit $ac_status); }; }; then
8952 eval "$as_ac_var=yes"
Alexandre Julliard638f1691999-01-17 16:32:32 +00008953else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008954 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008955sed 's/^/| /' conftest.$ac_ext >&5
8956
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008957eval "$as_ac_var=no"
Alexandre Julliard638f1691999-01-17 16:32:32 +00008958fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008959rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard638f1691999-01-17 16:32:32 +00008960fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008961echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008962echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
8963if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008964 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008965#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008966_ACEOF
Alexandre Julliard638f1691999-01-17 16:32:32 +00008967
Alexandre Julliard638f1691999-01-17 16:32:32 +00008968fi
Alexandre Julliarded2f19a2001-06-27 21:42:00 +00008969done
Alexandre Julliard638f1691999-01-17 16:32:32 +00008970
Alexandre Julliard48957682001-12-26 23:08:31 +00008971 LIBS="$saved_libs"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00008972fi
8973
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008974
Shi Quan He6b0720f2002-03-21 02:58:39 +00008975# Extract the first word of "sane-config", so it can be a program name with args.
8976set dummy sane-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008977echo "$as_me:$LINENO: checking for $ac_word" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00008978echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8979if test "${ac_cv_prog_sane_devel+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8981else
8982 if test -n "$sane_devel"; then
8983 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
8984else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8986for as_dir in $PATH
8987do
8988 IFS=$as_save_IFS
8989 test -z "$as_dir" && as_dir=.
8990 for ac_exec_ext in '' $ac_executable_extensions; do
8991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8992 ac_cv_prog_sane_devel="sane-config"
8993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8994 break 2
8995 fi
8996done
Shi Quan He6b0720f2002-03-21 02:58:39 +00008997done
8998
8999 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9000fi
9001fi
9002sane_devel=$ac_cv_prog_sane_devel
9003if test -n "$sane_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009004 echo "$as_me:$LINENO: result: $sane_devel" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009005echo "${ECHO_T}$sane_devel" >&6
9006else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009007 echo "$as_me:$LINENO: result: no" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009008echo "${ECHO_T}no" >&6
9009fi
9010
9011if test "$sane_devel" = "no"
9012then
9013 SANELIBS=""
9014 SANEINCL=""
9015else
9016 SANELIBS="`$sane_devel --libs`"
9017 SANEINCL="`$sane_devel --cflags`"
9018 ac_save_CPPFLAGS="$CPPFLAGS"
9019 ac_save_LIBS="$LIBS"
9020 CPPFLAGS="$CPPFLAGS $SANEINCL"
9021 LIBS="$LIBS $SANELIBS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009022 if test "${ac_cv_header_sane_sane_h+set}" = set; then
9023 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009024echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9025if test "${ac_cv_header_sane_sane_h+set}" = set; then
9026 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009027fi
9028echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
9029echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009030else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009031 # Is the header compilable?
9032echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
9033echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
9034cat >conftest.$ac_ext <<_ACEOF
9035#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009036/* confdefs.h. */
9037_ACEOF
9038cat confdefs.h >>conftest.$ac_ext
9039cat >>conftest.$ac_ext <<_ACEOF
9040/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009041$ac_includes_default
9042#include <sane/sane.h>
9043_ACEOF
9044rm -f conftest.$ac_objext
9045if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9046 (eval $ac_compile) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } &&
9050 { ac_try='test -s conftest.$ac_objext'
9051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9052 (eval $ac_try) 2>&5
9053 ac_status=$?
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); }; }; then
9056 ac_header_compiler=yes
9057else
9058 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009059sed 's/^/| /' conftest.$ac_ext >&5
9060
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009061ac_header_compiler=no
9062fi
9063rm -f conftest.$ac_objext conftest.$ac_ext
9064echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9065echo "${ECHO_T}$ac_header_compiler" >&6
9066
9067# Is the header present?
9068echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
9069echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
9070cat >conftest.$ac_ext <<_ACEOF
9071#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009072/* confdefs.h. */
9073_ACEOF
9074cat confdefs.h >>conftest.$ac_ext
9075cat >>conftest.$ac_ext <<_ACEOF
9076/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009077#include <sane/sane.h>
9078_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009079if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009080 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9081 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009082 grep -v '^ *+' conftest.er1 >conftest.err
Shi Quan He6b0720f2002-03-21 02:58:39 +00009083 rm -f conftest.er1
9084 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009086 (exit $ac_status); } >/dev/null; then
9087 if test -s conftest.err; then
9088 ac_cpp_err=$ac_c_preproc_warn_flag
9089 else
9090 ac_cpp_err=
9091 fi
9092else
9093 ac_cpp_err=yes
9094fi
9095if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009096 ac_header_preproc=yes
Shi Quan He6b0720f2002-03-21 02:58:39 +00009097else
9098 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009099sed 's/^/| /' conftest.$ac_ext >&5
9100
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009101 ac_header_preproc=no
Shi Quan He6b0720f2002-03-21 02:58:39 +00009102fi
9103rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009104echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9105echo "${ECHO_T}$ac_header_preproc" >&6
9106
9107# So? What about this header?
9108case $ac_header_compiler:$ac_header_preproc in
9109 yes:no )
9110 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
9111echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9112 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009113echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9114 (
9115 cat <<\_ASBOX
9116## ------------------------------------ ##
9117## Report this to bug-autoconf@gnu.org. ##
9118## ------------------------------------ ##
9119_ASBOX
9120 ) |
9121 sed "s/^/$as_me: WARNING: /" >&2
9122 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009123 no:yes )
9124 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
9125echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
9126 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
9127echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
9128 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009129echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
9130 (
9131 cat <<\_ASBOX
9132## ------------------------------------ ##
9133## Report this to bug-autoconf@gnu.org. ##
9134## ------------------------------------ ##
9135_ASBOX
9136 ) |
9137 sed "s/^/$as_me: WARNING: /" >&2
9138 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009139esac
9140echo "$as_me:$LINENO: checking for sane/sane.h" >&5
9141echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
9142if test "${ac_cv_header_sane_sane_h+set}" = set; then
9143 echo $ECHO_N "(cached) $ECHO_C" >&6
9144else
9145 ac_cv_header_sane_sane_h=$ac_header_preproc
Shi Quan He6b0720f2002-03-21 02:58:39 +00009146fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009147echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009148echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009149
9150fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009151if test $ac_cv_header_sane_sane_h = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009152 echo "$as_me:$LINENO: checking for sane_open in -lsane" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009153echo $ECHO_N "checking for sane_open in -lsane... $ECHO_C" >&6
9154if test "${ac_cv_lib_sane_sane_open+set}" = set; then
9155 echo $ECHO_N "(cached) $ECHO_C" >&6
9156else
9157 ac_check_lib_save_LIBS=$LIBS
9158LIBS="-lsane $LIBS"
9159cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009160#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009161/* confdefs.h. */
9162_ACEOF
9163cat confdefs.h >>conftest.$ac_ext
9164cat >>conftest.$ac_ext <<_ACEOF
9165/* end confdefs.h. */
Shi Quan He6b0720f2002-03-21 02:58:39 +00009166
9167/* Override any gcc2 internal prototype to avoid an error. */
9168#ifdef __cplusplus
9169extern "C"
9170#endif
9171/* We use char because int might match the return type of a gcc2
9172 builtin and then its argument prototype would still apply. */
9173char sane_open ();
9174int
9175main ()
9176{
9177sane_open ();
9178 ;
9179 return 0;
9180}
9181_ACEOF
9182rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009183if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009184 (eval $ac_link) 2>&5
9185 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009187 (exit $ac_status); } &&
9188 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009190 (eval $ac_try) 2>&5
9191 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009193 (exit $ac_status); }; }; then
9194 ac_cv_lib_sane_sane_open=yes
9195else
9196 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009197sed 's/^/| /' conftest.$ac_ext >&5
9198
Shi Quan He6b0720f2002-03-21 02:58:39 +00009199ac_cv_lib_sane_sane_open=no
9200fi
9201rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9202LIBS=$ac_check_lib_save_LIBS
9203fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009204echo "$as_me:$LINENO: result: $ac_cv_lib_sane_sane_open" >&5
Shi Quan He6b0720f2002-03-21 02:58:39 +00009205echo "${ECHO_T}$ac_cv_lib_sane_sane_open" >&6
9206if test $ac_cv_lib_sane_sane_open = yes; then
9207
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009208cat >>confdefs.h <<\_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009209#define HAVE_SANE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009210_ACEOF
Shi Quan He6b0720f2002-03-21 02:58:39 +00009211
9212else
9213 SANELIBS=""
Alexandre Julliard96328b32002-03-31 19:23:41 +00009214 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009215fi
9216
Alexandre Julliard96328b32002-03-31 19:23:41 +00009217else
9218 SANELIBS=""
9219 SANEINCL=""
Shi Quan He6b0720f2002-03-21 02:58:39 +00009220fi
9221
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009222
Shi Quan He6b0720f2002-03-21 02:58:39 +00009223 LIBS="$ac_save_LIBS"
9224 CPPFLAGS="$ac_save_CPPFLAGS"
9225fi
9226
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009227
9228
Alexandre Julliard4ee82902003-06-20 21:38:10 +00009229
9230for ac_header in unicode/ubidi.h
9231do
9232as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9233if eval "test \"\${$as_ac_Header+set}\" = set"; then
9234 echo "$as_me:$LINENO: checking for $ac_header" >&5
9235echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9236if eval "test \"\${$as_ac_Header+set}\" = set"; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9238fi
9239echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9240echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9241else
9242 # Is the header compilable?
9243echo "$as_me:$LINENO: checking $ac_header usability" >&5
9244echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9245cat >conftest.$ac_ext <<_ACEOF
9246#line $LINENO "configure"
9247/* confdefs.h. */
9248_ACEOF
9249cat confdefs.h >>conftest.$ac_ext
9250cat >>conftest.$ac_ext <<_ACEOF
9251/* end confdefs.h. */
9252$ac_includes_default
9253#include <$ac_header>
9254_ACEOF
9255rm -f conftest.$ac_objext
9256if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9257 (eval $ac_compile) 2>&5
9258 ac_status=$?
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } &&
9261 { ac_try='test -s conftest.$ac_objext'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263 (eval $ac_try) 2>&5
9264 ac_status=$?
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; }; then
9267 ac_header_compiler=yes
9268else
9269 echo "$as_me: failed program was:" >&5
9270sed 's/^/| /' conftest.$ac_ext >&5
9271
9272ac_header_compiler=no
9273fi
9274rm -f conftest.$ac_objext conftest.$ac_ext
9275echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9276echo "${ECHO_T}$ac_header_compiler" >&6
9277
9278# Is the header present?
9279echo "$as_me:$LINENO: checking $ac_header presence" >&5
9280echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9281cat >conftest.$ac_ext <<_ACEOF
9282#line $LINENO "configure"
9283/* confdefs.h. */
9284_ACEOF
9285cat confdefs.h >>conftest.$ac_ext
9286cat >>conftest.$ac_ext <<_ACEOF
9287/* end confdefs.h. */
9288#include <$ac_header>
9289_ACEOF
9290if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9291 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9292 ac_status=$?
9293 grep -v '^ *+' conftest.er1 >conftest.err
9294 rm -f conftest.er1
9295 cat conftest.err >&5
9296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9297 (exit $ac_status); } >/dev/null; then
9298 if test -s conftest.err; then
9299 ac_cpp_err=$ac_c_preproc_warn_flag
9300 else
9301 ac_cpp_err=
9302 fi
9303else
9304 ac_cpp_err=yes
9305fi
9306if test -z "$ac_cpp_err"; then
9307 ac_header_preproc=yes
9308else
9309 echo "$as_me: failed program was:" >&5
9310sed 's/^/| /' conftest.$ac_ext >&5
9311
9312 ac_header_preproc=no
9313fi
9314rm -f conftest.err conftest.$ac_ext
9315echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9316echo "${ECHO_T}$ac_header_preproc" >&6
9317
9318# So? What about this header?
9319case $ac_header_compiler:$ac_header_preproc in
9320 yes:no )
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9322echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9324echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9325 (
9326 cat <<\_ASBOX
9327## ------------------------------------ ##
9328## Report this to bug-autoconf@gnu.org. ##
9329## ------------------------------------ ##
9330_ASBOX
9331 ) |
9332 sed "s/^/$as_me: WARNING: /" >&2
9333 ;;
9334 no:yes )
9335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9336echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9338echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9340echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9341 (
9342 cat <<\_ASBOX
9343## ------------------------------------ ##
9344## Report this to bug-autoconf@gnu.org. ##
9345## ------------------------------------ ##
9346_ASBOX
9347 ) |
9348 sed "s/^/$as_me: WARNING: /" >&2
9349 ;;
9350esac
9351echo "$as_me:$LINENO: checking for $ac_header" >&5
9352echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9353if eval "test \"\${$as_ac_Header+set}\" = set"; then
9354 echo $ECHO_N "(cached) $ECHO_C" >&6
9355else
9356 eval "$as_ac_Header=$ac_header_preproc"
9357fi
9358echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9359echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9360
9361fi
9362if test `eval echo '${'$as_ac_Header'}'` = yes; then
9363 cat >>confdefs.h <<_ACEOF
9364#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9365_ACEOF
9366
9367fi
9368
9369done
9370
9371if test "$ac_cv_header_unicode_ubidi_h" = "yes"
9372then
9373 echo "$as_me:$LINENO: checking whether we can statically link the ICU libraries" >&5
9374echo $ECHO_N "checking whether we can statically link the ICU libraries... $ECHO_C" >&6
9375if test "${ac_cv_lib_icu+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9377else
9378 saved_libs="$LIBS"
9379 ICU_LIB_DIR="${ICU_LIB_DIR-/usr/lib}"
9380 ICUUC_LIB="${ICUUC_LIB-$ICU_LIB_DIR/libicuuc.a}"
9381 ICUDATA_LIB="${ICUDATA_LIB-$ICU_LIB_DIR/libicudata.a}"
9382 LIBS="$LIBS $ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9383 cat >conftest.$ac_ext <<_ACEOF
9384#line $LINENO "configure"
9385/* confdefs.h. */
9386_ACEOF
9387cat confdefs.h >>conftest.$ac_ext
9388cat >>conftest.$ac_ext <<_ACEOF
9389/* end confdefs.h. */
9390#include <unicode/ubidi.h>
9391int
9392main ()
9393{
9394ubidi_open()
9395 ;
9396 return 0;
9397}
9398_ACEOF
9399rm -f conftest.$ac_objext conftest$ac_exeext
9400if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9401 (eval $ac_link) 2>&5
9402 ac_status=$?
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } &&
9405 { ac_try='test -s conftest$ac_exeext'
9406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9407 (eval $ac_try) 2>&5
9408 ac_status=$?
9409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9410 (exit $ac_status); }; }; then
9411 ac_cv_lib_icu="yes"
9412else
9413 echo "$as_me: failed program was:" >&5
9414sed 's/^/| /' conftest.$ac_ext >&5
9415
9416ac_cv_lib_icu="no"
9417fi
9418rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9419 LIBS="$saved_libs"
9420fi
9421echo "$as_me:$LINENO: result: $ac_cv_lib_icu" >&5
9422echo "${ECHO_T}$ac_cv_lib_icu" >&6
9423 if test "$ac_cv_lib_icu" = "yes"
9424 then
9425
9426cat >>confdefs.h <<\_ACEOF
9427#define HAVE_ICU 1
9428_ACEOF
9429
9430 ICULIBS="$ICUUC_LIB $ICUDATA_LIB -lstdc++ -lgcc_s"
9431
9432 fi
9433fi
9434
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009435echo "$as_me:$LINENO: checking for FT_Init_FreeType in -lfreetype" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009436echo $ECHO_N "checking for FT_Init_FreeType in -lfreetype... $ECHO_C" >&6
9437if test "${ac_cv_lib_freetype_FT_Init_FreeType+set}" = set; then
9438 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009439else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009440 ac_check_lib_save_LIBS=$LIBS
Dmitry Timoshkov8871a112001-11-06 22:26:53 +00009441LIBS="-lfreetype $X_LIBS $LIBS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009442cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009443#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009444/* confdefs.h. */
9445_ACEOF
9446cat confdefs.h >>conftest.$ac_ext
9447cat >>conftest.$ac_ext <<_ACEOF
9448/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009449
Ian Pilcher563598d2001-05-16 20:56:05 +00009450/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009451#ifdef __cplusplus
9452extern "C"
9453#endif
Ian Pilcher563598d2001-05-16 20:56:05 +00009454/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009455 builtin and then its argument prototype would still apply. */
9456char FT_Init_FreeType ();
9457int
9458main ()
9459{
9460FT_Init_FreeType ();
9461 ;
9462 return 0;
9463}
9464_ACEOF
9465rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009466if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009467 (eval $ac_link) 2>&5
9468 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009470 (exit $ac_status); } &&
9471 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009473 (eval $ac_try) 2>&5
9474 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009476 (exit $ac_status); }; }; then
9477 ac_cv_lib_freetype_FT_Init_FreeType=yes
Ian Pilcher563598d2001-05-16 20:56:05 +00009478else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009479 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009480sed 's/^/| /' conftest.$ac_ext >&5
9481
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009482ac_cv_lib_freetype_FT_Init_FreeType=no
Ian Pilcher563598d2001-05-16 20:56:05 +00009483fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009484rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9485LIBS=$ac_check_lib_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +00009486fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009487echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009488echo "${ECHO_T}$ac_cv_lib_freetype_FT_Init_FreeType" >&6
9489if test $ac_cv_lib_freetype_FT_Init_FreeType = yes; then
Ian Pilcher563598d2001-05-16 20:56:05 +00009490 ft_lib=yes
9491else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009492 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +00009493fi
9494
9495if test "$ft_lib" = "no"
9496then
Ian Pilcher563598d2001-05-16 20:56:05 +00009497 FREETYPEINCL=""
9498 wine_cv_msg_freetype=no
9499else
9500 # Extract the first word of "freetype-config", so it can be a program name with args.
9501set dummy freetype-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009502echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009503echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9504if test "${ac_cv_prog_ft_devel+set}" = set; then
9505 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009506else
9507 if test -n "$ft_devel"; then
9508 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
9509else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9511for as_dir in $PATH
9512do
9513 IFS=$as_save_IFS
9514 test -z "$as_dir" && as_dir=.
9515 for ac_exec_ext in '' $ac_executable_extensions; do
9516 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9517 ac_cv_prog_ft_devel="freetype-config"
9518 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9519 break 2
9520 fi
9521done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009522done
9523
Ian Pilcher563598d2001-05-16 20:56:05 +00009524 test -z "$ac_cv_prog_ft_devel" && ac_cv_prog_ft_devel="no"
9525fi
9526fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009527ft_devel=$ac_cv_prog_ft_devel
Ian Pilcher563598d2001-05-16 20:56:05 +00009528if test -n "$ft_devel"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009529 echo "$as_me:$LINENO: result: $ft_devel" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009530echo "${ECHO_T}$ft_devel" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009531else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009532 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009533echo "${ECHO_T}no" >&6
Ian Pilcher563598d2001-05-16 20:56:05 +00009534fi
9535
9536 if test "$ft_devel" = "no"
9537 then
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009538 # Extract the first word of "freetype2-config", so it can be a program name with args.
9539set dummy freetype2-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009540echo "$as_me:$LINENO: checking for $ac_word" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009541echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9542if test "${ac_cv_prog_ft_devel2+set}" = set; then
9543 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009544else
9545 if test -n "$ft_devel2"; then
9546 ac_cv_prog_ft_devel2="$ft_devel2" # Let the user override the test.
9547else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549for as_dir in $PATH
9550do
9551 IFS=$as_save_IFS
9552 test -z "$as_dir" && as_dir=.
9553 for ac_exec_ext in '' $ac_executable_extensions; do
9554 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9555 ac_cv_prog_ft_devel2="freetype2-config"
9556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9557 break 2
9558 fi
9559done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009560done
9561
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009562 test -z "$ac_cv_prog_ft_devel2" && ac_cv_prog_ft_devel2="no"
9563fi
9564fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009565ft_devel2=$ac_cv_prog_ft_devel2
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009566if test -n "$ft_devel2"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009567 echo "$as_me:$LINENO: result: $ft_devel2" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009568echo "${ECHO_T}$ft_devel2" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009569else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009570 echo "$as_me:$LINENO: result: no" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009571echo "${ECHO_T}no" >&6
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009572fi
9573
9574 if test "$ft_devel2" = "freetype2-config"
9575 then
9576 ft_devel=$ft_devel2
9577 fi
9578 fi
9579 if test "$ft_devel" = "no"
9580 then
Ian Pilcher563598d2001-05-16 20:56:05 +00009581 FREETYPEINCL=""
9582 wine_cv_msg_freetype=yes
9583 else
Marcus Meissnerd28955d2001-05-31 21:35:15 +00009584 FREETYPEINCL=`$ft_devel --cflags`
Ian Pilcher40432fe2001-06-06 21:05:23 +00009585 ac_save_CPPFLAGS="$CPPFLAGS"
9586 CPPFLAGS="$FREETYPEINCL $CPPFLAGS"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009587
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009588
9589
9590
9591
9592
9593
9594
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009595for ac_header in freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +00009596 freetype/ftglyph.h \
9597 freetype/tttables.h \
9598 freetype/ftnames.h \
9599 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +00009600 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +00009601 freetype/ftoutln.h \
9602 freetype/internal/sfnt.h
Ian Pilcher40432fe2001-06-06 21:05:23 +00009603do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009604as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009605if eval "test \"\${$as_ac_Header+set}\" = set"; then
9606 echo "$as_me:$LINENO: checking for $ac_header" >&5
9607echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9608if eval "test \"\${$as_ac_Header+set}\" = set"; then
9609 echo $ECHO_N "(cached) $ECHO_C" >&6
9610fi
9611echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9612echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9613else
9614 # Is the header compilable?
9615echo "$as_me:$LINENO: checking $ac_header usability" >&5
9616echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9617cat >conftest.$ac_ext <<_ACEOF
9618#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009619/* confdefs.h. */
9620_ACEOF
9621cat confdefs.h >>conftest.$ac_ext
9622cat >>conftest.$ac_ext <<_ACEOF
9623/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009624$ac_includes_default
9625#include <$ac_header>
9626_ACEOF
9627rm -f conftest.$ac_objext
9628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9629 (eval $ac_compile) 2>&5
9630 ac_status=$?
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } &&
9633 { ac_try='test -s conftest.$ac_objext'
9634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9635 (eval $ac_try) 2>&5
9636 ac_status=$?
9637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9638 (exit $ac_status); }; }; then
9639 ac_header_compiler=yes
9640else
9641 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009642sed 's/^/| /' conftest.$ac_ext >&5
9643
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009644ac_header_compiler=no
9645fi
9646rm -f conftest.$ac_objext conftest.$ac_ext
9647echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9648echo "${ECHO_T}$ac_header_compiler" >&6
9649
9650# Is the header present?
9651echo "$as_me:$LINENO: checking $ac_header presence" >&5
9652echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9653cat >conftest.$ac_ext <<_ACEOF
9654#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009655/* confdefs.h. */
9656_ACEOF
9657cat confdefs.h >>conftest.$ac_ext
9658cat >>conftest.$ac_ext <<_ACEOF
9659/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009660#include <$ac_header>
9661_ACEOF
9662if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9664 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009665 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009666 rm -f conftest.er1
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } >/dev/null; then
9670 if test -s conftest.err; then
9671 ac_cpp_err=$ac_c_preproc_warn_flag
9672 else
9673 ac_cpp_err=
9674 fi
9675else
9676 ac_cpp_err=yes
9677fi
9678if test -z "$ac_cpp_err"; then
9679 ac_header_preproc=yes
9680else
9681 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009682sed 's/^/| /' conftest.$ac_ext >&5
9683
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009684 ac_header_preproc=no
9685fi
9686rm -f conftest.err conftest.$ac_ext
9687echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9688echo "${ECHO_T}$ac_header_preproc" >&6
9689
9690# So? What about this header?
9691case $ac_header_compiler:$ac_header_preproc in
9692 yes:no )
9693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9694echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009696echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9697 (
9698 cat <<\_ASBOX
9699## ------------------------------------ ##
9700## Report this to bug-autoconf@gnu.org. ##
9701## ------------------------------------ ##
9702_ASBOX
9703 ) |
9704 sed "s/^/$as_me: WARNING: /" >&2
9705 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009706 no:yes )
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9708echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9710echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9711 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009712echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9713 (
9714 cat <<\_ASBOX
9715## ------------------------------------ ##
9716## Report this to bug-autoconf@gnu.org. ##
9717## ------------------------------------ ##
9718_ASBOX
9719 ) |
9720 sed "s/^/$as_me: WARNING: /" >&2
9721 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009722esac
9723echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009724echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9725if eval "test \"\${$as_ac_Header+set}\" = set"; then
9726 echo $ECHO_N "(cached) $ECHO_C" >&6
Ian Pilcher40432fe2001-06-06 21:05:23 +00009727else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009728 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009729fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009730echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009731echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009732
Ian Pilcher40432fe2001-06-06 21:05:23 +00009733fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009734if test `eval echo '${'$as_ac_Header'}'` = yes; then
9735 cat >>confdefs.h <<_ACEOF
9736#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9737_ACEOF
9738
9739fi
9740
Ian Pilcher40432fe2001-06-06 21:05:23 +00009741done
9742
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009743 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009744#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009745/* confdefs.h. */
9746_ACEOF
9747cat confdefs.h >>conftest.$ac_ext
9748cat >>conftest.$ac_ext <<_ACEOF
9749/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +00009750#include <ft2build.h>
9751 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009752_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009754 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9755 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +00009756 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009757 rm -f conftest.er1
9758 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009760 (exit $ac_status); } >/dev/null; then
9761 if test -s conftest.err; then
9762 ac_cpp_err=$ac_c_preproc_warn_flag
9763 else
9764 ac_cpp_err=
9765 fi
9766else
9767 ac_cpp_err=yes
9768fi
9769if test -z "$ac_cpp_err"; then
9770
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009771cat >>confdefs.h <<\_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00009772#define HAVE_FREETYPE_FTTRIGON_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009773_ACEOF
Alexandre Julliard18d75732002-01-29 03:02:50 +00009774
Huw D M Daviesc1d38132002-02-08 17:09:50 +00009775 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +00009776else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009777 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009778sed 's/^/| /' conftest.$ac_ext >&5
9779
Huw D M Daviesc1d38132002-02-08 17:09:50 +00009780 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +00009781fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009782rm -f conftest.err conftest.$ac_ext
Ian Pilcher40432fe2001-06-06 21:05:23 +00009783 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +00009784 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009785 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009786
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009787cat >>confdefs.h <<\_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009788#define HAVE_FREETYPE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009789_ACEOF
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009790
9791 wine_cv_msg_freetype=no
9792 else
Huw D M Davies9b1d3722002-01-29 17:09:28 +00009793 FREETYPEINCL=""
9794 wine_cv_msg_freetype=yes
9795 fi
Ian Pilcher563598d2001-05-16 20:56:05 +00009796 fi
9797fi
9798
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009799
9800echo "$as_me:$LINENO: checking for parport header/ppdev.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009801echo $ECHO_N "checking for parport header/ppdev.h... $ECHO_C" >&6
9802if test "${ac_cv_c_ppdev+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
Pavel Roskin94d99641998-12-26 11:52:51 +00009804else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009805 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009806#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009807/* confdefs.h. */
9808_ACEOF
9809cat confdefs.h >>conftest.$ac_ext
9810cat >>conftest.$ac_ext <<_ACEOF
9811/* end confdefs.h. */
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009812#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009813int
9814main ()
9815{
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009816ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009817 ;
9818 return 0;
9819}
9820_ACEOF
9821rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009822if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009823 (eval $ac_compile) 2>&5
9824 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009826 (exit $ac_status); } &&
9827 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009829 (eval $ac_try) 2>&5
9830 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009832 (exit $ac_status); }; }; then
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009833 ac_cv_c_ppdev="yes"
9834else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009835 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009836sed 's/^/| /' conftest.$ac_ext >&5
9837
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009838ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009839fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009840rm -f conftest.$ac_objext conftest.$ac_ext
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009841
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009842fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009843echo "$as_me:$LINENO: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009844echo "${ECHO_T}$ac_cv_c_ppdev" >&6
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009845if test "$ac_cv_c_ppdev" = "yes"
9846then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009847
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009848cat >>confdefs.h <<\_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009849#define HAVE_PPDEV 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009850_ACEOF
Uwe Bonnes6509fa92001-06-26 21:06:07 +00009851
9852fi
9853
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009854echo "$as_me:$LINENO: checking for va_copy" >&5
9855echo $ECHO_N "checking for va_copy... $ECHO_C" >&6
9856if test "${ac_cv_c_va_copy+set}" = set; then
9857 echo $ECHO_N "(cached) $ECHO_C" >&6
9858else
9859 cat >conftest.$ac_ext <<_ACEOF
9860#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009861/* confdefs.h. */
9862_ACEOF
9863cat confdefs.h >>conftest.$ac_ext
9864cat >>conftest.$ac_ext <<_ACEOF
9865/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009866#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009867int
9868main ()
9869{
9870va_list ap1, ap2;
9871 va_copy(ap1,ap2);
9872
9873 ;
9874 return 0;
9875}
9876_ACEOF
9877rm -f conftest.$ac_objext conftest$ac_exeext
9878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9879 (eval $ac_link) 2>&5
9880 ac_status=$?
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } &&
9883 { ac_try='test -s conftest$ac_exeext'
9884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9885 (eval $ac_try) 2>&5
9886 ac_status=$?
9887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9888 (exit $ac_status); }; }; then
9889 ac_cv_c_va_copy="yes"
9890else
9891 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009892sed 's/^/| /' conftest.$ac_ext >&5
9893
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009894ac_cv_c_va_copy="no"
9895fi
9896rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9897
9898fi
9899echo "$as_me:$LINENO: result: $ac_cv_c_va_copy" >&5
9900echo "${ECHO_T}$ac_cv_c_va_copy" >&6
9901if test "$ac_cv_c_va_copy" = "yes"
9902then
9903
9904cat >>confdefs.h <<\_ACEOF
9905#define HAVE_VA_COPY 1
9906_ACEOF
9907
9908fi
9909echo "$as_me:$LINENO: checking for __va_copy" >&5
9910echo $ECHO_N "checking for __va_copy... $ECHO_C" >&6
9911if test "${ac_cv_c___va_copy+set}" = set; then
9912 echo $ECHO_N "(cached) $ECHO_C" >&6
9913else
9914 cat >conftest.$ac_ext <<_ACEOF
9915#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009916/* confdefs.h. */
9917_ACEOF
9918cat confdefs.h >>conftest.$ac_ext
9919cat >>conftest.$ac_ext <<_ACEOF
9920/* end confdefs.h. */
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009921#include <stdarg.h>
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009922int
9923main ()
9924{
9925va_list ap1, ap2;
9926 __va_copy(ap1,ap2);
9927
9928 ;
9929 return 0;
9930}
9931_ACEOF
9932rm -f conftest.$ac_objext conftest$ac_exeext
9933if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9934 (eval $ac_link) 2>&5
9935 ac_status=$?
9936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9937 (exit $ac_status); } &&
9938 { ac_try='test -s conftest$ac_exeext'
9939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9940 (eval $ac_try) 2>&5
9941 ac_status=$?
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); }; }; then
9944 ac_cv_c___va_copy="yes"
9945else
9946 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009947sed 's/^/| /' conftest.$ac_ext >&5
9948
Marcus Meissner5ee517a2002-08-09 19:49:31 +00009949ac_cv_c___va_copy="no"
9950fi
9951rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9952
9953fi
9954echo "$as_me:$LINENO: result: $ac_cv_c___va_copy" >&5
9955echo "${ECHO_T}$ac_cv_c___va_copy" >&6
9956if test "$ac_cv_c___va_copy" = "yes"
9957then
9958
9959cat >>confdefs.h <<\_ACEOF
9960#define HAVE___VA_COPY 1
9961_ACEOF
9962
9963fi
9964
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009965
9966
9967
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009968for ac_header in sys/soundcard.h machine/soundcard.h soundcard.h
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009969do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009970as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009971if eval "test \"\${$as_ac_Header+set}\" = set"; then
9972 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009973echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9974if eval "test \"\${$as_ac_Header+set}\" = set"; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009976fi
9977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +00009979else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009980 # Is the header compilable?
9981echo "$as_me:$LINENO: checking $ac_header usability" >&5
9982echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9983cat >conftest.$ac_ext <<_ACEOF
9984#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009985/* confdefs.h. */
9986_ACEOF
9987cat confdefs.h >>conftest.$ac_ext
9988cat >>conftest.$ac_ext <<_ACEOF
9989/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009990$ac_includes_default
9991#include <$ac_header>
9992_ACEOF
9993rm -f conftest.$ac_objext
9994if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9995 (eval $ac_compile) 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); } &&
9999 { ac_try='test -s conftest.$ac_objext'
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10002 ac_status=$?
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
10005 ac_header_compiler=yes
10006else
10007 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010008sed 's/^/| /' conftest.$ac_ext >&5
10009
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010010ac_header_compiler=no
10011fi
10012rm -f conftest.$ac_objext conftest.$ac_ext
10013echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10014echo "${ECHO_T}$ac_header_compiler" >&6
10015
10016# Is the header present?
10017echo "$as_me:$LINENO: checking $ac_header presence" >&5
10018echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10019cat >conftest.$ac_ext <<_ACEOF
10020#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010021/* confdefs.h. */
10022_ACEOF
10023cat confdefs.h >>conftest.$ac_ext
10024cat >>conftest.$ac_ext <<_ACEOF
10025/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010026#include <$ac_header>
10027_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010028if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010029 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10030 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010031 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010032 rm -f conftest.er1
10033 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010035 (exit $ac_status); } >/dev/null; then
10036 if test -s conftest.err; then
10037 ac_cpp_err=$ac_c_preproc_warn_flag
10038 else
10039 ac_cpp_err=
10040 fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010041else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010042 ac_cpp_err=yes
10043fi
10044if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010045 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010046else
10047 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010048sed 's/^/| /' conftest.$ac_ext >&5
10049
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010050 ac_header_preproc=no
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010051fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010052rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010053echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10054echo "${ECHO_T}$ac_header_preproc" >&6
10055
10056# So? What about this header?
10057case $ac_header_compiler:$ac_header_preproc in
10058 yes:no )
10059 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10060echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010062echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10063 (
10064 cat <<\_ASBOX
10065## ------------------------------------ ##
10066## Report this to bug-autoconf@gnu.org. ##
10067## ------------------------------------ ##
10068_ASBOX
10069 ) |
10070 sed "s/^/$as_me: WARNING: /" >&2
10071 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010072 no:yes )
10073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10074echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10076echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010078echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10079 (
10080 cat <<\_ASBOX
10081## ------------------------------------ ##
10082## Report this to bug-autoconf@gnu.org. ##
10083## ------------------------------------ ##
10084_ASBOX
10085 ) |
10086 sed "s/^/$as_me: WARNING: /" >&2
10087 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010088esac
10089echo "$as_me:$LINENO: checking for $ac_header" >&5
10090echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10091if eval "test \"\${$as_ac_Header+set}\" = set"; then
10092 echo $ECHO_N "(cached) $ECHO_C" >&6
10093else
10094 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010095fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010096echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010097echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010098
10099fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010100if test `eval echo '${'$as_ac_Header'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010101 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010102#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010103_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +000010104 break
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010105fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010106
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010107done
10108
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010109
10110echo "$as_me:$LINENO: checking for Open Sound System" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010111echo $ECHO_N "checking for Open Sound System... $ECHO_C" >&6
10112if test "${ac_cv_c_opensoundsystem+set}" = set; then
10113 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010114else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010115 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010116#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010117/* confdefs.h. */
10118_ACEOF
10119cat confdefs.h >>conftest.$ac_ext
10120cat >>conftest.$ac_ext <<_ACEOF
10121/* end confdefs.h. */
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010122
Todd Vierlingecc76691998-12-15 17:49:02 +000010123 #if defined(HAVE_SYS_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010124 #include <sys/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +000010125 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010126 #include <machine/soundcard.h>
Todd Vierlingecc76691998-12-15 17:49:02 +000010127 #elif defined(HAVE_SOUNDCARD_H)
10128 #include <soundcard.h>
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010129 #endif
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010130
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010131int
10132main ()
10133{
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000010134
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010135
Alexandre Julliard60ce85c1998-02-01 18:33:27 +000010136/* check for one of the Open Sound System specific SNDCTL_ defines */
10137#if !defined(SNDCTL_DSP_STEREO)
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010138#error No open sound system
10139#endif
10140
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010141 ;
10142 return 0;
10143}
10144_ACEOF
10145rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010147 (eval $ac_compile) 2>&5
10148 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010150 (exit $ac_status); } &&
10151 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010153 (eval $ac_try) 2>&5
10154 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010156 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010157 ac_cv_c_opensoundsystem="yes"
10158else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010159 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010160sed 's/^/| /' conftest.$ac_ext >&5
10161
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010162ac_cv_c_opensoundsystem="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010163fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010164rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010165fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010166echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010167echo "${ECHO_T}$ac_cv_c_opensoundsystem" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000010168
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010169if test "$ac_cv_c_opensoundsystem" = "yes"
10170then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010171
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010172cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010173#define HAVE_OSS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010174_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000010175
10176fi
10177
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010178echo "$as_me:$LINENO: checking for Open Sound System/MIDI interface" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010179echo $ECHO_N "checking for Open Sound System/MIDI interface... $ECHO_C" >&6
10180if test "${ac_cv_c_opensoundsystem_midi+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000010182else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010183 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010184#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010185/* confdefs.h. */
10186_ACEOF
10187cat confdefs.h >>conftest.$ac_ext
10188cat >>conftest.$ac_ext <<_ACEOF
10189/* end confdefs.h. */
Eric Pouech338d3b21999-05-22 18:52:21 +000010190
10191 #if defined(HAVE_SYS_SOUNDCARD_H)
10192 #include <sys/soundcard.h>
10193 #elif defined(HAVE_MACHINE_SOUNDCARD_H)
10194 #include <machine/soundcard.h>
10195 #elif defined(HAVE_SOUNDCARD_H)
10196 #include <soundcard.h>
10197 #endif
Eric Pouech338d3b21999-05-22 18:52:21 +000010198
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010199int
10200main ()
10201{
Eric Pouech338d3b21999-05-22 18:52:21 +000010202
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010203
Eric Pouech338d3b21999-05-22 18:52:21 +000010204/* check for one of the Open Sound System specific SNDCTL_SEQ defines */
10205#if !defined(SNDCTL_SEQ_SYNC)
10206#error No open sound system MIDI interface
10207#endif
10208
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010209 ;
10210 return 0;
10211}
10212_ACEOF
10213rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010214if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010215 (eval $ac_compile) 2>&5
10216 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010218 (exit $ac_status); } &&
10219 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010221 (eval $ac_try) 2>&5
10222 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010224 (exit $ac_status); }; }; then
Eric Pouech338d3b21999-05-22 18:52:21 +000010225 ac_cv_c_opensoundsystem_midi="yes"
10226else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010227 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010228sed 's/^/| /' conftest.$ac_ext >&5
10229
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010230ac_cv_c_opensoundsystem_midi="no"
Eric Pouech338d3b21999-05-22 18:52:21 +000010231fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010232rm -f conftest.$ac_objext conftest.$ac_ext
Eric Pouech338d3b21999-05-22 18:52:21 +000010233fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010234echo "$as_me:$LINENO: result: $ac_cv_c_opensoundsystem_midi" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010235echo "${ECHO_T}$ac_cv_c_opensoundsystem_midi" >&6
Eric Pouech338d3b21999-05-22 18:52:21 +000010236
10237if test "$ac_cv_c_opensoundsystem_midi" = "yes"
10238then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010239
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010240cat >>confdefs.h <<\_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000010241#define HAVE_OSS_MIDI 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010242_ACEOF
Eric Pouech338d3b21999-05-22 18:52:21 +000010243
10244fi
10245
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010246# Extract the first word of "artsc-config", so it can be a program name with args.
10247set dummy artsc-config; ac_word=$2
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010248echo "$as_me:$LINENO: checking for $ac_word" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010249echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10250if test "${ac_cv_path_ARTSCCONFIG+set}" = set; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
10252else
10253 case $ARTSCCONFIG in
10254 [\\/]* | ?:[\\/]*)
10255 ac_cv_path_ARTSCCONFIG="$ARTSCCONFIG" # Let the user override the test with a path.
10256 ;;
10257 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10259for as_dir in $PATH
10260do
10261 IFS=$as_save_IFS
10262 test -z "$as_dir" && as_dir=.
10263 for ac_exec_ext in '' $ac_executable_extensions; do
10264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10265 ac_cv_path_ARTSCCONFIG="$as_dir/$ac_word$ac_exec_ext"
10266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10267 break 2
10268 fi
10269done
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010270done
10271
10272 ;;
10273esac
10274fi
10275ARTSCCONFIG=$ac_cv_path_ARTSCCONFIG
10276
10277if test -n "$ARTSCCONFIG"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010278 echo "$as_me:$LINENO: result: $ARTSCCONFIG" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010279echo "${ECHO_T}$ARTSCCONFIG" >&6
10280else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010281 echo "$as_me:$LINENO: result: no" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010282echo "${ECHO_T}no" >&6
10283fi
10284
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010285echo "$as_me:$LINENO: checking for aRts Sound server" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010286echo $ECHO_N "checking for aRts Sound server... $ECHO_C" >&6
10287if test "${ac_cv_c_artsserver+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10289else
10290 if test x$ARTSCCONFIG = x -o x$ARTSCCONFIG = x'"$ARTSCCONFIG"';
10291 then
10292 ac_cv_c_artsserver=no
10293 else
10294 ARTSC_CFLAGS=`$ARTSCCONFIG --cflags`
10295 ARTSC_LIBS=`$ARTSCCONFIG --libs`
10296 ac_cv_c_artsserver=no
10297 save_CFLAGS="$CFLAGS"
10298 CFLAGS="$CFLAGS $ARTSC_CFLAGS"
10299 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010300#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010301/* confdefs.h. */
10302_ACEOF
10303cat confdefs.h >>conftest.$ac_ext
10304cat >>conftest.$ac_ext <<_ACEOF
10305/* end confdefs.h. */
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010306
10307 #include <artsc.h>
10308
10309int
10310main ()
10311{
10312
10313 arts_stream_t stream;
10314
10315 ;
10316 return 0;
10317}
10318_ACEOF
10319rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010320if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010321 (eval $ac_compile) 2>&5
10322 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010324 (exit $ac_status); } &&
10325 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010327 (eval $ac_try) 2>&5
10328 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010330 (exit $ac_status); }; }; then
10331
10332 ac_cv_c_artsserver=yes
10333
10334else
10335 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010336sed 's/^/| /' conftest.$ac_ext >&5
10337
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010338fi
10339rm -f conftest.$ac_objext conftest.$ac_ext
10340 CFLAGS="$save_CFLAGS"
10341 fi
10342fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010343echo "$as_me:$LINENO: result: $ac_cv_c_artsserver" >&5
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010344echo "${ECHO_T}$ac_cv_c_artsserver" >&6
10345
10346if test "$ac_cv_c_artsserver" = "yes"
10347then
10348 ARTSLIBS=$ARTSC_LIBS
10349
10350 ARTSINCL=$ARTSC_CFLAGS
10351
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010352
10353
10354cat >>confdefs.h <<\_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010355#define HAVE_ARTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010356_ACEOF
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000010357
10358fi
10359
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010360ALSALIBS=""
10361
10362
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010363
10364for ac_header in alsa/asoundlib.h sys/asoundlib.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010365do
10366as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10367if eval "test \"\${$as_ac_Header+set}\" = set"; then
10368 echo "$as_me:$LINENO: checking for $ac_header" >&5
10369echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10370if eval "test \"\${$as_ac_Header+set}\" = set"; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372fi
10373echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10374echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10375else
10376 # Is the header compilable?
10377echo "$as_me:$LINENO: checking $ac_header usability" >&5
10378echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10379cat >conftest.$ac_ext <<_ACEOF
10380#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010381/* confdefs.h. */
10382_ACEOF
10383cat confdefs.h >>conftest.$ac_ext
10384cat >>conftest.$ac_ext <<_ACEOF
10385/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010386$ac_includes_default
10387#include <$ac_header>
10388_ACEOF
10389rm -f conftest.$ac_objext
10390if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10391 (eval $ac_compile) 2>&5
10392 ac_status=$?
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } &&
10395 { ac_try='test -s conftest.$ac_objext'
10396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10397 (eval $ac_try) 2>&5
10398 ac_status=$?
10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400 (exit $ac_status); }; }; then
10401 ac_header_compiler=yes
10402else
10403 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010404sed 's/^/| /' conftest.$ac_ext >&5
10405
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010406ac_header_compiler=no
10407fi
10408rm -f conftest.$ac_objext conftest.$ac_ext
10409echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10410echo "${ECHO_T}$ac_header_compiler" >&6
10411
10412# Is the header present?
10413echo "$as_me:$LINENO: checking $ac_header presence" >&5
10414echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10415cat >conftest.$ac_ext <<_ACEOF
10416#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010417/* confdefs.h. */
10418_ACEOF
10419cat confdefs.h >>conftest.$ac_ext
10420cat >>conftest.$ac_ext <<_ACEOF
10421/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010422#include <$ac_header>
10423_ACEOF
10424if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10425 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10426 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010427 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010428 rm -f conftest.er1
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } >/dev/null; then
10432 if test -s conftest.err; then
10433 ac_cpp_err=$ac_c_preproc_warn_flag
10434 else
10435 ac_cpp_err=
10436 fi
10437else
10438 ac_cpp_err=yes
10439fi
10440if test -z "$ac_cpp_err"; then
10441 ac_header_preproc=yes
10442else
10443 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010444sed 's/^/| /' conftest.$ac_ext >&5
10445
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010446 ac_header_preproc=no
10447fi
10448rm -f conftest.err conftest.$ac_ext
10449echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10450echo "${ECHO_T}$ac_header_preproc" >&6
10451
10452# So? What about this header?
10453case $ac_header_compiler:$ac_header_preproc in
10454 yes:no )
10455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10456echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010458echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10459 (
10460 cat <<\_ASBOX
10461## ------------------------------------ ##
10462## Report this to bug-autoconf@gnu.org. ##
10463## ------------------------------------ ##
10464_ASBOX
10465 ) |
10466 sed "s/^/$as_me: WARNING: /" >&2
10467 ;;
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010468 no:yes )
10469 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10470echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10472echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010474echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10475 (
10476 cat <<\_ASBOX
10477## ------------------------------------ ##
10478## Report this to bug-autoconf@gnu.org. ##
10479## ------------------------------------ ##
10480_ASBOX
10481 ) |
10482 sed "s/^/$as_me: WARNING: /" >&2
10483 ;;
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010484esac
10485echo "$as_me:$LINENO: checking for $ac_header" >&5
10486echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10487if eval "test \"\${$as_ac_Header+set}\" = set"; then
10488 echo $ECHO_N "(cached) $ECHO_C" >&6
10489else
10490 eval "$as_ac_Header=$ac_header_preproc"
10491fi
10492echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10493echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10494
10495fi
10496if test `eval echo '${'$as_ac_Header'}'` = yes; then
10497 cat >>confdefs.h <<_ACEOF
10498#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10499_ACEOF
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010500 break
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010501fi
10502
10503done
10504
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010505if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010506then
10507 echo "$as_me:$LINENO: checking for snd_pcm_open in -lasound" >&5
10508echo $ECHO_N "checking for snd_pcm_open in -lasound... $ECHO_C" >&6
10509if test "${ac_cv_lib_asound_snd_pcm_open+set}" = set; then
10510 echo $ECHO_N "(cached) $ECHO_C" >&6
10511else
10512 ac_check_lib_save_LIBS=$LIBS
10513LIBS="-lasound $LIBS"
10514cat >conftest.$ac_ext <<_ACEOF
10515#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010516/* confdefs.h. */
10517_ACEOF
10518cat confdefs.h >>conftest.$ac_ext
10519cat >>conftest.$ac_ext <<_ACEOF
10520/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010521
10522/* Override any gcc2 internal prototype to avoid an error. */
10523#ifdef __cplusplus
10524extern "C"
10525#endif
10526/* We use char because int might match the return type of a gcc2
10527 builtin and then its argument prototype would still apply. */
10528char snd_pcm_open ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010529int
10530main ()
10531{
10532snd_pcm_open ();
10533 ;
10534 return 0;
10535}
10536_ACEOF
10537rm -f conftest.$ac_objext conftest$ac_exeext
10538if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10539 (eval $ac_link) 2>&5
10540 ac_status=$?
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } &&
10543 { ac_try='test -s conftest$ac_exeext'
10544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10545 (eval $ac_try) 2>&5
10546 ac_status=$?
10547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548 (exit $ac_status); }; }; then
10549 ac_cv_lib_asound_snd_pcm_open=yes
10550else
10551 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010552sed 's/^/| /' conftest.$ac_ext >&5
10553
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010554ac_cv_lib_asound_snd_pcm_open=no
10555fi
10556rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10557LIBS=$ac_check_lib_save_LIBS
10558fi
10559echo "$as_me:$LINENO: result: $ac_cv_lib_asound_snd_pcm_open" >&5
10560echo "${ECHO_T}$ac_cv_lib_asound_snd_pcm_open" >&6
10561if test $ac_cv_lib_asound_snd_pcm_open = yes; then
10562
10563cat >>confdefs.h <<\_ACEOF
10564#define HAVE_ALSA 1
10565_ACEOF
10566
10567 ALSALIBS="-lasound"
10568fi
10569
10570fi
10571
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010572
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010573AUDIOIOLIBS=""
10574
10575
10576for ac_header in libaudioio.h
10577do
10578as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10579if eval "test \"\${$as_ac_Header+set}\" = set"; then
10580 echo "$as_me:$LINENO: checking for $ac_header" >&5
10581echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10582if eval "test \"\${$as_ac_Header+set}\" = set"; then
10583 echo $ECHO_N "(cached) $ECHO_C" >&6
10584fi
10585echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10586echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10587else
10588 # Is the header compilable?
10589echo "$as_me:$LINENO: checking $ac_header usability" >&5
10590echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10591cat >conftest.$ac_ext <<_ACEOF
10592#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010593/* confdefs.h. */
10594_ACEOF
10595cat confdefs.h >>conftest.$ac_ext
10596cat >>conftest.$ac_ext <<_ACEOF
10597/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010598$ac_includes_default
10599#include <$ac_header>
10600_ACEOF
10601rm -f conftest.$ac_objext
10602if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10603 (eval $ac_compile) 2>&5
10604 ac_status=$?
10605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606 (exit $ac_status); } &&
10607 { ac_try='test -s conftest.$ac_objext'
10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609 (eval $ac_try) 2>&5
10610 ac_status=$?
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); }; }; then
10613 ac_header_compiler=yes
10614else
10615 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010616sed 's/^/| /' conftest.$ac_ext >&5
10617
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010618ac_header_compiler=no
10619fi
10620rm -f conftest.$ac_objext conftest.$ac_ext
10621echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10622echo "${ECHO_T}$ac_header_compiler" >&6
10623
10624# Is the header present?
10625echo "$as_me:$LINENO: checking $ac_header presence" >&5
10626echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10627cat >conftest.$ac_ext <<_ACEOF
10628#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010629/* confdefs.h. */
10630_ACEOF
10631cat confdefs.h >>conftest.$ac_ext
10632cat >>conftest.$ac_ext <<_ACEOF
10633/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010634#include <$ac_header>
10635_ACEOF
10636if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10638 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010639 grep -v '^ *+' conftest.er1 >conftest.err
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010640 rm -f conftest.er1
10641 cat conftest.err >&5
10642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643 (exit $ac_status); } >/dev/null; then
10644 if test -s conftest.err; then
10645 ac_cpp_err=$ac_c_preproc_warn_flag
10646 else
10647 ac_cpp_err=
10648 fi
10649else
10650 ac_cpp_err=yes
10651fi
10652if test -z "$ac_cpp_err"; then
10653 ac_header_preproc=yes
10654else
10655 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010656sed 's/^/| /' conftest.$ac_ext >&5
10657
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010658 ac_header_preproc=no
10659fi
10660rm -f conftest.err conftest.$ac_ext
10661echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10662echo "${ECHO_T}$ac_header_preproc" >&6
10663
10664# So? What about this header?
10665case $ac_header_compiler:$ac_header_preproc in
10666 yes:no )
10667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10668echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010670echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10671 (
10672 cat <<\_ASBOX
10673## ------------------------------------ ##
10674## Report this to bug-autoconf@gnu.org. ##
10675## ------------------------------------ ##
10676_ASBOX
10677 ) |
10678 sed "s/^/$as_me: WARNING: /" >&2
10679 ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010680 no:yes )
10681 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10682echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10683 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10684echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010686echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10687 (
10688 cat <<\_ASBOX
10689## ------------------------------------ ##
10690## Report this to bug-autoconf@gnu.org. ##
10691## ------------------------------------ ##
10692_ASBOX
10693 ) |
10694 sed "s/^/$as_me: WARNING: /" >&2
10695 ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010696esac
10697echo "$as_me:$LINENO: checking for $ac_header" >&5
10698echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10699if eval "test \"\${$as_ac_Header+set}\" = set"; then
10700 echo $ECHO_N "(cached) $ECHO_C" >&6
10701else
10702 eval "$as_ac_Header=$ac_header_preproc"
10703fi
10704echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10705echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10706
10707fi
10708if test `eval echo '${'$as_ac_Header'}'` = yes; then
10709 cat >>confdefs.h <<_ACEOF
10710#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10711_ACEOF
10712 echo "$as_me:$LINENO: checking for AudioIOGetVersion in -laudioio" >&5
10713echo $ECHO_N "checking for AudioIOGetVersion in -laudioio... $ECHO_C" >&6
10714if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then
10715 echo $ECHO_N "(cached) $ECHO_C" >&6
10716else
10717 ac_check_lib_save_LIBS=$LIBS
10718LIBS="-laudioio $LIBS"
10719cat >conftest.$ac_ext <<_ACEOF
10720#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010721/* confdefs.h. */
10722_ACEOF
10723cat confdefs.h >>conftest.$ac_ext
10724cat >>conftest.$ac_ext <<_ACEOF
10725/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010726
10727/* Override any gcc2 internal prototype to avoid an error. */
10728#ifdef __cplusplus
10729extern "C"
10730#endif
10731/* We use char because int might match the return type of a gcc2
10732 builtin and then its argument prototype would still apply. */
10733char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010734int
10735main ()
10736{
10737AudioIOGetVersion ();
10738 ;
10739 return 0;
10740}
10741_ACEOF
10742rm -f conftest.$ac_objext conftest$ac_exeext
10743if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10744 (eval $ac_link) 2>&5
10745 ac_status=$?
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); } &&
10748 { ac_try='test -s conftest$ac_exeext'
10749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10750 (eval $ac_try) 2>&5
10751 ac_status=$?
10752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10753 (exit $ac_status); }; }; then
10754 ac_cv_lib_audioio_AudioIOGetVersion=yes
10755else
10756 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010757sed 's/^/| /' conftest.$ac_ext >&5
10758
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010759ac_cv_lib_audioio_AudioIOGetVersion=no
10760fi
10761rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10762LIBS=$ac_check_lib_save_LIBS
10763fi
10764echo "$as_me:$LINENO: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
10765echo "${ECHO_T}$ac_cv_lib_audioio_AudioIOGetVersion" >&6
10766if test $ac_cv_lib_audioio_AudioIOGetVersion = yes; then
10767 AUDIOIOLIBS="-laudioio"
10768
10769cat >>confdefs.h <<\_ACEOF
10770#define HAVE_LIBAUDIOIO 1
10771_ACEOF
10772
10773fi
10774
10775fi
10776
10777done
10778
10779
10780
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010781echo "$as_me:$LINENO: checking whether mmap64 works defined as mmap" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010782echo $ECHO_N "checking whether mmap64 works defined as mmap... $ECHO_C" >&6
10783if test "${ac_cv_mmap64_works+set}" = set; then
10784 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010785else
10786 if test "$cross_compiling" = yes; then
10787 ac_cv_mmap64_works="no"
10788else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010789 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010790#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010791/* confdefs.h. */
10792_ACEOF
10793cat confdefs.h >>conftest.$ac_ext
10794cat >>conftest.$ac_ext <<_ACEOF
10795/* end confdefs.h. */
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010796
10797 #define _FILE_OFFSET_BITS 64
10798 #include <stdio.h>
10799 #include <unistd.h>
10800 #include <fcntl.h>
10801 #include <sys/mman.h>
10802 #include <errno.h>
10803
10804 int main(int argc,char **argv) {
10805 int fd = open("conftest.map",O_CREAT|O_RDWR,0600);
10806 if (fd == -1) exit(1);
10807
10808 unlink("conftest.map");
10809
10810 write(fd,"test",4);
10811
10812 if ((-1 == mmap(0,4,PROT_READ|PROT_WRITE,MAP_SHARED,fd,0)) &&
10813 (errno == EINVAL)
10814 ) {
10815 exit(1);
10816 }
10817 close(fd);
10818 fprintf(stderr,"success!\n");
10819 exit(0);
10820 }
10821
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010822
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010823_ACEOF
10824rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010825if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010826 (eval $ac_link) 2>&5
10827 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010829 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010831 (eval $ac_try) 2>&5
10832 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010834 (exit $ac_status); }; }; then
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010835 ac_cv_mmap64_works="yes"
10836else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010837 echo "$as_me: program exited with status $ac_status" >&5
10838echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010839sed 's/^/| /' conftest.$ac_ext >&5
10840
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010841( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010842ac_cv_mmap64_works="no"
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010843fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010844rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010845fi
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010846fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010847echo "$as_me:$LINENO: result: $ac_cv_mmap64_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010848echo "${ECHO_T}$ac_cv_mmap64_works" >&6
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010849
10850if test "$ac_cv_mmap64_works" = "yes"
10851then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010852
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010853cat >>confdefs.h <<\_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010854#define _FILE_OFFSET_BITS 64
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010855_ACEOF
Marcus Meissner0f6cfbc2001-06-08 19:34:56 +000010856
10857fi
10858
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010859
Alexandre Julliardfc094232003-04-14 21:46:41 +000010860EXTRACFLAGS=""
10861
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010862if test "x${GCC}" = "xyes"
10863then
Alexandre Julliardfc094232003-04-14 21:46:41 +000010864 EXTRACFLAGS=-Wall
Mike McCormackc509bc42003-02-25 04:01:58 +000010865
10866 echo "$as_me:$LINENO: checking for gcc strength-reduce bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010867echo $ECHO_N "checking for gcc strength-reduce bug... $ECHO_C" >&6
10868if test "${ac_cv_c_gcc_strength_bug+set}" = set; then
10869 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010870else
10871 if test "$cross_compiling" = yes; then
10872 ac_cv_c_gcc_strength_bug="yes"
10873else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010874 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010875#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010876/* confdefs.h. */
10877_ACEOF
10878cat confdefs.h >>conftest.$ac_ext
10879cat >>conftest.$ac_ext <<_ACEOF
10880/* end confdefs.h. */
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010881
Eric Pouech5aee80f2000-11-11 00:31:39 +000010882int L[4] = {0,1,2,3};
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010883int main(void) {
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000010884 static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010885 unsigned int B = 3;
10886 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000010887 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000010888 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
10889 L[i] = 4;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010890
Eric Pouech5aee80f2000-11-11 00:31:39 +000010891 exit( Array[1] != -2 || L[2] != 3);
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010892}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010893_ACEOF
10894rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010895if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010896 (eval $ac_link) 2>&5
10897 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010901 (eval $ac_try) 2>&5
10902 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010904 (exit $ac_status); }; }; then
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010905 ac_cv_c_gcc_strength_bug="no"
10906else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010907 echo "$as_me: program exited with status $ac_status" >&5
10908echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010909sed 's/^/| /' conftest.$ac_ext >&5
10910
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010911( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010912ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010913fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000010914rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010915fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010916fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010917echo "$as_me:$LINENO: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010918echo "${ECHO_T}$ac_cv_c_gcc_strength_bug" >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010919 if test "$ac_cv_c_gcc_strength_bug" = "yes"
10920 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000010921 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000010922 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010923
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010924 echo "$as_me:$LINENO: checking for gcc -mpreferred-stack-boundary=2 support" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010925echo $ECHO_N "checking for gcc -mpreferred-stack-boundary=2 support... $ECHO_C" >&6
10926if test "${ac_cv_c_gcc_stack_boundary+set}" = set; then
10927 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010928else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010929 ac_wine_try_cflags_saved=$CFLAGS
10930CFLAGS="$CFLAGS -mpreferred-stack-boundary=2"
10931cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010932#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010933/* confdefs.h. */
10934_ACEOF
10935cat confdefs.h >>conftest.$ac_ext
10936cat >>conftest.$ac_ext <<_ACEOF
10937/* end confdefs.h. */
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010938
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010939int
10940main ()
10941{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010942
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010943 ;
10944 return 0;
10945}
10946_ACEOF
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010947rm -f conftest.$ac_objext conftest$ac_exeext
10948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10949 (eval $ac_link) 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010950 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010952 (exit $ac_status); } &&
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010953 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010955 (eval $ac_try) 2>&5
10956 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010958 (exit $ac_status); }; }; then
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010959 ac_cv_c_gcc_stack_boundary="yes"
10960else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010961 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010962sed 's/^/| /' conftest.$ac_ext >&5
10963
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010964ac_cv_c_gcc_stack_boundary="no"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010965fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000010966rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
10967CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010968fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010969echo "$as_me:$LINENO: result: $ac_cv_c_gcc_stack_boundary" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010970echo "${ECHO_T}$ac_cv_c_gcc_stack_boundary" >&6
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010971 if test "$ac_cv_c_gcc_stack_boundary" = "yes"
10972 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000010973 EXTRACFLAGS="$EXTRACFLAGS -mpreferred-stack-boundary=2"
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000010974 fi
Alexandre Julliard14bd1202003-01-09 00:42:26 +000010975
Alexandre Julliardefca0f62003-07-24 00:09:51 +000010976 echo "$as_me:$LINENO: checking for gcc -fno-strict-aliasing support" >&5
10977echo $ECHO_N "checking for gcc -fno-strict-aliasing support... $ECHO_C" >&6
10978if test "${ac_cv_c_gcc_no_strict_aliasing+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10980else
10981 ac_wine_try_cflags_saved=$CFLAGS
10982CFLAGS="$CFLAGS -fno-strict-aliasing"
10983cat >conftest.$ac_ext <<_ACEOF
10984#line $LINENO "configure"
10985/* confdefs.h. */
10986_ACEOF
10987cat confdefs.h >>conftest.$ac_ext
10988cat >>conftest.$ac_ext <<_ACEOF
10989/* end confdefs.h. */
10990
10991int
10992main ()
10993{
10994
10995 ;
10996 return 0;
10997}
10998_ACEOF
10999rm -f conftest.$ac_objext conftest$ac_exeext
11000if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11001 (eval $ac_link) 2>&5
11002 ac_status=$?
11003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11004 (exit $ac_status); } &&
11005 { ac_try='test -s conftest$ac_exeext'
11006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11007 (eval $ac_try) 2>&5
11008 ac_status=$?
11009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11010 (exit $ac_status); }; }; then
11011 ac_cv_c_gcc_no_strict_aliasing="yes"
11012else
11013 echo "$as_me: failed program was:" >&5
11014sed 's/^/| /' conftest.$ac_ext >&5
11015
11016ac_cv_c_gcc_no_strict_aliasing="no"
11017fi
11018rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11019CFLAGS=$ac_wine_try_cflags_saved
11020fi
11021echo "$as_me:$LINENO: result: $ac_cv_c_gcc_no_strict_aliasing" >&5
11022echo "${ECHO_T}$ac_cv_c_gcc_no_strict_aliasing" >&6
11023 if test "$ac_cv_c_gcc_no_strict_aliasing" = "yes"
11024 then
11025 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11026 fi
11027
Alexandre Julliard14bd1202003-01-09 00:42:26 +000011028 echo "$as_me:$LINENO: checking for gcc -gstabs+ support" >&5
11029echo $ECHO_N "checking for gcc -gstabs+ support... $ECHO_C" >&6
11030if test "${ac_cv_c_gcc_gstabs+set}" = set; then
11031 echo $ECHO_N "(cached) $ECHO_C" >&6
11032else
11033 ac_wine_try_cflags_saved=$CFLAGS
11034CFLAGS="$CFLAGS -gstabs+"
11035cat >conftest.$ac_ext <<_ACEOF
11036#line $LINENO "configure"
11037/* confdefs.h. */
11038_ACEOF
11039cat confdefs.h >>conftest.$ac_ext
11040cat >>conftest.$ac_ext <<_ACEOF
11041/* end confdefs.h. */
11042
11043int
11044main ()
11045{
11046
11047 ;
11048 return 0;
11049}
11050_ACEOF
11051rm -f conftest.$ac_objext conftest$ac_exeext
11052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11053 (eval $ac_link) 2>&5
11054 ac_status=$?
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); } &&
11057 { ac_try='test -s conftest$ac_exeext'
11058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11059 (eval $ac_try) 2>&5
11060 ac_status=$?
11061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11062 (exit $ac_status); }; }; then
11063 ac_cv_c_gcc_gstabs="yes"
11064else
11065 echo "$as_me: failed program was:" >&5
11066sed 's/^/| /' conftest.$ac_ext >&5
11067
11068ac_cv_c_gcc_gstabs="no"
11069fi
11070rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11071CFLAGS=$ac_wine_try_cflags_saved
11072fi
11073echo "$as_me:$LINENO: result: $ac_cv_c_gcc_gstabs" >&5
11074echo "${ECHO_T}$ac_cv_c_gcc_gstabs" >&6
11075 if test "$ac_cv_c_gcc_gstabs" = "yes"
11076 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011077 EXTRACFLAGS="$EXTRACFLAGS -gstabs+"
Alexandre Julliard14bd1202003-01-09 00:42:26 +000011078 fi
Mike McCormackc509bc42003-02-25 04:01:58 +000011079
Alexandre Julliard4d52d372003-03-24 19:33:20 +000011080 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000011081 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
11082 echo "$as_me:$LINENO: checking for broken string.h that generates warnings" >&5
11083echo $ECHO_N "checking for broken string.h that generates warnings... $ECHO_C" >&6
11084if test "${ac_cv_c_string_h_warnings+set}" = set; then
11085 echo $ECHO_N "(cached) $ECHO_C" >&6
11086else
11087 cat >conftest.$ac_ext <<_ACEOF
11088#line $LINENO "configure"
11089/* confdefs.h. */
11090_ACEOF
11091cat confdefs.h >>conftest.$ac_ext
11092cat >>conftest.$ac_ext <<_ACEOF
11093/* end confdefs.h. */
11094#include <string.h>
11095int
11096main ()
11097{
11098
11099 ;
11100 return 0;
11101}
11102_ACEOF
11103rm -f conftest.$ac_objext
11104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11105 (eval $ac_compile) 2>&5
11106 ac_status=$?
11107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11108 (exit $ac_status); } &&
11109 { ac_try='test -s conftest.$ac_objext'
11110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11111 (eval $ac_try) 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_cv_c_string_h_warnings=no
11116else
11117 echo "$as_me: failed program was:" >&5
11118sed 's/^/| /' conftest.$ac_ext >&5
11119
11120ac_cv_c_string_h_warnings=yes
11121fi
11122rm -f conftest.$ac_objext conftest.$ac_ext
11123fi
11124echo "$as_me:$LINENO: result: $ac_cv_c_string_h_warnings" >&5
11125echo "${ECHO_T}$ac_cv_c_string_h_warnings" >&6
Alexandre Julliard4d52d372003-03-24 19:33:20 +000011126 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000011127 if test "$ac_cv_c_string_h_warnings" = "no"
11128 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011129 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000011130 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011131fi
11132
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011133
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011134echo "$as_me:$LINENO: checking how to define a function in assembly code" >&5
11135echo $ECHO_N "checking how to define a function in assembly code... $ECHO_C" >&6
11136if test "${ac_cv_asm_func_def+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011137 echo $ECHO_N "(cached) $ECHO_C" >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000011138else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011139 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011140#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011141/* confdefs.h. */
11142_ACEOF
11143cat confdefs.h >>conftest.$ac_ext
11144cat >>conftest.$ac_ext <<_ACEOF
11145/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000011146void 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 +000011147
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011148int
11149main ()
11150{
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000011151
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011152 ;
11153 return 0;
11154}
11155_ACEOF
11156rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011157if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011158 (eval $ac_link) 2>&5
11159 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011161 (exit $ac_status); } &&
11162 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011164 (eval $ac_try) 2>&5
11165 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011167 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011168 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000011169else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011170 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011171sed 's/^/| /' conftest.$ac_ext >&5
11172
Gregg Mattinson57807fa2002-07-20 20:17:13 +000011173cat >conftest.$ac_ext <<_ACEOF
11174#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011175/* confdefs.h. */
11176_ACEOF
11177cat confdefs.h >>conftest.$ac_ext
11178cat >>conftest.$ac_ext <<_ACEOF
11179/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000011180void 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 +000011181
Gregg Mattinson57807fa2002-07-20 20:17:13 +000011182int
11183main ()
11184{
11185
11186 ;
11187 return 0;
11188}
11189_ACEOF
11190rm -f conftest.$ac_objext conftest$ac_exeext
11191if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11192 (eval $ac_link) 2>&5
11193 ac_status=$?
11194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11195 (exit $ac_status); } &&
11196 { ac_try='test -s conftest$ac_exeext'
11197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11198 (eval $ac_try) 2>&5
11199 ac_status=$?
11200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11201 (exit $ac_status); }; }; then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011202 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000011203else
11204 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011205sed 's/^/| /' conftest.$ac_ext >&5
11206
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011207cat >conftest.$ac_ext <<_ACEOF
11208#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011209/* confdefs.h. */
11210_ACEOF
11211cat confdefs.h >>conftest.$ac_ext
11212cat >>conftest.$ac_ext <<_ACEOF
11213/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000011214void 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 +000011215
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011216int
11217main ()
11218{
11219
11220 ;
11221 return 0;
11222}
11223_ACEOF
11224rm -f conftest.$ac_objext conftest$ac_exeext
11225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11226 (eval $ac_link) 2>&5
11227 ac_status=$?
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -s conftest$ac_exeext'
11231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11232 (eval $ac_try) 2>&5
11233 ac_status=$?
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); }; }; then
11236 ac_cv_asm_func_def=".type 2"
11237else
11238 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011239sed 's/^/| /' conftest.$ac_ext >&5
11240
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011241ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000011242fi
11243rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000011244fi
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011245rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11246fi
11247rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11248fi
11249echo "$as_me:$LINENO: result: $ac_cv_asm_func_def" >&5
11250echo "${ECHO_T}$ac_cv_asm_func_def" >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000011251
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011252
11253
11254case "$ac_cv_asm_func_def" in
11255 ".def")
11256 cat >>confdefs.h <<\_ACEOF
11257#define __ASM_FUNC(name) ".def " __ASM_NAME(name) "; .scl 2; .type 32; .endef"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000011258_ACEOF
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011259 ;;
11260 ".type @function")
11261 cat >>confdefs.h <<\_ACEOF
11262#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",@function"
11263_ACEOF
11264 ;;
11265 ".type 2")
11266 cat >>confdefs.h <<\_ACEOF
11267#define __ASM_FUNC(name) ".type " __ASM_NAME(name) ",2"
11268_ACEOF
11269 ;;
11270 *)
11271 cat >>confdefs.h <<\_ACEOF
11272#define __ASM_FUNC(name) ""
11273_ACEOF
11274 ;;
11275esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000011276
11277
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011278echo "$as_me:$LINENO: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011279echo $ECHO_N "checking whether external symbols need an underscore prefix... $ECHO_C" >&6
11280if test "${ac_cv_c_extern_prefix+set}" = set; then
11281 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011282else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011283 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011284#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011285/* confdefs.h. */
11286_ACEOF
11287cat confdefs.h >>conftest.$ac_ext
11288cat >>conftest.$ac_ext <<_ACEOF
11289/* end confdefs.h. */
Alexandre Julliard520852c2002-08-07 00:04:44 +000011290void ac_asm(void) { asm(".globl _ac_test\n_ac_test:\t.long 0"); }
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011291extern int ac_test;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011292int
11293main ()
11294{
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011295if (ac_test) return 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011296 ;
11297 return 0;
11298}
11299_ACEOF
11300rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011302 (eval $ac_link) 2>&5
11303 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011305 (exit $ac_status); } &&
11306 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011308 (eval $ac_try) 2>&5
11309 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011311 (exit $ac_status); }; }; then
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011312 ac_cv_c_extern_prefix="yes"
11313else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011314 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011315sed 's/^/| /' conftest.$ac_ext >&5
11316
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011317ac_cv_c_extern_prefix="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011318fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011319rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011320fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011321echo "$as_me:$LINENO: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011322echo "${ECHO_T}$ac_cv_c_extern_prefix" >&6
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011323
11324
11325
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011326if test "$ac_cv_c_extern_prefix" = "yes"
11327then
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011328 cat >>confdefs.h <<\_ACEOF
11329#define __ASM_NAME(name) "_" name
11330_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011331
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011332else
11333 cat >>confdefs.h <<\_ACEOF
11334#define __ASM_NAME(name) name
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011335_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000011336
11337fi
11338
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011339
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011340echo "$as_me:$LINENO: checking whether assembler accepts .string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011341echo $ECHO_N "checking whether assembler accepts .string... $ECHO_C" >&6
11342if test "${ac_cv_c_asm_string+set}" = set; then
11343 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011344else
Alexandre Julliard84555cc2002-07-22 20:51:02 +000011345 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011346#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011347/* confdefs.h. */
11348_ACEOF
11349cat confdefs.h >>conftest.$ac_ext
11350cat >>conftest.$ac_ext <<_ACEOF
11351/* end confdefs.h. */
Marcus Meissner49163d52002-08-20 00:26:40 +000011352void ac_asm(void) { asm(".data\n\t.string \"test\"\n\t.text"); }
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011353
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011354int
11355main ()
11356{
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011357
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011358 ;
11359 return 0;
11360}
11361_ACEOF
11362rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011364 (eval $ac_link) 2>&5
11365 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011367 (exit $ac_status); } &&
11368 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011370 (eval $ac_try) 2>&5
11371 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011373 (exit $ac_status); }; }; then
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011374 ac_cv_c_asm_string="yes"
11375else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011376 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011377sed 's/^/| /' conftest.$ac_ext >&5
11378
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011379ac_cv_c_asm_string="no"
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011380fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011381rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011382fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011383echo "$as_me:$LINENO: result: $ac_cv_c_asm_string" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011384echo "${ECHO_T}$ac_cv_c_asm_string" >&6
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011385if test "$ac_cv_c_asm_string" = "yes"
11386then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011387
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011388cat >>confdefs.h <<\_ACEOF
Christian Costaf814cf82003-03-23 00:18:26 +000011389#define __ASM_STRING ".string"
11390_ACEOF
11391
11392else
11393 echo "$as_me:$LINENO: checking whether assembler accepts .asciz" >&5
11394echo $ECHO_N "checking whether assembler accepts .asciz... $ECHO_C" >&6
11395if test "${ac_cv_c_asm_asciz+set}" = set; then
11396 echo $ECHO_N "(cached) $ECHO_C" >&6
11397else
11398 cat >conftest.$ac_ext <<_ACEOF
11399#line $LINENO "configure"
11400/* confdefs.h. */
11401_ACEOF
11402cat confdefs.h >>conftest.$ac_ext
11403cat >>conftest.$ac_ext <<_ACEOF
11404/* end confdefs.h. */
11405void ac_asm(void) { asm(".data\n\t.asciz \"test\"\n\t.text"); }
11406
11407int
11408main ()
11409{
11410
11411 ;
11412 return 0;
11413}
11414_ACEOF
11415rm -f conftest.$ac_objext conftest$ac_exeext
11416if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11417 (eval $ac_link) 2>&5
11418 ac_status=$?
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 (exit $ac_status); } &&
11421 { ac_try='test -s conftest$ac_exeext'
11422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11423 (eval $ac_try) 2>&5
11424 ac_status=$?
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); }; }; then
11427 ac_cv_c_asm_asciz="yes"
11428else
11429 echo "$as_me: failed program was:" >&5
11430sed 's/^/| /' conftest.$ac_ext >&5
11431
11432ac_cv_c_asm_asciz="no"
11433fi
11434rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11435fi
11436echo "$as_me:$LINENO: result: $ac_cv_c_asm_asciz" >&5
11437echo "${ECHO_T}$ac_cv_c_asm_asciz" >&6
11438 if test "$ac_cv_c_asm_asciz" = "yes"
11439 then
11440 cat >>confdefs.h <<\_ACEOF
11441#define __ASM_STRING ".asciz"
11442_ACEOF
11443
11444 else
11445 cat >>confdefs.h <<\_ACEOF
11446#define __ASM_STRING ".ascii"
11447_ACEOF
11448
11449 fi
11450fi
11451
11452
11453echo "$as_me:$LINENO: checking whether assembler accepts .short" >&5
11454echo $ECHO_N "checking whether assembler accepts .short... $ECHO_C" >&6
11455if test "${ac_cv_c_asm_short+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11457else
11458 cat >conftest.$ac_ext <<_ACEOF
11459#line $LINENO "configure"
11460/* confdefs.h. */
11461_ACEOF
11462cat confdefs.h >>conftest.$ac_ext
11463cat >>conftest.$ac_ext <<_ACEOF
11464/* end confdefs.h. */
11465void ac_asm(void) { asm(".data\n\t.short 1\n\t.text"); }
11466
11467int
11468main ()
11469{
11470
11471 ;
11472 return 0;
11473}
11474_ACEOF
11475rm -f conftest.$ac_objext conftest$ac_exeext
11476if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11477 (eval $ac_link) 2>&5
11478 ac_status=$?
11479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11480 (exit $ac_status); } &&
11481 { ac_try='test -s conftest$ac_exeext'
11482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11483 (eval $ac_try) 2>&5
11484 ac_status=$?
11485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11486 (exit $ac_status); }; }; then
11487 ac_cv_c_asm_short="yes"
11488else
11489 echo "$as_me: failed program was:" >&5
11490sed 's/^/| /' conftest.$ac_ext >&5
11491
11492ac_cv_c_asm_short="no"
11493fi
11494rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11495fi
11496echo "$as_me:$LINENO: result: $ac_cv_c_asm_short" >&5
11497echo "${ECHO_T}$ac_cv_c_asm_short" >&6
11498if test "$ac_cv_c_asm_short" = "yes"
11499then
11500
11501cat >>confdefs.h <<\_ACEOF
11502#define __ASM_SHORT ".short"
11503_ACEOF
11504
11505else
11506 cat >>confdefs.h <<\_ACEOF
11507#define __ASM_SHORT ".half"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011508_ACEOF
Alexandre Julliard0623a6f1998-01-18 18:01:49 +000011509
11510fi
11511
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011512
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011513DLLEXT=""
11514
Alexandre Julliardfc094232003-04-14 21:46:41 +000011515DLLFLAGS="-D_REENTRANT"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011516
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011517DLLIBS=""
11518
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011519LDDLLFLAGS=""
11520
11521LDSHARED=""
11522
Alexandre Julliardada5e652002-12-12 22:03:14 +000011523LIBEXT="so"
11524
11525IMPLIBEXT="def"
11526
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011527
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011528case $host_os in
11529 cygwin*|mingw32*)
11530 if test -n "$ac_tool_prefix"; then
Alexandre Julliardada5e652002-12-12 22:03:14 +000011531 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11532set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11533echo "$as_me:$LINENO: checking for $ac_word" >&5
11534echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11535if test "${ac_cv_prog_DLLTOOL+set}" = set; then
11536 echo $ECHO_N "(cached) $ECHO_C" >&6
11537else
11538 if test -n "$DLLTOOL"; then
11539 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11540else
11541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11542for as_dir in $PATH
11543do
11544 IFS=$as_save_IFS
11545 test -z "$as_dir" && as_dir=.
11546 for ac_exec_ext in '' $ac_executable_extensions; do
11547 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11548 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11549 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11550 break 2
11551 fi
11552done
11553done
11554
11555fi
11556fi
11557DLLTOOL=$ac_cv_prog_DLLTOOL
11558if test -n "$DLLTOOL"; then
11559 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
11560echo "${ECHO_T}$DLLTOOL" >&6
11561else
11562 echo "$as_me:$LINENO: result: no" >&5
11563echo "${ECHO_T}no" >&6
11564fi
11565
11566fi
11567if test -z "$ac_cv_prog_DLLTOOL"; then
11568 ac_ct_DLLTOOL=$DLLTOOL
11569 # Extract the first word of "dlltool", so it can be a program name with args.
11570set dummy dlltool; ac_word=$2
11571echo "$as_me:$LINENO: checking for $ac_word" >&5
11572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11573if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11575else
11576 if test -n "$ac_ct_DLLTOOL"; then
11577 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11578else
11579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580for as_dir in $PATH
11581do
11582 IFS=$as_save_IFS
11583 test -z "$as_dir" && as_dir=.
11584 for ac_exec_ext in '' $ac_executable_extensions; do
11585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11586 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 break 2
11589 fi
11590done
11591done
11592
11593 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
11594fi
11595fi
11596ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11597if test -n "$ac_ct_DLLTOOL"; then
11598 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
11599echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
11600else
11601 echo "$as_me:$LINENO: result: no" >&5
11602echo "${ECHO_T}no" >&6
11603fi
11604
11605 DLLTOOL=$ac_ct_DLLTOOL
11606else
11607 DLLTOOL="$ac_cv_prog_DLLTOOL"
11608fi
11609
11610 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011611 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
11612set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard466ae142002-05-07 18:33:47 +000011613echo "$as_me:$LINENO: checking for $ac_word" >&5
11614echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11615if test "${ac_cv_prog_DLLWRAP+set}" = set; then
11616 echo $ECHO_N "(cached) $ECHO_C" >&6
11617else
11618 if test -n "$DLLWRAP"; then
11619 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
11620else
11621as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622for as_dir in $PATH
11623do
11624 IFS=$as_save_IFS
11625 test -z "$as_dir" && as_dir=.
11626 for ac_exec_ext in '' $ac_executable_extensions; do
11627 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011628 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard466ae142002-05-07 18:33:47 +000011629 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11630 break 2
11631 fi
11632done
11633done
11634
Alexandre Julliard466ae142002-05-07 18:33:47 +000011635fi
11636fi
11637DLLWRAP=$ac_cv_prog_DLLWRAP
11638if test -n "$DLLWRAP"; then
11639 echo "$as_me:$LINENO: result: $DLLWRAP" >&5
11640echo "${ECHO_T}$DLLWRAP" >&6
11641else
11642 echo "$as_me:$LINENO: result: no" >&5
11643echo "${ECHO_T}no" >&6
11644fi
11645
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011646fi
11647if test -z "$ac_cv_prog_DLLWRAP"; then
11648 ac_ct_DLLWRAP=$DLLWRAP
11649 # Extract the first word of "dllwrap", so it can be a program name with args.
11650set dummy dllwrap; ac_word=$2
11651echo "$as_me:$LINENO: checking for $ac_word" >&5
11652echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11653if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then
11654 echo $ECHO_N "(cached) $ECHO_C" >&6
11655else
11656 if test -n "$ac_ct_DLLWRAP"; then
11657 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
11658else
11659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660for as_dir in $PATH
11661do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
11665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11666 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
11667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11669 fi
11670done
11671done
11672
11673 test -z "$ac_cv_prog_ac_ct_DLLWRAP" && ac_cv_prog_ac_ct_DLLWRAP="false"
11674fi
11675fi
11676ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
11677if test -n "$ac_ct_DLLWRAP"; then
11678 echo "$as_me:$LINENO: result: $ac_ct_DLLWRAP" >&5
11679echo "${ECHO_T}$ac_ct_DLLWRAP" >&6
11680else
11681 echo "$as_me:$LINENO: result: no" >&5
11682echo "${ECHO_T}no" >&6
11683fi
11684
11685 DLLWRAP=$ac_ct_DLLWRAP
11686else
11687 DLLWRAP="$ac_cv_prog_DLLWRAP"
11688fi
11689
11690 if test "$DLLWRAP" = "false"; then
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011691 LIBEXT="a"
Alexandre Julliardfc01b722002-05-12 03:16:39 +000011692 else
11693 LIBEXT="dll"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011694 fi
Alexandre Julliardada5e652002-12-12 22:03:14 +000011695 IMPLIBEXT="a"
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011696 ;;
11697 *)
11698
11699for ac_header in dlfcn.h
11700do
11701as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11702if eval "test \"\${$as_ac_Header+set}\" = set"; then
11703 echo "$as_me:$LINENO: checking for $ac_header" >&5
11704echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11705if eval "test \"\${$as_ac_Header+set}\" = set"; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11707fi
11708echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11709echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11710else
11711 # Is the header compilable?
11712echo "$as_me:$LINENO: checking $ac_header usability" >&5
11713echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
11714cat >conftest.$ac_ext <<_ACEOF
11715#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011716/* confdefs.h. */
11717_ACEOF
11718cat confdefs.h >>conftest.$ac_ext
11719cat >>conftest.$ac_ext <<_ACEOF
11720/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011721$ac_includes_default
11722#include <$ac_header>
11723_ACEOF
11724rm -f conftest.$ac_objext
11725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11726 (eval $ac_compile) 2>&5
11727 ac_status=$?
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); } &&
11730 { ac_try='test -s conftest.$ac_objext'
11731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11732 (eval $ac_try) 2>&5
11733 ac_status=$?
11734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11735 (exit $ac_status); }; }; then
11736 ac_header_compiler=yes
11737else
11738 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011739sed 's/^/| /' conftest.$ac_ext >&5
11740
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011741ac_header_compiler=no
11742fi
11743rm -f conftest.$ac_objext conftest.$ac_ext
11744echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11745echo "${ECHO_T}$ac_header_compiler" >&6
11746
11747# Is the header present?
11748echo "$as_me:$LINENO: checking $ac_header presence" >&5
11749echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
11750cat >conftest.$ac_ext <<_ACEOF
11751#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011752/* confdefs.h. */
11753_ACEOF
11754cat confdefs.h >>conftest.$ac_ext
11755cat >>conftest.$ac_ext <<_ACEOF
11756/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011757#include <$ac_header>
11758_ACEOF
11759if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11760 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11761 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000011762 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011763 rm -f conftest.er1
11764 cat conftest.err >&5
11765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766 (exit $ac_status); } >/dev/null; then
11767 if test -s conftest.err; then
11768 ac_cpp_err=$ac_c_preproc_warn_flag
11769 else
11770 ac_cpp_err=
11771 fi
11772else
11773 ac_cpp_err=yes
11774fi
11775if test -z "$ac_cpp_err"; then
11776 ac_header_preproc=yes
11777else
11778 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011779sed 's/^/| /' conftest.$ac_ext >&5
11780
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011781 ac_header_preproc=no
11782fi
11783rm -f conftest.err conftest.$ac_ext
11784echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11785echo "${ECHO_T}$ac_header_preproc" >&6
11786
11787# So? What about this header?
11788case $ac_header_compiler:$ac_header_preproc in
11789 yes:no )
11790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11791echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011793echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11794 (
11795 cat <<\_ASBOX
11796## ------------------------------------ ##
11797## Report this to bug-autoconf@gnu.org. ##
11798## ------------------------------------ ##
11799_ASBOX
11800 ) |
11801 sed "s/^/$as_me: WARNING: /" >&2
11802 ;;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011803 no:yes )
11804 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11805echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11806 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11807echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011809echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11810 (
11811 cat <<\_ASBOX
11812## ------------------------------------ ##
11813## Report this to bug-autoconf@gnu.org. ##
11814## ------------------------------------ ##
11815_ASBOX
11816 ) |
11817 sed "s/^/$as_me: WARNING: /" >&2
11818 ;;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011819esac
11820echo "$as_me:$LINENO: checking for $ac_header" >&5
11821echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11822if eval "test \"\${$as_ac_Header+set}\" = set"; then
11823 echo $ECHO_N "(cached) $ECHO_C" >&6
11824else
11825 eval "$as_ac_Header=$ac_header_preproc"
11826fi
11827echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11828echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11829
11830fi
11831if test `eval echo '${'$as_ac_Header'}'` = yes; then
11832 cat >>confdefs.h <<_ACEOF
11833#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11834_ACEOF
11835
11836for ac_func in dlopen
11837do
11838as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11839echo "$as_me:$LINENO: checking for $ac_func" >&5
11840echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
11841if eval "test \"\${$as_ac_var+set}\" = set"; then
11842 echo $ECHO_N "(cached) $ECHO_C" >&6
11843else
11844 cat >conftest.$ac_ext <<_ACEOF
11845#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011846/* confdefs.h. */
11847_ACEOF
11848cat confdefs.h >>conftest.$ac_ext
11849cat >>conftest.$ac_ext <<_ACEOF
11850/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011851/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011852 which can conflict with char $ac_func (); below.
11853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11854 <limits.h> exists even on freestanding compilers. */
11855#ifdef __STDC__
11856# include <limits.h>
11857#else
11858# include <assert.h>
11859#endif
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011860/* Override any gcc2 internal prototype to avoid an error. */
11861#ifdef __cplusplus
11862extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011863{
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011864#endif
11865/* We use char because int might match the return type of a gcc2
11866 builtin and then its argument prototype would still apply. */
11867char $ac_func ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011868/* The GNU C library defines this for functions which it implements
11869 to always fail with ENOSYS. Some functions are actually named
11870 something starting with __ and the normal name is an alias. */
11871#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
11872choke me
11873#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011874char (*f) () = $ac_func;
11875#endif
11876#ifdef __cplusplus
11877}
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011878#endif
11879
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011880int
11881main ()
11882{
11883return f != $ac_func;
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011884 ;
11885 return 0;
11886}
11887_ACEOF
11888rm -f conftest.$ac_objext conftest$ac_exeext
11889if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11890 (eval $ac_link) 2>&5
11891 ac_status=$?
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); } &&
11894 { ac_try='test -s conftest$ac_exeext'
11895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11896 (eval $ac_try) 2>&5
11897 ac_status=$?
11898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11899 (exit $ac_status); }; }; then
11900 eval "$as_ac_var=yes"
11901else
11902 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011903sed 's/^/| /' conftest.$ac_ext >&5
11904
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011905eval "$as_ac_var=no"
11906fi
11907rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11908fi
11909echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
11910echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
11911if test `eval echo '${'$as_ac_var'}'` = yes; then
11912 cat >>confdefs.h <<_ACEOF
11913#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11914_ACEOF
11915
11916else
11917 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11918echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11919if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11920 echo $ECHO_N "(cached) $ECHO_C" >&6
11921else
11922 ac_check_lib_save_LIBS=$LIBS
11923LIBS="-ldl $LIBS"
11924cat >conftest.$ac_ext <<_ACEOF
11925#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011926/* confdefs.h. */
11927_ACEOF
11928cat confdefs.h >>conftest.$ac_ext
11929cat >>conftest.$ac_ext <<_ACEOF
11930/* end confdefs.h. */
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011931
11932/* Override any gcc2 internal prototype to avoid an error. */
11933#ifdef __cplusplus
11934extern "C"
11935#endif
11936/* We use char because int might match the return type of a gcc2
11937 builtin and then its argument prototype would still apply. */
11938char dlopen ();
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011939int
11940main ()
11941{
11942dlopen ();
11943 ;
11944 return 0;
11945}
11946_ACEOF
11947rm -f conftest.$ac_objext conftest$ac_exeext
11948if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11949 (eval $ac_link) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); } &&
11953 { ac_try='test -s conftest$ac_exeext'
11954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11955 (eval $ac_try) 2>&5
11956 ac_status=$?
11957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11958 (exit $ac_status); }; }; then
11959 ac_cv_lib_dl_dlopen=yes
11960else
11961 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011962sed 's/^/| /' conftest.$ac_ext >&5
11963
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000011964ac_cv_lib_dl_dlopen=no
11965fi
11966rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11967LIBS=$ac_check_lib_save_LIBS
11968fi
11969echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11970echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11971if test $ac_cv_lib_dl_dlopen = yes; then
11972
11973cat >>confdefs.h <<\_ACEOF
11974#define HAVE_DLOPEN 1
11975_ACEOF
11976
11977 DLLIBS="-ldl"
11978else
11979 LIBEXT="a"
11980fi
11981
11982fi
11983done
11984
11985else
11986 LIBEXT="a"
11987fi
11988
11989done
11990
11991
11992 if test "$LIBEXT" = "so"
11993 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011994 DLLFLAGS="$DLLFLAGS -fPIC"
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000011995 DLLEXT=".so"
Alexandre Julliard466ae142002-05-07 18:33:47 +000011996 echo "$as_me:$LINENO: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011997echo $ECHO_N "checking whether we can build a GNU style ELF dll... $ECHO_C" >&6
11998if test "${ac_cv_c_dll_gnuelf+set}" = set; then
11999 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012000else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012001 ac_wine_try_cflags_saved=$CFLAGS
12002CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0,-Bsymbolic"
12003cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012004#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012005/* confdefs.h. */
12006_ACEOF
12007cat confdefs.h >>conftest.$ac_ext
12008cat >>conftest.$ac_ext <<_ACEOF
12009/* end confdefs.h. */
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012010
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012011int
12012main ()
12013{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012014
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012015 ;
12016 return 0;
12017}
12018_ACEOF
12019rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012020if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012021 (eval $ac_link) 2>&5
12022 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012024 (exit $ac_status); } &&
12025 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012027 (eval $ac_try) 2>&5
12028 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012030 (exit $ac_status); }; }; then
Bang Jun-Young37e5e7f2001-06-06 21:21:27 +000012031 ac_cv_c_dll_gnuelf="yes"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012032else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012033 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012034sed 's/^/| /' conftest.$ac_ext >&5
12035
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012036ac_cv_c_dll_gnuelf="no"
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012037fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012038rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012039CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012040fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012041echo "$as_me:$LINENO: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012042echo "${ECHO_T}$ac_cv_c_dll_gnuelf" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000012043 if test "$ac_cv_c_dll_gnuelf" = "yes"
12044 then
12045 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
12046 LDDLLFLAGS="-Wl,-Bsymbolic"
Alexandre Julliardf2abe472002-11-21 04:13:35 +000012047 echo "$as_me:$LINENO: checking whether the linker accepts -z defs" >&5
12048echo $ECHO_N "checking whether the linker accepts -z defs... $ECHO_C" >&6
12049if test "${ac_cv_c_dll_zdefs+set}" = set; then
12050 echo $ECHO_N "(cached) $ECHO_C" >&6
12051else
12052 ac_wine_try_cflags_saved=$CFLAGS
12053CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
12054cat >conftest.$ac_ext <<_ACEOF
12055#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012056/* confdefs.h. */
12057_ACEOF
12058cat confdefs.h >>conftest.$ac_ext
12059cat >>conftest.$ac_ext <<_ACEOF
12060/* end confdefs.h. */
Alexandre Julliardf2abe472002-11-21 04:13:35 +000012061
12062int
12063main ()
12064{
12065
12066 ;
12067 return 0;
12068}
12069_ACEOF
12070rm -f conftest.$ac_objext conftest$ac_exeext
12071if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12072 (eval $ac_link) 2>&5
12073 ac_status=$?
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); } &&
12076 { ac_try='test -s conftest$ac_exeext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12079 ac_status=$?
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_cv_c_dll_zdefs="yes"
12083else
12084 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012085sed 's/^/| /' conftest.$ac_ext >&5
12086
Alexandre Julliardf2abe472002-11-21 04:13:35 +000012087ac_cv_c_dll_zdefs="no"
12088fi
12089rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12090CFLAGS=$ac_wine_try_cflags_saved
12091fi
12092echo "$as_me:$LINENO: result: $ac_cv_c_dll_zdefs" >&5
12093echo "${ECHO_T}$ac_cv_c_dll_zdefs" >&6
12094 if test "$ac_cv_c_dll_zdefs" = "yes"
12095 then
12096 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
12097 fi
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012098 echo "$as_me:$LINENO: checking whether we can relocate the executable to 0x3c000000" >&5
12099echo $ECHO_N "checking whether we can relocate the executable to 0x3c000000... $ECHO_C" >&6
12100if test "${ac_cv_ld_reloc_exec+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12102else
12103 saved_CFLAGS="$CFLAGS"
12104 CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x3c000100"
12105 if test "$cross_compiling" = yes; then
12106 ac_cv_ld_reloc_exec="no"
12107else
12108 cat >conftest.$ac_ext <<_ACEOF
12109#line $LINENO "configure"
12110/* confdefs.h. */
12111_ACEOF
12112cat confdefs.h >>conftest.$ac_ext
12113cat >>conftest.$ac_ext <<_ACEOF
12114/* end confdefs.h. */
12115#include <unistd.h>
12116 int main() { return (sbrk(32*1024*1024) == (void *)-1); }
12117_ACEOF
12118rm -f conftest$ac_exeext
12119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12120 (eval $ac_link) 2>&5
12121 ac_status=$?
12122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12125 (eval $ac_try) 2>&5
12126 ac_status=$?
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); }; }; then
12129 ac_cv_ld_reloc_exec="yes"
12130else
12131 echo "$as_me: program exited with status $ac_status" >&5
12132echo "$as_me: failed program was:" >&5
12133sed 's/^/| /' conftest.$ac_ext >&5
12134
12135( exit $ac_status )
12136ac_cv_ld_reloc_exec="no"
12137fi
12138rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12139fi
12140 CFLAGS="$saved_CFLAGS"
12141fi
12142echo "$as_me:$LINENO: result: $ac_cv_ld_reloc_exec" >&5
12143echo "${ECHO_T}$ac_cv_ld_reloc_exec" >&6
12144 if test "$ac_cv_ld_reloc_exec" = "yes"
12145 then
12146 LDEXECFLAGS="-Wl,--section-start,.interp=0x3c000100"
12147
12148 fi
Alexandre Julliard466ae142002-05-07 18:33:47 +000012149 else
12150 echo "$as_me:$LINENO: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012151echo $ECHO_N "checking whether we can build a UnixWare (Solaris) dll... $ECHO_C" >&6
12152if test "${ac_cv_c_dll_unixware+set}" = set; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
Todd Vierling4b992b01998-12-15 15:26:27 +000012154else
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012155 ac_wine_try_cflags_saved=$CFLAGS
12156CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
12157cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012158#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012159/* confdefs.h. */
12160_ACEOF
12161cat confdefs.h >>conftest.$ac_ext
12162cat >>conftest.$ac_ext <<_ACEOF
12163/* end confdefs.h. */
Todd Vierling4b992b01998-12-15 15:26:27 +000012164
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012165int
12166main ()
12167{
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012168
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012169 ;
12170 return 0;
12171}
12172_ACEOF
12173rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012174if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012175 (eval $ac_link) 2>&5
12176 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012178 (exit $ac_status); } &&
12179 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012181 (eval $ac_try) 2>&5
12182 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012184 (exit $ac_status); }; }; then
Ron Recorde977d6c1999-09-05 12:32:05 +000012185 ac_cv_c_dll_unixware="yes"
12186else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012187 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012188sed 's/^/| /' conftest.$ac_ext >&5
12189
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012190ac_cv_c_dll_unixware="no"
Ron Recorde977d6c1999-09-05 12:32:05 +000012191fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012192rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012193CFLAGS=$ac_wine_try_cflags_saved
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012194fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012195echo "$as_me:$LINENO: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012196echo "${ECHO_T}$ac_cv_c_dll_unixware" >&6
Alexandre Julliard466ae142002-05-07 18:33:47 +000012197 if test "$ac_cv_c_dll_unixware" = "yes"
12198 then
12199 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
12200 LDDLLFLAGS="-Wl,-B,symbolic"
12201 fi
12202 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012203 fi
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000012204
12205 CROSSTEST=""
12206
12207 if test "$cross_compiling" = "no"
12208 then
Hans Leidekkerb195d9f2003-04-12 00:00:57 +000012209 for ac_prog in i586-mingw32msvc-gcc i386-mingw32-gcc
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000012210do
12211 # Extract the first word of "$ac_prog", so it can be a program name with args.
12212set dummy $ac_prog; ac_word=$2
12213echo "$as_me:$LINENO: checking for $ac_word" >&5
12214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12215if test "${ac_cv_prog_CROSSCC+set}" = set; then
12216 echo $ECHO_N "(cached) $ECHO_C" >&6
12217else
12218 if test -n "$CROSSCC"; then
12219 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
12220else
12221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222for as_dir in $PATH
12223do
12224 IFS=$as_save_IFS
12225 test -z "$as_dir" && as_dir=.
12226 for ac_exec_ext in '' $ac_executable_extensions; do
12227 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12228 ac_cv_prog_CROSSCC="$ac_prog"
12229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12230 break 2
12231 fi
12232done
12233done
12234
12235fi
12236fi
12237CROSSCC=$ac_cv_prog_CROSSCC
12238if test -n "$CROSSCC"; then
12239 echo "$as_me:$LINENO: result: $CROSSCC" >&5
12240echo "${ECHO_T}$CROSSCC" >&6
12241else
12242 echo "$as_me:$LINENO: result: no" >&5
12243echo "${ECHO_T}no" >&6
12244fi
12245
12246 test -n "$CROSSCC" && break
12247done
12248test -n "$CROSSCC" || CROSSCC="false"
12249
Hans Leidekkerb195d9f2003-04-12 00:00:57 +000012250 for ac_prog in i586-mingw32msvc-dlltool i386-mingw32-dlltool
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000012251do
12252 # Extract the first word of "$ac_prog", so it can be a program name with args.
12253set dummy $ac_prog; ac_word=$2
12254echo "$as_me:$LINENO: checking for $ac_word" >&5
12255echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12256if test "${ac_cv_prog_DLLTOOL+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12258else
12259 if test -n "$DLLTOOL"; then
12260 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12261else
12262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263for as_dir in $PATH
12264do
12265 IFS=$as_save_IFS
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12269 ac_cv_prog_DLLTOOL="$ac_prog"
12270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12271 break 2
12272 fi
12273done
12274done
12275
12276fi
12277fi
12278DLLTOOL=$ac_cv_prog_DLLTOOL
12279if test -n "$DLLTOOL"; then
12280 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
12281echo "${ECHO_T}$DLLTOOL" >&6
12282else
12283 echo "$as_me:$LINENO: result: no" >&5
12284echo "${ECHO_T}no" >&6
12285fi
12286
12287 test -n "$DLLTOOL" && break
12288done
12289test -n "$DLLTOOL" || DLLTOOL="false"
12290
Alexandre Julliard21ee3292003-04-21 22:52:31 +000012291 for ac_prog in i586-mingw32msvc-windres i386-mingw32-windres
12292do
12293 # Extract the first word of "$ac_prog", so it can be a program name with args.
12294set dummy $ac_prog; ac_word=$2
12295echo "$as_me:$LINENO: checking for $ac_word" >&5
12296echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12297if test "${ac_cv_prog_CROSSWINDRES+set}" = set; then
12298 echo $ECHO_N "(cached) $ECHO_C" >&6
12299else
12300 if test -n "$CROSSWINDRES"; then
12301 ac_cv_prog_CROSSWINDRES="$CROSSWINDRES" # Let the user override the test.
12302else
12303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304for as_dir in $PATH
12305do
12306 IFS=$as_save_IFS
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12310 ac_cv_prog_CROSSWINDRES="$ac_prog"
12311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12312 break 2
12313 fi
12314done
12315done
12316
12317fi
12318fi
12319CROSSWINDRES=$ac_cv_prog_CROSSWINDRES
12320if test -n "$CROSSWINDRES"; then
12321 echo "$as_me:$LINENO: result: $CROSSWINDRES" >&5
12322echo "${ECHO_T}$CROSSWINDRES" >&6
12323else
12324 echo "$as_me:$LINENO: result: no" >&5
12325echo "${ECHO_T}no" >&6
12326fi
12327
12328 test -n "$CROSSWINDRES" && break
12329done
12330test -n "$CROSSWINDRES" || CROSSWINDRES="false"
12331
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000012332 if test "$CROSSCC" != "false"; then CROSSTEST="\$(CROSSTEST)"; fi
12333 fi
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012334 ;;
12335esac
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012336
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000012337if test "$LIBEXT" = "a"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012338 { { echo "$as_me:$LINENO: error: could not find a way to build shared libraries.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012339It is currently not possible to build Wine without shared library
12340(.so) support to allow transparent switch between .so and .dll files.
12341If you are using Linux, you will need a newer binutils.
12342" >&5
12343echo "$as_me: error: could not find a way to build shared libraries.
12344It is currently not possible to build Wine without shared library
12345(.so) support to allow transparent switch between .so and .dll files.
12346If you are using Linux, you will need a newer binutils.
12347" >&2;}
12348 { (exit 1); exit 1; }; }
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000012349fi
12350
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012351case $build_os in
12352 cygwin*|mingw32*)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000012353 LDPATH="PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012354 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012355 *)
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000012356 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/unicode:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012357 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012358esac
12359
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012360CRTLIBS=""
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012361
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012362case $host_os in
12363 mingw32*)
12364 CRTLIBS="-lmsvcrt" ;;
12365esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012366
12367
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012368if test "$LIBEXT" = "so"
12369then
12370 # Extract the first word of "ldd", so it can be a program name with args.
12371set dummy ldd; ac_word=$2
12372echo "$as_me:$LINENO: checking for $ac_word" >&5
12373echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12374if test "${ac_cv_path_LDD+set}" = set; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12376else
12377 case $LDD in
12378 [\\/]* | ?:[\\/]*)
12379 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
12380 ;;
12381 *)
12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012383as_dummy="/sbin:/usr/sbin:$PATH"
12384for as_dir in $as_dummy
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012385do
12386 IFS=$as_save_IFS
12387 test -z "$as_dir" && as_dir=.
12388 for ac_exec_ext in '' $ac_executable_extensions; do
12389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12390 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
12391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12392 break 2
12393 fi
12394done
12395done
12396
12397 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
12398 ;;
12399esac
12400fi
12401LDD=$ac_cv_path_LDD
12402
12403if test -n "$LDD"; then
12404 echo "$as_me:$LINENO: result: $LDD" >&5
12405echo "${ECHO_T}$LDD" >&6
12406else
12407 echo "$as_me:$LINENO: result: no" >&5
12408echo "${ECHO_T}no" >&6
12409fi
12410
12411
12412echo "$as_me:$LINENO: checking for -lX11 soname" >&5
12413echo $ECHO_N "checking for -lX11 soname... $ECHO_C" >&6
12414if test "${ac_cv_lib_soname_X11+set}" = set; then
12415 echo $ECHO_N "(cached) $ECHO_C" >&6
12416else
12417 ac_get_soname_save_LIBS=$LIBS
12418LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
12419 cat >conftest.$ac_ext <<_ACEOF
12420#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012421/* confdefs.h. */
12422_ACEOF
12423cat confdefs.h >>conftest.$ac_ext
12424cat >>conftest.$ac_ext <<_ACEOF
12425/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012426
12427/* Override any gcc2 internal prototype to avoid an error. */
12428#ifdef __cplusplus
12429extern "C"
12430#endif
12431/* We use char because int might match the return type of a gcc2
12432 builtin and then its argument prototype would still apply. */
12433char XCreateWindow ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012434int
12435main ()
12436{
12437XCreateWindow ();
12438 ;
12439 return 0;
12440}
12441_ACEOF
12442rm -f conftest.$ac_objext conftest$ac_exeext
12443if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12444 (eval $ac_link) 2>&5
12445 ac_status=$?
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -s conftest$ac_exeext'
12449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12450 (eval $ac_try) 2>&5
12451 ac_status=$?
12452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12453 (exit $ac_status); }; }; then
Todd Vierling47f021c2003-07-26 20:27:47 +000012454 ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep libX11\\.so | sed 's/^.*\(libX11\.so[^ ]*\).*$/\1/'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012455 if test "x$ac_cv_lib_soname_X11" = "x"
12456 then
12457 ac_cv_lib_soname_X11="libX11.so"
12458 fi
12459else
12460 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012461sed 's/^/| /' conftest.$ac_ext >&5
12462
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012463ac_cv_lib_soname_X11="libX11.so"
12464fi
12465rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12466 LIBS=$ac_get_soname_save_LIBS
12467fi
12468echo "$as_me:$LINENO: result: $ac_cv_lib_soname_X11" >&5
12469echo "${ECHO_T}$ac_cv_lib_soname_X11" >&6
12470if test "x$ac_cv_lib_soname_X11" != xNONE
12471then
12472cat >>confdefs.h <<_ACEOF
12473#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
12474_ACEOF
12475fi
12476
12477echo "$as_me:$LINENO: checking for -lXext soname" >&5
12478echo $ECHO_N "checking for -lXext soname... $ECHO_C" >&6
12479if test "${ac_cv_lib_soname_Xext+set}" = set; then
12480 echo $ECHO_N "(cached) $ECHO_C" >&6
12481else
12482 ac_get_soname_save_LIBS=$LIBS
12483LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
12484 cat >conftest.$ac_ext <<_ACEOF
12485#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012486/* confdefs.h. */
12487_ACEOF
12488cat confdefs.h >>conftest.$ac_ext
12489cat >>conftest.$ac_ext <<_ACEOF
12490/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012491
12492/* Override any gcc2 internal prototype to avoid an error. */
12493#ifdef __cplusplus
12494extern "C"
12495#endif
12496/* We use char because int might match the return type of a gcc2
12497 builtin and then its argument prototype would still apply. */
12498char XextCreateExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012499int
12500main ()
12501{
12502XextCreateExtension ();
12503 ;
12504 return 0;
12505}
12506_ACEOF
12507rm -f conftest.$ac_objext conftest$ac_exeext
12508if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12509 (eval $ac_link) 2>&5
12510 ac_status=$?
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } &&
12513 { ac_try='test -s conftest$ac_exeext'
12514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12515 (eval $ac_try) 2>&5
12516 ac_status=$?
12517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12518 (exit $ac_status); }; }; then
Todd Vierling47f021c2003-07-26 20:27:47 +000012519 ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep libXext\\.so | sed 's/^.*\(libXext\.so[^ ]*\).*$/\1/'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012520 if test "x$ac_cv_lib_soname_Xext" = "x"
12521 then
12522 ac_cv_lib_soname_Xext="libXext.so"
12523 fi
12524else
12525 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012526sed 's/^/| /' conftest.$ac_ext >&5
12527
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012528ac_cv_lib_soname_Xext="libXext.so"
12529fi
12530rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12531 LIBS=$ac_get_soname_save_LIBS
12532fi
12533echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xext" >&5
12534echo "${ECHO_T}$ac_cv_lib_soname_Xext" >&6
12535if test "x$ac_cv_lib_soname_Xext" != xNONE
12536then
12537cat >>confdefs.h <<_ACEOF
12538#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
12539_ACEOF
12540fi
12541
12542echo "$as_me:$LINENO: checking for -lXrender soname" >&5
12543echo $ECHO_N "checking for -lXrender soname... $ECHO_C" >&6
12544if test "${ac_cv_lib_soname_Xrender+set}" = set; then
12545 echo $ECHO_N "(cached) $ECHO_C" >&6
12546else
12547 ac_get_soname_save_LIBS=$LIBS
12548LIBS="-lXrender $X_LIBS -lXext -lX11 $X_EXTRA_LIBS $LIBS"
12549 cat >conftest.$ac_ext <<_ACEOF
12550#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012551/* confdefs.h. */
12552_ACEOF
12553cat confdefs.h >>conftest.$ac_ext
12554cat >>conftest.$ac_ext <<_ACEOF
12555/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012556
12557/* Override any gcc2 internal prototype to avoid an error. */
12558#ifdef __cplusplus
12559extern "C"
12560#endif
12561/* We use char because int might match the return type of a gcc2
12562 builtin and then its argument prototype would still apply. */
12563char XRenderQueryExtension ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012564int
12565main ()
12566{
12567XRenderQueryExtension ();
12568 ;
12569 return 0;
12570}
12571_ACEOF
12572rm -f conftest.$ac_objext conftest$ac_exeext
12573if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12574 (eval $ac_link) 2>&5
12575 ac_status=$?
12576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12577 (exit $ac_status); } &&
12578 { ac_try='test -s conftest$ac_exeext'
12579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12580 (eval $ac_try) 2>&5
12581 ac_status=$?
12582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12583 (exit $ac_status); }; }; then
Todd Vierling47f021c2003-07-26 20:27:47 +000012584 ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep libXrender\\.so | sed 's/^.*\(libXrender\.so[^ ]*\).*$/\1/'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012585 if test "x$ac_cv_lib_soname_Xrender" = "x"
12586 then
12587 ac_cv_lib_soname_Xrender="libXrender.so"
12588 fi
12589else
12590 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012591sed 's/^/| /' conftest.$ac_ext >&5
12592
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012593ac_cv_lib_soname_Xrender="libXrender.so"
12594fi
12595rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12596 LIBS=$ac_get_soname_save_LIBS
12597fi
12598echo "$as_me:$LINENO: result: $ac_cv_lib_soname_Xrender" >&5
12599echo "${ECHO_T}$ac_cv_lib_soname_Xrender" >&6
12600if test "x$ac_cv_lib_soname_Xrender" != xNONE
12601then
12602cat >>confdefs.h <<_ACEOF
12603#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
12604_ACEOF
12605fi
12606
12607echo "$as_me:$LINENO: checking for -lfreetype soname" >&5
12608echo $ECHO_N "checking for -lfreetype soname... $ECHO_C" >&6
12609if test "${ac_cv_lib_soname_freetype+set}" = set; then
12610 echo $ECHO_N "(cached) $ECHO_C" >&6
12611else
12612 ac_get_soname_save_LIBS=$LIBS
12613LIBS="-lfreetype $X_LIBS $LIBS"
12614 cat >conftest.$ac_ext <<_ACEOF
12615#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012616/* confdefs.h. */
12617_ACEOF
12618cat confdefs.h >>conftest.$ac_ext
12619cat >>conftest.$ac_ext <<_ACEOF
12620/* end confdefs.h. */
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012621
12622/* Override any gcc2 internal prototype to avoid an error. */
12623#ifdef __cplusplus
12624extern "C"
12625#endif
12626/* We use char because int might match the return type of a gcc2
12627 builtin and then its argument prototype would still apply. */
12628char FT_Init_FreeType ();
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012629int
12630main ()
12631{
12632FT_Init_FreeType ();
12633 ;
12634 return 0;
12635}
12636_ACEOF
12637rm -f conftest.$ac_objext conftest$ac_exeext
12638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12639 (eval $ac_link) 2>&5
12640 ac_status=$?
12641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12642 (exit $ac_status); } &&
12643 { ac_try='test -s conftest$ac_exeext'
12644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12645 (eval $ac_try) 2>&5
12646 ac_status=$?
12647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12648 (exit $ac_status); }; }; then
Todd Vierling47f021c2003-07-26 20:27:47 +000012649 ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep libfreetype\\.so | sed 's/^.*\(libfreetype\.so[^ ]*\).*$/\1/'`
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012650 if test "x$ac_cv_lib_soname_freetype" = "x"
12651 then
12652 ac_cv_lib_soname_freetype="libfreetype.so"
12653 fi
12654else
12655 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012656sed 's/^/| /' conftest.$ac_ext >&5
12657
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012658ac_cv_lib_soname_freetype="libfreetype.so"
12659fi
12660rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12661 LIBS=$ac_get_soname_save_LIBS
12662fi
12663echo "$as_me:$LINENO: result: $ac_cv_lib_soname_freetype" >&5
12664echo "${ECHO_T}$ac_cv_lib_soname_freetype" >&6
12665if test "x$ac_cv_lib_soname_freetype" != xNONE
12666then
12667cat >>confdefs.h <<_ACEOF
12668#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
12669_ACEOF
12670fi
Marcus Meissnerf061f762002-11-12 02:22:24 +000012671
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000012672echo "$as_me:$LINENO: checking for -lGL soname" >&5
12673echo $ECHO_N "checking for -lGL soname... $ECHO_C" >&6
12674if test "${ac_cv_lib_soname_GL+set}" = set; then
12675 echo $ECHO_N "(cached) $ECHO_C" >&6
12676else
12677 ac_get_soname_save_LIBS=$LIBS
12678LIBS="-lGL $X_LIBS $X_EXTRA_LIBS $LIBS"
12679 cat >conftest.$ac_ext <<_ACEOF
12680#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012681/* confdefs.h. */
12682_ACEOF
12683cat confdefs.h >>conftest.$ac_ext
12684cat >>conftest.$ac_ext <<_ACEOF
12685/* end confdefs.h. */
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000012686
12687/* Override any gcc2 internal prototype to avoid an error. */
12688#ifdef __cplusplus
12689extern "C"
12690#endif
12691/* We use char because int might match the return type of a gcc2
12692 builtin and then its argument prototype would still apply. */
12693char glXQueryExtension ();
12694int
12695main ()
12696{
12697glXQueryExtension ();
12698 ;
12699 return 0;
12700}
12701_ACEOF
12702rm -f conftest.$ac_objext conftest$ac_exeext
12703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12704 (eval $ac_link) 2>&5
12705 ac_status=$?
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); } &&
12708 { ac_try='test -s conftest$ac_exeext'
12709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12710 (eval $ac_try) 2>&5
12711 ac_status=$?
12712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713 (exit $ac_status); }; }; then
Todd Vierling47f021c2003-07-26 20:27:47 +000012714 ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep libGL\\.so | sed 's/^.*\(libGL\.so[^ ]*\).*$/\1/'`
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000012715 if test "x$ac_cv_lib_soname_GL" = "x"
12716 then
12717 ac_cv_lib_soname_GL="libGL.so"
12718 fi
12719else
12720 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012721sed 's/^/| /' conftest.$ac_ext >&5
12722
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000012723ac_cv_lib_soname_GL="libGL.so"
12724fi
12725rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12726 LIBS=$ac_get_soname_save_LIBS
12727fi
12728echo "$as_me:$LINENO: result: $ac_cv_lib_soname_GL" >&5
12729echo "${ECHO_T}$ac_cv_lib_soname_GL" >&6
12730if test "x$ac_cv_lib_soname_GL" != xNONE
12731then
12732cat >>confdefs.h <<_ACEOF
12733#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
12734_ACEOF
12735fi
12736
Marcus Meissnerf061f762002-11-12 02:22:24 +000012737echo "$as_me:$LINENO: checking for -lcups soname" >&5
12738echo $ECHO_N "checking for -lcups soname... $ECHO_C" >&6
12739if test "${ac_cv_lib_soname_cups+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12741else
12742 ac_get_soname_save_LIBS=$LIBS
12743LIBS="-lcups $LIBS"
12744 cat >conftest.$ac_ext <<_ACEOF
12745#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012746/* confdefs.h. */
12747_ACEOF
12748cat confdefs.h >>conftest.$ac_ext
12749cat >>conftest.$ac_ext <<_ACEOF
12750/* end confdefs.h. */
Marcus Meissnerf061f762002-11-12 02:22:24 +000012751
12752/* Override any gcc2 internal prototype to avoid an error. */
12753#ifdef __cplusplus
12754extern "C"
12755#endif
12756/* We use char because int might match the return type of a gcc2
12757 builtin and then its argument prototype would still apply. */
12758char cupsGetDefault ();
12759int
12760main ()
12761{
12762cupsGetDefault ();
12763 ;
12764 return 0;
12765}
12766_ACEOF
12767rm -f conftest.$ac_objext conftest$ac_exeext
12768if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12769 (eval $ac_link) 2>&5
12770 ac_status=$?
12771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12772 (exit $ac_status); } &&
12773 { ac_try='test -s conftest$ac_exeext'
12774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12775 (eval $ac_try) 2>&5
12776 ac_status=$?
12777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12778 (exit $ac_status); }; }; then
Todd Vierling47f021c2003-07-26 20:27:47 +000012779 ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep libcups\\.so | sed 's/^.*\(libcups\.so[^ ]*\).*$/\1/'`
Marcus Meissnerf061f762002-11-12 02:22:24 +000012780 if test "x$ac_cv_lib_soname_cups" = "x"
12781 then
12782 ac_cv_lib_soname_cups="libcups.so"
12783 fi
12784else
12785 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012786sed 's/^/| /' conftest.$ac_ext >&5
12787
Marcus Meissnerf061f762002-11-12 02:22:24 +000012788ac_cv_lib_soname_cups="libcups.so"
12789fi
12790rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12791 LIBS=$ac_get_soname_save_LIBS
12792fi
12793echo "$as_me:$LINENO: result: $ac_cv_lib_soname_cups" >&5
12794echo "${ECHO_T}$ac_cv_lib_soname_cups" >&6
12795if test "x$ac_cv_lib_soname_cups" != xNONE
12796then
12797cat >>confdefs.h <<_ACEOF
12798#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
12799_ACEOF
12800fi
Chris Morgan4691b182002-12-13 02:26:18 +000012801
12802echo "$as_me:$LINENO: checking for -ljack soname" >&5
12803echo $ECHO_N "checking for -ljack soname... $ECHO_C" >&6
12804if test "${ac_cv_lib_soname_jack+set}" = set; then
12805 echo $ECHO_N "(cached) $ECHO_C" >&6
12806else
12807 ac_get_soname_save_LIBS=$LIBS
12808LIBS="-ljack $LIBS"
12809 cat >conftest.$ac_ext <<_ACEOF
12810#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012811/* confdefs.h. */
12812_ACEOF
12813cat confdefs.h >>conftest.$ac_ext
12814cat >>conftest.$ac_ext <<_ACEOF
12815/* end confdefs.h. */
Chris Morgan4691b182002-12-13 02:26:18 +000012816
12817/* Override any gcc2 internal prototype to avoid an error. */
12818#ifdef __cplusplus
12819extern "C"
12820#endif
12821/* We use char because int might match the return type of a gcc2
12822 builtin and then its argument prototype would still apply. */
12823char jack_client_new ();
12824int
12825main ()
12826{
12827jack_client_new ();
12828 ;
12829 return 0;
12830}
12831_ACEOF
12832rm -f conftest.$ac_objext conftest$ac_exeext
12833if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12834 (eval $ac_link) 2>&5
12835 ac_status=$?
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } &&
12838 { ac_try='test -s conftest$ac_exeext'
12839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12840 (eval $ac_try) 2>&5
12841 ac_status=$?
12842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12843 (exit $ac_status); }; }; then
Todd Vierling47f021c2003-07-26 20:27:47 +000012844 ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep libjack\\.so | sed 's/^.*\(libjack\.so[^ ]*\).*$/\1/'`
Chris Morgan4691b182002-12-13 02:26:18 +000012845 if test "x$ac_cv_lib_soname_jack" = "x"
12846 then
12847 ac_cv_lib_soname_jack="libjack.so"
12848 fi
12849else
12850 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012851sed 's/^/| /' conftest.$ac_ext >&5
12852
Chris Morgan4691b182002-12-13 02:26:18 +000012853ac_cv_lib_soname_jack="libjack.so"
12854fi
12855rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12856 LIBS=$ac_get_soname_save_LIBS
12857fi
12858echo "$as_me:$LINENO: result: $ac_cv_lib_soname_jack" >&5
12859echo "${ECHO_T}$ac_cv_lib_soname_jack" >&6
12860if test "x$ac_cv_lib_soname_jack" != xNONE
12861then
12862cat >>confdefs.h <<_ACEOF
12863#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
12864_ACEOF
12865fi
David Hammerton852c7ae2003-06-20 23:26:56 +000012866
12867echo "$as_me:$LINENO: checking for -lssl soname" >&5
12868echo $ECHO_N "checking for -lssl soname... $ECHO_C" >&6
12869if test "${ac_cv_lib_soname_ssl+set}" = set; then
12870 echo $ECHO_N "(cached) $ECHO_C" >&6
12871else
12872 ac_get_soname_save_LIBS=$LIBS
12873LIBS="-lssl $LIBS"
12874 cat >conftest.$ac_ext <<_ACEOF
12875#line $LINENO "configure"
12876/* confdefs.h. */
12877_ACEOF
12878cat confdefs.h >>conftest.$ac_ext
12879cat >>conftest.$ac_ext <<_ACEOF
12880/* end confdefs.h. */
12881
12882/* Override any gcc2 internal prototype to avoid an error. */
12883#ifdef __cplusplus
12884extern "C"
12885#endif
12886/* We use char because int might match the return type of a gcc2
12887 builtin and then its argument prototype would still apply. */
12888char SSL_library_init ();
12889int
12890main ()
12891{
12892SSL_library_init ();
12893 ;
12894 return 0;
12895}
12896_ACEOF
12897rm -f conftest.$ac_objext conftest$ac_exeext
12898if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12899 (eval $ac_link) 2>&5
12900 ac_status=$?
12901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902 (exit $ac_status); } &&
12903 { ac_try='test -s conftest$ac_exeext'
12904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12905 (eval $ac_try) 2>&5
12906 ac_status=$?
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); }; }; then
Todd Vierling47f021c2003-07-26 20:27:47 +000012909 ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep libssl\\.so | sed 's/^.*\(libssl\.so[^ ]*\).*$/\1/'`
David Hammerton852c7ae2003-06-20 23:26:56 +000012910 if test "x$ac_cv_lib_soname_ssl" = "x"
12911 then
12912 ac_cv_lib_soname_ssl="libssl.so"
12913 fi
12914else
12915 echo "$as_me: failed program was:" >&5
12916sed 's/^/| /' conftest.$ac_ext >&5
12917
12918ac_cv_lib_soname_ssl="libssl.so"
12919fi
12920rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12921 LIBS=$ac_get_soname_save_LIBS
12922fi
12923echo "$as_me:$LINENO: result: $ac_cv_lib_soname_ssl" >&5
12924echo "${ECHO_T}$ac_cv_lib_soname_ssl" >&6
12925if test "x$ac_cv_lib_soname_ssl" != xNONE
12926then
12927cat >>confdefs.h <<_ACEOF
12928#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
12929_ACEOF
12930fi
12931
12932echo "$as_me:$LINENO: checking for -lcrypto soname" >&5
12933echo $ECHO_N "checking for -lcrypto soname... $ECHO_C" >&6
12934if test "${ac_cv_lib_soname_crypto+set}" = set; then
12935 echo $ECHO_N "(cached) $ECHO_C" >&6
12936else
12937 ac_get_soname_save_LIBS=$LIBS
12938LIBS="-lcrypto $LIBS"
12939 cat >conftest.$ac_ext <<_ACEOF
12940#line $LINENO "configure"
12941/* confdefs.h. */
12942_ACEOF
12943cat confdefs.h >>conftest.$ac_ext
12944cat >>conftest.$ac_ext <<_ACEOF
12945/* end confdefs.h. */
12946
12947/* Override any gcc2 internal prototype to avoid an error. */
12948#ifdef __cplusplus
12949extern "C"
12950#endif
12951/* We use char because int might match the return type of a gcc2
12952 builtin and then its argument prototype would still apply. */
12953char BIO_new_socket ();
12954int
12955main ()
12956{
12957BIO_new_socket ();
12958 ;
12959 return 0;
12960}
12961_ACEOF
12962rm -f conftest.$ac_objext conftest$ac_exeext
12963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12964 (eval $ac_link) 2>&5
12965 ac_status=$?
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); } &&
12968 { ac_try='test -s conftest$ac_exeext'
12969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12970 (eval $ac_try) 2>&5
12971 ac_status=$?
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); }; }; then
Todd Vierling47f021c2003-07-26 20:27:47 +000012974 ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep libcrypto\\.so | sed 's/^.*\(libcrypto\.so[^ ]*\).*$/\1/'`
David Hammerton852c7ae2003-06-20 23:26:56 +000012975 if test "x$ac_cv_lib_soname_crypto" = "x"
12976 then
12977 ac_cv_lib_soname_crypto="libcrypto.so"
12978 fi
12979else
12980 echo "$as_me: failed program was:" >&5
12981sed 's/^/| /' conftest.$ac_ext >&5
12982
12983ac_cv_lib_soname_crypto="libcrypto.so"
12984fi
12985rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12986 LIBS=$ac_get_soname_save_LIBS
12987fi
12988echo "$as_me:$LINENO: result: $ac_cv_lib_soname_crypto" >&5
12989echo "${ECHO_T}$ac_cv_lib_soname_crypto" >&6
12990if test "x$ac_cv_lib_soname_crypto" != xNONE
12991then
12992cat >>confdefs.h <<_ACEOF
12993#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
12994_ACEOF
12995fi
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000012996fi
12997
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012998
Alexandre Julliardfa3a5362002-05-09 01:49:54 +000012999
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013000# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13001# for constant arguments. Useless!
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013002echo "$as_me:$LINENO: checking for working alloca.h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013003echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
13004if test "${ac_cv_working_alloca_h+set}" = set; then
13005 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013006else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013007 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013008#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013009/* confdefs.h. */
13010_ACEOF
13011cat confdefs.h >>conftest.$ac_ext
13012cat >>conftest.$ac_ext <<_ACEOF
13013/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013014#include <alloca.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013015int
13016main ()
13017{
13018char *p = (char *) alloca (2 * sizeof (int));
13019 ;
13020 return 0;
13021}
13022_ACEOF
13023rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013024if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013025 (eval $ac_link) 2>&5
13026 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013028 (exit $ac_status); } &&
13029 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013031 (eval $ac_try) 2>&5
13032 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013034 (exit $ac_status); }; }; then
13035 ac_cv_working_alloca_h=yes
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013036else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013037 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013038sed 's/^/| /' conftest.$ac_ext >&5
13039
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013040ac_cv_working_alloca_h=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013041fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013042rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013043fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013044echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013045echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
13046if test $ac_cv_working_alloca_h = yes; then
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013047
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013048cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013049#define HAVE_ALLOCA_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013050_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013051
13052fi
13053
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013054echo "$as_me:$LINENO: checking for alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013055echo $ECHO_N "checking for alloca... $ECHO_C" >&6
13056if test "${ac_cv_func_alloca_works+set}" = set; then
13057 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013058else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013059 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013060#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013061/* confdefs.h. */
13062_ACEOF
13063cat confdefs.h >>conftest.$ac_ext
13064cat >>conftest.$ac_ext <<_ACEOF
13065/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013066#ifdef __GNUC__
13067# define alloca __builtin_alloca
13068#else
Eric Pouech18ad24a2000-01-16 22:16:33 +000013069# ifdef _MSC_VER
13070# include <malloc.h>
13071# define alloca _alloca
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013072# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000013073# if HAVE_ALLOCA_H
13074# include <alloca.h>
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013075# else
Eric Pouech18ad24a2000-01-16 22:16:33 +000013076# ifdef _AIX
13077 #pragma alloca
13078# else
13079# ifndef alloca /* predefined by HP cc +Olibcalls */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013080char *alloca ();
Eric Pouech18ad24a2000-01-16 22:16:33 +000013081# endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013082# endif
13083# endif
13084# endif
13085#endif
13086
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013087int
13088main ()
13089{
13090char *p = (char *) alloca (1);
13091 ;
13092 return 0;
13093}
13094_ACEOF
13095rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013097 (eval $ac_link) 2>&5
13098 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013100 (exit $ac_status); } &&
13101 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013103 (eval $ac_try) 2>&5
13104 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013106 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013107 ac_cv_func_alloca_works=yes
13108else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013109 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013110sed 's/^/| /' conftest.$ac_ext >&5
13111
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013112ac_cv_func_alloca_works=no
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013113fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013114rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013115fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013116echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013117echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013118
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013119if test $ac_cv_func_alloca_works = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013120
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013121cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013122#define HAVE_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013123_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013124
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013125else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013126 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013127# that cause trouble. Some versions do not even contain alloca or
13128# contain a buggy version. If you still want to use their alloca,
13129# use ar to extract alloca.o from them instead of compiling alloca.c.
13130
13131ALLOCA=alloca.$ac_objext
13132
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013133cat >>confdefs.h <<\_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013134#define C_ALLOCA 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013135_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013136
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013137
13138echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013139echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
13140if test "${ac_cv_os_cray+set}" = set; then
13141 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013142else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013143 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013144#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013145/* confdefs.h. */
13146_ACEOF
13147cat confdefs.h >>conftest.$ac_ext
13148cat >>conftest.$ac_ext <<_ACEOF
13149/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013150#if defined(CRAY) && ! defined(CRAY2)
13151webecray
13152#else
13153wenotbecray
13154#endif
13155
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013156_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013157if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013158 $EGREP "webecray" >/dev/null 2>&1; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013159 ac_cv_os_cray=yes
13160else
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013161 ac_cv_os_cray=no
13162fi
13163rm -f conftest*
13164
13165fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013166echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013167echo "${ECHO_T}$ac_cv_os_cray" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013168if test $ac_cv_os_cray = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013169 for ac_func in _getb67 GETB67 getb67; do
13170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013171echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013172echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13173if eval "test \"\${$as_ac_var+set}\" = set"; then
13174 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013175else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013176 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013177#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013178/* confdefs.h. */
13179_ACEOF
13180cat confdefs.h >>conftest.$ac_ext
13181cat >>conftest.$ac_ext <<_ACEOF
13182/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013183/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013184 which can conflict with char $ac_func (); below.
13185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13186 <limits.h> exists even on freestanding compilers. */
13187#ifdef __STDC__
13188# include <limits.h>
13189#else
13190# include <assert.h>
13191#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013192/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013193#ifdef __cplusplus
13194extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013195{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013196#endif
Alexandre Julliarde2bfa4c1996-05-16 18:21:06 +000013197/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013198 builtin and then its argument prototype would still apply. */
13199char $ac_func ();
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013200/* The GNU C library defines this for functions which it implements
13201 to always fail with ENOSYS. Some functions are actually named
13202 something starting with __ and the normal name is an alias. */
13203#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13204choke me
13205#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013206char (*f) () = $ac_func;
13207#endif
13208#ifdef __cplusplus
13209}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013210#endif
13211
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013212int
13213main ()
13214{
13215return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013216 ;
13217 return 0;
13218}
13219_ACEOF
13220rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013221if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013222 (eval $ac_link) 2>&5
13223 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013225 (exit $ac_status); } &&
13226 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013228 (eval $ac_try) 2>&5
13229 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013231 (exit $ac_status); }; }; then
13232 eval "$as_ac_var=yes"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013233else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013234 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013235sed 's/^/| /' conftest.$ac_ext >&5
13236
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013237eval "$as_ac_var=no"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013238fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013239rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013240fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013241echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013242echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13243if test `eval echo '${'$as_ac_var'}'` = yes; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013244
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013245cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013246#define CRAY_STACKSEG_END $ac_func
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013247_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013248
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013249 break
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013250fi
13251
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013252 done
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013253fi
13254
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013255echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013256echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
13257if test "${ac_cv_c_stack_direction+set}" = set; then
13258 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013259else
13260 if test "$cross_compiling" = yes; then
13261 ac_cv_c_stack_direction=0
13262else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013263 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013264#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013265/* confdefs.h. */
13266_ACEOF
13267cat confdefs.h >>conftest.$ac_ext
13268cat >>conftest.$ac_ext <<_ACEOF
13269/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013270int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013271find_stack_direction ()
13272{
13273 static char *addr = 0;
13274 auto char dummy;
13275 if (addr == 0)
13276 {
13277 addr = &dummy;
13278 return find_stack_direction ();
13279 }
13280 else
13281 return (&dummy > addr) ? 1 : -1;
13282}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013283
13284int
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013285main ()
13286{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013287 exit (find_stack_direction () < 0);
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013288}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013289_ACEOF
13290rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013291if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013292 (eval $ac_link) 2>&5
13293 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013295 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013297 (eval $ac_try) 2>&5
13298 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013300 (exit $ac_status); }; }; then
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013301 ac_cv_c_stack_direction=1
13302else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013303 echo "$as_me: program exited with status $ac_status" >&5
13304echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013305sed 's/^/| /' conftest.$ac_ext >&5
13306
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013307( exit $ac_status )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013308ac_cv_c_stack_direction=-1
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013309fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013310rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013311fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013312fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013313echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013314echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013315
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013316cat >>confdefs.h <<_ACEOF
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013317#define STACK_DIRECTION $ac_cv_c_stack_direction
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013318_ACEOF
13319
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013320
13321fi
13322
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359
13360
13361
13362
13363
13364
Steven Edwardsb9627c12002-05-05 21:03:44 +000013365
13366
Steven Edwards0a8e15a2002-05-10 01:33:40 +000013367
13368
Alexandre Julliard142dab82002-07-01 18:17:30 +000013369
Patrik Stridvall6caeb722002-11-25 21:12:26 +000013370
13371
13372
13373
13374
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000013375
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000013376
Alexandre Julliard6f7a2042003-04-01 04:39:35 +000013377
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013378for ac_func in \
13379 _lwp_create \
Alexandre Julliard6f7a2042003-04-01 04:39:35 +000013380 _lwp_self \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013381 _pclose \
13382 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000013383 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000013384 _spawnvp \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013385 _stricmp \
13386 _strnicmp \
Steven Edwardsbe514b92003-01-14 19:35:03 +000013387 _vsnprintf \
Steven Edwardsb9627c12002-05-05 21:03:44 +000013388 chsize \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013389 clone \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000013390 finite \
13391 fpclass \
Steven Edwardsb9627c12002-05-05 21:03:44 +000013392 ftruncate \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000013393 ftruncate64 \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013394 getnetbyaddr \
13395 getnetbyname \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000013396 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013397 getpagesize \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013398 getprotobyname \
13399 getprotobynumber \
Alexandre Julliard142dab82002-07-01 18:17:30 +000013400 getpwuid \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013401 getservbyport \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000013402 gettimeofday \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013403 inet_network \
Marcus Meissner3f1ed522001-05-14 20:09:37 +000013404 lseek64 \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000013405 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013406 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000013407 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013408 pclose \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013409 popen \
Steven Edwardsb9627c12002-05-05 21:03:44 +000013410 pread \
Patrik Stridvall6caeb722002-11-25 21:12:26 +000013411 pthread_getspecific \
13412 pthread_key_create \
13413 pthread_mutex_lock \
13414 pthread_mutex_unlock \
13415 pthread_setspecific \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000013416 pwrite \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013417 rfork \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013418 select \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013419 sendmsg \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013420 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013421 sigaltstack \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000013422 snprintf \
Patrik Stridvallb9010211999-11-13 22:23:35 +000013423 statfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000013424 strcasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013425 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000013426 strncasecmp \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013427 tcgetattr \
13428 timegm \
13429 usleep \
13430 vfscanf \
Steven Edwardsbe514b92003-01-14 19:35:03 +000013431 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013432 wait4 \
13433 waitpid \
13434
13435do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013436as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013437echo "$as_me:$LINENO: checking for $ac_func" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013438echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
13439if eval "test \"\${$as_ac_var+set}\" = set"; then
13440 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013441else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013442 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013443#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013444/* confdefs.h. */
13445_ACEOF
13446cat confdefs.h >>conftest.$ac_ext
13447cat >>conftest.$ac_ext <<_ACEOF
13448/* end confdefs.h. */
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013449/* System header to define __stub macros and hopefully few prototypes,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013450 which can conflict with char $ac_func (); below.
13451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13452 <limits.h> exists even on freestanding compilers. */
13453#ifdef __STDC__
13454# include <limits.h>
13455#else
13456# include <assert.h>
13457#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013458/* Override any gcc2 internal prototype to avoid an error. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013459#ifdef __cplusplus
13460extern "C"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013461{
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013462#endif
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013463/* We use char because int might match the return type of a gcc2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013464 builtin and then its argument prototype would still apply. */
13465char $ac_func ();
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013466/* The GNU C library defines this for functions which it implements
13467 to always fail with ENOSYS. Some functions are actually named
13468 something starting with __ and the normal name is an alias. */
13469#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
13470choke me
13471#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013472char (*f) () = $ac_func;
13473#endif
13474#ifdef __cplusplus
13475}
Patrik Stridvall1bb94031999-05-08 15:47:44 +000013476#endif
13477
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013478int
13479main ()
13480{
13481return f != $ac_func;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013482 ;
13483 return 0;
13484}
13485_ACEOF
13486rm -f conftest.$ac_objext conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013487if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013488 (eval $ac_link) 2>&5
13489 ac_status=$?
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); } &&
13492 { ac_try='test -s conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013494 (eval $ac_try) 2>&5
13495 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013497 (exit $ac_status); }; }; then
13498 eval "$as_ac_var=yes"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013499else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013500 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013501sed 's/^/| /' conftest.$ac_ext >&5
13502
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013503eval "$as_ac_var=no"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013504fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013505rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013506fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013507echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013508echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
13509if test `eval echo '${'$as_ac_var'}'` = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013510 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013511#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013512_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000013513
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013514fi
13515done
13516
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013517
13518
13519
13520
13521
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563
13564
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
Laurent Pinchart0314a652002-05-01 22:01:30 +000013578
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013579
13580
13581
Alexandre Julliard127ec922002-05-07 01:51:30 +000013582
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000013583
Patrik Stridvall57bf4502002-08-26 21:53:24 +000013584
13585
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000013586
Chris Morgan4691b182002-12-13 02:26:18 +000013587
Alexandre Julliardb6938952003-01-13 18:41:40 +000013588
Alexandre Julliardc44555b2003-04-02 01:42:06 +000013589
Juan Lang38fa5ad2003-05-13 03:32:20 +000013590
Yorick Hardyc26b7db2003-05-19 21:46:09 +000013591
Yorick Hardyb1334542003-05-20 17:48:40 +000013592
David Hammerton852c7ae2003-06-20 23:26:56 +000013593
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013594for ac_header in \
Patrik Stridvall96336321999-10-24 22:13:47 +000013595 arpa/inet.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013596 arpa/nameser.h \
Marcus Meissnerf061f762002-11-12 02:22:24 +000013597 cups/cups.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013598 direct.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013599 elf.h \
13600 float.h \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000013601 getopt.h \
Ulrich Weigand2e8e2332000-12-27 18:49:08 +000013602 ieeefp.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013603 io.h \
Chris Morgan4691b182002-12-13 02:26:18 +000013604 jack/jack.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013605 libio.h \
Hidenori Takeshima01f78aa2000-07-09 12:19:09 +000013606 libutil.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013607 link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013608 linux/cdrom.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013609 linux/hdreg.h \
Marcus Meissnerc9b3b2e2000-12-12 00:38:58 +000013610 linux/input.h \
Marcus Meissner028e9a11999-08-04 15:07:56 +000013611 linux/joystick.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013612 linux/major.h \
Laurent Pinchart0314a652002-05-01 22:01:30 +000013613 linux/param.h \
Lawson Whitney533e7ee2002-02-19 18:41:56 +000013614 linux/serial.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013615 linux/ucdrom.h \
Yorick Hardyb1334542003-05-20 17:48:40 +000013616 machine/cpu.h \
Hidenori Takeshima5d1a6382000-11-26 04:00:53 +000013617 netdb.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013618 netinet/in.h \
Patrik Stridvall7a4e5992000-12-01 23:53:46 +000013619 netinet/in_systm.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013620 netinet/tcp.h \
Juan Lang38fa5ad2003-05-13 03:32:20 +000013621 netinet/tcp_fsm.h \
David Hammerton852c7ae2003-06-20 23:26:56 +000013622 openssl/ssl.h \
Marcus Meissner2d7be871999-12-05 23:06:40 +000013623 pty.h \
Steven Edwardsff4525c2002-06-24 23:00:25 +000013624 pwd.h \
Alexandre Julliardb6938952003-01-13 18:41:40 +000013625 regex.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013626 sched.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013627 scsi/sg.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013628 socket.h \
Bang Jun-Youngeda758e2001-12-14 22:47:19 +000013629 stdint.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013630 strings.h \
13631 sys/cdio.h \
Howard Abrams13277481999-07-10 13:16:29 +000013632 sys/errno.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013633 sys/file.h \
13634 sys/filio.h \
Michal Pasternak60983992002-03-29 18:04:43 +000013635 sys/inttypes.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000013636 sys/ioctl.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013637 sys/ipc.h \
Eric Pouech624cbd72001-08-10 22:29:21 +000013638 sys/link.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013639 sys/lwp.h \
Howard Abrams13277481999-07-10 13:16:29 +000013640 sys/mman.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013641 sys/modem.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013642 sys/msg.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013643 sys/param.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000013644 sys/poll.h \
Dimitrie O. Paun2af03e42000-11-29 20:04:09 +000013645 sys/ptrace.h \
Ulrich Weigand8a1bdb32000-01-30 22:22:22 +000013646 sys/reg.h \
Yorick Hardyc26b7db2003-05-19 21:46:09 +000013647 sys/scsiio.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013648 sys/shm.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013649 sys/signal.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013650 sys/socket.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013651 sys/sockio.h \
13652 sys/statfs.h \
13653 sys/strtio.h \
13654 sys/syscall.h \
Alexandre Julliard127ec922002-05-07 01:51:30 +000013655 sys/sysctl.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013656 sys/time.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000013657 sys/times.h \
Steven Edwards45e56812002-10-31 03:41:56 +000013658 sys/uio.h \
13659 sys/un.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013660 sys/v86.h \
13661 sys/v86intr.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013662 sys/vfs.h \
Patrik Stridvall96336321999-10-24 22:13:47 +000013663 sys/vm86.h \
Rizsanyi Zsolte7c6d172002-05-01 22:25:41 +000013664 sys/wait.h \
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013665 syscall.h \
Alexandre Julliardc3e06df2002-05-14 23:18:23 +000013666 termios.h \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000013667 unistd.h \
Patrik Stridvall57bf4502002-08-26 21:53:24 +000013668 utime.h \
Alexandre Julliardc44555b2003-04-02 01:42:06 +000013669 valgrind/memcheck.h
Alexandre Julliard2487cce1999-04-18 14:43:16 +000013670
Alexandre Julliard02e90081998-01-04 17:49:09 +000013671do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013672as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013673if eval "test \"\${$as_ac_Header+set}\" = set"; then
13674 echo "$as_me:$LINENO: checking for $ac_header" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013675echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13676if eval "test \"\${$as_ac_Header+set}\" = set"; then
13677 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013678fi
13679echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13680echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliard02e90081998-01-04 17:49:09 +000013681else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013682 # Is the header compilable?
13683echo "$as_me:$LINENO: checking $ac_header usability" >&5
13684echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
13685cat >conftest.$ac_ext <<_ACEOF
13686#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013687/* confdefs.h. */
13688_ACEOF
13689cat confdefs.h >>conftest.$ac_ext
13690cat >>conftest.$ac_ext <<_ACEOF
13691/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013692$ac_includes_default
13693#include <$ac_header>
13694_ACEOF
13695rm -f conftest.$ac_objext
13696if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13697 (eval $ac_compile) 2>&5
13698 ac_status=$?
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } &&
13701 { ac_try='test -s conftest.$ac_objext'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13704 ac_status=$?
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 ac_header_compiler=yes
13708else
13709 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013710sed 's/^/| /' conftest.$ac_ext >&5
13711
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013712ac_header_compiler=no
13713fi
13714rm -f conftest.$ac_objext conftest.$ac_ext
13715echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13716echo "${ECHO_T}$ac_header_compiler" >&6
13717
13718# Is the header present?
13719echo "$as_me:$LINENO: checking $ac_header presence" >&5
13720echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
13721cat >conftest.$ac_ext <<_ACEOF
13722#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013723/* confdefs.h. */
13724_ACEOF
13725cat confdefs.h >>conftest.$ac_ext
13726cat >>conftest.$ac_ext <<_ACEOF
13727/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013728#include <$ac_header>
13729_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013730if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013731 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13732 ac_status=$?
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013733 grep -v '^ *+' conftest.er1 >conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013734 rm -f conftest.er1
13735 cat conftest.err >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013737 (exit $ac_status); } >/dev/null; then
13738 if test -s conftest.err; then
13739 ac_cpp_err=$ac_c_preproc_warn_flag
13740 else
13741 ac_cpp_err=
13742 fi
Alexandre Julliard02e90081998-01-04 17:49:09 +000013743else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013744 ac_cpp_err=yes
13745fi
13746if test -z "$ac_cpp_err"; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013747 ac_header_preproc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013748else
13749 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013750sed 's/^/| /' conftest.$ac_ext >&5
13751
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013752 ac_header_preproc=no
Alexandre Julliard02e90081998-01-04 17:49:09 +000013753fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013754rm -f conftest.err conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013755echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13756echo "${ECHO_T}$ac_header_preproc" >&6
13757
13758# So? What about this header?
13759case $ac_header_compiler:$ac_header_preproc in
13760 yes:no )
13761 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13762echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013764echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13765 (
13766 cat <<\_ASBOX
13767## ------------------------------------ ##
13768## Report this to bug-autoconf@gnu.org. ##
13769## ------------------------------------ ##
13770_ASBOX
13771 ) |
13772 sed "s/^/$as_me: WARNING: /" >&2
13773 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013774 no:yes )
13775 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13776echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13777 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13778echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013780echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13781 (
13782 cat <<\_ASBOX
13783## ------------------------------------ ##
13784## Report this to bug-autoconf@gnu.org. ##
13785## ------------------------------------ ##
13786_ASBOX
13787 ) |
13788 sed "s/^/$as_me: WARNING: /" >&2
13789 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013790esac
13791echo "$as_me:$LINENO: checking for $ac_header" >&5
13792echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13793if eval "test \"\${$as_ac_Header+set}\" = set"; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13795else
13796 eval "$as_ac_Header=$ac_header_preproc"
Alexandre Julliard02e90081998-01-04 17:49:09 +000013797fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013798echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013799echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013800
Alexandre Julliard02e90081998-01-04 17:49:09 +000013801fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013802if test `eval echo '${'$as_ac_Header'}'` = yes; then
13803 cat >>confdefs.h <<_ACEOF
13804#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13805_ACEOF
13806
13807fi
13808
Alexandre Julliard02e90081998-01-04 17:49:09 +000013809done
13810
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013811echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013812echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6
13813if test "${ac_cv_header_stat_broken+set}" = set; then
13814 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013815else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013816 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013817#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013818/* confdefs.h. */
13819_ACEOF
13820cat confdefs.h >>conftest.$ac_ext
13821cat >>conftest.$ac_ext <<_ACEOF
13822/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013823#include <sys/types.h>
13824#include <sys/stat.h>
13825
13826#if defined(S_ISBLK) && defined(S_IFDIR)
13827# if S_ISBLK (S_IFDIR)
13828You lose.
13829# endif
13830#endif
13831
13832#if defined(S_ISBLK) && defined(S_IFCHR)
13833# if S_ISBLK (S_IFCHR)
13834You lose.
13835# endif
13836#endif
13837
13838#if defined(S_ISLNK) && defined(S_IFREG)
13839# if S_ISLNK (S_IFREG)
13840You lose.
13841# endif
13842#endif
13843
13844#if defined(S_ISSOCK) && defined(S_IFREG)
13845# if S_ISSOCK (S_IFREG)
13846You lose.
13847# endif
13848#endif
13849
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013850_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013851if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013852 $EGREP "You lose" >/dev/null 2>&1; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013853 ac_cv_header_stat_broken=yes
13854else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013855 ac_cv_header_stat_broken=no
13856fi
13857rm -f conftest*
13858
13859fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013860echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013861echo "${ECHO_T}$ac_cv_header_stat_broken" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013862if test $ac_cv_header_stat_broken = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013863
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013864cat >>confdefs.h <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013865#define STAT_MACROS_BROKEN 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013866_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013867
13868fi
13869
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013870
13871
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000013872
13873
13874for ac_header in sys/mount.h sys/user.h
13875do
13876as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13877echo "$as_me:$LINENO: checking for $ac_header" >&5
13878echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13879if eval "test \"\${$as_ac_Header+set}\" = set"; then
13880 echo $ECHO_N "(cached) $ECHO_C" >&6
13881else
13882 cat >conftest.$ac_ext <<_ACEOF
13883#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013884/* confdefs.h. */
13885_ACEOF
13886cat confdefs.h >>conftest.$ac_ext
13887cat >>conftest.$ac_ext <<_ACEOF
13888/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013889#include <sys/types.h>
13890 #if HAVE_SYS_PARAM_H
13891 # include <sys/param.h>
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000013892 #endif
13893
13894#include <$ac_header>
13895_ACEOF
13896rm -f conftest.$ac_objext
13897if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13898 (eval $ac_compile) 2>&5
13899 ac_status=$?
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -s conftest.$ac_objext'
13903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13904 (eval $ac_try) 2>&5
13905 ac_status=$?
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); }; }; then
13908 eval "$as_ac_Header=yes"
13909else
13910 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013911sed 's/^/| /' conftest.$ac_ext >&5
13912
Gerald Pfeifer6cef4cd2002-11-06 22:00:10 +000013913eval "$as_ac_Header=no"
13914fi
13915rm -f conftest.$ac_objext conftest.$ac_ext
13916fi
13917echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13918echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13919if test `eval echo '${'$as_ac_Header'}'` = yes; then
13920 cat >>confdefs.h <<_ACEOF
13921#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13922_ACEOF
13923
13924fi
13925
13926done
13927
13928
13929
Juan Lang38fa5ad2003-05-13 03:32:20 +000013930
13931
13932
13933
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000013934for 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 +000013935do
13936as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13937echo "$as_me:$LINENO: checking for $ac_header" >&5
13938echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13939if eval "test \"\${$as_ac_Header+set}\" = set"; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13941else
13942 cat >conftest.$ac_ext <<_ACEOF
13943#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013944/* confdefs.h. */
13945_ACEOF
13946cat confdefs.h >>conftest.$ac_ext
13947cat >>conftest.$ac_ext <<_ACEOF
13948/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013949#include <sys/types.h>
Gerald Pfeifer87c369d2002-07-23 02:02:02 +000013950 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013951 # include <sys/socket.h>
13952 #endif
13953
13954#include <$ac_header>
13955_ACEOF
13956rm -f conftest.$ac_objext
13957if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13958 (eval $ac_compile) 2>&5
13959 ac_status=$?
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } &&
13962 { ac_try='test -s conftest.$ac_objext'
13963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13964 (eval $ac_try) 2>&5
13965 ac_status=$?
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 eval "$as_ac_Header=yes"
13969else
13970 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013971sed 's/^/| /' conftest.$ac_ext >&5
13972
Gregg Mattinson044b5c42002-07-19 03:16:51 +000013973eval "$as_ac_Header=no"
13974fi
13975rm -f conftest.$ac_objext conftest.$ac_ext
13976fi
13977echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
13978echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
13979if test `eval echo '${'$as_ac_Header'}'` = yes; then
13980 cat >>confdefs.h <<_ACEOF
13981#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13982_ACEOF
13983
13984fi
13985
13986done
13987
13988
13989
Gerald Pfeiferbcb6ecf2003-08-11 18:37:13 +000013990for ac_header in resolv.h
13991do
13992as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13993echo "$as_me:$LINENO: checking for $ac_header" >&5
13994echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
13995if eval "test \"\${$as_ac_Header+set}\" = set"; then
13996 echo $ECHO_N "(cached) $ECHO_C" >&6
13997else
13998 cat >conftest.$ac_ext <<_ACEOF
13999#line $LINENO "configure"
14000/* confdefs.h. */
14001_ACEOF
14002cat confdefs.h >>conftest.$ac_ext
14003cat >>conftest.$ac_ext <<_ACEOF
14004/* end confdefs.h. */
14005#include <sys/types.h>
14006 #if HAVE_SYS_SOCKET_H
14007 # include <sys/socket.h>
14008 #endif
14009 #if HAVE_NETINET_IN_H
14010 # include <netinet/in.h>
14011 #endif
14012
14013#include <$ac_header>
14014_ACEOF
14015rm -f conftest.$ac_objext
14016if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14017 (eval $ac_compile) 2>&5
14018 ac_status=$?
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } &&
14021 { ac_try='test -s conftest.$ac_objext'
14022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14023 (eval $ac_try) 2>&5
14024 ac_status=$?
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); }; }; then
14027 eval "$as_ac_Header=yes"
14028else
14029 echo "$as_me: failed program was:" >&5
14030sed 's/^/| /' conftest.$ac_ext >&5
14031
14032eval "$as_ac_Header=no"
14033fi
14034rm -f conftest.$ac_objext conftest.$ac_ext
14035fi
14036echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14037echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14038if test `eval echo '${'$as_ac_Header'}'` = yes; then
14039 cat >>confdefs.h <<_ACEOF
14040#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14041_ACEOF
14042
14043fi
14044
14045done
14046
14047
14048
Gregg Mattinson044b5c42002-07-19 03:16:51 +000014049for ac_header in netinet/ip.h
14050do
14051as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14052echo "$as_me:$LINENO: checking for $ac_header" >&5
14053echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14054if eval "test \"\${$as_ac_Header+set}\" = set"; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14056else
14057 cat >conftest.$ac_ext <<_ACEOF
14058#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014059/* confdefs.h. */
14060_ACEOF
14061cat confdefs.h >>conftest.$ac_ext
14062cat >>conftest.$ac_ext <<_ACEOF
14063/* end confdefs.h. */
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000014064#include <sys/types.h>
14065 #if HAVE_SYS_SOCKET_H
Gregg Mattinson044b5c42002-07-19 03:16:51 +000014066 # include <sys/socket.h>
14067 #endif
14068 #if HAVE_NETINET_IN_SYSTM_H
14069 # include <netinet/in_systm.h>
14070 #endif
14071
14072#include <$ac_header>
14073_ACEOF
14074rm -f conftest.$ac_objext
14075if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14076 (eval $ac_compile) 2>&5
14077 ac_status=$?
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } &&
14080 { ac_try='test -s conftest.$ac_objext'
14081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14082 (eval $ac_try) 2>&5
14083 ac_status=$?
14084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); }; }; then
14086 eval "$as_ac_Header=yes"
14087else
14088 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014089sed 's/^/| /' conftest.$ac_ext >&5
14090
Gregg Mattinson044b5c42002-07-19 03:16:51 +000014091eval "$as_ac_Header=no"
14092fi
14093rm -f conftest.$ac_objext conftest.$ac_ext
14094fi
14095echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14096echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14097if test `eval echo '${'$as_ac_Header'}'` = yes; then
14098 cat >>confdefs.h <<_ACEOF
14099#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14100_ACEOF
14101
14102fi
14103
14104done
14105
14106
14107
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000014108for ac_header in ucontext.h
14109do
14110as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14111echo "$as_me:$LINENO: checking for $ac_header" >&5
14112echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
14113if eval "test \"\${$as_ac_Header+set}\" = set"; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14115else
14116 cat >conftest.$ac_ext <<_ACEOF
14117#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014118/* confdefs.h. */
14119_ACEOF
14120cat confdefs.h >>conftest.$ac_ext
14121cat >>conftest.$ac_ext <<_ACEOF
14122/* end confdefs.h. */
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000014123#include <signal.h>
14124
14125#include <$ac_header>
14126_ACEOF
14127rm -f conftest.$ac_objext
14128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14129 (eval $ac_compile) 2>&5
14130 ac_status=$?
14131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14132 (exit $ac_status); } &&
14133 { ac_try='test -s conftest.$ac_objext'
14134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14135 (eval $ac_try) 2>&5
14136 ac_status=$?
14137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138 (exit $ac_status); }; }; then
14139 eval "$as_ac_Header=yes"
14140else
14141 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014142sed 's/^/| /' conftest.$ac_ext >&5
14143
Gerald Pfeiferd2033a52002-11-12 23:21:55 +000014144eval "$as_ac_Header=no"
14145fi
14146rm -f conftest.$ac_objext conftest.$ac_ext
14147fi
14148echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
14149echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
14150if test `eval echo '${'$as_ac_Header'}'` = yes; then
14151 cat >>confdefs.h <<_ACEOF
14152#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14153_ACEOF
14154
14155fi
14156
14157done
14158
14159
14160
Alexandre Julliardb38b4c22003-01-21 00:36:46 +000014161echo "$as_me:$LINENO: checking for GNU style IPX support" >&5
14162echo $ECHO_N "checking for GNU style IPX support... $ECHO_C" >&6
14163if test "${ac_cv_c_ipx_gnu+set}" = set; then
14164 echo $ECHO_N "(cached) $ECHO_C" >&6
14165else
14166 cat >conftest.$ac_ext <<_ACEOF
14167#line $LINENO "configure"
14168/* confdefs.h. */
14169_ACEOF
14170cat confdefs.h >>conftest.$ac_ext
14171cat >>conftest.$ac_ext <<_ACEOF
14172/* end confdefs.h. */
14173#include <sys/types.h>
14174 #ifdef HAVE_SYS_SOCKET_H
14175 # include <sys/socket.h>
14176 #endif
14177 #include <netipx/ipx.h>
14178int
14179main ()
14180{
14181((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14182 ;
14183 return 0;
14184}
14185_ACEOF
14186rm -f conftest.$ac_objext
14187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14188 (eval $ac_compile) 2>&5
14189 ac_status=$?
14190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14191 (exit $ac_status); } &&
14192 { ac_try='test -s conftest.$ac_objext'
14193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14194 (eval $ac_try) 2>&5
14195 ac_status=$?
14196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197 (exit $ac_status); }; }; then
14198 ac_cv_c_ipx_gnu="yes"
14199else
14200 echo "$as_me: failed program was:" >&5
14201sed 's/^/| /' conftest.$ac_ext >&5
14202
14203ac_cv_c_ipx_gnu="no"
14204fi
14205rm -f conftest.$ac_objext conftest.$ac_ext
14206
14207fi
14208echo "$as_me:$LINENO: result: $ac_cv_c_ipx_gnu" >&5
14209echo "${ECHO_T}$ac_cv_c_ipx_gnu" >&6
14210if test "$ac_cv_c_ipx_gnu" = "yes"
14211then
14212
14213cat >>confdefs.h <<\_ACEOF
14214#define HAVE_IPX_GNU 1
14215_ACEOF
14216
14217fi
14218
14219if test "$ac_cv_c_ipx_gnu" = "no"
14220then
14221 echo "$as_me:$LINENO: checking for linux style IPX support" >&5
14222echo $ECHO_N "checking for linux style IPX support... $ECHO_C" >&6
14223if test "${ac_cv_c_ipx_linux+set}" = set; then
14224 echo $ECHO_N "(cached) $ECHO_C" >&6
14225else
14226 cat >conftest.$ac_ext <<_ACEOF
14227#line $LINENO "configure"
14228/* confdefs.h. */
14229_ACEOF
14230cat confdefs.h >>conftest.$ac_ext
14231cat >>conftest.$ac_ext <<_ACEOF
14232/* end confdefs.h. */
14233#include <sys/types.h>
14234 #ifdef HAVE_SYS_SOCKET_H
14235 # include <sys/socket.h>
14236 #endif
14237 #include <asm/types.h>
14238 #include <linux/ipx.h>
14239int
14240main ()
14241{
14242((struct sockaddr_ipx *)0)->sipx_family == AF_IPX
14243 ;
14244 return 0;
14245}
14246_ACEOF
14247rm -f conftest.$ac_objext
14248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14249 (eval $ac_compile) 2>&5
14250 ac_status=$?
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } &&
14253 { ac_try='test -s conftest.$ac_objext'
14254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14255 (eval $ac_try) 2>&5
14256 ac_status=$?
14257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258 (exit $ac_status); }; }; then
14259 ac_cv_c_ipx_linux="yes"
14260else
14261 echo "$as_me: failed program was:" >&5
14262sed 's/^/| /' conftest.$ac_ext >&5
14263
14264ac_cv_c_ipx_linux="no"
14265fi
14266rm -f conftest.$ac_objext conftest.$ac_ext
14267
14268fi
14269echo "$as_me:$LINENO: result: $ac_cv_c_ipx_linux" >&5
14270echo "${ECHO_T}$ac_cv_c_ipx_linux" >&6
14271 if test "$ac_cv_c_ipx_linux" = "yes"
14272 then
14273
14274cat >>confdefs.h <<\_ACEOF
14275#define HAVE_IPX_LINUX 1
14276_ACEOF
14277
14278 fi
14279fi
14280
14281
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014282echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014283echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
14284if test "${ac_cv_c_const+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14286else
14287 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014288#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014289/* confdefs.h. */
14290_ACEOF
14291cat confdefs.h >>conftest.$ac_ext
14292cat >>conftest.$ac_ext <<_ACEOF
14293/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014294
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014295int
14296main ()
14297{
14298/* FIXME: Include the comments suggested by Paul. */
14299#ifndef __cplusplus
14300 /* Ultrix mips cc rejects this. */
14301 typedef int charset[2];
14302 const charset x;
14303 /* SunOS 4.1.1 cc rejects this. */
14304 char const *const *ccp;
14305 char **p;
14306 /* NEC SVR4.0.2 mips cc rejects this. */
14307 struct point {int x, y;};
14308 static struct point const zero = {0,0};
14309 /* AIX XL C 1.02.0.0 rejects this.
14310 It does not let you subtract one const X* pointer from another in
14311 an arm of an if-expression whose if-part is not a constant
14312 expression */
14313 const char *g = "string";
14314 ccp = &g + (g ? g-g : 0);
14315 /* HPUX 7.0 cc rejects these. */
14316 ++ccp;
14317 p = (char**) ccp;
14318 ccp = (char const *const *) p;
14319 { /* SCO 3.2v4 cc rejects this. */
14320 char *t;
14321 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014322
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014323 *t++ = 0;
14324 }
14325 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14326 int x[] = {25, 17};
14327 const int *foo = &x[0];
14328 ++foo;
14329 }
14330 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14331 typedef const int *iptr;
14332 iptr p = 0;
14333 ++p;
14334 }
14335 { /* AIX XL C 1.02.0.0 rejects this saying
14336 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14337 struct s { int j; const int *ap[3]; };
14338 struct s *b; b->j = 5;
14339 }
14340 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14341 const int foo = 10;
14342 }
14343#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014344
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014345 ;
14346 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014347}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014348_ACEOF
14349rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014350if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014351 (eval $ac_compile) 2>&5
14352 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014354 (exit $ac_status); } &&
14355 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014357 (eval $ac_try) 2>&5
14358 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014360 (exit $ac_status); }; }; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014361 ac_cv_c_const=yes
14362else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014363 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014364sed 's/^/| /' conftest.$ac_ext >&5
14365
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014366ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014367fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014368rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014369fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014370echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014371echo "${ECHO_T}$ac_cv_c_const" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014372if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014373
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014374cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014375#define const
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014376_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014377
14378fi
14379
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014380echo "$as_me:$LINENO: checking for inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014381echo $ECHO_N "checking for inline... $ECHO_C" >&6
14382if test "${ac_cv_c_inline+set}" = set; then
14383 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014384else
14385 ac_cv_c_inline=no
14386for ac_kw in inline __inline__ __inline; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014387 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014388#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014389/* confdefs.h. */
14390_ACEOF
14391cat confdefs.h >>conftest.$ac_ext
14392cat >>conftest.$ac_ext <<_ACEOF
14393/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014394#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014395typedef int foo_t;
14396static $ac_kw foo_t static_foo () {return 0; }
14397$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014398#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014399
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014400_ACEOF
14401rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014402if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014403 (eval $ac_compile) 2>&5
14404 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014406 (exit $ac_status); } &&
14407 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014409 (eval $ac_try) 2>&5
14410 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014412 (exit $ac_status); }; }; then
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014413 ac_cv_c_inline=$ac_kw; break
14414else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014415 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014416sed 's/^/| /' conftest.$ac_ext >&5
14417
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014418fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014419rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014420done
14421
14422fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014423echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014424echo "${ECHO_T}$ac_cv_c_inline" >&6
14425case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014426 inline | yes) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014427 no)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014428cat >>confdefs.h <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014429#define inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014430_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014431 ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014432 *) cat >>confdefs.h <<_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014433#define inline $ac_cv_c_inline
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014434_ACEOF
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000014435 ;;
14436esac
14437
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014438echo "$as_me:$LINENO: checking for mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014439echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
14440if test "${ac_cv_type_mode_t+set}" = set; then
14441 echo $ECHO_N "(cached) $ECHO_C" >&6
14442else
14443 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014444#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014445/* confdefs.h. */
14446_ACEOF
14447cat confdefs.h >>conftest.$ac_ext
14448cat >>conftest.$ac_ext <<_ACEOF
14449/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014450$ac_includes_default
14451int
14452main ()
14453{
14454if ((mode_t *) 0)
14455 return 0;
14456if (sizeof (mode_t))
14457 return 0;
14458 ;
14459 return 0;
14460}
14461_ACEOF
14462rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014464 (eval $ac_compile) 2>&5
14465 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014467 (exit $ac_status); } &&
14468 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014470 (eval $ac_try) 2>&5
14471 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014473 (exit $ac_status); }; }; then
14474 ac_cv_type_mode_t=yes
14475else
14476 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014477sed 's/^/| /' conftest.$ac_ext >&5
14478
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014479ac_cv_type_mode_t=no
14480fi
14481rm -f conftest.$ac_objext conftest.$ac_ext
14482fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014483echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014484echo "${ECHO_T}$ac_cv_type_mode_t" >&6
14485if test $ac_cv_type_mode_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014486
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014487cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014488#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014489_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014490
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014491
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014492fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014493echo "$as_me:$LINENO: checking for off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014494echo $ECHO_N "checking for off_t... $ECHO_C" >&6
14495if test "${ac_cv_type_off_t+set}" = set; then
14496 echo $ECHO_N "(cached) $ECHO_C" >&6
14497else
14498 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014499#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014500/* confdefs.h. */
14501_ACEOF
14502cat confdefs.h >>conftest.$ac_ext
14503cat >>conftest.$ac_ext <<_ACEOF
14504/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014505$ac_includes_default
14506int
14507main ()
14508{
14509if ((off_t *) 0)
14510 return 0;
14511if (sizeof (off_t))
14512 return 0;
14513 ;
14514 return 0;
14515}
14516_ACEOF
14517rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014518if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014519 (eval $ac_compile) 2>&5
14520 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014522 (exit $ac_status); } &&
14523 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014525 (eval $ac_try) 2>&5
14526 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014528 (exit $ac_status); }; }; then
14529 ac_cv_type_off_t=yes
14530else
14531 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014532sed 's/^/| /' conftest.$ac_ext >&5
14533
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014534ac_cv_type_off_t=no
14535fi
14536rm -f conftest.$ac_objext conftest.$ac_ext
14537fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014538echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014539echo "${ECHO_T}$ac_cv_type_off_t" >&6
14540if test $ac_cv_type_off_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014541
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014542cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014543#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014544_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014545
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014546
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014547fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014548echo "$as_me:$LINENO: checking for pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014549echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
14550if test "${ac_cv_type_pid_t+set}" = set; then
14551 echo $ECHO_N "(cached) $ECHO_C" >&6
14552else
14553 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014554#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014555/* confdefs.h. */
14556_ACEOF
14557cat confdefs.h >>conftest.$ac_ext
14558cat >>conftest.$ac_ext <<_ACEOF
14559/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014560$ac_includes_default
14561int
14562main ()
14563{
14564if ((pid_t *) 0)
14565 return 0;
14566if (sizeof (pid_t))
14567 return 0;
14568 ;
14569 return 0;
14570}
14571_ACEOF
14572rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014573if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014574 (eval $ac_compile) 2>&5
14575 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014577 (exit $ac_status); } &&
14578 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014580 (eval $ac_try) 2>&5
14581 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014583 (exit $ac_status); }; }; then
14584 ac_cv_type_pid_t=yes
14585else
14586 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014587sed 's/^/| /' conftest.$ac_ext >&5
14588
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014589ac_cv_type_pid_t=no
14590fi
14591rm -f conftest.$ac_objext conftest.$ac_ext
14592fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014593echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014594echo "${ECHO_T}$ac_cv_type_pid_t" >&6
14595if test $ac_cv_type_pid_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014596
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014597cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014598#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014599_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014600
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014601
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014602fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014603echo "$as_me:$LINENO: checking for size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014604echo $ECHO_N "checking for size_t... $ECHO_C" >&6
14605if test "${ac_cv_type_size_t+set}" = set; then
14606 echo $ECHO_N "(cached) $ECHO_C" >&6
14607else
14608 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014609#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014610/* confdefs.h. */
14611_ACEOF
14612cat confdefs.h >>conftest.$ac_ext
14613cat >>conftest.$ac_ext <<_ACEOF
14614/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014615$ac_includes_default
14616int
14617main ()
14618{
14619if ((size_t *) 0)
14620 return 0;
14621if (sizeof (size_t))
14622 return 0;
14623 ;
14624 return 0;
14625}
14626_ACEOF
14627rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014629 (eval $ac_compile) 2>&5
14630 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014632 (exit $ac_status); } &&
14633 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014635 (eval $ac_try) 2>&5
14636 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014638 (exit $ac_status); }; }; then
14639 ac_cv_type_size_t=yes
14640else
14641 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014642sed 's/^/| /' conftest.$ac_ext >&5
14643
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014644ac_cv_type_size_t=no
14645fi
14646rm -f conftest.$ac_objext conftest.$ac_ext
14647fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014648echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014649echo "${ECHO_T}$ac_cv_type_size_t" >&6
14650if test $ac_cv_type_size_t = yes; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014651
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014652cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014653#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014654_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014655
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014656
14657fi
14658echo "$as_me:$LINENO: checking for ssize_t" >&5
14659echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6
14660if test "${ac_cv_type_ssize_t+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14662else
14663 cat >conftest.$ac_ext <<_ACEOF
14664#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014665/* confdefs.h. */
14666_ACEOF
14667cat confdefs.h >>conftest.$ac_ext
14668cat >>conftest.$ac_ext <<_ACEOF
14669/* end confdefs.h. */
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014670$ac_includes_default
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014671int
14672main ()
14673{
14674if ((ssize_t *) 0)
14675 return 0;
14676if (sizeof (ssize_t))
14677 return 0;
14678 ;
14679 return 0;
14680}
14681_ACEOF
14682rm -f conftest.$ac_objext
14683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14684 (eval $ac_compile) 2>&5
14685 ac_status=$?
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } &&
14688 { ac_try='test -s conftest.$ac_objext'
14689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14690 (eval $ac_try) 2>&5
14691 ac_status=$?
14692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14693 (exit $ac_status); }; }; then
14694 ac_cv_type_ssize_t=yes
14695else
14696 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014697sed 's/^/| /' conftest.$ac_ext >&5
14698
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000014699ac_cv_type_ssize_t=no
14700fi
14701rm -f conftest.$ac_objext conftest.$ac_ext
14702fi
14703echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
14704echo "${ECHO_T}$ac_cv_type_ssize_t" >&6
14705if test $ac_cv_type_ssize_t = yes; then
14706
14707cat >>confdefs.h <<_ACEOF
14708#define HAVE_SSIZE_T 1
14709_ACEOF
14710
14711
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014712fi
14713
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014714echo "$as_me:$LINENO: checking for long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014715echo $ECHO_N "checking for long long... $ECHO_C" >&6
14716if test "${ac_cv_type_long_long+set}" = set; then
14717 echo $ECHO_N "(cached) $ECHO_C" >&6
14718else
14719 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014720#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014721/* confdefs.h. */
14722_ACEOF
14723cat confdefs.h >>conftest.$ac_ext
14724cat >>conftest.$ac_ext <<_ACEOF
14725/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014726$ac_includes_default
14727int
14728main ()
14729{
14730if ((long long *) 0)
14731 return 0;
14732if (sizeof (long long))
14733 return 0;
14734 ;
14735 return 0;
14736}
14737_ACEOF
14738rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014740 (eval $ac_compile) 2>&5
14741 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014743 (exit $ac_status); } &&
14744 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014746 (eval $ac_try) 2>&5
14747 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014749 (exit $ac_status); }; }; then
14750 ac_cv_type_long_long=yes
14751else
14752 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014753sed 's/^/| /' conftest.$ac_ext >&5
14754
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014755ac_cv_type_long_long=no
14756fi
14757rm -f conftest.$ac_objext conftest.$ac_ext
14758fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014759echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014760echo "${ECHO_T}$ac_cv_type_long_long" >&6
14761
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014762echo "$as_me:$LINENO: checking size of long long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014763echo $ECHO_N "checking size of long long... $ECHO_C" >&6
14764if test "${ac_cv_sizeof_long_long+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766else
14767 if test "$ac_cv_type_long_long" = yes; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014768 # The cast to unsigned long works around a bug in the HP C Compiler
14769 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14770 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14771 # This bug is HP SR number 8606223364.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014772 if test "$cross_compiling" = yes; then
14773 # Depending upon the size, compute the lo and hi bounds.
14774cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014775#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014776/* confdefs.h. */
14777_ACEOF
14778cat confdefs.h >>conftest.$ac_ext
14779cat >>conftest.$ac_ext <<_ACEOF
14780/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014781$ac_includes_default
14782int
14783main ()
14784{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014785static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
14786test_array [0] = 0
14787
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014788 ;
14789 return 0;
14790}
14791_ACEOF
14792rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014793if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014794 (eval $ac_compile) 2>&5
14795 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014797 (exit $ac_status); } &&
14798 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014800 (eval $ac_try) 2>&5
14801 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014803 (exit $ac_status); }; }; then
14804 ac_lo=0 ac_mid=0
14805 while :; do
14806 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014807#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014808/* confdefs.h. */
14809_ACEOF
14810cat confdefs.h >>conftest.$ac_ext
14811cat >>conftest.$ac_ext <<_ACEOF
14812/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014813$ac_includes_default
14814int
14815main ()
14816{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014817static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14818test_array [0] = 0
14819
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014820 ;
14821 return 0;
14822}
14823_ACEOF
14824rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014826 (eval $ac_compile) 2>&5
14827 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014829 (exit $ac_status); } &&
14830 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014832 (eval $ac_try) 2>&5
14833 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014835 (exit $ac_status); }; }; then
14836 ac_hi=$ac_mid; break
14837else
14838 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014839sed 's/^/| /' conftest.$ac_ext >&5
14840
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014841ac_lo=`expr $ac_mid + 1`
14842 if test $ac_lo -le $ac_mid; then
14843 ac_lo= ac_hi=
14844 break
14845 fi
14846 ac_mid=`expr 2 '*' $ac_mid + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014847fi
14848rm -f conftest.$ac_objext conftest.$ac_ext
14849 done
14850else
14851 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014852sed 's/^/| /' conftest.$ac_ext >&5
14853
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014854cat >conftest.$ac_ext <<_ACEOF
14855#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014856/* confdefs.h. */
14857_ACEOF
14858cat confdefs.h >>conftest.$ac_ext
14859cat >>conftest.$ac_ext <<_ACEOF
14860/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014861$ac_includes_default
14862int
14863main ()
14864{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014865static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
14866test_array [0] = 0
14867
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014868 ;
14869 return 0;
14870}
14871_ACEOF
14872rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014873if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014874 (eval $ac_compile) 2>&5
14875 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014877 (exit $ac_status); } &&
14878 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014880 (eval $ac_try) 2>&5
14881 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; }; then
14884 ac_hi=-1 ac_mid=-1
14885 while :; do
14886 cat >conftest.$ac_ext <<_ACEOF
14887#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014888/* confdefs.h. */
14889_ACEOF
14890cat confdefs.h >>conftest.$ac_ext
14891cat >>conftest.$ac_ext <<_ACEOF
14892/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014893$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014894int
14895main ()
14896{
14897static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
14898test_array [0] = 0
14899
14900 ;
14901 return 0;
14902}
14903_ACEOF
14904rm -f conftest.$ac_objext
14905if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14906 (eval $ac_compile) 2>&5
14907 ac_status=$?
14908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14909 (exit $ac_status); } &&
14910 { ac_try='test -s conftest.$ac_objext'
14911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14912 (eval $ac_try) 2>&5
14913 ac_status=$?
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014915 (exit $ac_status); }; }; then
14916 ac_lo=$ac_mid; break
14917else
14918 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014919sed 's/^/| /' conftest.$ac_ext >&5
14920
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014921ac_hi=`expr '(' $ac_mid ')' - 1`
14922 if test $ac_mid -le $ac_hi; then
14923 ac_lo= ac_hi=
14924 break
14925 fi
14926 ac_mid=`expr 2 '*' $ac_mid`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014927fi
14928rm -f conftest.$ac_objext conftest.$ac_ext
14929 done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014930else
14931 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014932sed 's/^/| /' conftest.$ac_ext >&5
14933
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014934ac_lo= ac_hi=
14935fi
14936rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014937fi
14938rm -f conftest.$ac_objext conftest.$ac_ext
14939# Binary search between lo and hi bounds.
14940while test "x$ac_lo" != "x$ac_hi"; do
14941 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
14942 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014943#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014944/* confdefs.h. */
14945_ACEOF
14946cat confdefs.h >>conftest.$ac_ext
14947cat >>conftest.$ac_ext <<_ACEOF
14948/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014949$ac_includes_default
14950int
14951main ()
14952{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014953static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
14954test_array [0] = 0
14955
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014956 ;
14957 return 0;
14958}
14959_ACEOF
14960rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014961if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014962 (eval $ac_compile) 2>&5
14963 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014965 (exit $ac_status); } &&
14966 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014968 (eval $ac_try) 2>&5
14969 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014971 (exit $ac_status); }; }; then
14972 ac_hi=$ac_mid
14973else
14974 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014975sed 's/^/| /' conftest.$ac_ext >&5
14976
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014977ac_lo=`expr '(' $ac_mid ')' + 1`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014978fi
14979rm -f conftest.$ac_objext conftest.$ac_ext
14980done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014981case $ac_lo in
14982?*) ac_cv_sizeof_long_long=$ac_lo;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014983'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
14984See \`config.log' for more details." >&5
14985echo "$as_me: error: cannot compute sizeof (long long), 77
14986See \`config.log' for more details." >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014987 { (exit 1); exit 1; }; } ;;
14988esac
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014989else
14990 if test "$cross_compiling" = yes; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014991 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14992See \`config.log' for more details." >&5
14993echo "$as_me: error: cannot run test program while cross compiling
14994See \`config.log' for more details." >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014995 { (exit 1); exit 1; }; }
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000014996else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014997 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014998#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014999/* confdefs.h. */
15000_ACEOF
15001cat confdefs.h >>conftest.$ac_ext
15002cat >>conftest.$ac_ext <<_ACEOF
15003/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015004$ac_includes_default
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015005long longval () { return (long) (sizeof (long long)); }
15006unsigned long ulongval () { return (long) (sizeof (long long)); }
15007#include <stdio.h>
15008#include <stdlib.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015009int
15010main ()
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015011{
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015012
15013 FILE *f = fopen ("conftest.val", "w");
15014 if (! f)
15015 exit (1);
15016 if (((long) (sizeof (long long))) < 0)
15017 {
15018 long i = longval ();
15019 if (i != ((long) (sizeof (long long))))
15020 exit (1);
15021 fprintf (f, "%ld\n", i);
15022 }
15023 else
15024 {
15025 unsigned long i = ulongval ();
15026 if (i != ((long) (sizeof (long long))))
15027 exit (1);
15028 fprintf (f, "%lu\n", i);
15029 }
15030 exit (ferror (f) || fclose (f) != 0);
15031
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015032 ;
15033 return 0;
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015034}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015035_ACEOF
15036rm -f conftest$ac_exeext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015037if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015038 (eval $ac_link) 2>&5
15039 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015041 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015043 (eval $ac_try) 2>&5
15044 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015046 (exit $ac_status); }; }; then
15047 ac_cv_sizeof_long_long=`cat conftest.val`
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015048else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015049 echo "$as_me: program exited with status $ac_status" >&5
15050echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015051sed 's/^/| /' conftest.$ac_ext >&5
15052
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015053( exit $ac_status )
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015054{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
15055See \`config.log' for more details." >&5
15056echo "$as_me: error: cannot compute sizeof (long long), 77
15057See \`config.log' for more details." >&2;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015058 { (exit 1); exit 1; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015059fi
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015060rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015061fi
15062fi
15063rm -f conftest.val
15064else
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015065 ac_cv_sizeof_long_long=0
15066fi
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015067fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015068echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015069echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015070cat >>confdefs.h <<_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015071#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015072_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015073
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015074
15075
15076echo "$as_me:$LINENO: checking whether linux/input.h is for real" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015077echo $ECHO_N "checking whether linux/input.h is for real... $ECHO_C" >&6
15078if test "${wine_cv_linux_input_h+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000015080else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015081 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015082#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015083/* confdefs.h. */
15084_ACEOF
15085cat confdefs.h >>conftest.$ac_ext
15086cat >>conftest.$ac_ext <<_ACEOF
15087/* end confdefs.h. */
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000015088
15089 #include <linux/input.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015090
15091int
15092main ()
15093{
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000015094
15095 int foo = EVIOCGBIT(EV_ABS,42);
15096 int bar = BTN_PINKIE;
15097 int fortytwo = 42;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015098
15099 ;
15100 return 0;
15101}
15102_ACEOF
15103rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015104if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015105 (eval $ac_compile) 2>&5
15106 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015108 (exit $ac_status); } &&
15109 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015111 (eval $ac_try) 2>&5
15112 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015114 (exit $ac_status); }; }; then
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000015115 wine_cv_linux_input_h=yes
15116else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015117 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015118sed 's/^/| /' conftest.$ac_ext >&5
15119
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015120wine_cv_linux_input_h=no
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000015121fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015122rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000015123
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015124fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015125echo "$as_me:$LINENO: result: $wine_cv_linux_input_h" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015126echo "${ECHO_T}$wine_cv_linux_input_h" >&6
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000015127 if test "$wine_cv_linux_input_h" = "yes"
15128 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015129
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015130cat >>confdefs.h <<\_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000015131#define HAVE_CORRECT_LINUXINPUT_H 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015132_ACEOF
Marcus Meissner74f2b4b2001-01-19 21:09:07 +000015133
15134 fi
15135
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015136
15137echo "$as_me:$LINENO: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015138echo $ECHO_N "checking whether we can use re-entrant gethostbyname_r Linux style... $ECHO_C" >&6
15139if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000015141else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015142 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015143#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015144/* confdefs.h. */
15145_ACEOF
15146cat confdefs.h >>conftest.$ac_ext
15147cat >>conftest.$ac_ext <<_ACEOF
15148/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000015149
15150#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015151
15152int
15153main ()
15154{
Rein Klazesff7a61f2000-09-24 19:41:57 +000015155
15156 char *name=NULL;
15157 struct hostent he;
15158 struct hostent *result;
15159 char *buf=NULL;
15160 int bufsize=0;
15161 int res,errnr;
15162 char *addr=NULL;
15163 int addrlen=0;
15164 int addrtype=0;
15165 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
15166 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015167
15168 ;
15169 return 0;
15170}
15171_ACEOF
15172rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015174 (eval $ac_compile) 2>&5
15175 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015177 (exit $ac_status); } &&
15178 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015180 (eval $ac_try) 2>&5
15181 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015183 (exit $ac_status); }; }; then
Rein Klazesff7a61f2000-09-24 19:41:57 +000015184 wine_cv_linux_gethostbyname_r_6=yes
15185else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015186 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015187sed 's/^/| /' conftest.$ac_ext >&5
15188
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015189wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000015190
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015191fi
15192rm -f conftest.$ac_objext conftest.$ac_ext
15193
15194fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015195echo "$as_me:$LINENO: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015196echo "${ECHO_T}$wine_cv_linux_gethostbyname_r_6" >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000015197 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
15198 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015199
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015200cat >>confdefs.h <<\_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000015201#define HAVE_LINUX_GETHOSTBYNAME_R_6 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015202_ACEOF
Rein Klazesff7a61f2000-09-24 19:41:57 +000015203
15204 fi
15205
Marcus Meissner028e9a11999-08-04 15:07:56 +000015206if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015207then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015208 echo "$as_me:$LINENO: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015209echo $ECHO_N "checking whether linux/joystick.h uses the Linux 2.2+ API... $ECHO_C" >&6
15210if test "${wine_cv_linux_joystick_22_api+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015212else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015213 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015214#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015215/* confdefs.h. */
15216_ACEOF
15217cat confdefs.h >>conftest.$ac_ext
15218cat >>conftest.$ac_ext <<_ACEOF
15219/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015220
Marcus Meissner028e9a11999-08-04 15:07:56 +000015221 #include <sys/ioctl.h>
15222 #include <linux/joystick.h>
15223
15224 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000015225 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
15226 #error "no 2.2 header"
15227 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015228
15229int
15230main ()
15231{
Marcus Meissner028e9a11999-08-04 15:07:56 +000015232/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015233 ;
15234 return 0;
15235}
15236_ACEOF
15237rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015238if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015239 (eval $ac_compile) 2>&5
15240 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015242 (exit $ac_status); } &&
15243 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015245 (eval $ac_try) 2>&5
15246 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015248 (exit $ac_status); }; }; then
Marcus Meissner028e9a11999-08-04 15:07:56 +000015249 wine_cv_linux_joystick_22_api=yes
15250else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015251 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015252sed 's/^/| /' conftest.$ac_ext >&5
15253
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015254wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000015255fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015256rm -f conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000015257
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015258fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015259echo "$as_me:$LINENO: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015260echo "${ECHO_T}$wine_cv_linux_joystick_22_api" >&6
Rein Klazes87d224a2000-04-24 17:33:49 +000015261 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000015262 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015263
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015264cat >>confdefs.h <<\_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000015265#define HAVE_LINUX_22_JOYSTICK_API 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015266_ACEOF
Marcus Meissner028e9a11999-08-04 15:07:56 +000015267
15268 fi
15269fi
15270
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015271
Marcus Meissner028e9a11999-08-04 15:07:56 +000015272if test "$ac_cv_header_sys_vfs_h" = "yes"
15273then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015274 echo "$as_me:$LINENO: checking whether sys/vfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015275echo $ECHO_N "checking whether sys/vfs.h defines statfs... $ECHO_C" >&6
15276if test "${wine_cv_sys_vfs_has_statfs+set}" = set; then
15277 echo $ECHO_N "(cached) $ECHO_C" >&6
Marcus Meissner028e9a11999-08-04 15:07:56 +000015278else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015279 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015280#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015281/* confdefs.h. */
15282_ACEOF
15283cat confdefs.h >>conftest.$ac_ext
15284cat >>conftest.$ac_ext <<_ACEOF
15285/* end confdefs.h. */
Marcus Meissner028e9a11999-08-04 15:07:56 +000015286
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015287 #include <sys/types.h>
15288 #ifdef HAVE_SYS_PARAM_H
15289 # include <sys/param.h>
15290 #endif
15291 #include <sys/vfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015292
15293int
15294main ()
15295{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015296
15297 struct statfs stfs;
15298
15299 memset(&stfs,0,sizeof(stfs));
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015300
15301 ;
15302 return 0;
15303}
15304_ACEOF
15305rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015306if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015307 (eval $ac_compile) 2>&5
15308 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015310 (exit $ac_status); } &&
15311 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015313 (eval $ac_try) 2>&5
15314 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015316 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015317 wine_cv_sys_vfs_has_statfs=yes
15318else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015319 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015320sed 's/^/| /' conftest.$ac_ext >&5
15321
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015322wine_cv_sys_vfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015323
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015324fi
15325rm -f conftest.$ac_objext conftest.$ac_ext
15326
15327fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015328echo "$as_me:$LINENO: result: $wine_cv_sys_vfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015329echo "${ECHO_T}$wine_cv_sys_vfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015330 if test "$wine_cv_sys_vfs_has_statfs" = "yes"
15331 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015332
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015333cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015334#define STATFS_DEFINED_BY_SYS_VFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015335_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015336
15337 fi
15338fi
15339
15340if test "$ac_cv_header_sys_statfs_h" = "yes"
15341then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015342 echo "$as_me:$LINENO: checking whether sys/statfs.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015343echo $ECHO_N "checking whether sys/statfs.h defines statfs... $ECHO_C" >&6
15344if test "${wine_cv_sys_statfs_has_statfs+set}" = set; then
15345 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015346else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015347 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015348#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015349/* confdefs.h. */
15350_ACEOF
15351cat confdefs.h >>conftest.$ac_ext
15352cat >>conftest.$ac_ext <<_ACEOF
15353/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015354
15355 #include <sys/types.h>
15356 #ifdef HAVE_SYS_PARAM_H
15357 # include <sys/param.h>
15358 #endif
15359 #include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015360
15361int
15362main ()
15363{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015364
15365 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015366
15367 ;
15368 return 0;
15369}
15370_ACEOF
15371rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015372if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015373 (eval $ac_compile) 2>&5
15374 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015376 (exit $ac_status); } &&
15377 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015379 (eval $ac_try) 2>&5
15380 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015382 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015383 wine_cv_sys_statfs_has_statfs=yes
15384else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015385 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015386sed 's/^/| /' conftest.$ac_ext >&5
15387
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015388wine_cv_sys_statfs_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015389
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015390fi
15391rm -f conftest.$ac_objext conftest.$ac_ext
15392
15393fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015394echo "$as_me:$LINENO: result: $wine_cv_sys_statfs_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015395echo "${ECHO_T}$wine_cv_sys_statfs_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015396 if test "$wine_cv_sys_statfs_has_statfs" = "yes"
15397 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015398
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015399cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015400#define STATFS_DEFINED_BY_SYS_STATFS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015401_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015402
15403 fi
15404fi
15405
15406if test "$ac_cv_header_sys_mount_h" = "yes"
15407then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015408 echo "$as_me:$LINENO: checking whether sys/mount.h defines statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015409echo $ECHO_N "checking whether sys/mount.h defines statfs... $ECHO_C" >&6
15410if test "${wine_cv_sys_mount_has_statfs+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015412else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015413 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015414#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015415/* confdefs.h. */
15416_ACEOF
15417cat confdefs.h >>conftest.$ac_ext
15418cat >>conftest.$ac_ext <<_ACEOF
15419/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015420
15421 #include <sys/types.h>
15422 #ifdef HAVE_SYS_PARAM_H
15423 # include <sys/param.h>
15424 #endif
15425 #include <sys/mount.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015426
15427int
15428main ()
15429{
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015430
15431 struct statfs stfs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015432
15433 ;
15434 return 0;
15435}
15436_ACEOF
15437rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015439 (eval $ac_compile) 2>&5
15440 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015442 (exit $ac_status); } &&
15443 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015445 (eval $ac_try) 2>&5
15446 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015448 (exit $ac_status); }; }; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015449 wine_cv_sys_mount_has_statfs=yes
15450else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015451 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015452sed 's/^/| /' conftest.$ac_ext >&5
15453
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015454wine_cv_sys_mount_has_statfs=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015455
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015456fi
15457rm -f conftest.$ac_objext conftest.$ac_ext
15458
15459fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015460echo "$as_me:$LINENO: result: $wine_cv_sys_mount_has_statfs" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015461echo "${ECHO_T}$wine_cv_sys_mount_has_statfs" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015462 if test "$wine_cv_sys_mount_has_statfs" = "yes"
15463 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015464
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015465cat >>confdefs.h <<\_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015466#define STATFS_DEFINED_BY_SYS_MOUNT 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015467_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015468
15469 fi
15470fi
15471
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015472
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015473echo "$as_me:$LINENO: checking for struct statfs.f_bfree" >&5
15474echo $ECHO_N "checking for struct statfs.f_bfree... $ECHO_C" >&6
15475if test "${ac_cv_member_struct_statfs_f_bfree+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015476 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015477else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015478 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015479#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015480/* confdefs.h. */
15481_ACEOF
15482cat confdefs.h >>conftest.$ac_ext
15483cat >>conftest.$ac_ext <<_ACEOF
15484/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015485#include <sys/types.h>
15486#ifdef HAVE_SYS_PARAM_H
15487# include <sys/param.h>
15488#endif
15489#ifdef STATFS_DEFINED_BY_SYS_MOUNT
15490# include <sys/mount.h>
15491#else
15492# ifdef STATFS_DEFINED_BY_SYS_VFS
15493# include <sys/vfs.h>
15494# else
15495# ifdef STATFS_DEFINED_BY_SYS_STATFS
15496# include <sys/statfs.h>
15497# endif
15498# endif
15499#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015500
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015501int
15502main ()
15503{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015504static struct statfs ac_aggr;
15505if (ac_aggr.f_bfree)
15506return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015507 ;
15508 return 0;
15509}
15510_ACEOF
15511rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015512if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015513 (eval $ac_compile) 2>&5
15514 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015516 (exit $ac_status); } &&
15517 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015519 (eval $ac_try) 2>&5
15520 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015522 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015523 ac_cv_member_struct_statfs_f_bfree=yes
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015524else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015525 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015526sed 's/^/| /' conftest.$ac_ext >&5
15527
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015528cat >conftest.$ac_ext <<_ACEOF
15529#line $LINENO "configure"
15530/* confdefs.h. */
15531_ACEOF
15532cat confdefs.h >>conftest.$ac_ext
15533cat >>conftest.$ac_ext <<_ACEOF
15534/* end confdefs.h. */
15535#include <sys/types.h>
15536#ifdef HAVE_SYS_PARAM_H
15537# include <sys/param.h>
15538#endif
15539#ifdef STATFS_DEFINED_BY_SYS_MOUNT
15540# include <sys/mount.h>
15541#else
15542# ifdef STATFS_DEFINED_BY_SYS_VFS
15543# include <sys/vfs.h>
15544# else
15545# ifdef STATFS_DEFINED_BY_SYS_STATFS
15546# include <sys/statfs.h>
15547# endif
15548# endif
15549#endif
15550
15551int
15552main ()
15553{
15554static struct statfs ac_aggr;
15555if (sizeof ac_aggr.f_bfree)
15556return 0;
15557 ;
15558 return 0;
15559}
15560_ACEOF
15561rm -f conftest.$ac_objext
15562if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15563 (eval $ac_compile) 2>&5
15564 ac_status=$?
15565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15566 (exit $ac_status); } &&
15567 { ac_try='test -s conftest.$ac_objext'
15568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15569 (eval $ac_try) 2>&5
15570 ac_status=$?
15571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15572 (exit $ac_status); }; }; then
15573 ac_cv_member_struct_statfs_f_bfree=yes
15574else
15575 echo "$as_me: failed program was:" >&5
15576sed 's/^/| /' conftest.$ac_ext >&5
15577
15578ac_cv_member_struct_statfs_f_bfree=no
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015579fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015580rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015581fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015582rm -f conftest.$ac_objext conftest.$ac_ext
15583fi
15584echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bfree" >&5
15585echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bfree" >&6
15586if test $ac_cv_member_struct_statfs_f_bfree = yes; then
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015587
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015588cat >>confdefs.h <<_ACEOF
15589#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015590_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015591
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015592
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000015593fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015594echo "$as_me:$LINENO: checking for struct statfs.f_bavail" >&5
15595echo $ECHO_N "checking for struct statfs.f_bavail... $ECHO_C" >&6
15596if test "${ac_cv_member_struct_statfs_f_bavail+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015597 echo $ECHO_N "(cached) $ECHO_C" >&6
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015598else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015599 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015600#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015601/* confdefs.h. */
15602_ACEOF
15603cat confdefs.h >>conftest.$ac_ext
15604cat >>conftest.$ac_ext <<_ACEOF
15605/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015606#include <sys/types.h>
15607#ifdef HAVE_SYS_PARAM_H
15608# include <sys/param.h>
15609#endif
15610#ifdef STATFS_DEFINED_BY_SYS_MOUNT
15611# include <sys/mount.h>
15612#else
15613# ifdef STATFS_DEFINED_BY_SYS_VFS
15614# include <sys/vfs.h>
15615# else
15616# ifdef STATFS_DEFINED_BY_SYS_STATFS
15617# include <sys/statfs.h>
15618# endif
15619# endif
15620#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015621
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015622int
15623main ()
15624{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015625static struct statfs ac_aggr;
15626if (ac_aggr.f_bavail)
15627return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015628 ;
15629 return 0;
15630}
15631_ACEOF
15632rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015633if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015634 (eval $ac_compile) 2>&5
15635 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015637 (exit $ac_status); } &&
15638 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015640 (eval $ac_try) 2>&5
15641 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015643 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015644 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000015645else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015646 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015647sed 's/^/| /' conftest.$ac_ext >&5
15648
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015649cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015650#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015651/* confdefs.h. */
15652_ACEOF
15653cat confdefs.h >>conftest.$ac_ext
15654cat >>conftest.$ac_ext <<_ACEOF
15655/* end confdefs.h. */
Alexandre Julliard829fe321998-07-26 14:27:39 +000015656#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015657#ifdef HAVE_SYS_PARAM_H
15658# include <sys/param.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000015659#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015660#ifdef STATFS_DEFINED_BY_SYS_MOUNT
15661# include <sys/mount.h>
15662#else
15663# ifdef STATFS_DEFINED_BY_SYS_VFS
15664# include <sys/vfs.h>
15665# else
15666# ifdef STATFS_DEFINED_BY_SYS_STATFS
15667# include <sys/statfs.h>
15668# endif
15669# endif
15670#endif
15671
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015672int
15673main ()
15674{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015675static struct statfs ac_aggr;
15676if (sizeof ac_aggr.f_bavail)
15677return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015678 ;
15679 return 0;
15680}
15681_ACEOF
15682rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015683if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015684 (eval $ac_compile) 2>&5
15685 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015687 (exit $ac_status); } &&
15688 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015690 (eval $ac_try) 2>&5
15691 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015693 (exit $ac_status); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015694 ac_cv_member_struct_statfs_f_bavail=yes
Alexandre Julliard829fe321998-07-26 14:27:39 +000015695else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015696 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015697sed 's/^/| /' conftest.$ac_ext >&5
15698
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015699ac_cv_member_struct_statfs_f_bavail=no
Alexandre Julliard829fe321998-07-26 14:27:39 +000015700fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015701rm -f conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard829fe321998-07-26 14:27:39 +000015702fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015703rm -f conftest.$ac_objext conftest.$ac_ext
Patrik Stridvall09da9662001-07-08 22:30:50 +000015704fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015705echo "$as_me:$LINENO: result: $ac_cv_member_struct_statfs_f_bavail" >&5
15706echo "${ECHO_T}$ac_cv_member_struct_statfs_f_bavail" >&6
15707if test $ac_cv_member_struct_statfs_f_bavail = yes; then
Patrik Stridvall09da9662001-07-08 22:30:50 +000015708
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015709cat >>confdefs.h <<_ACEOF
15710#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015711_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000015712
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015713
Patrik Stridvall09da9662001-07-08 22:30:50 +000015714fi
15715
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015716
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015717echo "$as_me:$LINENO: checking for struct msghdr.msg_accrights" >&5
15718echo $ECHO_N "checking for struct msghdr.msg_accrights... $ECHO_C" >&6
15719if test "${ac_cv_member_struct_msghdr_msg_accrights+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015720 echo $ECHO_N "(cached) $ECHO_C" >&6
Patrik Stridvall09da9662001-07-08 22:30:50 +000015721else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015722 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015723#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015724/* confdefs.h. */
15725_ACEOF
15726cat confdefs.h >>conftest.$ac_ext
15727cat >>conftest.$ac_ext <<_ACEOF
15728/* end confdefs.h. */
Patrik Stridvall09da9662001-07-08 22:30:50 +000015729#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000015730#ifdef HAVE_SYS_SOCKET_H
15731# include <sys/socket.h>
15732#endif
15733#ifdef HAVE_SYS_UN_H
15734# include <sys/un.h>
15735#endif
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015736
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015737int
15738main ()
15739{
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015740static struct msghdr ac_aggr;
15741if (ac_aggr.msg_accrights)
15742return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015743 ;
15744 return 0;
15745}
15746_ACEOF
15747rm -f conftest.$ac_objext
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015749 (eval $ac_compile) 2>&5
15750 ac_status=$?
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015752 (exit $ac_status); } &&
15753 { ac_try='test -s conftest.$ac_objext'
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015755 (eval $ac_try) 2>&5
15756 ac_status=$?
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); }; }; then
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015759 ac_cv_member_struct_msghdr_msg_accrights=yes
Juergen Lock2d33ab92000-02-13 16:03:29 +000015760else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015761 echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015762sed 's/^/| /' conftest.$ac_ext >&5
15763
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015764cat >conftest.$ac_ext <<_ACEOF
15765#line $LINENO "configure"
15766/* confdefs.h. */
15767_ACEOF
15768cat confdefs.h >>conftest.$ac_ext
15769cat >>conftest.$ac_ext <<_ACEOF
15770/* end confdefs.h. */
15771#include <sys/types.h>
15772#ifdef HAVE_SYS_SOCKET_H
15773# include <sys/socket.h>
15774#endif
15775#ifdef HAVE_SYS_UN_H
15776# include <sys/un.h>
15777#endif
15778
15779int
15780main ()
15781{
15782static struct msghdr ac_aggr;
15783if (sizeof ac_aggr.msg_accrights)
15784return 0;
15785 ;
15786 return 0;
15787}
15788_ACEOF
15789rm -f conftest.$ac_objext
15790if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15791 (eval $ac_compile) 2>&5
15792 ac_status=$?
15793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15794 (exit $ac_status); } &&
15795 { ac_try='test -s conftest.$ac_objext'
15796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15797 (eval $ac_try) 2>&5
15798 ac_status=$?
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); }; }; then
15801 ac_cv_member_struct_msghdr_msg_accrights=yes
15802else
15803 echo "$as_me: failed program was:" >&5
15804sed 's/^/| /' conftest.$ac_ext >&5
15805
15806ac_cv_member_struct_msghdr_msg_accrights=no
Juergen Lock2d33ab92000-02-13 16:03:29 +000015807fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015808rm -f conftest.$ac_objext conftest.$ac_ext
Juergen Lock2d33ab92000-02-13 16:03:29 +000015809fi
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015810rm -f conftest.$ac_objext conftest.$ac_ext
15811fi
15812echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrights" >&5
15813echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrights" >&6
15814if test $ac_cv_member_struct_msghdr_msg_accrights = yes; then
Juergen Lock2d33ab92000-02-13 16:03:29 +000015815
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015816cat >>confdefs.h <<_ACEOF
15817#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015818_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000015819
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000015820
15821fi
15822echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
15823echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6
15824if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15826else
15827 cat >conftest.$ac_ext <<_ACEOF
15828#line $LINENO "configure"
15829/* confdefs.h. */
15830_ACEOF
15831cat confdefs.h >>conftest.$ac_ext
15832cat >>conftest.$ac_ext <<_ACEOF
15833/* end confdefs.h. */
15834#include <sys/types.h>
15835#ifdef HAVE_SYS_SOCKET_H
15836# include <sys/socket.h>
15837#endif
15838#ifdef HAVE_SYS_UN_H
15839# include <sys/un.h>
15840#endif
15841
15842int
15843main ()
15844{
15845static struct sockaddr ac_aggr;
15846if (ac_aggr.sa_len)
15847return 0;
15848 ;
15849 return 0;
15850}
15851_ACEOF
15852rm -f conftest.$ac_objext
15853if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15854 (eval $ac_compile) 2>&5
15855 ac_status=$?
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); } &&
15858 { ac_try='test -s conftest.$ac_objext'
15859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15860 (eval $ac_try) 2>&5
15861 ac_status=$?
15862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15863 (exit $ac_status); }; }; then
15864 ac_cv_member_struct_sockaddr_sa_len=yes
15865else
15866 echo "$as_me: failed program was:" >&5
15867sed 's/^/| /' conftest.$ac_ext >&5
15868
15869cat >conftest.$ac_ext <<_ACEOF
15870#line $LINENO "configure"
15871/* confdefs.h. */
15872_ACEOF
15873cat confdefs.h >>conftest.$ac_ext
15874cat >>conftest.$ac_ext <<_ACEOF
15875/* end confdefs.h. */
15876#include <sys/types.h>
15877#ifdef HAVE_SYS_SOCKET_H
15878# include <sys/socket.h>
15879#endif
15880#ifdef HAVE_SYS_UN_H
15881# include <sys/un.h>
15882#endif
15883
15884int
15885main ()
15886{
15887static struct sockaddr ac_aggr;
15888if (sizeof ac_aggr.sa_len)
15889return 0;
15890 ;
15891 return 0;
15892}
15893_ACEOF
15894rm -f conftest.$ac_objext
15895if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15896 (eval $ac_compile) 2>&5
15897 ac_status=$?
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); } &&
15900 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
15906 ac_cv_member_struct_sockaddr_sa_len=yes
15907else
15908 echo "$as_me: failed program was:" >&5
15909sed 's/^/| /' conftest.$ac_ext >&5
15910
15911ac_cv_member_struct_sockaddr_sa_len=no
15912fi
15913rm -f conftest.$ac_objext conftest.$ac_ext
15914fi
15915rm -f conftest.$ac_objext conftest.$ac_ext
15916fi
15917echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
15918echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6
15919if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
15920
15921cat >>confdefs.h <<_ACEOF
15922#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
15923_ACEOF
15924
15925
15926fi
15927echo "$as_me:$LINENO: checking for struct sockaddr_un.sun_len" >&5
15928echo $ECHO_N "checking for struct sockaddr_un.sun_len... $ECHO_C" >&6
15929if test "${ac_cv_member_struct_sockaddr_un_sun_len+set}" = set; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15931else
15932 cat >conftest.$ac_ext <<_ACEOF
15933#line $LINENO "configure"
15934/* confdefs.h. */
15935_ACEOF
15936cat confdefs.h >>conftest.$ac_ext
15937cat >>conftest.$ac_ext <<_ACEOF
15938/* end confdefs.h. */
15939#include <sys/types.h>
15940#ifdef HAVE_SYS_SOCKET_H
15941# include <sys/socket.h>
15942#endif
15943#ifdef HAVE_SYS_UN_H
15944# include <sys/un.h>
15945#endif
15946
15947int
15948main ()
15949{
15950static struct sockaddr_un ac_aggr;
15951if (ac_aggr.sun_len)
15952return 0;
15953 ;
15954 return 0;
15955}
15956_ACEOF
15957rm -f conftest.$ac_objext
15958if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15959 (eval $ac_compile) 2>&5
15960 ac_status=$?
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } &&
15963 { ac_try='test -s conftest.$ac_objext'
15964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15965 (eval $ac_try) 2>&5
15966 ac_status=$?
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 ac_cv_member_struct_sockaddr_un_sun_len=yes
15970else
15971 echo "$as_me: failed program was:" >&5
15972sed 's/^/| /' conftest.$ac_ext >&5
15973
15974cat >conftest.$ac_ext <<_ACEOF
15975#line $LINENO "configure"
15976/* confdefs.h. */
15977_ACEOF
15978cat confdefs.h >>conftest.$ac_ext
15979cat >>conftest.$ac_ext <<_ACEOF
15980/* end confdefs.h. */
15981#include <sys/types.h>
15982#ifdef HAVE_SYS_SOCKET_H
15983# include <sys/socket.h>
15984#endif
15985#ifdef HAVE_SYS_UN_H
15986# include <sys/un.h>
15987#endif
15988
15989int
15990main ()
15991{
15992static struct sockaddr_un ac_aggr;
15993if (sizeof ac_aggr.sun_len)
15994return 0;
15995 ;
15996 return 0;
15997}
15998_ACEOF
15999rm -f conftest.$ac_objext
16000if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16001 (eval $ac_compile) 2>&5
16002 ac_status=$?
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } &&
16005 { ac_try='test -s conftest.$ac_objext'
16006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16007 (eval $ac_try) 2>&5
16008 ac_status=$?
16009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16010 (exit $ac_status); }; }; then
16011 ac_cv_member_struct_sockaddr_un_sun_len=yes
16012else
16013 echo "$as_me: failed program was:" >&5
16014sed 's/^/| /' conftest.$ac_ext >&5
16015
16016ac_cv_member_struct_sockaddr_un_sun_len=no
16017fi
16018rm -f conftest.$ac_objext conftest.$ac_ext
16019fi
16020rm -f conftest.$ac_objext conftest.$ac_ext
16021fi
16022echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_un_sun_len" >&5
16023echo "${ECHO_T}$ac_cv_member_struct_sockaddr_un_sun_len" >&6
16024if test $ac_cv_member_struct_sockaddr_un_sun_len = yes; then
16025
16026cat >>confdefs.h <<_ACEOF
16027#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
16028_ACEOF
16029
16030
Juergen Lock2d33ab92000-02-13 16:03:29 +000016031fi
16032
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016033
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000016034echo "$as_me:$LINENO: checking for siginfo_t.si_fd" >&5
16035echo $ECHO_N "checking for siginfo_t.si_fd... $ECHO_C" >&6
16036if test "${ac_cv_member_siginfo_t_si_fd+set}" = set; then
16037 echo $ECHO_N "(cached) $ECHO_C" >&6
16038else
16039 cat >conftest.$ac_ext <<_ACEOF
16040#line $LINENO "configure"
16041/* confdefs.h. */
16042_ACEOF
16043cat confdefs.h >>conftest.$ac_ext
16044cat >>conftest.$ac_ext <<_ACEOF
16045/* end confdefs.h. */
16046#include <signal.h>
16047
16048int
16049main ()
16050{
16051static siginfo_t ac_aggr;
16052if (ac_aggr.si_fd)
16053return 0;
16054 ;
16055 return 0;
16056}
16057_ACEOF
16058rm -f conftest.$ac_objext
16059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16060 (eval $ac_compile) 2>&5
16061 ac_status=$?
16062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16063 (exit $ac_status); } &&
16064 { ac_try='test -s conftest.$ac_objext'
16065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16066 (eval $ac_try) 2>&5
16067 ac_status=$?
16068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16069 (exit $ac_status); }; }; then
16070 ac_cv_member_siginfo_t_si_fd=yes
16071else
16072 echo "$as_me: failed program was:" >&5
16073sed 's/^/| /' conftest.$ac_ext >&5
16074
16075cat >conftest.$ac_ext <<_ACEOF
16076#line $LINENO "configure"
16077/* confdefs.h. */
16078_ACEOF
16079cat confdefs.h >>conftest.$ac_ext
16080cat >>conftest.$ac_ext <<_ACEOF
16081/* end confdefs.h. */
16082#include <signal.h>
16083
16084int
16085main ()
16086{
16087static siginfo_t ac_aggr;
16088if (sizeof ac_aggr.si_fd)
16089return 0;
16090 ;
16091 return 0;
16092}
16093_ACEOF
16094rm -f conftest.$ac_objext
16095if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16096 (eval $ac_compile) 2>&5
16097 ac_status=$?
16098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16099 (exit $ac_status); } &&
16100 { ac_try='test -s conftest.$ac_objext'
16101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16102 (eval $ac_try) 2>&5
16103 ac_status=$?
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; }; then
16106 ac_cv_member_siginfo_t_si_fd=yes
16107else
16108 echo "$as_me: failed program was:" >&5
16109sed 's/^/| /' conftest.$ac_ext >&5
16110
16111ac_cv_member_siginfo_t_si_fd=no
16112fi
16113rm -f conftest.$ac_objext conftest.$ac_ext
16114fi
16115rm -f conftest.$ac_objext conftest.$ac_ext
16116fi
16117echo "$as_me:$LINENO: result: $ac_cv_member_siginfo_t_si_fd" >&5
16118echo "${ECHO_T}$ac_cv_member_siginfo_t_si_fd" >&6
16119if test $ac_cv_member_siginfo_t_si_fd = yes; then
16120
16121cat >>confdefs.h <<_ACEOF
16122#define HAVE_SIGINFO_T_SI_FD 1
16123_ACEOF
16124
16125
16126fi
16127
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016128
Alexandre Julliarddb89a542003-04-20 02:56:14 +000016129echo "$as_me:$LINENO: checking for struct option.name" >&5
16130echo $ECHO_N "checking for struct option.name... $ECHO_C" >&6
16131if test "${ac_cv_member_struct_option_name+set}" = set; then
16132 echo $ECHO_N "(cached) $ECHO_C" >&6
16133else
16134 cat >conftest.$ac_ext <<_ACEOF
16135#line $LINENO "configure"
16136/* confdefs.h. */
16137_ACEOF
16138cat confdefs.h >>conftest.$ac_ext
16139cat >>conftest.$ac_ext <<_ACEOF
16140/* end confdefs.h. */
16141#ifdef HAVE_GETOPT_H
16142#include <getopt.h>
16143#endif
16144
16145int
16146main ()
16147{
16148static struct option ac_aggr;
16149if (ac_aggr.name)
16150return 0;
16151 ;
16152 return 0;
16153}
16154_ACEOF
16155rm -f conftest.$ac_objext
16156if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16157 (eval $ac_compile) 2>&5
16158 ac_status=$?
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } &&
16161 { ac_try='test -s conftest.$ac_objext'
16162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16163 (eval $ac_try) 2>&5
16164 ac_status=$?
16165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16166 (exit $ac_status); }; }; then
16167 ac_cv_member_struct_option_name=yes
16168else
16169 echo "$as_me: failed program was:" >&5
16170sed 's/^/| /' conftest.$ac_ext >&5
16171
16172cat >conftest.$ac_ext <<_ACEOF
16173#line $LINENO "configure"
16174/* confdefs.h. */
16175_ACEOF
16176cat confdefs.h >>conftest.$ac_ext
16177cat >>conftest.$ac_ext <<_ACEOF
16178/* end confdefs.h. */
16179#ifdef HAVE_GETOPT_H
16180#include <getopt.h>
16181#endif
16182
16183int
16184main ()
16185{
16186static struct option ac_aggr;
16187if (sizeof ac_aggr.name)
16188return 0;
16189 ;
16190 return 0;
16191}
16192_ACEOF
16193rm -f conftest.$ac_objext
16194if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16195 (eval $ac_compile) 2>&5
16196 ac_status=$?
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
16199 { ac_try='test -s conftest.$ac_objext'
16200 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16201 (eval $ac_try) 2>&5
16202 ac_status=$?
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); }; }; then
16205 ac_cv_member_struct_option_name=yes
16206else
16207 echo "$as_me: failed program was:" >&5
16208sed 's/^/| /' conftest.$ac_ext >&5
16209
16210ac_cv_member_struct_option_name=no
16211fi
16212rm -f conftest.$ac_objext conftest.$ac_ext
16213fi
16214rm -f conftest.$ac_objext conftest.$ac_ext
16215fi
16216echo "$as_me:$LINENO: result: $ac_cv_member_struct_option_name" >&5
16217echo "${ECHO_T}$ac_cv_member_struct_option_name" >&6
16218if test $ac_cv_member_struct_option_name = yes; then
16219
16220cat >>confdefs.h <<_ACEOF
16221#define HAVE_STRUCT_OPTION_NAME 1
16222_ACEOF
16223
16224
16225fi
16226
16227
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016228
Alexandre Julliardfc01b722002-05-12 03:16:39 +000016229case $host_cpu in
Alexandre Julliard05783b52002-12-11 00:21:55 +000016230 *i[3456789]86*) echo "$as_me:$LINENO: checking whether we need to define __i386__" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016231echo $ECHO_N "checking whether we need to define __i386__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000016232if test "${ac_cv_cpp_def___i386__+set}" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016233 echo $ECHO_N "(cached) $ECHO_C" >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000016234else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016235 cat >conftest.$ac_ext <<_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016236#line $LINENO "configure"
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. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016242#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000016243yes
16244#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016245_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000016246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016247 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000016248 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000016249else
Alexandre Julliard05783b52002-12-11 00:21:55 +000016250 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000016251fi
16252rm -f conftest*
16253
16254fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000016255echo "$as_me:$LINENO: result: $ac_cv_cpp_def___i386__" >&5
16256echo "${ECHO_T}$ac_cv_cpp_def___i386__" >&6
16257if test $ac_cv_cpp_def___i386__ = yes; then
16258 CFLAGS="$CFLAGS -D__i386__"
16259 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000016260fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000016261 ;;
16262 *alpha*) echo "$as_me:$LINENO: checking whether we need to define __ALPHA__" >&5
Steven Edwards69b67862002-12-10 22:48:48 +000016263echo $ECHO_N "checking whether we need to define __ALPHA__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000016264if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then
Steven Edwards69b67862002-12-10 22:48:48 +000016265 echo $ECHO_N "(cached) $ECHO_C" >&6
16266else
16267 cat >conftest.$ac_ext <<_ACEOF
16268#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016269/* confdefs.h. */
16270_ACEOF
16271cat confdefs.h >>conftest.$ac_ext
16272cat >>conftest.$ac_ext <<_ACEOF
16273/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000016274#ifndef __ALPHA__
16275yes
16276#endif
16277_ACEOF
16278if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16279 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000016280 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000016281else
Alexandre Julliard05783b52002-12-11 00:21:55 +000016282 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000016283fi
16284rm -f conftest*
16285
16286fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000016287echo "$as_me:$LINENO: result: $ac_cv_cpp_def___ALPHA__" >&5
16288echo "${ECHO_T}$ac_cv_cpp_def___ALPHA__" >&6
16289if test $ac_cv_cpp_def___ALPHA__ = yes; then
16290 CFLAGS="$CFLAGS -D__ALPHA__"
16291 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Steven Edwards69b67862002-12-10 22:48:48 +000016292fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000016293 ;;
16294 *sparc*) echo "$as_me:$LINENO: checking whether we need to define __sparc__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000016295echo $ECHO_N "checking whether we need to define __sparc__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000016296if test "${ac_cv_cpp_def___sparc__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000016297 echo $ECHO_N "(cached) $ECHO_C" >&6
16298else
16299 cat >conftest.$ac_ext <<_ACEOF
16300#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016301/* confdefs.h. */
16302_ACEOF
16303cat confdefs.h >>conftest.$ac_ext
16304cat >>conftest.$ac_ext <<_ACEOF
16305/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000016306#ifndef __sparc__
16307yes
16308#endif
16309_ACEOF
16310if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016311 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000016312 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000016313else
Alexandre Julliard05783b52002-12-11 00:21:55 +000016314 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000016315fi
16316rm -f conftest*
16317
16318fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000016319echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sparc__" >&5
16320echo "${ECHO_T}$ac_cv_cpp_def___sparc__" >&6
16321if test $ac_cv_cpp_def___sparc__ = yes; then
16322 CFLAGS="$CFLAGS -D__sparc__"
16323 LINTFLAGS="$LINTFLAGS -D__sparc__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000016324fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000016325 ;;
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000016326 *powerpc*) echo "$as_me:$LINENO: checking whether we need to define __powerpc__" >&5
16327echo $ECHO_N "checking whether we need to define __powerpc__... $ECHO_C" >&6
16328if test "${ac_cv_cpp_def___powerpc__+set}" = set; then
16329 echo $ECHO_N "(cached) $ECHO_C" >&6
16330else
16331 cat >conftest.$ac_ext <<_ACEOF
16332#line $LINENO "configure"
16333/* confdefs.h. */
16334_ACEOF
16335cat confdefs.h >>conftest.$ac_ext
16336cat >>conftest.$ac_ext <<_ACEOF
16337/* end confdefs.h. */
16338#ifndef __powerpc__
16339yes
16340#endif
16341_ACEOF
16342if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16343 $EGREP "yes" >/dev/null 2>&1; then
16344 ac_cv_cpp_def___powerpc__=yes
16345else
16346 ac_cv_cpp_def___powerpc__=no
16347fi
16348rm -f conftest*
16349
16350fi
16351echo "$as_me:$LINENO: result: $ac_cv_cpp_def___powerpc__" >&5
16352echo "${ECHO_T}$ac_cv_cpp_def___powerpc__" >&6
16353if test $ac_cv_cpp_def___powerpc__ = yes; then
16354 CFLAGS="$CFLAGS -D__powerpc__"
16355 LINTFLAGS="$LINTFLAGS -D__powerpc__"
16356fi
16357 ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000016358esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000016359
16360case $host_vendor in
Alexandre Julliard05783b52002-12-11 00:21:55 +000016361 *sun*) echo "$as_me:$LINENO: checking whether we need to define __sun__" >&5
Gregg Mattinson57807fa2002-07-20 20:17:13 +000016362echo $ECHO_N "checking whether we need to define __sun__... $ECHO_C" >&6
Alexandre Julliard05783b52002-12-11 00:21:55 +000016363if test "${ac_cv_cpp_def___sun__+set}" = set; then
Gregg Mattinson57807fa2002-07-20 20:17:13 +000016364 echo $ECHO_N "(cached) $ECHO_C" >&6
16365else
16366 cat >conftest.$ac_ext <<_ACEOF
16367#line $LINENO "configure"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016368/* confdefs.h. */
16369_ACEOF
16370cat confdefs.h >>conftest.$ac_ext
16371cat >>conftest.$ac_ext <<_ACEOF
16372/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000016373#ifndef __sun__
16374yes
16375#endif
16376_ACEOF
16377if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016378 $EGREP "yes" >/dev/null 2>&1; then
Alexandre Julliard05783b52002-12-11 00:21:55 +000016379 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000016380else
Alexandre Julliard05783b52002-12-11 00:21:55 +000016381 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000016382fi
16383rm -f conftest*
16384
16385fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000016386echo "$as_me:$LINENO: result: $ac_cv_cpp_def___sun__" >&5
16387echo "${ECHO_T}$ac_cv_cpp_def___sun__" >&6
16388if test $ac_cv_cpp_def___sun__ = yes; then
16389 CFLAGS="$CFLAGS -D__sun__"
16390 LINTFLAGS="$LINTFLAGS -D__sun__"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000016391fi
Alexandre Julliard05783b52002-12-11 00:21:55 +000016392 ;;
16393esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000016394
16395
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016396
16397
16398
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016399 ac_config_commands="$ac_config_commands controls"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016400
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016401 ac_config_commands="$ac_config_commands dlls/ddraw/d3ddevice"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000016402
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016403 ac_config_commands="$ac_config_commands dlls/ddraw/dclipper"
Marcus Meissnera7f5cb51999-04-16 08:47:41 +000016404
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016405 ac_config_commands="$ac_config_commands dlls/ddraw/ddraw"
Alexandre Julliard829fe321998-07-26 14:27:39 +000016406
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016407 ac_config_commands="$ac_config_commands dlls/ddraw/direct3d"
François Gouget14259412001-11-06 20:57:11 +000016408
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016409 ac_config_commands="$ac_config_commands dlls/ddraw/dpalette"
François Gouget14259412001-11-06 20:57:11 +000016410
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016411 ac_config_commands="$ac_config_commands dlls/ddraw/dsurface"
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000016412
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016413 ac_config_commands="$ac_config_commands dlls/dinput/joystick"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016414
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016415 ac_config_commands="$ac_config_commands dlls/dinput/keyboard"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016416
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016417 ac_config_commands="$ac_config_commands dlls/dinput/mouse"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016418
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016419 ac_config_commands="$ac_config_commands dlls/gdi/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000016420
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016421 ac_config_commands="$ac_config_commands dlls/gdi/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000016422
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016423 ac_config_commands="$ac_config_commands dlls/kernel/messages"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016424
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016425 ac_config_commands="$ac_config_commands dlls/user/dde"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016426
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016427 ac_config_commands="$ac_config_commands dlls/user/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016428
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016429 ac_config_commands="$ac_config_commands dlls/wineps/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016430
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016431 ac_config_commands="$ac_config_commands files"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016432
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016433 ac_config_commands="$ac_config_commands graphics"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016434
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016435 ac_config_commands="$ac_config_commands graphics/x11drv"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016436
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016437 ac_config_commands="$ac_config_commands if1632"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016438
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016439 ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016440
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016441 ac_config_commands="$ac_config_commands loader"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016442
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016443 ac_config_commands="$ac_config_commands loader/ne"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016444
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016445 ac_config_commands="$ac_config_commands memory"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016446
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016447 ac_config_commands="$ac_config_commands misc"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016448
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016449 ac_config_commands="$ac_config_commands msdos"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016450
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016451 ac_config_commands="$ac_config_commands objects"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016452
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016453 ac_config_commands="$ac_config_commands programs/regapi/tests"
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000016454
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016455 ac_config_commands="$ac_config_commands programs/regedit/tests"
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000016456
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016457 ac_config_commands="$ac_config_commands relay32"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016458
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016459 ac_config_commands="$ac_config_commands scheduler"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016460
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016461 ac_config_commands="$ac_config_commands win32"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016462
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016463 ac_config_commands="$ac_config_commands windows"
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000016464
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000016465
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000016466MAKE_RULES=Make.rules
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016467
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016468
Alexandre Julliardd0edc5f2000-03-04 22:31:27 +000016469MAKE_DLL_RULES=dlls/Makedll.rules
16470
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016471
Alexandre Julliardedeee892002-08-09 01:22:40 +000016472MAKE_TEST_RULES=dlls/Maketest.rules
16473
16474
Alexandre Julliard117436e2003-05-01 00:39:29 +000016475MAKE_LIB_RULES=libs/Makelib.rules
16476
16477
Alexandre Julliard626f4252000-11-10 23:35:20 +000016478MAKE_PROG_RULES=programs/Makeprog.rules
16479
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016480
Mike McCormack6386edc2003-08-13 01:27:48 +000016481 ac_config_files="$ac_config_files Make.rules dlls/Makedll.rules dlls/Maketest.rules libs/Makelib.rules programs/Makeprog.rules Makefile dlls/Makefile dlls/advapi32/Makefile dlls/advapi32/tests/Makefile dlls/avicap32/Makefile dlls/avifil32/Makefile dlls/cabinet/Makefile dlls/comcat/Makefile dlls/comctl32/Makefile dlls/comctl32/tests/Makefile dlls/commdlg/Makefile dlls/crtdll/Makefile dlls/crypt32/Makefile dlls/ctl3d/Makefile dlls/d3d8/Makefile dlls/d3d9/Makefile dlls/d3dim/Makefile dlls/d3dx8/Makefile dlls/dciman32/Makefile dlls/ddraw/Makefile dlls/devenum/Makefile dlls/dinput/Makefile dlls/dinput8/Makefile dlls/dmband/Makefile dlls/dmcompos/Makefile dlls/dmime/Makefile dlls/dmloader/Makefile dlls/dmscript/Makefile dlls/dmstyle/Makefile dlls/dmsynth/Makefile dlls/dmusic/Makefile dlls/dmusic32/Makefile dlls/dplay/Makefile dlls/dplayx/Makefile dlls/dpnhpast/Makefile dlls/dsound/Makefile dlls/dsound/tests/Makefile dlls/gdi/Makefile dlls/gdi/tests/Makefile dlls/glu32/Makefile dlls/icmp/Makefile dlls/imagehlp/Makefile dlls/imm32/Makefile dlls/iphlpapi/Makefile dlls/kernel/Makefile dlls/kernel/tests/Makefile dlls/lzexpand/Makefile dlls/mapi32/Makefile dlls/mpr/Makefile dlls/msacm/Makefile dlls/msacm/imaadp32/Makefile dlls/msacm/msadp32/Makefile dlls/msacm/msg711/Makefile dlls/msacm/winemp3/Makefile dlls/msdmo/Makefile dlls/msi/Makefile dlls/msimg32/Makefile dlls/msisys/Makefile dlls/msnet32/Makefile dlls/msvcrt/Makefile dlls/msvcrt/tests/Makefile dlls/msvcrt20/Makefile dlls/msvcrtd/Makefile dlls/msvideo/Makefile dlls/msvideo/msrle32/Makefile dlls/mswsock/Makefile dlls/netapi32/Makefile dlls/netapi32/tests/Makefile dlls/ntdll/Makefile dlls/ntdll/tests/Makefile dlls/odbc32/Makefile dlls/ole32/Makefile dlls/oleacc/Makefile dlls/oleaut32/Makefile dlls/oleaut32/tests/Makefile dlls/olecli/Makefile dlls/oledlg/Makefile dlls/olepro32/Makefile dlls/olesvr/Makefile dlls/opengl32/Makefile dlls/psapi/Makefile dlls/qcap/Makefile dlls/quartz/Makefile dlls/rasapi32/Makefile dlls/richedit/Makefile dlls/rpcrt4/Makefile dlls/rpcrt4/tests/Makefile dlls/serialui/Makefile dlls/setupapi/Makefile dlls/shdocvw/Makefile dlls/shell32/Makefile dlls/shell32/tests/Makefile dlls/shfolder/Makefile dlls/shlwapi/Makefile dlls/shlwapi/tests/Makefile dlls/snmpapi/Makefile dlls/sti/Makefile dlls/tapi32/Makefile dlls/ttydrv/Makefile dlls/twain/Makefile dlls/url/Makefile dlls/urlmon/Makefile dlls/urlmon/tests/Makefile dlls/user/Makefile dlls/user/tests/Makefile dlls/version/Makefile dlls/win32s/Makefile dlls/winaspi/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/winenas/Makefile dlls/winmm/winejack/Makefile dlls/winmm/wineoss/Makefile dlls/winnls/Makefile dlls/winsock/Makefile dlls/winsock/tests/Makefile dlls/winspool/Makefile dlls/winspool/tests/Makefile dlls/wintab32/Makefile dlls/wintrust/Makefile dlls/wow32/Makefile dlls/wsock32/Makefile dlls/x11drv/Makefile documentation/Makefile include/Makefile libs/Makefile libs/port/Makefile libs/unicode/Makefile libs/uuid/Makefile libs/wine/Makefile libs/wpp/Makefile miscemu/Makefile programs/Makefile programs/avitools/Makefile programs/clock/Makefile programs/cmdlgtst/Makefile programs/control/Makefile programs/expand/Makefile programs/notepad/Makefile programs/osversioncheck/Makefile programs/progman/Makefile programs/regapi/Makefile programs/regedit/Makefile programs/regsvr32/Makefile programs/regtest/Makefile programs/rpcss/Makefile programs/rundll32/Makefile programs/start/Makefile programs/uninstaller/Makefile programs/view/Makefile programs/wcmd/Makefile programs/wineboot/Makefile programs/winecfg/Makefile programs/wineconsole/Makefile programs/winedbg/Makefile programs/winefile/Makefile programs/winemenubuilder/Makefile programs/winemine/Makefile programs/winepath/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/wmc/Makefile tools/wrc/Makefile"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016482
Alexandre Julliard626f4252000-11-10 23:35:20 +000016483
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016484cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016485# This file is a shell script that caches the results of configure
16486# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016487# scripts and configure runs, see configure's option --config-cache.
16488# It is not useful on other systems. If it contains results you don't
16489# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016490#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016491# config.status only pays attention to the cache file if you give it
16492# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016493#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016494# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016495# loading this file, other *unset* `ac_cv_foo' will be assigned the
16496# following values.
16497
16498_ACEOF
16499
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000016500# The following way of writing the cache mishandles newlines in values,
16501# but we know of no workaround that is simple, portable, and efficient.
16502# So, don't put newlines in cache variables' values.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016503# Ultrix sh set writes to stderr and can't be redirected directly,
16504# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016505{
16506 (set) 2>&1 |
16507 case `(ac_space=' '; set | grep ac_space) 2>&1` in
16508 *ac_space=\ *)
16509 # `set' does not quote correctly, so add quotes (double-quote
16510 # substitution turns \\\\ into \\, and sed turns \\ into \).
16511 sed -n \
16512 "s/'/'\\\\''/g;
16513 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16514 ;;
16515 *)
16516 # `set' quotes correctly as required by POSIX, so do not add quotes.
16517 sed -n \
16518 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
16519 ;;
16520 esac;
16521} |
16522 sed '
16523 t clear
16524 : clear
16525 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16526 t end
16527 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16528 : end' >>confcache
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016529if diff $cache_file confcache >/dev/null 2>&1; then :; else
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016530 if test -w $cache_file; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016531 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
16532 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016533 else
16534 echo "not updating unwritable cache $cache_file"
16535 fi
16536fi
16537rm -f confcache
16538
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016539test "x$prefix" = xNONE && prefix=$ac_default_prefix
16540# Let make expand exec_prefix.
16541test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16542
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016543# VPATH may cause trouble with some makes, so we remove $(srcdir),
16544# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16545# trailing colons and then remove the whole line if VPATH becomes empty
16546# (actually we leave an empty line to preserve line numbers).
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016547if test "x$srcdir" = x.; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016548 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16549s/:*\$(srcdir):*/:/;
16550s/:*\${srcdir}:*/:/;
16551s/:*@srcdir@:*/:/;
16552s/^\([^=]*=[ ]*\):*/\1/;
16553s/:*$//;
16554s/^[^=]*=[ ]*$//;
16555}'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016556fi
16557
Alexandre Julliard18f92e71996-07-17 20:02:21 +000016558DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016559
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016560ac_libobjs=
16561ac_ltlibobjs=
16562for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16563 # 1. Remove the extension, and $U if already installed.
16564 ac_i=`echo "$ac_i" |
16565 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
16566 # 2. Add them.
16567 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
16568 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
16569done
16570LIBOBJS=$ac_libobjs
16571
16572LTLIBOBJS=$ac_ltlibobjs
16573
16574
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016575
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016576: ${CONFIG_STATUS=./config.status}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016577ac_clean_files_save=$ac_clean_files
16578ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016579{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016580echo "$as_me: creating $CONFIG_STATUS" >&6;}
16581cat >$CONFIG_STATUS <<_ACEOF
16582#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016583# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016584# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016585# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016586# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016587
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016588debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016589ac_cs_recheck=false
16590ac_cs_silent=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016591SHELL=\${CONFIG_SHELL-$SHELL}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016592_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016593
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016594cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016595## --------------------- ##
16596## M4sh Initialization. ##
16597## --------------------- ##
16598
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016599# Be Bourne compatible
16600if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16601 emulate sh
16602 NULLCMD=:
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016603 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
16604 # is contrary to our usage. Disable this feature.
16605 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016606elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
16607 set -o posix
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000016608fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016609
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016610# Support unset when possible.
16611if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
16612 as_unset=unset
16613else
16614 as_unset=false
16615fi
16616
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016617
16618# Work around bugs in pre-3.0 UWIN ksh.
16619$as_unset ENV MAIL MAILPATH
16620PS1='$ '
16621PS2='> '
16622PS4='+ '
16623
16624# NLS nuisances.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016625for as_var in \
16626 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
16627 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
16628 LC_TELEPHONE LC_TIME
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016629do
16630 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
16631 eval $as_var=C; export $as_var
16632 else
16633 $as_unset $as_var
16634 fi
16635done
16636
16637# Required to use basename.
16638if expr a : '\(a\)' >/dev/null 2>&1; then
16639 as_expr=expr
16640else
16641 as_expr=false
16642fi
16643
16644if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
16645 as_basename=basename
16646else
16647 as_basename=false
16648fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016649
16650
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016651# Name of the executable.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016652as_me=`$as_basename "$0" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016653$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16654 X"$0" : 'X\(//\)$' \| \
16655 X"$0" : 'X\(/\)$' \| \
16656 . : '\(.\)' 2>/dev/null ||
16657echo X/"$0" |
16658 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
16659 /^X\/\(\/\/\)$/{ s//\1/; q; }
16660 /^X\/\(\/\).*/{ s//\1/; q; }
16661 s/.*/./; q'`
16662
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016663
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016664# PATH needs CR, and LINENO needs CR and PATH.
16665# Avoid depending upon Character Ranges.
16666as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16667as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16668as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16669as_cr_digits='0123456789'
16670as_cr_alnum=$as_cr_Letters$as_cr_digits
16671
16672# The user is always right.
16673if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016674 echo "#! /bin/sh" >conf$$.sh
16675 echo "exit 0" >>conf$$.sh
16676 chmod +x conf$$.sh
16677 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016678 PATH_SEPARATOR=';'
16679 else
16680 PATH_SEPARATOR=:
16681 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016682 rm -f conf$$.sh
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016683fi
16684
16685
16686 as_lineno_1=$LINENO
16687 as_lineno_2=$LINENO
16688 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16689 test "x$as_lineno_1" != "x$as_lineno_2" &&
16690 test "x$as_lineno_3" = "x$as_lineno_2" || {
16691 # Find who we are. Look in the path if we contain no path at all
16692 # relative or not.
16693 case $0 in
16694 *[\\/]* ) as_myself=$0 ;;
16695 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16696for as_dir in $PATH
16697do
16698 IFS=$as_save_IFS
16699 test -z "$as_dir" && as_dir=.
16700 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16701done
16702
16703 ;;
16704 esac
16705 # We did not find ourselves, most probably we were run as `sh COMMAND'
16706 # in which case we are not to be found in the path.
16707 if test "x$as_myself" = x; then
16708 as_myself=$0
16709 fi
16710 if test ! -f "$as_myself"; then
16711 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
16712echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
16713 { (exit 1); exit 1; }; }
16714 fi
16715 case $CONFIG_SHELL in
16716 '')
16717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16718for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
16719do
16720 IFS=$as_save_IFS
16721 test -z "$as_dir" && as_dir=.
16722 for as_base in sh bash ksh sh5; do
16723 case $as_dir in
16724 /*)
16725 if ("$as_dir/$as_base" -c '
16726 as_lineno_1=$LINENO
16727 as_lineno_2=$LINENO
16728 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
16729 test "x$as_lineno_1" != "x$as_lineno_2" &&
16730 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016731 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
16732 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016733 CONFIG_SHELL=$as_dir/$as_base
16734 export CONFIG_SHELL
16735 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
16736 fi;;
16737 esac
16738 done
16739done
16740;;
16741 esac
16742
16743 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
16744 # uniformly replaced by the line number. The first 'sed' inserts a
16745 # line-number line before each line; the second 'sed' does the real
16746 # work. The second script uses 'N' to pair each line-number line
16747 # with the numbered line, and appends trailing '-' during
16748 # substitution so that $LINENO is not a special case at line end.
16749 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
16750 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
16751 sed '=' <$as_myself |
16752 sed '
16753 N
16754 s,$,-,
16755 : loop
16756 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
16757 t loop
16758 s,-$,,
16759 s,^['$as_cr_digits']*\n,,
16760 ' >$as_me.lineno &&
16761 chmod +x $as_me.lineno ||
16762 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
16763echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
16764 { (exit 1); exit 1; }; }
16765
16766 # Don't try to exec as it changes $[0], causing all sort of problems
16767 # (the dirname of $[0] is not the place where we might find the
16768 # original and so on. Autoconf is especially sensible to this).
16769 . ./$as_me.lineno
16770 # Exit status is that of the last command.
16771 exit
16772}
16773
16774
16775case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
16776 *c*,-n*) ECHO_N= ECHO_C='
16777' ECHO_T=' ' ;;
16778 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
16779 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
16780esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016781
16782if expr a : '\(a\)' >/dev/null 2>&1; then
16783 as_expr=expr
16784else
16785 as_expr=false
16786fi
16787
16788rm -f conf$$ conf$$.exe conf$$.file
16789echo >conf$$.file
16790if ln -s conf$$.file conf$$ 2>/dev/null; then
16791 # We could just check for DJGPP; but this test a) works b) is more generic
16792 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
16793 if test -f conf$$.exe; then
16794 # Don't use ln at all; we don't have any links
16795 as_ln_s='cp -p'
16796 else
16797 as_ln_s='ln -s'
16798 fi
16799elif ln conf$$.file conf$$ 2>/dev/null; then
16800 as_ln_s=ln
16801else
16802 as_ln_s='cp -p'
16803fi
16804rm -f conf$$ conf$$.exe conf$$.file
16805
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016806if mkdir -p . 2>/dev/null; then
16807 as_mkdir_p=:
16808else
16809 as_mkdir_p=false
16810fi
16811
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016812as_executable_p="test -f"
16813
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016814# Sed expression to map a string onto a valid CPP name.
16815as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016816
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016817# Sed expression to map a string onto a valid variable name.
16818as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
16819
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016820
16821# IFS
16822# We need space, tab and new line, in precisely that order.
16823as_nl='
16824'
16825IFS=" $as_nl"
16826
16827# CDPATH.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016828$as_unset CDPATH
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016829
16830exec 6>&1
16831
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016832# Open the log real soon, to keep \$[0] and so on meaningful, and to
16833# report actual input values of CONFIG_FILES etc. instead of their
16834# values after options handling. Logging --version etc. is OK.
16835exec 5>>config.log
16836{
16837 echo
16838 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16839## Running $as_me. ##
16840_ASBOX
16841} >&5
16842cat >&5 <<_CSEOF
16843
Alexandre Julliarde4cc8c02003-07-09 23:30:36 +000016844This file was extended by Wine $as_me 20030709, which was
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016845generated by GNU Autoconf 2.57. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016846
16847 CONFIG_FILES = $CONFIG_FILES
16848 CONFIG_HEADERS = $CONFIG_HEADERS
16849 CONFIG_LINKS = $CONFIG_LINKS
16850 CONFIG_COMMANDS = $CONFIG_COMMANDS
16851 $ $0 $@
16852
16853_CSEOF
16854echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
16855echo >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016856_ACEOF
16857
16858# Files that config.status was made for.
16859if test -n "$ac_config_files"; then
16860 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
16861fi
16862
16863if test -n "$ac_config_headers"; then
16864 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
16865fi
16866
16867if test -n "$ac_config_links"; then
16868 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
16869fi
16870
16871if test -n "$ac_config_commands"; then
16872 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
16873fi
16874
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016875cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016876
16877ac_cs_usage="\
16878\`$as_me' instantiates files from templates according to the
16879current configuration.
16880
16881Usage: $0 [OPTIONS] [FILE]...
16882
16883 -h, --help print this help, then exit
16884 -V, --version print version number, then exit
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016885 -q, --quiet do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016886 -d, --debug don't remove temporary files
16887 --recheck update $as_me by reconfiguring in the same conditions
16888 --file=FILE[:TEMPLATE]
16889 instantiate the configuration file FILE
16890 --header=FILE[:TEMPLATE]
16891 instantiate the configuration header FILE
16892
16893Configuration files:
16894$config_files
16895
16896Configuration headers:
16897$config_headers
16898
16899Configuration commands:
16900$config_commands
16901
16902Report bugs to <bug-autoconf@gnu.org>."
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016903_ACEOF
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000016904
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016905cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016906ac_cs_version="\\
Alexandre Julliarde4cc8c02003-07-09 23:30:36 +000016907Wine config.status 20030709
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016908configured by $0, generated by GNU Autoconf 2.57,
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016909 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016910
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016911Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
16912Free Software Foundation, Inc.
16913This config.status script is free software; the Free Software Foundation
16914gives unlimited permission to copy, distribute and modify it."
16915srcdir=$srcdir
16916INSTALL="$INSTALL"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016917_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016918
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016919cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016920# If no file are specified by the user, then we need to provide default
16921# value. By we need to know if files were specified by the user.
16922ac_need_defaults=:
16923while test $# != 0
16924do
16925 case $1 in
16926 --*=*)
16927 ac_option=`expr "x$1" : 'x\([^=]*\)='`
16928 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016929 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016930 ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016931 -*)
16932 ac_option=$1
16933 ac_optarg=$2
16934 ac_shift=shift
16935 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016936 *) # This is not an option, so the user has probably given explicit
16937 # arguments.
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016938 ac_option=$1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016939 ac_need_defaults=false;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016940 esac
16941
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016942 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016943 # Handling of the options.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016944_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016945cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016946 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16947 ac_cs_recheck=: ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016948 --version | --vers* | -V )
16949 echo "$ac_cs_version"; exit 0 ;;
16950 --he | --h)
16951 # Conflict between --help and --header
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016952 { { echo "$as_me:$LINENO: error: ambiguous option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016953Try \`$0 --help' for more information." >&5
16954echo "$as_me: error: ambiguous option: $1
16955Try \`$0 --help' for more information." >&2;}
16956 { (exit 1); exit 1; }; };;
16957 --help | --hel | -h )
16958 echo "$ac_cs_usage"; exit 0 ;;
16959 --debug | --d* | -d )
16960 debug=: ;;
16961 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016962 $ac_shift
16963 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016964 ac_need_defaults=false;;
16965 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016966 $ac_shift
16967 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016968 ac_need_defaults=false;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016969 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16970 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16971 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016972
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016973 # This is an error.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016974 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016975Try \`$0 --help' for more information." >&5
16976echo "$as_me: error: unrecognized option: $1
16977Try \`$0 --help' for more information." >&2;}
16978 { (exit 1); exit 1; }; } ;;
16979
16980 *) ac_config_targets="$ac_config_targets $1" ;;
16981
16982 esac
16983 shift
16984done
16985
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016986ac_configure_extra_args=
16987
16988if $ac_cs_silent; then
16989 exec 6>/dev/null
16990 ac_configure_extra_args="$ac_configure_extra_args --silent"
16991fi
16992
16993_ACEOF
16994cat >>$CONFIG_STATUS <<_ACEOF
16995if \$ac_cs_recheck; then
16996 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
16997 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16998fi
16999
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017000_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017001
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017002
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017003
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017004
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017005
17006cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017007for ac_config_target in $ac_config_targets
17008do
17009 case "$ac_config_target" in
17010 # Handling of arguments.
17011 "Make.rules" ) CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
17012 "dlls/Makedll.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000017013 "dlls/Maketest.rules" ) CONFIG_FILES="$CONFIG_FILES dlls/Maketest.rules" ;;
Alexandre Julliard117436e2003-05-01 00:39:29 +000017014 "libs/Makelib.rules" ) CONFIG_FILES="$CONFIG_FILES libs/Makelib.rules" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017015 "programs/Makeprog.rules" ) CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
17016 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017017 "dlls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/Makefile" ;;
17018 "dlls/advapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000017019 "dlls/advapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/advapi32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017020 "dlls/avicap32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avicap32/Makefile" ;;
17021 "dlls/avifil32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/avifil32/Makefile" ;;
Patrik Stridvalld1447fa2002-11-19 00:47:12 +000017022 "dlls/cabinet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/cabinet/Makefile" ;;
John K. Hohm34909c22002-05-14 21:50:56 +000017023 "dlls/comcat/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comcat/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017024 "dlls/comctl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/Makefile" ;;
Uwe Bonnes2c4fd422003-05-15 23:58:48 +000017025 "dlls/comctl32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/comctl32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017026 "dlls/commdlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/commdlg/Makefile" ;;
17027 "dlls/crtdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crtdll/Makefile" ;;
17028 "dlls/crypt32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/crypt32/Makefile" ;;
Dmitry Timoshkov5a23a002003-01-02 19:34:14 +000017029 "dlls/ctl3d/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ctl3d/Makefile" ;;
Sylvain Petreolle3a99d8b2002-06-25 23:23:03 +000017030 "dlls/d3d8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d8/Makefile" ;;
Alexandre Julliardaa1bdc42003-07-01 01:11:13 +000017031 "dlls/d3d9/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3d9/Makefile" ;;
Enrico Horneaae7052003-01-24 01:08:15 +000017032 "dlls/d3dim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dim/Makefile" ;;
Raphael Junqueirae31ae922002-12-17 01:15:15 +000017033 "dlls/d3dx8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/d3dx8/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017034 "dlls/dciman32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dciman32/Makefile" ;;
17035 "dlls/ddraw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ddraw/Makefile" ;;
17036 "dlls/devenum/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/devenum/Makefile" ;;
17037 "dlls/dinput/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput/Makefile" ;;
Ove Kaavend2d08f02002-06-14 00:39:44 +000017038 "dlls/dinput8/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dinput8/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000017039 "dlls/dmband/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmband/Makefile" ;;
17040 "dlls/dmcompos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmcompos/Makefile" ;;
17041 "dlls/dmime/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmime/Makefile" ;;
17042 "dlls/dmloader/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmloader/Makefile" ;;
17043 "dlls/dmscript/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmscript/Makefile" ;;
17044 "dlls/dmstyle/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmstyle/Makefile" ;;
17045 "dlls/dmsynth/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmsynth/Makefile" ;;
Rok Mandeljc2d04be72003-03-21 00:42:38 +000017046 "dlls/dmusic/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000017047 "dlls/dmusic32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dmusic32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017048 "dlls/dplay/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplay/Makefile" ;;
17049 "dlls/dplayx/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dplayx/Makefile" ;;
Rok Mandeljc3dec4c52003-04-08 03:56:04 +000017050 "dlls/dpnhpast/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dpnhpast/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017051 "dlls/dsound/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/Makefile" ;;
Francois Gougetd523a452002-12-05 19:19:41 +000017052 "dlls/dsound/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/dsound/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017053 "dlls/gdi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/Makefile" ;;
Patrik Stridvall928ecb42002-10-02 19:58:27 +000017054 "dlls/gdi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/gdi/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017055 "dlls/glu32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/glu32/Makefile" ;;
17056 "dlls/icmp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/icmp/Makefile" ;;
17057 "dlls/imagehlp/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imagehlp/Makefile" ;;
17058 "dlls/imm32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/imm32/Makefile" ;;
Juan Lang38fa5ad2003-05-13 03:32:20 +000017059 "dlls/iphlpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/iphlpapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017060 "dlls/kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000017061 "dlls/kernel/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/kernel/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017062 "dlls/lzexpand/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/lzexpand/Makefile" ;;
17063 "dlls/mapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mapi32/Makefile" ;;
17064 "dlls/mpr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mpr/Makefile" ;;
17065 "dlls/msacm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/Makefile" ;;
Hidenori Takeshima0307f6d2002-03-23 20:18:11 +000017066 "dlls/msacm/imaadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/imaadp32/Makefile" ;;
Eric Pouechbed67fc2002-05-22 02:00:05 +000017067 "dlls/msacm/msadp32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msadp32/Makefile" ;;
Hidenori Takeshimabcb9c462002-03-22 19:16:10 +000017068 "dlls/msacm/msg711/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/msg711/Makefile" ;;
Eric Pouechb706b232002-06-04 17:53:46 +000017069 "dlls/msacm/winemp3/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msacm/winemp3/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017070 "dlls/msdmo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msdmo/Makefile" ;;
Mike McCormack6386edc2003-08-13 01:27:48 +000017071 "dlls/msi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017072 "dlls/msimg32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msimg32/Makefile" ;;
Mike McCormackf6be0442002-04-08 23:56:14 +000017073 "dlls/msisys/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msisys/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017074 "dlls/msnet32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msnet32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017075 "dlls/msvcrt/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/Makefile" ;;
Uwe Bonnesa768fa32002-10-30 23:49:03 +000017076 "dlls/msvcrt/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017077 "dlls/msvcrt20/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrt20/Makefile" ;;
Adam Gundy19a15132003-04-04 19:37:57 +000017078 "dlls/msvcrtd/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvcrtd/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017079 "dlls/msvideo/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/Makefile" ;;
Michael Günnewig288b8ee2002-10-08 00:40:05 +000017080 "dlls/msvideo/msrle32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/msvideo/msrle32/Makefile" ;;
André Johansen2123c132003-08-02 00:52:02 +000017081 "dlls/mswsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/mswsock/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017082 "dlls/netapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/Makefile" ;;
Andriy Palamarchukb812c902002-09-11 02:35:17 +000017083 "dlls/netapi32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/netapi32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017084 "dlls/ntdll/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/Makefile" ;;
Jon Griffiths1da29712002-08-15 22:08:40 +000017085 "dlls/ntdll/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ntdll/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017086 "dlls/odbc32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/odbc32/Makefile" ;;
17087 "dlls/ole32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ole32/Makefile" ;;
Eric Pouech5caccaf2003-06-23 03:43:00 +000017088 "dlls/oleacc/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleacc/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017089 "dlls/oleaut32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000017090 "dlls/oleaut32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oleaut32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017091 "dlls/olecli/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olecli/Makefile" ;;
17092 "dlls/oledlg/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/oledlg/Makefile" ;;
17093 "dlls/olepro32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olepro32/Makefile" ;;
17094 "dlls/olesvr/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/olesvr/Makefile" ;;
17095 "dlls/opengl32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/opengl32/Makefile" ;;
17096 "dlls/psapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/psapi/Makefile" ;;
17097 "dlls/qcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/qcap/Makefile" ;;
17098 "dlls/quartz/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/quartz/Makefile" ;;
17099 "dlls/rasapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rasapi32/Makefile" ;;
17100 "dlls/richedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/richedit/Makefile" ;;
17101 "dlls/rpcrt4/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/Makefile" ;;
Greg Turnerac89cc22002-10-07 21:54:07 +000017102 "dlls/rpcrt4/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/rpcrt4/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017103 "dlls/serialui/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/serialui/Makefile" ;;
17104 "dlls/setupapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/setupapi/Makefile" ;;
17105 "dlls/shdocvw/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shdocvw/Makefile" ;;
17106 "dlls/shell32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/Makefile" ;;
Andriy Palamarchuk5b5bea02002-08-27 01:34:33 +000017107 "dlls/shell32/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shell32/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017108 "dlls/shfolder/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shfolder/Makefile" ;;
17109 "dlls/shlwapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000017110 "dlls/shlwapi/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/shlwapi/tests/Makefile" ;;
Patrik Stridvall4c692b92002-04-29 18:43:35 +000017111 "dlls/snmpapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/snmpapi/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017112 "dlls/sti/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/sti/Makefile" ;;
17113 "dlls/tapi32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/tapi32/Makefile" ;;
17114 "dlls/ttydrv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/ttydrv/Makefile" ;;
Shi Quan He6b0720f2002-03-21 02:58:39 +000017115 "dlls/twain/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/twain/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017116 "dlls/url/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/url/Makefile" ;;
17117 "dlls/urlmon/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/Makefile" ;;
Patrik Stridvall9398d9c2002-11-12 01:13:10 +000017118 "dlls/urlmon/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/urlmon/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017119 "dlls/user/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000017120 "dlls/user/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/user/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017121 "dlls/version/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/version/Makefile" ;;
17122 "dlls/win32s/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/win32s/Makefile" ;;
17123 "dlls/winaspi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winaspi/Makefile" ;;
17124 "dlls/winedos/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winedos/Makefile" ;;
17125 "dlls/wineps/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wineps/Makefile" ;;
17126 "dlls/wininet/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000017127 "dlls/wininet/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wininet/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017128 "dlls/winmm/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/Makefile" ;;
17129 "dlls/winmm/joystick/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/joystick/Makefile" ;;
17130 "dlls/winmm/mcianim/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcianim/Makefile" ;;
17131 "dlls/winmm/mciavi/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciavi/Makefile" ;;
17132 "dlls/winmm/mcicda/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mcicda/Makefile" ;;
17133 "dlls/winmm/mciseq/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciseq/Makefile" ;;
17134 "dlls/winmm/mciwave/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/mciwave/Makefile" ;;
17135 "dlls/winmm/midimap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/midimap/Makefile" ;;
Francois Gouget4ce28372002-11-04 23:47:49 +000017136 "dlls/winmm/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017137 "dlls/winmm/wavemap/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wavemap/Makefile" ;;
Eric Pouecha120ce02002-06-28 17:40:16 +000017138 "dlls/winmm/winealsa/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winealsa/Makefile" ;;
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000017139 "dlls/winmm/winearts/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winearts/Makefile" ;;
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000017140 "dlls/winmm/wineaudioio/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineaudioio/Makefile" ;;
17141 "dlls/winmm/winenas/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winenas/Makefile" ;;
Chris Morgan4691b182002-12-13 02:26:18 +000017142 "dlls/winmm/winejack/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/winejack/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017143 "dlls/winmm/wineoss/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winmm/wineoss/Makefile" ;;
17144 "dlls/winnls/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winnls/Makefile" ;;
17145 "dlls/winsock/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/Makefile" ;;
Alexandre Julliardedeee892002-08-09 01:22:40 +000017146 "dlls/winsock/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winsock/tests/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017147 "dlls/winspool/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/Makefile" ;;
Stefan Leichter88b11062003-01-15 00:50:48 +000017148 "dlls/winspool/tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/winspool/tests/Makefile" ;;
Patrik Stridvall5caddc72002-12-17 01:49:16 +000017149 "dlls/wintab32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintab32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017150 "dlls/wintrust/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wintrust/Makefile" ;;
17151 "dlls/wow32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wow32/Makefile" ;;
17152 "dlls/wsock32/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/wsock32/Makefile" ;;
17153 "dlls/x11drv/Makefile" ) CONFIG_FILES="$CONFIG_FILES dlls/x11drv/Makefile" ;;
17154 "documentation/Makefile" ) CONFIG_FILES="$CONFIG_FILES documentation/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017155 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
Alexandre Julliard6a9fe362003-03-19 22:09:16 +000017156 "libs/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/Makefile" ;;
17157 "libs/port/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/port/Makefile" ;;
Alexandre Julliard7ab9a712003-03-21 05:06:48 +000017158 "libs/unicode/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/unicode/Makefile" ;;
Alexandre Julliard6692d392003-03-20 01:30:11 +000017159 "libs/uuid/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/uuid/Makefile" ;;
Alexandre Julliard2d1c7902003-03-22 20:40:48 +000017160 "libs/wine/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wine/Makefile" ;;
Alexandre Julliarde1a9b102003-05-01 03:16:21 +000017161 "libs/wpp/Makefile" ) CONFIG_FILES="$CONFIG_FILES libs/wpp/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017162 "miscemu/Makefile" ) CONFIG_FILES="$CONFIG_FILES miscemu/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017163 "programs/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;;
17164 "programs/avitools/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/avitools/Makefile" ;;
17165 "programs/clock/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/clock/Makefile" ;;
17166 "programs/cmdlgtst/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/cmdlgtst/Makefile" ;;
17167 "programs/control/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/control/Makefile" ;;
Alexandre Julliardacfda142002-05-20 19:18:16 +000017168 "programs/expand/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/expand/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017169 "programs/notepad/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/notepad/Makefile" ;;
17170 "programs/osversioncheck/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/osversioncheck/Makefile" ;;
17171 "programs/progman/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/progman/Makefile" ;;
17172 "programs/regapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regapi/Makefile" ;;
Andriy Palamarchuk4e2e1762002-04-11 23:58:40 +000017173 "programs/regedit/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regedit/Makefile" ;;
Andriy Palamarchuk2f0d85c2002-04-29 23:47:39 +000017174 "programs/regsvr32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regsvr32/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017175 "programs/regtest/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/regtest/Makefile" ;;
Alexandre Julliardd77294a2002-12-02 21:17:04 +000017176 "programs/rpcss/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rpcss/Makefile" ;;
Alberto Massari15e8e0a2002-11-15 01:41:20 +000017177 "programs/rundll32/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/rundll32/Makefile" ;;
Dan Kegelba02ae42003-01-21 20:14:36 +000017178 "programs/start/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/start/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017179 "programs/uninstaller/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/uninstaller/Makefile" ;;
17180 "programs/view/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/view/Makefile" ;;
17181 "programs/wcmd/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wcmd/Makefile" ;;
Shachar Shemesh175d0592003-01-04 02:52:05 +000017182 "programs/wineboot/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineboot/Makefile" ;;
Dimitrie O. Paun82ce2cc2003-03-31 19:41:55 +000017183 "programs/winecfg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winecfg/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017184 "programs/wineconsole/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/wineconsole/Makefile" ;;
Alexandre Julliardf264bd32002-09-13 17:54:27 +000017185 "programs/winedbg/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winedbg/Makefile" ;;
Alexandre Julliard65a42162002-06-04 21:29:40 +000017186 "programs/winefile/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winefile/Makefile" ;;
Mike McCormack88090b42003-05-21 18:50:53 +000017187 "programs/winemenubuilder/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemenubuilder/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017188 "programs/winemine/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winemine/Makefile" ;;
Mike Wetherell0d8a9fa2002-05-05 20:31:54 +000017189 "programs/winepath/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winepath/Makefile" ;;
Alexandre Julliardfedc4112003-04-27 00:47:58 +000017190 "programs/winevdm/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winevdm/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017191 "programs/winhelp/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winhelp/Makefile" ;;
17192 "programs/winver/Makefile" ) CONFIG_FILES="$CONFIG_FILES programs/winver/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017193 "server/Makefile" ) CONFIG_FILES="$CONFIG_FILES server/Makefile" ;;
17194 "tools/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
Alexandre Julliard7d4ee772002-07-16 03:20:45 +000017195 "tools/widl/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/widl/Makefile" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017196 "tools/winapi/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winapi/Makefile" ;;
17197 "tools/winebuild/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winebuild/Makefile" ;;
17198 "tools/winedump/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/winedump/Makefile" ;;
17199 "tools/wmc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wmc/Makefile" ;;
17200 "tools/wrc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tools/wrc/Makefile" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017201 "controls" ) CONFIG_COMMANDS="$CONFIG_COMMANDS controls" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017202 "dlls/ddraw/d3ddevice" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/d3ddevice" ;;
17203 "dlls/ddraw/dclipper" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dclipper" ;;
17204 "dlls/ddraw/ddraw" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/ddraw" ;;
17205 "dlls/ddraw/direct3d" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/direct3d" ;;
17206 "dlls/ddraw/dpalette" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dpalette" ;;
17207 "dlls/ddraw/dsurface" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/ddraw/dsurface" ;;
17208 "dlls/dinput/joystick" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/joystick" ;;
17209 "dlls/dinput/keyboard" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/keyboard" ;;
17210 "dlls/dinput/mouse" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/dinput/mouse" ;;
Alexandre Julliard89118562002-03-27 21:13:40 +000017211 "dlls/gdi/enhmfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/enhmfdrv" ;;
17212 "dlls/gdi/mfdrv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi/mfdrv" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017213 "dlls/kernel/messages" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel/messages" ;;
17214 "dlls/user/dde" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/dde" ;;
17215 "dlls/user/resources" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user/resources" ;;
17216 "dlls/wineps/data" ) CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps/data" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017217 "files" ) CONFIG_COMMANDS="$CONFIG_COMMANDS files" ;;
17218 "graphics" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics" ;;
17219 "graphics/x11drv" ) CONFIG_COMMANDS="$CONFIG_COMMANDS graphics/x11drv" ;;
17220 "if1632" ) CONFIG_COMMANDS="$CONFIG_COMMANDS if1632" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017221 "include/wine" ) CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017222 "loader" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader" ;;
17223 "loader/ne" ) CONFIG_COMMANDS="$CONFIG_COMMANDS loader/ne" ;;
17224 "memory" ) CONFIG_COMMANDS="$CONFIG_COMMANDS memory" ;;
17225 "misc" ) CONFIG_COMMANDS="$CONFIG_COMMANDS misc" ;;
17226 "msdos" ) CONFIG_COMMANDS="$CONFIG_COMMANDS msdos" ;;
17227 "objects" ) CONFIG_COMMANDS="$CONFIG_COMMANDS objects" ;;
Alexandre Julliardc72f0b22002-02-28 21:47:58 +000017228 "programs/regapi/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regapi/tests" ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000017229 "programs/regedit/tests" ) CONFIG_COMMANDS="$CONFIG_COMMANDS programs/regedit/tests" ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017230 "relay32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS relay32" ;;
17231 "scheduler" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scheduler" ;;
17232 "win32" ) CONFIG_COMMANDS="$CONFIG_COMMANDS win32" ;;
17233 "windows" ) CONFIG_COMMANDS="$CONFIG_COMMANDS windows" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017234 "include/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017235 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017236echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
17237 { (exit 1); exit 1; }; };;
17238 esac
17239done
17240
17241# If the user did not use the arguments to specify the items to instantiate,
17242# then the envvar interface is used. Set only those that are not.
17243# We use the long form for the default assignment because of an extremely
17244# bizarre bug on SunOS 4.1.3.
17245if $ac_need_defaults; then
17246 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17247 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17248 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17249fi
17250
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017251# Have a temporary directory for convenience. Make it in the build tree
17252# simply because there is no reason to put it here, and in addition,
17253# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017254# Create a temporary directory, and hook for its removal unless debugging.
17255$debug ||
17256{
17257 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
17258 trap '{ (exit 1); exit 1; }' 1 2 13 15
17259}
17260
17261# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017262
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017263{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017264 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017265 test -n "$tmp" && test -d "$tmp"
17266} ||
17267{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017268 tmp=./confstat$$-$RANDOM
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017269 (umask 077 && mkdir $tmp)
17270} ||
17271{
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017272 echo "$me: cannot create a temporary directory in ." >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017273 { (exit 1); exit 1; }
17274}
17275
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017276_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017277
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017278cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017279
17280#
17281# CONFIG_FILES section.
17282#
17283
17284# No need to generate the scripts if there are no CONFIG_FILES.
17285# This happens for instance when ./config.status config.h
17286if test -n "\$CONFIG_FILES"; then
17287 # Protect against being on the right side of a sed subst in config.status.
17288 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
17289 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
17290s,@SHELL@,$SHELL,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017291s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
17292s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
17293s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
17294s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
17295s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
17296s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017297s,@exec_prefix@,$exec_prefix,;t t
17298s,@prefix@,$prefix,;t t
17299s,@program_transform_name@,$program_transform_name,;t t
17300s,@bindir@,$bindir,;t t
17301s,@sbindir@,$sbindir,;t t
17302s,@libexecdir@,$libexecdir,;t t
17303s,@datadir@,$datadir,;t t
17304s,@sysconfdir@,$sysconfdir,;t t
17305s,@sharedstatedir@,$sharedstatedir,;t t
17306s,@localstatedir@,$localstatedir,;t t
17307s,@libdir@,$libdir,;t t
17308s,@includedir@,$includedir,;t t
17309s,@oldincludedir@,$oldincludedir,;t t
17310s,@infodir@,$infodir,;t t
17311s,@mandir@,$mandir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017312s,@build_alias@,$build_alias,;t t
17313s,@host_alias@,$host_alias,;t t
17314s,@target_alias@,$target_alias,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017315s,@DEFS@,$DEFS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017316s,@ECHO_C@,$ECHO_C,;t t
17317s,@ECHO_N@,$ECHO_N,;t t
17318s,@ECHO_T@,$ECHO_T,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017319s,@LIBS@,$LIBS,;t t
Alexandre Julliardc728efc2002-10-02 02:34:09 +000017320s,@WIN16_FILES@,$WIN16_FILES,;t t
17321s,@WIN16_INSTALL@,$WIN16_INSTALL,;t t
Alexandre Julliard6a9cea92003-04-03 02:54:54 +000017322s,@LIBPTHREAD@,$LIBPTHREAD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017323s,@build@,$build,;t t
17324s,@build_cpu@,$build_cpu,;t t
17325s,@build_vendor@,$build_vendor,;t t
17326s,@build_os@,$build_os,;t t
17327s,@host@,$host,;t t
17328s,@host_cpu@,$host_cpu,;t t
17329s,@host_vendor@,$host_vendor,;t t
17330s,@host_os@,$host_os,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017331s,@SET_MAKE@,$SET_MAKE,;t t
17332s,@CC@,$CC,;t t
17333s,@CFLAGS@,$CFLAGS,;t t
17334s,@LDFLAGS@,$LDFLAGS,;t t
17335s,@CPPFLAGS@,$CPPFLAGS,;t t
17336s,@ac_ct_CC@,$ac_ct_CC,;t t
17337s,@EXEEXT@,$EXEEXT,;t t
17338s,@OBJEXT@,$OBJEXT,;t t
17339s,@CPP@,$CPP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000017340s,@TOOLSDIR@,$TOOLSDIR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017341s,@X_CFLAGS@,$X_CFLAGS,;t t
17342s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
17343s,@X_LIBS@,$X_LIBS,;t t
17344s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
17345s,@YACC@,$YACC,;t t
17346s,@LEX@,$LEX,;t t
17347s,@LEXLIB@,$LEXLIB,;t t
17348s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
17349s,@XYACC@,$XYACC,;t t
17350s,@XLEX@,$XLEX,;t t
Marcus Meissner1d4db782003-01-09 00:46:54 +000017351s,@AS@,$AS,;t t
17352s,@ac_ct_AS@,$ac_ct_AS,;t t
Alexandre Julliardeb5f89c2002-05-24 21:22:10 +000017353s,@LD@,$LD,;t t
17354s,@ac_ct_LD@,$ac_ct_LD,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000017355s,@AR@,$AR,;t t
17356s,@ac_ct_AR@,$ac_ct_AR,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017357s,@RANLIB@,$RANLIB,;t t
17358s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000017359s,@STRIP@,$STRIP,;t t
17360s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
17361s,@WINDRES@,$WINDRES,;t t
17362s,@ac_ct_WINDRES@,$ac_ct_WINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017363s,@LN_S@,$LN_S,;t t
Alexandre Julliarddf234a92002-05-22 02:10:39 +000017364s,@LN@,$LN,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017365s,@LDCONFIG@,$LDCONFIG,;t t
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017366s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
17367s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
17368s,@INSTALL_DATA@,$INSTALL_DATA,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017369s,@LINT@,$LINT,;t t
17370s,@LINTFLAGS@,$LINTFLAGS,;t t
Vincent Béron1d8cb6e2002-11-23 01:20:02 +000017371s,@DB2HTML@,$DB2HTML,;t t
17372s,@DB2PDF@,$DB2PDF,;t t
17373s,@DB2PS@,$DB2PS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017374s,@JPEGLIB@,$JPEGLIB,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017375s,@EGREP@,$EGREP,;t t
Marcus Meissner728bedc2003-01-09 06:04:33 +000017376s,@GIFLIB@,$GIFLIB,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017377s,@XLIB@,$XLIB,;t t
17378s,@XFILES@,$XFILES,;t t
17379s,@OPENGLFILES@,$OPENGLFILES,;t t
17380s,@GLU32FILES@,$GLU32FILES,;t t
Lionel Ulmer56ab2b3e2002-11-15 04:16:38 +000017381s,@OPENGL_LIBS@,$OPENGL_LIBS,;t t
Francois Gouget6f670b12002-10-10 17:54:27 +000017382s,@NASLIBS@,$NASLIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017383s,@CURSESLIBS@,$CURSESLIBS,;t t
Shi Quan He6b0720f2002-03-21 02:58:39 +000017384s,@sane_devel@,$sane_devel,;t t
17385s,@SANELIBS@,$SANELIBS,;t t
17386s,@SANEINCL@,$SANEINCL,;t t
Alexandre Julliard4ee82902003-06-20 21:38:10 +000017387s,@ICULIBS@,$ICULIBS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017388s,@ft_devel@,$ft_devel,;t t
17389s,@ft_devel2@,$ft_devel2,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017390s,@FREETYPEINCL@,$FREETYPEINCL,;t t
Chris Morgan9b0ba7c2002-03-21 01:38:19 +000017391s,@ARTSCCONFIG@,$ARTSCCONFIG,;t t
17392s,@ARTSLIBS@,$ARTSLIBS,;t t
17393s,@ARTSINCL@,$ARTSINCL,;t t
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000017394s,@ALSALIBS@,$ALSALIBS,;t t
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000017395s,@AUDIOIOLIBS@,$AUDIOIOLIBS,;t t
Alexandre Julliardfc094232003-04-14 21:46:41 +000017396s,@EXTRACFLAGS@,$EXTRACFLAGS,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000017397s,@DLLEXT@,$DLLEXT,;t t
17398s,@DLLFLAGS@,$DLLFLAGS,;t t
17399s,@DLLIBS@,$DLLIBS,;t t
17400s,@LDDLLFLAGS@,$LDDLLFLAGS,;t t
17401s,@LDSHARED@,$LDSHARED,;t t
Alexandre Julliardada5e652002-12-12 22:03:14 +000017402s,@LIBEXT@,$LIBEXT,;t t
17403s,@IMPLIBEXT@,$IMPLIBEXT,;t t
17404s,@DLLTOOL@,$DLLTOOL,;t t
17405s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017406s,@DLLWRAP@,$DLLWRAP,;t t
Alexandre Julliardfc01b722002-05-12 03:16:39 +000017407s,@ac_ct_DLLWRAP@,$ac_ct_DLLWRAP,;t t
Alexandre Julliard4d52d372003-03-24 19:33:20 +000017408s,@LDEXECFLAGS@,$LDEXECFLAGS,;t t
Alexandre Julliardc3c587e2002-09-06 19:46:00 +000017409s,@CROSSTEST@,$CROSSTEST,;t t
17410s,@CROSSCC@,$CROSSCC,;t t
Alexandre Julliard21ee3292003-04-21 22:52:31 +000017411s,@CROSSWINDRES@,$CROSSWINDRES,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017412s,@LDPATH@,$LDPATH,;t t
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000017413s,@CRTLIBS@,$CRTLIBS,;t t
Alexandre Julliard67e8dc62002-05-20 18:29:58 +000017414s,@LDD@,$LDD,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017415s,@ALLOCA@,$ALLOCA,;t t
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017416s,@LIBOBJS@,$LIBOBJS,;t t
17417s,@LTLIBOBJS@,$LTLIBOBJS,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017418/@MAKE_RULES@/r $MAKE_RULES
17419s,@MAKE_RULES@,,;t t
17420/@MAKE_DLL_RULES@/r $MAKE_DLL_RULES
17421s,@MAKE_DLL_RULES@,,;t t
Alexandre Julliardedeee892002-08-09 01:22:40 +000017422/@MAKE_TEST_RULES@/r $MAKE_TEST_RULES
17423s,@MAKE_TEST_RULES@,,;t t
Alexandre Julliard117436e2003-05-01 00:39:29 +000017424/@MAKE_LIB_RULES@/r $MAKE_LIB_RULES
17425s,@MAKE_LIB_RULES@,,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017426/@MAKE_PROG_RULES@/r $MAKE_PROG_RULES
17427s,@MAKE_PROG_RULES@,,;t t
17428CEOF
17429
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017430_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017431
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017432 cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017433 # Split the substitutions into bite-sized pieces for seds with
17434 # small command number limits, like on Digital OSF/1 and HP-UX.
17435 ac_max_sed_lines=48
17436 ac_sed_frag=1 # Number of current file.
17437 ac_beg=1 # First line for current file.
17438 ac_end=$ac_max_sed_lines # Line after last line for current file.
17439 ac_more_lines=:
17440 ac_sed_cmds=
17441 while $ac_more_lines; do
17442 if test $ac_beg -gt 1; then
17443 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17444 else
17445 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
17446 fi
17447 if test ! -s $tmp/subs.frag; then
17448 ac_more_lines=false
17449 else
17450 # The purpose of the label and of the branching condition is to
17451 # speed up the sed processing (if there are no `@' at all, there
17452 # is no need to browse any of the substitutions).
17453 # These are the two extra sed commands mentioned above.
17454 (echo ':t
17455 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
17456 if test -z "$ac_sed_cmds"; then
17457 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
17458 else
17459 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
17460 fi
17461 ac_sed_frag=`expr $ac_sed_frag + 1`
17462 ac_beg=$ac_end
17463 ac_end=`expr $ac_end + $ac_max_sed_lines`
17464 fi
17465 done
17466 if test -z "$ac_sed_cmds"; then
17467 ac_sed_cmds=cat
17468 fi
17469fi # test -n "$CONFIG_FILES"
17470
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017471_ACEOF
17472cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017473for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
17474 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
17475 case $ac_file in
17476 - | *:- | *:-:* ) # input from stdin
17477 cat >$tmp/stdin
17478 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17479 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17480 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17481 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17482 * ) ac_file_in=$ac_file.in ;;
17483 esac
17484
17485 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017486 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17487$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017488 X"$ac_file" : 'X\(//\)[^/]' \| \
17489 X"$ac_file" : 'X\(//\)$' \| \
17490 X"$ac_file" : 'X\(/\)' \| \
17491 . : '\(.\)' 2>/dev/null ||
17492echo X"$ac_file" |
17493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17494 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17495 /^X\(\/\/\)$/{ s//\1/; q; }
17496 /^X\(\/\).*/{ s//\1/; q; }
17497 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017498 { if $as_mkdir_p; then
17499 mkdir -p "$ac_dir"
17500 else
17501 as_dir="$ac_dir"
17502 as_dirs=
17503 while test ! -d "$as_dir"; do
17504 as_dirs="$as_dir $as_dirs"
17505 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17506$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17507 X"$as_dir" : 'X\(//\)[^/]' \| \
17508 X"$as_dir" : 'X\(//\)$' \| \
17509 X"$as_dir" : 'X\(/\)' \| \
17510 . : '\(.\)' 2>/dev/null ||
17511echo X"$as_dir" |
17512 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17513 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17514 /^X\(\/\/\)$/{ s//\1/; q; }
17515 /^X\(\/\).*/{ s//\1/; q; }
17516 s/.*/./; q'`
17517 done
17518 test ! -n "$as_dirs" || mkdir $as_dirs
17519 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17520echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17521 { (exit 1); exit 1; }; }; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017522
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017523 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017524
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017525if test "$ac_dir" != .; then
17526 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17527 # A "../" for each directory in $ac_dir_suffix.
17528 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
17529else
17530 ac_dir_suffix= ac_top_builddir=
17531fi
17532
17533case $srcdir in
17534 .) # No --srcdir option. We are building in place.
17535 ac_srcdir=.
17536 if test -z "$ac_top_builddir"; then
17537 ac_top_srcdir=.
17538 else
17539 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17540 fi ;;
17541 [\\/]* | ?:[\\/]* ) # Absolute path.
17542 ac_srcdir=$srcdir$ac_dir_suffix;
17543 ac_top_srcdir=$srcdir ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017544 *) # Relative path.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017545 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17546 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17547esac
17548# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17549# absolute.
17550ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017551ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017552ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17553ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17554
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017555
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017556 case $INSTALL in
17557 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017558 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000017559 esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000017560
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017561 if test x"$ac_file" != x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017562 { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017563echo "$as_me: creating $ac_file" >&6;}
17564 rm -f "$ac_file"
17565 fi
17566 # Let's still pretend it is `configure' which instantiates (i.e., don't
17567 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017568 # /* config.h. Generated by config.status. */
17569 if test x"$ac_file" = x-; then
17570 configure_input=
17571 else
17572 configure_input="$ac_file. "
17573 fi
17574 configure_input=$configure_input"Generated from `echo $ac_file_in |
17575 sed 's,.*/,,'` by configure."
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000017576
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017577 # First look for the input files in the build tree, otherwise in the
17578 # src tree.
17579 ac_file_inputs=`IFS=:
17580 for f in $ac_file_in; do
17581 case $f in
17582 -) echo $tmp/stdin ;;
17583 [\\/$]*)
17584 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017585 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017586echo "$as_me: error: cannot find input file: $f" >&2;}
17587 { (exit 1); exit 1; }; }
17588 echo $f;;
17589 *) # Relative
17590 if test -f "$f"; then
17591 # Build tree
17592 echo $f
17593 elif test -f "$srcdir/$f"; then
17594 # Source tree
17595 echo $srcdir/$f
17596 else
17597 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017598 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017599echo "$as_me: error: cannot find input file: $f" >&2;}
17600 { (exit 1); exit 1; }; }
17601 fi;;
17602 esac
17603 done` || { (exit 1); exit 1; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017604_ACEOF
17605cat >>$CONFIG_STATUS <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017606 sed "$ac_vpsub
17607$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017608_ACEOF
17609cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017610:t
17611/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17612s,@configure_input@,$configure_input,;t t
17613s,@srcdir@,$ac_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017614s,@abs_srcdir@,$ac_abs_srcdir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017615s,@top_srcdir@,$ac_top_srcdir,;t t
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017616s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
17617s,@builddir@,$ac_builddir,;t t
17618s,@abs_builddir@,$ac_abs_builddir,;t t
17619s,@top_builddir@,$ac_top_builddir,;t t
17620s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017621s,@INSTALL@,$ac_INSTALL,;t t
17622" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
17623 rm -f $tmp/stdin
17624 if test x"$ac_file" != x-; then
17625 mv $tmp/out $ac_file
17626 else
17627 cat $tmp/out
17628 rm -f $tmp/out
17629 fi
17630
17631done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017632_ACEOF
17633cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017634
17635#
17636# CONFIG_HEADER section.
17637#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017638
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017639# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
17640# NAME is the cpp macro being defined and VALUE is the value it is being given.
17641#
17642# ac_d sets the value in "#define NAME VALUE" lines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017643ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
17644ac_dB='[ ].*$,\1#\2'
17645ac_dC=' '
17646ac_dD=',;t'
17647# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
17648ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
17649ac_uB='$,\1#\2define\3'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017650ac_uC=' '
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017651ac_uD=',;t'
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017652
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017653for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000017654 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017655 case $ac_file in
17656 - | *:- | *:-:* ) # input from stdin
17657 cat >$tmp/stdin
17658 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17659 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17660 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
17661 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
17662 * ) ac_file_in=$ac_file.in ;;
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017663 esac
17664
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017665 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017666echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017667
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017668 # First look for the input files in the build tree, otherwise in the
17669 # src tree.
17670 ac_file_inputs=`IFS=:
17671 for f in $ac_file_in; do
17672 case $f in
17673 -) echo $tmp/stdin ;;
17674 [\\/$]*)
17675 # Absolute (can't be DOS-style, as IFS=:)
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017676 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017677echo "$as_me: error: cannot find input file: $f" >&2;}
17678 { (exit 1); exit 1; }; }
17679 echo $f;;
17680 *) # Relative
17681 if test -f "$f"; then
17682 # Build tree
17683 echo $f
17684 elif test -f "$srcdir/$f"; then
17685 # Source tree
17686 echo $srcdir/$f
17687 else
17688 # /dev/null tree
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017689 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017690echo "$as_me: error: cannot find input file: $f" >&2;}
17691 { (exit 1); exit 1; }; }
17692 fi;;
17693 esac
17694 done` || { (exit 1); exit 1; }
17695 # Remove the trailing spaces.
17696 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017697
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017698_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017699
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017700# Transform confdefs.h into two sed scripts, `conftest.defines' and
17701# `conftest.undefs', that substitutes the proper values into
17702# config.h.in to produce config.h. The first handles `#define'
17703# templates, and the second `#undef' templates.
17704# And first: Protect against being on the right side of a sed subst in
17705# config.status. Protect against being in an unquoted here document
17706# in config.status.
17707rm -f conftest.defines conftest.undefs
17708# Using a here document instead of a string reduces the quoting nightmare.
17709# Putting comments in sed scripts is not portable.
17710#
17711# `end' is used to avoid that the second main sed command (meant for
17712# 0-ary CPP macros) applies to n-ary macro definitions.
17713# See the Autoconf documentation for `clear'.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017714cat >confdef2sed.sed <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017715s/[\\&,]/\\&/g
17716s,[\\$`],\\&,g
17717t clear
17718: clear
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017719s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017720t end
17721s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
17722: end
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017723_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017724# If some macros were called several times there might be several times
17725# the same #defines, which is useless. Nevertheless, we may not want to
17726# sort them, since we want the *last* AC-DEFINE to be honored.
17727uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
17728sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
17729rm -f confdef2sed.sed
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017730
17731# This sed command replaces #undef with comments. This is necessary, for
17732# example, in the case of _POSIX_SOURCE, which is predefined and required
17733# on some systems where configure will not decide to define it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017734cat >>conftest.undefs <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017735s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017736_ACEOF
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017737
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017738# Break up conftest.defines because some shells have a limit on the size
17739# of here documents, and old seds have small limits too (100 cmds).
17740echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017741echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017742echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
17743echo ' :' >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017744rm -f conftest.tail
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017745while grep . conftest.defines >/dev/null
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017746do
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017747 # Write a limited-size here document to $tmp/defines.sed.
17748 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
17749 # Speed up: don't consider the non `#define' lines.
17750 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
17751 # Work around the forget-to-reset-the-flag bug.
17752 echo 't clr' >>$CONFIG_STATUS
17753 echo ': clr' >>$CONFIG_STATUS
17754 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017755 echo 'CEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017756 sed -f $tmp/defines.sed $tmp/in >$tmp/out
17757 rm -f $tmp/in
17758 mv $tmp/out $tmp/in
17759' >>$CONFIG_STATUS
17760 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
17761 rm -f conftest.defines
17762 mv conftest.tail conftest.defines
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017763done
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017764rm -f conftest.defines
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017765echo ' fi # grep' >>$CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017766echo >>$CONFIG_STATUS
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017767
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017768# Break up conftest.undefs because some shells have a limit on the size
17769# of here documents, and old seds have small limits too (100 cmds).
17770echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
17771rm -f conftest.tail
17772while grep . conftest.undefs >/dev/null
17773do
17774 # Write a limited-size here document to $tmp/undefs.sed.
17775 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
17776 # Speed up: don't consider the non `#undef'
17777 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
17778 # Work around the forget-to-reset-the-flag bug.
17779 echo 't clr' >>$CONFIG_STATUS
17780 echo ': clr' >>$CONFIG_STATUS
17781 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
17782 echo 'CEOF
17783 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
17784 rm -f $tmp/in
17785 mv $tmp/out $tmp/in
17786' >>$CONFIG_STATUS
17787 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
17788 rm -f conftest.undefs
17789 mv conftest.tail conftest.undefs
17790done
17791rm -f conftest.undefs
17792
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017793cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017794 # Let's still pretend it is `configure' which instantiates (i.e., don't
17795 # use $as_me), people would be surprised to read:
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017796 # /* config.h. Generated by config.status. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017797 if test x"$ac_file" = x-; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017798 echo "/* Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017799 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017800 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017801 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017802 cat $tmp/in >>$tmp/config.h
17803 rm -f $tmp/in
17804 if test x"$ac_file" != x-; then
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017805 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017806 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017807echo "$as_me: $ac_file is unchanged" >&6;}
17808 else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017809 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
17810$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017811 X"$ac_file" : 'X\(//\)[^/]' \| \
17812 X"$ac_file" : 'X\(//\)$' \| \
17813 X"$ac_file" : 'X\(/\)' \| \
17814 . : '\(.\)' 2>/dev/null ||
17815echo X"$ac_file" |
17816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17817 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17818 /^X\(\/\/\)$/{ s//\1/; q; }
17819 /^X\(\/\).*/{ s//\1/; q; }
17820 s/.*/./; q'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017821 { if $as_mkdir_p; then
17822 mkdir -p "$ac_dir"
17823 else
17824 as_dir="$ac_dir"
17825 as_dirs=
17826 while test ! -d "$as_dir"; do
17827 as_dirs="$as_dir $as_dirs"
17828 as_dir=`(dirname "$as_dir") 2>/dev/null ||
17829$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17830 X"$as_dir" : 'X\(//\)[^/]' \| \
17831 X"$as_dir" : 'X\(//\)$' \| \
17832 X"$as_dir" : 'X\(/\)' \| \
17833 . : '\(.\)' 2>/dev/null ||
17834echo X"$as_dir" |
17835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17836 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17837 /^X\(\/\/\)$/{ s//\1/; q; }
17838 /^X\(\/\).*/{ s//\1/; q; }
17839 s/.*/./; q'`
17840 done
17841 test ! -n "$as_dirs" || mkdir $as_dirs
17842 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
17843echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
17844 { (exit 1); exit 1; }; }; }
Alexandre Julliard18f92e71996-07-17 20:02:21 +000017845
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017846 rm -f $ac_file
17847 mv $tmp/config.h $ac_file
17848 fi
17849 else
17850 cat $tmp/config.h
17851 rm -f $tmp/config.h
17852 fi
17853done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017854_ACEOF
17855cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017856
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017857#
17858# CONFIG_COMMANDS section.
17859#
17860for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
17861 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
17862 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017863 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
17864$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17865 X"$ac_dest" : 'X\(//\)[^/]' \| \
17866 X"$ac_dest" : 'X\(//\)$' \| \
17867 X"$ac_dest" : 'X\(/\)' \| \
17868 . : '\(.\)' 2>/dev/null ||
17869echo X"$ac_dest" |
17870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
17871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
17872 /^X\(\/\/\)$/{ s//\1/; q; }
17873 /^X\(\/\).*/{ s//\1/; q; }
17874 s/.*/./; q'`
17875 ac_builddir=.
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000017876
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017877if test "$ac_dir" != .; then
17878 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
17879 # A "../" for each directory in $ac_dir_suffix.
17880 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017881else
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017882 ac_dir_suffix= ac_top_builddir=
17883fi
17884
17885case $srcdir in
17886 .) # No --srcdir option. We are building in place.
17887 ac_srcdir=.
17888 if test -z "$ac_top_builddir"; then
17889 ac_top_srcdir=.
17890 else
17891 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
17892 fi ;;
17893 [\\/]* | ?:[\\/]* ) # Absolute path.
17894 ac_srcdir=$srcdir$ac_dir_suffix;
17895 ac_top_srcdir=$srcdir ;;
17896 *) # Relative path.
17897 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
17898 ac_top_srcdir=$ac_top_builddir$srcdir ;;
17899esac
17900# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
17901# absolute.
17902ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000017903ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017904ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
17905ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
17906
17907
17908 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
17909echo "$as_me: executing $ac_dest commands" >&6;}
17910 case $ac_dest in
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017911 controls ) test -d "controls" || ({ echo "$as_me:$LINENO: creating controls" >&5
17912echo "$as_me: creating controls" >&6;} && mkdir "controls") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017913 dlls/ddraw/d3ddevice ) test -d "dlls/ddraw/d3ddevice" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/d3ddevice" >&5
17914echo "$as_me: creating dlls/ddraw/d3ddevice" >&6;} && mkdir "dlls/ddraw/d3ddevice") ;;
17915 dlls/ddraw/dclipper ) test -d "dlls/ddraw/dclipper" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dclipper" >&5
17916echo "$as_me: creating dlls/ddraw/dclipper" >&6;} && mkdir "dlls/ddraw/dclipper") ;;
17917 dlls/ddraw/ddraw ) test -d "dlls/ddraw/ddraw" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/ddraw" >&5
17918echo "$as_me: creating dlls/ddraw/ddraw" >&6;} && mkdir "dlls/ddraw/ddraw") ;;
17919 dlls/ddraw/direct3d ) test -d "dlls/ddraw/direct3d" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/direct3d" >&5
17920echo "$as_me: creating dlls/ddraw/direct3d" >&6;} && mkdir "dlls/ddraw/direct3d") ;;
17921 dlls/ddraw/dpalette ) test -d "dlls/ddraw/dpalette" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dpalette" >&5
17922echo "$as_me: creating dlls/ddraw/dpalette" >&6;} && mkdir "dlls/ddraw/dpalette") ;;
17923 dlls/ddraw/dsurface ) test -d "dlls/ddraw/dsurface" || ({ echo "$as_me:$LINENO: creating dlls/ddraw/dsurface" >&5
17924echo "$as_me: creating dlls/ddraw/dsurface" >&6;} && mkdir "dlls/ddraw/dsurface") ;;
17925 dlls/dinput/joystick ) test -d "dlls/dinput/joystick" || ({ echo "$as_me:$LINENO: creating dlls/dinput/joystick" >&5
17926echo "$as_me: creating dlls/dinput/joystick" >&6;} && mkdir "dlls/dinput/joystick") ;;
17927 dlls/dinput/keyboard ) test -d "dlls/dinput/keyboard" || ({ echo "$as_me:$LINENO: creating dlls/dinput/keyboard" >&5
17928echo "$as_me: creating dlls/dinput/keyboard" >&6;} && mkdir "dlls/dinput/keyboard") ;;
17929 dlls/dinput/mouse ) test -d "dlls/dinput/mouse" || ({ echo "$as_me:$LINENO: creating dlls/dinput/mouse" >&5
17930echo "$as_me: creating dlls/dinput/mouse" >&6;} && mkdir "dlls/dinput/mouse") ;;
17931 dlls/gdi/enhmfdrv ) test -d "dlls/gdi/enhmfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/enhmfdrv" >&5
17932echo "$as_me: creating dlls/gdi/enhmfdrv" >&6;} && mkdir "dlls/gdi/enhmfdrv") ;;
17933 dlls/gdi/mfdrv ) test -d "dlls/gdi/mfdrv" || ({ echo "$as_me:$LINENO: creating dlls/gdi/mfdrv" >&5
17934echo "$as_me: creating dlls/gdi/mfdrv" >&6;} && mkdir "dlls/gdi/mfdrv") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017935 dlls/kernel/messages ) test -d "dlls/kernel/messages" || ({ echo "$as_me:$LINENO: creating dlls/kernel/messages" >&5
17936echo "$as_me: creating dlls/kernel/messages" >&6;} && mkdir "dlls/kernel/messages") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017937 dlls/user/dde ) test -d "dlls/user/dde" || ({ echo "$as_me:$LINENO: creating dlls/user/dde" >&5
17938echo "$as_me: creating dlls/user/dde" >&6;} && mkdir "dlls/user/dde") ;;
17939 dlls/user/resources ) test -d "dlls/user/resources" || ({ echo "$as_me:$LINENO: creating dlls/user/resources" >&5
17940echo "$as_me: creating dlls/user/resources" >&6;} && mkdir "dlls/user/resources") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017941 dlls/wineps/data ) test -d "dlls/wineps/data" || ({ echo "$as_me:$LINENO: creating dlls/wineps/data" >&5
17942echo "$as_me: creating dlls/wineps/data" >&6;} && mkdir "dlls/wineps/data") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017943 files ) test -d "files" || ({ echo "$as_me:$LINENO: creating files" >&5
17944echo "$as_me: creating files" >&6;} && mkdir "files") ;;
17945 graphics ) test -d "graphics" || ({ echo "$as_me:$LINENO: creating graphics" >&5
17946echo "$as_me: creating graphics" >&6;} && mkdir "graphics") ;;
17947 graphics/x11drv ) test -d "graphics/x11drv" || ({ echo "$as_me:$LINENO: creating graphics/x11drv" >&5
17948echo "$as_me: creating graphics/x11drv" >&6;} && mkdir "graphics/x11drv") ;;
17949 if1632 ) test -d "if1632" || ({ echo "$as_me:$LINENO: creating if1632" >&5
17950echo "$as_me: creating if1632" >&6;} && mkdir "if1632") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017951 include/wine ) test -d "include/wine" || ({ echo "$as_me:$LINENO: creating include/wine" >&5
17952echo "$as_me: creating include/wine" >&6;} && mkdir "include/wine") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017953 loader ) test -d "loader" || ({ echo "$as_me:$LINENO: creating loader" >&5
17954echo "$as_me: creating loader" >&6;} && mkdir "loader") ;;
17955 loader/ne ) test -d "loader/ne" || ({ echo "$as_me:$LINENO: creating loader/ne" >&5
17956echo "$as_me: creating loader/ne" >&6;} && mkdir "loader/ne") ;;
17957 memory ) test -d "memory" || ({ echo "$as_me:$LINENO: creating memory" >&5
17958echo "$as_me: creating memory" >&6;} && mkdir "memory") ;;
17959 misc ) test -d "misc" || ({ echo "$as_me:$LINENO: creating misc" >&5
17960echo "$as_me: creating misc" >&6;} && mkdir "misc") ;;
17961 msdos ) test -d "msdos" || ({ echo "$as_me:$LINENO: creating msdos" >&5
17962echo "$as_me: creating msdos" >&6;} && mkdir "msdos") ;;
17963 objects ) test -d "objects" || ({ echo "$as_me:$LINENO: creating objects" >&5
17964echo "$as_me: creating objects" >&6;} && mkdir "objects") ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017965 programs/regapi/tests ) test -d "programs/regapi/tests" || ({ echo "$as_me:$LINENO: creating programs/regapi/tests" >&5
17966echo "$as_me: creating programs/regapi/tests" >&6;} && mkdir "programs/regapi/tests") ;;
Andriy Palamarchukf5aad762002-06-20 23:09:33 +000017967 programs/regedit/tests ) test -d "programs/regedit/tests" || ({ echo "$as_me:$LINENO: creating programs/regedit/tests" >&5
17968echo "$as_me: creating programs/regedit/tests" >&6;} && mkdir "programs/regedit/tests") ;;
Alexandre Julliard9bb05fc2002-05-14 18:36:54 +000017969 relay32 ) test -d "relay32" || ({ echo "$as_me:$LINENO: creating relay32" >&5
17970echo "$as_me: creating relay32" >&6;} && mkdir "relay32") ;;
17971 scheduler ) test -d "scheduler" || ({ echo "$as_me:$LINENO: creating scheduler" >&5
17972echo "$as_me: creating scheduler" >&6;} && mkdir "scheduler") ;;
17973 win32 ) test -d "win32" || ({ echo "$as_me:$LINENO: creating win32" >&5
17974echo "$as_me: creating win32" >&6;} && mkdir "win32") ;;
17975 windows ) test -d "windows" || ({ echo "$as_me:$LINENO: creating windows" >&5
17976echo "$as_me: creating windows" >&6;} && mkdir "windows") ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017977 esac
17978done
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017979_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017980
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017981cat >>$CONFIG_STATUS <<\_ACEOF
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000017982
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017983{ (exit 0); exit 0; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017984_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017985chmod +x $CONFIG_STATUS
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017986ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017987
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017988
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017989# configure is writing to config.log, and then calls config.status.
17990# config.status does its own redirection, appending to config.log.
17991# Unfortunately, on DOS this fails, as config.log is still kept open
17992# by configure, so config.status won't be able to write to it; its
17993# output is simply discarded. So we exec the FD to /dev/null,
17994# effectively closing config.log, so it can be properly (re)opened and
17995# appended to by config.status. When coming back to configure, we
17996# need to make the FD available again.
17997if test "$no_create" != yes; then
17998 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017999 ac_config_status_args=
18000 test "$silent" = yes &&
18001 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018002 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000018003 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018004 exec 5>>config.log
18005 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18006 # would make configure fail if this is the last instruction.
18007 $ac_cs_success || { (exit 1); exit 1; }
18008fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000018009
Alexandre Julliarddaa28862002-04-11 21:54:01 +000018010
Ove Kaaven8b4431f1999-01-23 13:59:11 +000018011if test "$have_x" = "no"
18012then
18013 echo
18014 echo "*** Warning: X development files not found. Wine will be built without"
18015 echo "*** X support, which currently does not work, and would probably not be"
18016 echo "*** what you want anyway. You will need to install devel packages of"
Alexandre Julliard18e4b5e2002-01-04 18:52:40 +000018017 echo "*** Xlib/Xfree86 at the very least."
Ove Kaaven8b4431f1999-01-23 13:59:11 +000018018fi
18019
Lionel Ulmerbedf40b2000-05-12 20:18:14 +000018020if test "$wine_cv_opengl_version_OK" = "no"
Lionel Ulmer5c085701999-02-28 19:48:53 +000018021then
18022 echo
18023 echo "*** Warning: old Mesa headers detected. Wine will be built without Direct3D"
Lionel Ulmer5eee0bf2000-03-24 21:20:33 +000018024 echo "*** support. Consider upgrading your Mesa libraries (http://www.mesa3d.org/)."
18025fi
18026
Ian Pilcher563598d2001-05-16 20:56:05 +000018027if test "$wine_cv_msg_freetype" = "yes"
18028then
18029 echo
18030 echo "*** Note: Your system appears to have the FreeType 2 runtime libraries"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018031 echo "*** installed, but 'freetype-config' is not in your PATH. Install the"
18032 echo "*** freetype-devel package (or its equivalent on your distribution) to"
18033 echo "*** enable Wine to use TrueType fonts."
Ian Pilcher563598d2001-05-16 20:56:05 +000018034fi
18035
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000018036echo
Steffen Moeller1511bae1999-02-17 15:27:03 +000018037echo "Configure finished. Do 'make depend && make' to compile Wine."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000018038echo
18039