blob: e0afaa63f604f4f37585f1d4954774a6ec0ceb18 [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 Julliard24e7b5f2011-06-10 20:08:11 +02003# Generated by GNU Autoconf 2.68 for Wine 1.3.22.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004#
Alexandre Julliard875927f2004-01-02 01:55:29 +00005# Report bugs to <wine-devel@winehq.org>.
6#
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01007#
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010011#
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +000018
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010019# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000022 emulate sh
23 NULLCMD=:
Alexandre Julliardabf50482008-10-31 12:56:53 +010024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Alexandre Julliard11af04e2002-10-10 03:48:04 +000025 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020027 setopt NO_GLOB_SUBST
28else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020029 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010034esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000035fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010036
37
Alexandre Julliardabf50482008-10-31 12:56:53 +010038as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020045# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010052 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020062 case $arg in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010063 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74fi
75
Alexandre Julliarddaa28862002-04-11 21:54:01 +000076# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010078 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000083fi
84
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020085
86# IFS
87# We need space, tab and new line, in precisely that order. Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020091IFS=" "" $as_nl"
92
93# Find who we are. Look in the path if we contain no directory separator.
Alexandre Julliard9797da42011-04-27 17:37:43 +020094as_myself=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020095case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020096 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000098for as_dir in $PATH
99do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200104IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000105
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200106 ;;
107esac
108# We did not find ourselves, most probably we were run as `sh COMMAND'
109# in which case we are not to be found in the path.
110if test "x$as_myself" = x; then
111 as_myself=$0
112fi
113if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +0100114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200115 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200116fi
117
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200118# Unset variables that we do not need and which cause bugs (e.g. in
119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120# suppresses any "Segmentation fault" message there. '((' could
121# trigger a bug in pdksh 5.2.14.
122for as_var in BASH_ENV ENV MAIL MAILPATH
123do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200125done
126PS1='$ '
127PS2='> '
128PS4='+ '
129
130# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100131LC_ALL=C
132export LC_ALL
133LANGUAGE=C
134export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200135
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200136# CDPATH.
137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153esac
154fi
155"
156 as_required="as_fn_return () { (exit \$1); }
157as_fn_success () { as_fn_return 0; }
158as_fn_failure () { as_fn_return 1; }
159as_fn_ret_success () { return 0; }
160as_fn_ret_failure () { return 1; }
161
162exitcode=0
163as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169else
170 exitcode=1; echo positional parameters were not saved.
171fi
172test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177test \$(( 1 + 1 )) = 2 || exit 1"
178 if (eval "$as_required") 2>/dev/null; then :
179 as_have_required=yes
180else
181 as_have_required=no
182fi
183 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184
185else
186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187as_found=false
188for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189do
190 IFS=$as_save_IFS
191 test -z "$as_dir" && as_dir=.
192 as_found=:
193 case $as_dir in #(
194 /*)
195 for as_base in sh bash ksh sh5; do
196 # Try only shells that exist, to save several forks.
197 as_shell=$as_dir/$as_base
198 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
199 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 CONFIG_SHELL=$as_shell as_have_required=yes
201 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
202 break 2
203fi
204fi
205 done;;
206 esac
207 as_found=false
208done
209$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
210 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
211 CONFIG_SHELL=$SHELL as_have_required=yes
212fi; }
213IFS=$as_save_IFS
214
215
216 if test "x$CONFIG_SHELL" != x; then :
217 # We cannot yet assume a decent shell, so we have to provide a
218 # neutralization value for shells without unset; and this also
219 # works around shells that cannot unset nonexistent variables.
Alexandre Julliard9797da42011-04-27 17:37:43 +0200220 # Preserve -v and -x to the replacement shell.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200221 BASH_ENV=/dev/null
222 ENV=/dev/null
223 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 export CONFIG_SHELL
Alexandre Julliard9797da42011-04-27 17:37:43 +0200225 case $- in # ((((
226 *v*x* | *x*v* ) as_opts=-vx ;;
227 *v* ) as_opts=-v ;;
228 *x* ) as_opts=-x ;;
229 * ) as_opts= ;;
230 esac
231 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200232fi
233
234 if test x$as_have_required = xno; then :
235 $as_echo "$0: This script requires a shell more modern than all"
236 $as_echo "$0: the shells that I found on your system."
237 if test x${ZSH_VERSION+set} = xset ; then
238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
239 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
240 else
241 $as_echo "$0: Please tell bug-autoconf@gnu.org and
242$0: wine-devel@winehq.org about your system, including any
243$0: error possibly output before this message. Then install
244$0: a modern shell, or manually run the script under such a
245$0: shell if you do have one."
246 fi
247 exit 1
248fi
249fi
250fi
251SHELL=${CONFIG_SHELL-/bin/sh}
252export SHELL
253# Unset more variables known to interfere with behavior of common tools.
254CLICOLOR_FORCE= GREP_OPTIONS=
255unset CLICOLOR_FORCE GREP_OPTIONS
256
257## --------------------- ##
258## M4sh Shell Functions. ##
259## --------------------- ##
260# as_fn_unset VAR
261# ---------------
262# Portably unset VAR.
263as_fn_unset ()
264{
265 { eval $1=; unset $1;}
266}
267as_unset=as_fn_unset
268
269# as_fn_set_status STATUS
270# -----------------------
271# Set $? to STATUS, without forking.
272as_fn_set_status ()
273{
274 return $1
275} # as_fn_set_status
276
277# as_fn_exit STATUS
278# -----------------
279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
280as_fn_exit ()
281{
282 set +e
283 as_fn_set_status $1
284 exit $1
285} # as_fn_exit
286
287# as_fn_mkdir_p
288# -------------
289# Create "$as_dir" as a directory, including parents if necessary.
290as_fn_mkdir_p ()
291{
292
293 case $as_dir in #(
294 -*) as_dir=./$as_dir;;
295 esac
296 test -d "$as_dir" || eval $as_mkdir_p || {
297 as_dirs=
298 while :; do
299 case $as_dir in #(
300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
301 *) as_qdir=$as_dir;;
302 esac
303 as_dirs="'$as_qdir' $as_dirs"
304 as_dir=`$as_dirname -- "$as_dir" ||
305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
306 X"$as_dir" : 'X\(//\)[^/]' \| \
307 X"$as_dir" : 'X\(//\)$' \| \
308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
309$as_echo X"$as_dir" |
310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\/\)[^/].*/{
315 s//\1/
316 q
317 }
318 /^X\(\/\/\)$/{
319 s//\1/
320 q
321 }
322 /^X\(\/\).*/{
323 s//\1/
324 q
325 }
326 s/.*/./; q'`
327 test -d "$as_dir" && break
328 done
329 test -z "$as_dirs" || eval "mkdir $as_dirs"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200331
332
333} # as_fn_mkdir_p
334# as_fn_append VAR VALUE
335# ----------------------
336# Append the text in VALUE to the end of the definition contained in VAR. Take
337# advantage of any shell optimizations that allow amortized linear growth over
338# repeated appends, instead of the typical quadratic growth present in naive
339# implementations.
340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
341 eval 'as_fn_append ()
342 {
343 eval $1+=\$2
344 }'
345else
346 as_fn_append ()
347 {
348 eval $1=\$$1\$2
349 }
350fi # as_fn_append
351
352# as_fn_arith ARG...
353# ------------------
354# Perform arithmetic evaluation on the ARGs, and store the result in the
355# global $as_val. Take advantage of shells that can avoid forks. The arguments
356# must be portable across $(()) and expr.
357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
358 eval 'as_fn_arith ()
359 {
360 as_val=$(( $* ))
361 }'
362else
363 as_fn_arith ()
364 {
365 as_val=`expr "$@" || test $? -eq 1`
366 }
367fi # as_fn_arith
368
369
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200370# as_fn_error STATUS ERROR [LINENO LOG_FD]
371# ----------------------------------------
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200374# script with STATUS, using 1 if that was 0.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200375as_fn_error ()
376{
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200377 as_status=$1; test $as_status -eq 0 && as_status=1
378 if test "$4"; then
379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200381 fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200382 $as_echo "$as_me: error: $2" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200383 as_fn_exit $as_status
384} # as_fn_error
385
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200386if expr a : '\(a\)' >/dev/null 2>&1 &&
387 test "X`expr 00001 : '.*\(...\)'`" = X001; then
388 as_expr=expr
389else
390 as_expr=false
391fi
392
393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
394 as_basename=basename
395else
396 as_basename=false
397fi
398
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
400 as_dirname=dirname
401else
402 as_dirname=false
403fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200404
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200405as_me=`$as_basename -- "$0" ||
406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
407 X"$0" : 'X\(//\)$' \| \
408 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +0100409$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200410 sed '/^.*\/\([^/][^/]*\)\/*$/{
411 s//\1/
412 q
413 }
414 /^X\/\(\/\/\)$/{
415 s//\1/
416 q
417 }
418 /^X\/\(\/\).*/{
419 s//\1/
420 q
421 }
422 s/.*/./; q'`
423
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200424# Avoid depending upon Character Ranges.
425as_cr_letters='abcdefghijklmnopqrstuvwxyz'
426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
427as_cr_Letters=$as_cr_letters$as_cr_LETTERS
428as_cr_digits='0123456789'
429as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200430
431
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200432 as_lineno_1=$LINENO as_lineno_1a=$LINENO
433 as_lineno_2=$LINENO as_lineno_2a=$LINENO
434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200437 sed -n '
438 p
439 /[$]LINENO/=
440 ' <$as_myself |
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000441 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200442 s/[$]LINENO.*/&-/
443 t lineno
444 b
445 :lineno
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000446 N
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200447 :loop
448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000449 t loop
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200450 s/-\n.*//
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000451 ' >$as_me.lineno &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200452 chmod +x "$as_me.lineno" ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000454
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200457 # original and so on. Autoconf is especially sensitive to this).
458 . "./$as_me.lineno"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000459 # Exit status is that of the last command.
460 exit
461}
462
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200463ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200464case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200465-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200466 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200467 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200468 xy) ECHO_C='\c';;
469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
470 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200471 esac;;
472*)
473 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000474esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000475
476rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200477if test -d conf$$.dir; then
478 rm -f conf$$.dir/conf$$.file
479else
480 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +0100481 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200482fi
Alexandre Julliardabf50482008-10-31 12:56:53 +0100483if (echo >conf$$.file) 2>/dev/null; then
484 if ln -s conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s='ln -s'
486 # ... but there are two gotchas:
487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
489 # In both cases, we have to default to `cp -p'.
490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
491 as_ln_s='cp -p'
492 elif ln conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s=ln
494 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000495 as_ln_s='cp -p'
Alexandre Julliardabf50482008-10-31 12:56:53 +0100496 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000497else
498 as_ln_s='cp -p'
499fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
501rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000502
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000503if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200504 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000505else
Alexandre Julliard875927f2004-01-02 01:55:29 +0000506 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000507 as_mkdir_p=false
508fi
509
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100510if test -x / >/dev/null 2>&1; then
511 as_test_x='test -x'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200512else
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100513 if ls -dL / >/dev/null 2>&1; then
514 as_ls_L_option=L
515 else
516 as_ls_L_option=
517 fi
518 as_test_x='
519 eval sh -c '\''
520 if test -d "$1"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +0100521 test -d "$1/.";
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100522 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200523 case $1 in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +0100524 -*)set "./$1";;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100525 esac;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100527 ???[sx]*):;;*)false;;esac;fi
528 '\'' sh
529 '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200530fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100531as_executable_p=$as_test_x
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000532
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000533# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000535
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000536# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000538
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000539
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +0100540test -n "$DJDIR" || exec 7<&0 </dev/null
541exec 6>&1
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000542
543# Name of the host.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200544# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000545# so uname gets run too.
546ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000548#
549# Initializations.
550#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000551ac_default_prefix=/usr/local
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200552ac_clean_files=
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000553ac_config_libobj_dir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200554LIBOBJS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000555cross_compiling=no
556subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000557MFLAGS=
558MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000559
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000560# Identity of this package.
561PACKAGE_NAME='Wine'
562PACKAGE_TARNAME='wine'
Alexandre Julliard24e7b5f2011-06-10 20:08:11 +0200563PACKAGE_VERSION='1.3.22'
564PACKAGE_STRING='Wine 1.3.22'
Alexandre Julliard875927f2004-01-02 01:55:29 +0000565PACKAGE_BUGREPORT='wine-devel@winehq.org'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200566PACKAGE_URL='http://www.winehq.org'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000567
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000568ac_unique_file="server/atom.c"
569# Factoring default headers for most tests.
570ac_includes_default="\
571#include <stdio.h>
Phil Krylovf0ca5862006-11-05 23:03:46 +0300572#ifdef HAVE_SYS_TYPES_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000573# include <sys/types.h>
574#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300575#ifdef HAVE_SYS_STAT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000576# include <sys/stat.h>
577#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300578#ifdef STDC_HEADERS
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000579# include <stdlib.h>
580# include <stddef.h>
581#else
Phil Krylovf0ca5862006-11-05 23:03:46 +0300582# ifdef HAVE_STDLIB_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000583# include <stdlib.h>
584# endif
585#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300586#ifdef HAVE_STRING_H
587# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000588# include <memory.h>
589# endif
590# include <string.h>
591#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300592#ifdef HAVE_STRINGS_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000593# include <strings.h>
594#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300595#ifdef HAVE_INTTYPES_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000596# include <inttypes.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200597#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300598#ifdef HAVE_STDINT_H
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200599# include <stdint.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000600#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300601#ifdef HAVE_UNISTD_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000602# include <unistd.h>
603#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000604
Alexandre Julliardabf50482008-10-31 12:56:53 +0100605ac_subst_vars='LTLIBOBJS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200606LIBOBJS
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +0100607LINGUAS
Alexandre Julliard9b99cd12011-05-24 11:11:22 +0200608ALL_TEST_RESOURCES
Alexandre Julliardabf50482008-10-31 12:56:53 +0100609LDAPLIBS
610LIBPOLL
611LIBDL
612EXTRA_BINARIES
Alexandre Julliard3e6eab32009-08-13 19:54:31 +0200613MAIN_BINARY
Alexandre Julliardabf50482008-10-31 12:56:53 +0100614SOCKETLIBS
615CRTLIBS
Alexandre Julliardb860c4a2009-09-01 22:36:13 +0200616TOOLSEXT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100617LDPATH
Alexandre Julliard6c142382010-04-11 12:47:30 +0200618UNWINDFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100619BUILTINFLAG
620EXTRACFLAGS
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +0100621LIBKSTAT
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100622LIBOPENAL
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500623LIBMPG123
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +0200624PNGINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100625FONTCONFIGINCL
626CUPSINCL
Alexandre Julliardf60a0f52011-05-02 20:06:49 +0200627OSS4INCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100628ALSALIBS
Aric Stewart2914d652010-10-20 13:55:16 -0500629GSTREAMER_INCL
630GSTREAMER_LIBS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100631ESDLIBS
632ESDINCL
633ESDCONFIG
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +0100634LIBGETTEXTPO
Jacek Caban11ca05f2009-05-29 23:35:13 +0200635ZLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100636FREETYPEINCL
637FREETYPELIBS
638ft_devel
639LCMSLIBS
640RESOLVLIBS
641GPHOTO2INCL
642GPHOTO2LIBS
643gphoto2port_devel
644gphoto2_devel
645SANEINCL
646sane_devel
647GNUTLSINCL
648HALINCL
649XSLTINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100650XML2INCL
651XML2LIBS
652NASLIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +0100653X_EXTRA_LIBS
654X_LIBS
655X_PRE_LIBS
656X_CFLAGS
657XMKMF
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100658LIBPTHREAD
Alexandre Julliard1f254212010-01-23 20:26:49 +0100659CROSSTARGET
Alexandre Julliardabf50482008-10-31 12:56:53 +0100660CROSSCC
Alexandre Julliard7d2e7722010-07-26 12:13:47 +0200661CROSSTEST_DISABLE
Alexandre Julliardb5d824b2010-08-24 13:42:10 +0200662PRELINK
Alexandre Julliardabf50482008-10-31 12:56:53 +0100663CARBONLIB
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +0100664QUICKTIMELIB
Alexandre Julliardfac67412010-12-03 14:16:55 +0100665LIBOPENCL
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100666FRAMEWORK_OPENAL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100667COREAUDIO
Alexandre Julliard45db3482011-03-14 14:25:45 +0100668SECURITYLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100669DISKARBITRATIONLIB
670LDEXECFLAGS
Ken Thomases21137cd2011-01-05 07:25:23 -0600671APPLICATIONSERVICESLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100672IOKITLIB
673COREFOUNDATIONLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100674DLLWRAP
675DLLTOOL
676LDD
677LDRPATH_LOCAL
678LDRPATH_INSTALL
679IMPLIBEXT
680LIBEXT
681LDDLLFLAGS
682LDSHARED
683DLLFLAGS
684DLLEXT
Alexandre Julliard40664c02009-02-11 20:40:58 +0100685CPP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100686OPENGL_LIBS
687XLIB
Andrew Nguyen2eda9c72010-05-25 22:20:14 -0500688MAINTAINER_MODE
Alexandre Julliardabf50482008-10-31 12:56:53 +0100689ICOTOOL
Joel Holdsworth476a2be2010-04-05 11:15:03 +0100690CONVERT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100691RSVG
692PKG_CONFIG
693FONTFORGE
694LINTFLAGS
695LINT
696INSTALL_DATA
697INSTALL_SCRIPT
698INSTALL_PROGRAM
699LDCONFIG
700EGREP
701GREP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100702LN_S
Alexandre Julliardabf50482008-10-31 12:56:53 +0100703RANLIB
704ARFLAGS
705ac_ct_AR
706AR
Alexandre Julliardabf50482008-10-31 12:56:53 +0100707BISON
708FLEX
Alexandre Julliardabf50482008-10-31 12:56:53 +0100709TOOLSDIR
Alexandre Julliard90647772009-08-13 19:48:42 +0200710WOW64_DISABLE
Alexandre Julliard07f77c42009-01-15 21:17:51 +0100711TARGETFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100712CPPBIN
713ac_ct_CXX
714CXXFLAGS
715CXX
716OBJEXT
717EXEEXT
718ac_ct_CC
719CPPFLAGS
720LDFLAGS
721CFLAGS
722CC
723SET_MAKE
Alexandre Julliardabf50482008-10-31 12:56:53 +0100724host_os
725host_vendor
726host_cpu
727host
728build_os
729build_vendor
730build_cpu
731build
Alexandre Julliardabf50482008-10-31 12:56:53 +0100732target_alias
733host_alias
734build_alias
735LIBS
736ECHO_T
737ECHO_N
738ECHO_C
739DEFS
740mandir
741localedir
742libdir
743psdir
744pdfdir
745dvidir
746htmldir
747infodir
748docdir
749oldincludedir
750includedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200762PACKAGE_URL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR
769SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200770ac_subst_files='MAKE_RULES
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +0100771MAKE_TEST_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200772MAKE_DLL_RULES
773MAKE_IMPLIB_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200774MAKE_PROG_RULES'
Alexandre Julliardabf50482008-10-31 12:56:53 +0100775ac_user_opts='
776enable_option_checking
777enable_win16
778enable_win64
Alexandre Julliard35078f42008-11-21 10:16:12 +0100779enable_tests
Alexandre Julliardabf50482008-10-31 12:56:53 +0100780enable_maintainer_mode
781with_alsa
Alexandre Julliardabf50482008-10-31 12:56:53 +0100782with_capi
783with_cms
784with_coreaudio
785with_cups
786with_curses
787with_esd
788with_fontconfig
789with_freetype
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +0100790with_gettextpo
Alexandre Julliardabf50482008-10-31 12:56:53 +0100791with_gphoto
792with_glu
793with_gnutls
Alexandre Julliard6ce32e02009-08-19 15:53:04 +0200794with_gsm
Aric Stewart2914d652010-10-20 13:55:16 -0500795with_gstreamer
Alexandre Julliardabf50482008-10-31 12:56:53 +0100796with_hal
797with_jack
798with_jpeg
799with_ldap
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500800with_mpg123
Alexandre Julliardabf50482008-10-31 12:56:53 +0100801with_nas
Chris Robinson862965f2009-08-25 03:26:35 -0700802with_openal
Peter Urbanec65c84d72010-12-02 23:41:48 +1100803with_opencl
Alexandre Julliardabf50482008-10-31 12:56:53 +0100804with_opengl
805with_openssl
806with_oss
807with_png
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100808with_pthread
Alexandre Julliardabf50482008-10-31 12:56:53 +0100809with_sane
Vincent Povirk73cd5692010-03-08 17:07:29 -0600810with_tiff
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +0100811with_v4l
Alexandre Julliardabf50482008-10-31 12:56:53 +0100812with_xcomposite
813with_xcursor
814with_xinerama
815with_xinput
Alexandre Julliard77e05ce2011-04-13 18:51:50 +0200816with_xinput2
Alexandre Julliardabf50482008-10-31 12:56:53 +0100817with_xml
818with_xrandr
819with_xrender
820with_xshape
821with_xshm
822with_xslt
823with_xxf86vm
Alexandre Julliardba6a41a2011-02-18 13:07:27 +0100824with_zlib
Alexandre Julliardabf50482008-10-31 12:56:53 +0100825with_wine_tools
Alexandre Julliard39a75d32009-08-13 19:45:31 +0200826with_wine64
Eric Pouechbc56c4e2009-08-25 19:33:28 +0200827enable_largefile
Alexandre Julliardabf50482008-10-31 12:56:53 +0100828with_x
829'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200830 ac_precious_vars='build_alias
831host_alias
832target_alias
833CC
834CFLAGS
835LDFLAGS
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100836LIBS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200837CPPFLAGS
838CXX
839CXXFLAGS
840CCC
Alexandre Julliard40664c02009-02-11 20:40:58 +0100841CPP
842XMKMF'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200843
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000844
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000845# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000846ac_init_help=
847ac_init_version=false
Alexandre Julliardabf50482008-10-31 12:56:53 +0100848ac_unrecognized_opts=
849ac_unrecognized_sep=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000850# The variables have the same names as the options, with
851# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000852cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000853exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000854no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000855no_recursion=
856prefix=NONE
857program_prefix=NONE
858program_suffix=NONE
859program_transform_name=s,x,x,
860silent=
861site=
862srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000863verbose=
864x_includes=NONE
865x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000866
867# Installation directory options.
868# These are left unexpanded so users can "make install exec_prefix=/foo"
869# and all the variables that are supposed to be based on exec_prefix
870# by default will actually change.
871# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200872# (The list follows the same order as the GNU Coding Standards.)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000873bindir='${exec_prefix}/bin'
874sbindir='${exec_prefix}/sbin'
875libexecdir='${exec_prefix}/libexec'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200876datarootdir='${prefix}/share'
877datadir='${datarootdir}'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000878sysconfdir='${prefix}/etc'
879sharedstatedir='${prefix}/com'
880localstatedir='${prefix}/var'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000881includedir='${prefix}/include'
882oldincludedir='/usr/include'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200883docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
884infodir='${datarootdir}/info'
885htmldir='${docdir}'
886dvidir='${docdir}'
887pdfdir='${docdir}'
888psdir='${docdir}'
889libdir='${exec_prefix}/lib'
890localedir='${datarootdir}/locale'
891mandir='${datarootdir}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000892
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000893ac_prev=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200894ac_dashdash=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000895for ac_option
896do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000897 # If the previous option needs an argument, assign it.
898 if test -n "$ac_prev"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200899 eval $ac_prev=\$ac_option
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000900 ac_prev=
901 continue
902 fi
903
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200904 case $ac_option in
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200905 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
906 *=) ac_optarg= ;;
907 *) ac_optarg=yes ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200908 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000909
910 # Accept the important Cygnus configure options, so we can diagnose typos.
911
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200912 case $ac_dashdash$ac_option in
913 --)
914 ac_dashdash=yes ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000915
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000916 -bindir | --bindir | --bindi | --bind | --bin | --bi)
917 ac_prev=bindir ;;
918 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000919 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000920
921 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000922 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000923 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000924 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000925
926 -cache-file | --cache-file | --cache-fil | --cache-fi \
927 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
928 ac_prev=cache_file ;;
929 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
930 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000931 cache_file=$ac_optarg ;;
932
933 --config-cache | -C)
934 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000935
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200936 -datadir | --datadir | --datadi | --datad)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000937 ac_prev=datadir ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200938 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000939 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000940
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200941 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
942 | --dataroo | --dataro | --datar)
943 ac_prev=datarootdir ;;
944 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
945 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
946 datarootdir=$ac_optarg ;;
947
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000948 -disable-* | --disable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100949 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000950 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100951 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200952 as_fn_error $? "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100953 ac_useropt_orig=$ac_useropt
954 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
955 case $ac_user_opts in
956 *"
957"enable_$ac_useropt"
958"*) ;;
959 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
960 ac_unrecognized_sep=', ';;
961 esac
962 eval enable_$ac_useropt=no ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200963
964 -docdir | --docdir | --docdi | --doc | --do)
965 ac_prev=docdir ;;
966 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
967 docdir=$ac_optarg ;;
968
969 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
970 ac_prev=dvidir ;;
971 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
972 dvidir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000973
974 -enable-* | --enable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100975 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000976 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200978 as_fn_error $? "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100979 ac_useropt_orig=$ac_useropt
980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
981 case $ac_user_opts in
982 *"
983"enable_$ac_useropt"
984"*) ;;
985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
986 ac_unrecognized_sep=', ';;
987 esac
988 eval enable_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000989
990 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
991 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
992 | --exec | --exe | --ex)
993 ac_prev=exec_prefix ;;
994 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
995 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
996 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000997 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000998
999 -gas | --gas | --ga | --g)
1000 # Obsolete; use --with-gas.
1001 with_gas=yes ;;
1002
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001003 -help | --help | --hel | --he | -h)
1004 ac_init_help=long ;;
1005 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1006 ac_init_help=recursive ;;
1007 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1008 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001009
1010 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001011 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001012 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001013 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001014
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001015 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1016 ac_prev=htmldir ;;
1017 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1018 | --ht=*)
1019 htmldir=$ac_optarg ;;
1020
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001021 -includedir | --includedir | --includedi | --included | --include \
1022 | --includ | --inclu | --incl | --inc)
1023 ac_prev=includedir ;;
1024 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1025 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001026 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001027
1028 -infodir | --infodir | --infodi | --infod | --info | --inf)
1029 ac_prev=infodir ;;
1030 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001031 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001032
1033 -libdir | --libdir | --libdi | --libd)
1034 ac_prev=libdir ;;
1035 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001036 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001037
1038 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1039 | --libexe | --libex | --libe)
1040 ac_prev=libexecdir ;;
1041 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1042 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001043 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001044
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001045 -localedir | --localedir | --localedi | --localed | --locale)
1046 ac_prev=localedir ;;
1047 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1048 localedir=$ac_optarg ;;
1049
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001050 -localstatedir | --localstatedir | --localstatedi | --localstated \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001051 | --localstate | --localstat | --localsta | --localst | --locals)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001052 ac_prev=localstatedir ;;
1053 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001054 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001055 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001056
1057 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1058 ac_prev=mandir ;;
1059 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001060 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001061
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001062 -nfp | --nfp | --nf)
1063 # Obsolete; use --without-fp.
1064 with_fp=no ;;
1065
1066 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001067 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001068 no_create=yes ;;
1069
1070 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1071 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1072 no_recursion=yes ;;
1073
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001074 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1075 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1076 | --oldin | --oldi | --old | --ol | --o)
1077 ac_prev=oldincludedir ;;
1078 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1079 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1080 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001081 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001082
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001083 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1084 ac_prev=prefix ;;
1085 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001086 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001087
1088 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1089 | --program-pre | --program-pr | --program-p)
1090 ac_prev=program_prefix ;;
1091 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1092 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001093 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001094
1095 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1096 | --program-suf | --program-su | --program-s)
1097 ac_prev=program_suffix ;;
1098 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1099 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001100 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001101
1102 -program-transform-name | --program-transform-name \
1103 | --program-transform-nam | --program-transform-na \
1104 | --program-transform-n | --program-transform- \
1105 | --program-transform | --program-transfor \
1106 | --program-transfo | --program-transf \
1107 | --program-trans | --program-tran \
1108 | --progr-tra | --program-tr | --program-t)
1109 ac_prev=program_transform_name ;;
1110 -program-transform-name=* | --program-transform-name=* \
1111 | --program-transform-nam=* | --program-transform-na=* \
1112 | --program-transform-n=* | --program-transform-=* \
1113 | --program-transform=* | --program-transfor=* \
1114 | --program-transfo=* | --program-transf=* \
1115 | --program-trans=* | --program-tran=* \
1116 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001117 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001118
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001119 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1120 ac_prev=pdfdir ;;
1121 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1122 pdfdir=$ac_optarg ;;
1123
1124 -psdir | --psdir | --psdi | --psd | --ps)
1125 ac_prev=psdir ;;
1126 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1127 psdir=$ac_optarg ;;
1128
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001129 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1130 | -silent | --silent | --silen | --sile | --sil)
1131 silent=yes ;;
1132
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001133 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1134 ac_prev=sbindir ;;
1135 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1136 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001137 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001138
1139 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1140 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1141 | --sharedst | --shareds | --shared | --share | --shar \
1142 | --sha | --sh)
1143 ac_prev=sharedstatedir ;;
1144 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1145 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1146 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1147 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001148 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001149
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001150 -site | --site | --sit)
1151 ac_prev=site ;;
1152 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001153 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001154
1155 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1156 ac_prev=srcdir ;;
1157 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001158 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001159
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001160 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1161 | --syscon | --sysco | --sysc | --sys | --sy)
1162 ac_prev=sysconfdir ;;
1163 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1164 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001165 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001166
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001167 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001168 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001169 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001170 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001171
1172 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1173 verbose=yes ;;
1174
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001175 -version | --version | --versio | --versi | --vers | -V)
1176 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001177
1178 -with-* | --with-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001179 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001180 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001182 as_fn_error $? "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001183 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in
1186 *"
1187"with_$ac_useropt"
1188"*) ;;
1189 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1190 ac_unrecognized_sep=', ';;
1191 esac
1192 eval with_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001193
1194 -without-* | --without-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001195 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001196 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001198 as_fn_error $? "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203"with_$ac_useropt"
1204"*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=no ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001209
1210 --x)
1211 # Obsolete; use --with-x.
1212 with_x=yes ;;
1213
1214 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1215 | --x-incl | --x-inc | --x-in | --x-i)
1216 ac_prev=x_includes ;;
1217 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1218 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001219 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001220
1221 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1222 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1223 ac_prev=x_libraries ;;
1224 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1225 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001226 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001227
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001228 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1229Try \`$0 --help' for more information"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001230 ;;
1231
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001232 *=*)
1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1234 # Reject names that are not valid shell variable names.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001235 case $ac_envvar in #(
1236 '' | [0-9]* | *[!_$as_cr_alnum]* )
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001237 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001238 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001239 eval $ac_envvar=\$ac_optarg
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001240 export $ac_envvar ;;
1241
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001242 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001243 # FIXME: should be removed in autoconf 3.0.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001244 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001245 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01001246 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Alexandre Julliard9797da42011-04-27 17:37:43 +02001247 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001248 ;;
1249
1250 esac
1251done
1252
1253if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001254 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001255 as_fn_error $? "missing argument to $ac_option"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001256fi
1257
Alexandre Julliardabf50482008-10-31 12:56:53 +01001258if test -n "$ac_unrecognized_opts"; then
1259 case $enable_option_checking in
1260 no) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001261 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +01001262 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1263 esac
1264fi
1265
1266# Check all directory arguments for consistency.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001267for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1268 datadir sysconfdir sharedstatedir localstatedir includedir \
1269 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1270 libdir localedir mandir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001271do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001272 eval ac_val=\$$ac_var
Alexandre Julliardabf50482008-10-31 12:56:53 +01001273 # Remove trailing slashes.
1274 case $ac_val in
1275 */ )
1276 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1277 eval $ac_var=\$ac_val;;
1278 esac
1279 # Be sure to have absolute directory names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001280 case $ac_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001281 [\\/$]* | ?:[\\/]* ) continue;;
1282 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001283 esac
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001284 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001285done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001286
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001287# There might be people who depend on the old broken behavior: `$host'
1288# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001289# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001290build=$build_alias
1291host=$host_alias
1292target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001293
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001294# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001295if test "x$host_alias" != x; then
1296 if test "x$build_alias" = x; then
1297 cross_compiling=maybe
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001298 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1299 If a cross compiler is detected then cross compile mode will be used" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001300 elif test "x$build_alias" != "x$host_alias"; then
1301 cross_compiling=yes
1302 fi
1303fi
1304
1305ac_tool_prefix=
1306test -n "$host_alias" && ac_tool_prefix=$host_alias-
1307
1308test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001309
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001310
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001311ac_pwd=`pwd` && test -n "$ac_pwd" &&
1312ac_ls_di=`ls -di .` &&
1313ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001314 as_fn_error $? "working directory cannot be determined"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001315test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001316 as_fn_error $? "pwd does not report name of working directory"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001317
1318
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001319# Find the source files, if location was not specified.
1320if test -z "$srcdir"; then
1321 ac_srcdir_defaulted=yes
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001322 # Try the directory containing this script, then the parent directory.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001323 ac_confdir=`$as_dirname -- "$as_myself" ||
1324$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1325 X"$as_myself" : 'X\(//\)[^/]' \| \
1326 X"$as_myself" : 'X\(//\)$' \| \
1327 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1328$as_echo X"$as_myself" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\/\)[^/].*/{
1334 s//\1/
1335 q
1336 }
1337 /^X\(\/\/\)$/{
1338 s//\1/
1339 q
1340 }
1341 /^X\(\/\).*/{
1342 s//\1/
1343 q
1344 }
1345 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001346 srcdir=$ac_confdir
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001347 if test ! -r "$srcdir/$ac_unique_file"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001348 srcdir=..
1349 fi
1350else
1351 ac_srcdir_defaulted=no
1352fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001353if test ! -r "$srcdir/$ac_unique_file"; then
1354 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001355 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001356fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001357ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1358ac_abs_confdir=`(
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001359 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001360 pwd)`
1361# When building in place, set srcdir=.
1362if test "$ac_abs_confdir" = "$ac_pwd"; then
1363 srcdir=.
1364fi
1365# Remove unnecessary trailing slashes from srcdir.
1366# Double slashes in file names in object file debugging info
1367# mess up M-x gdb in Emacs.
1368case $srcdir in
1369*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1370esac
1371for ac_var in $ac_precious_vars; do
1372 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1373 eval ac_env_${ac_var}_value=\$${ac_var}
1374 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1375 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1376done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001377
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001378#
1379# Report the --help message.
1380#
1381if test "$ac_init_help" = "long"; then
1382 # Omit some internal or obsolete options to make the list less imposing.
1383 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001384 cat <<_ACEOF
Alexandre Julliard24e7b5f2011-06-10 20:08:11 +02001385\`configure' configures Wine 1.3.22 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001386
1387Usage: $0 [OPTION]... [VAR=VALUE]...
1388
1389To assign environment variables (e.g., CC, CFLAGS...), specify them as
1390VAR=VALUE. See below for descriptions of some of the useful variables.
1391
1392Defaults for the options are specified in brackets.
1393
1394Configuration:
1395 -h, --help display this help and exit
1396 --help=short display options specific to this package
1397 --help=recursive display the short help of all the included packages
1398 -V, --version display version information and exit
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001399 -q, --quiet, --silent do not print \`checking ...' messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001400 --cache-file=FILE cache test results in FILE [disabled]
1401 -C, --config-cache alias for \`--cache-file=config.cache'
1402 -n, --no-create do not create output files
1403 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1404
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001405Installation directories:
1406 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001407 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001408 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001409 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001410
1411By default, \`make install' will install all the files in
1412\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1413an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1414for instance \`--prefix=\$HOME'.
1415
1416For better control, use the options below.
1417
1418Fine tuning of the installation directories:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001419 --bindir=DIR user executables [EPREFIX/bin]
1420 --sbindir=DIR system admin executables [EPREFIX/sbin]
1421 --libexecdir=DIR program executables [EPREFIX/libexec]
1422 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1423 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1424 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1425 --libdir=DIR object code libraries [EPREFIX/lib]
1426 --includedir=DIR C header files [PREFIX/include]
1427 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1428 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1429 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1430 --infodir=DIR info documentation [DATAROOTDIR/info]
1431 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1432 --mandir=DIR man documentation [DATAROOTDIR/man]
1433 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1434 --htmldir=DIR html documentation [DOCDIR]
1435 --dvidir=DIR dvi documentation [DOCDIR]
1436 --pdfdir=DIR pdf documentation [DOCDIR]
1437 --psdir=DIR ps documentation [DOCDIR]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001438_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001439
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001440 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001441
1442X features:
1443 --x-includes=DIR X include files are in DIR
1444 --x-libraries=DIR X library files are in DIR
1445
1446System types:
1447 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001448 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001449_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001450fi
1451
1452if test -n "$ac_init_help"; then
1453 case $ac_init_help in
Alexandre Julliard24e7b5f2011-06-10 20:08:11 +02001454 short | recursive ) echo "Configuration of Wine 1.3.22:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001455 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001456 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001457
1458Optional Features:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001459 --disable-option-checking ignore unrecognized --enable/--with options
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001460 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1461 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +00001462 --disable-win16 do not include Win16 support
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001463 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1464 binaries)
Alexandre Julliard35078f42008-11-21 10:16:12 +01001465 --disable-tests do not build the regression tests
Alexandre Julliard9d037222008-03-20 13:00:12 +01001466 --enable-maintainer-mode
1467 enable maintainer-specific build rules
Eric Pouechbc56c4e2009-08-25 19:33:28 +02001468 --disable-largefile omit support for large files
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001469
1470Optional Packages:
1471 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1472 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001473 --without-alsa do not use the Alsa sound support
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001474 --without-capi do not use CAPI (ISDN support)
1475 --without-cms do not use CMS (color management support)
1476 --without-coreaudio do not use the CoreAudio sound support
1477 --without-cups do not use CUPS
1478 --without-curses do not use (n)curses
1479 --without-esd do not use the EsounD sound support
1480 --without-fontconfig do not use fontconfig
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02001481 --without-freetype do not use the FreeType library
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01001482 --without-gettextpo do not use the GetTextPO library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001483 --without-gphoto do not use gphoto (Digital Camera support)
Alexandre Julliardad798732008-05-01 13:29:02 +02001484 --without-glu do not use the GLU library
Henri Verbeet874c9ef2008-09-22 22:13:19 +02001485 --without-gnutls do not use GnuTLS (schannel support)
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02001486 --without-gsm do not use libgsm (GSM 06.10 codec support)
Aric Stewart2914d652010-10-20 13:55:16 -05001487 --without-gstreamer do not use GStreamer (codecs support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001488 --without-hal do not use HAL (dynamic device support)
1489 --without-jack do not use the Jack sound support
1490 --without-jpeg do not use JPEG
1491 --without-ldap do not use LDAP
Aric Stewartdb71d7c2009-08-19 09:37:48 -05001492 --without-mpg123 do not use the mpg123 library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001493 --without-nas do not use the NAS sound support
Chris Robinson862965f2009-08-25 03:26:35 -07001494 --without-openal do not use OpenAL
Peter Urbanec65c84d72010-12-02 23:41:48 +11001495 --without-opencl do not use OpenCL
Eric Pouech53fa0d52004-02-05 01:27:38 +00001496 --without-opengl do not use OpenGL
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001497 --without-openssl do not use OpenSSL
1498 --without-oss do not use the OSS sound support
1499 --without-png do not use PNG
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01001500 --without-pthread do not use the pthread library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001501 --without-sane do not use SANE (scanner support)
Vincent Povirk73cd5692010-03-08 17:07:29 -06001502 --without-tiff do not use TIFF
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01001503 --without-v4l do not use v4l1 (v4l support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001504 --without-xcomposite do not use the Xcomposite extension
1505 --without-xcursor do not use the Xcursor extension
1506 --without-xinerama do not use Xinerama (multi-monitor support)
1507 --without-xinput do not use the Xinput extension
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02001508 --without-xinput2 do not use the Xinput 2 extension
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001509 --without-xml do not use XML
1510 --without-xrandr do not use Xrandr (resolution changes)
1511 --without-xrender do not use the Xrender extension
1512 --without-xshape do not use the Xshape extension
1513 --without-xshm do not use XShm (shared memory extension)
1514 --without-xslt do not use XSLT
Francois Gougeta49beb42008-06-26 14:02:17 +02001515 --without-xxf86vm do not use XFree video mode extension
Alexandre Julliardba6a41a2011-02-18 13:07:27 +01001516 --without-zlib do not use Zlib (data compression)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001517 --with-wine-tools=DIR use Wine tools from directory DIR
Alexandre Julliard39a75d32009-08-13 19:45:31 +02001518 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001519 --with-x use the X Window System
1520
1521Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +00001522 CC C compiler command
1523 CFLAGS C compiler flags
1524 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1525 nonstandard directory <lib dir>
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01001526 LIBS libraries to pass to the linker, e.g. -l<library>
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001527 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001528 you have headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00001529 CXX C++ compiler command
1530 CXXFLAGS C++ compiler flags
Eric Pouech53fa0d52004-02-05 01:27:38 +00001531 CPP C preprocessor
Alexandre Julliard40664c02009-02-11 20:40:58 +01001532 XMKMF Path to xmkmf, Makefile generator for X Window System
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001533
1534Use these variables to override the choices made by `configure' or to help
1535it to find libraries and programs with nonstandard names/locations.
1536
Alexandre Julliard875927f2004-01-02 01:55:29 +00001537Report bugs to <wine-devel@winehq.org>.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001538Wine home page: <http://www.winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001539_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001540ac_status=$?
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001541fi
1542
1543if test "$ac_init_help" = "recursive"; then
1544 # If there are subdirs, report their specific --help.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001545 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Alexandre Julliardabf50482008-10-31 12:56:53 +01001546 test -d "$ac_dir" ||
1547 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1548 continue
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001549 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001550
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001551case "$ac_dir" in
1552.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1553*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001554 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001555 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001556 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001557 case $ac_top_builddir_sub in
1558 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1560 esac ;;
1561esac
1562ac_abs_top_builddir=$ac_pwd
1563ac_abs_builddir=$ac_pwd$ac_dir_suffix
1564# for backward compatibility:
1565ac_top_builddir=$ac_top_build_prefix
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001566
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001567case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001568 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001569 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001570 ac_top_srcdir=$ac_top_builddir_sub
1571 ac_abs_top_srcdir=$ac_pwd ;;
1572 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001573 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001574 ac_top_srcdir=$srcdir
1575 ac_abs_top_srcdir=$srcdir ;;
1576 *) # Relative name.
1577 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1578 ac_top_srcdir=$ac_top_build_prefix$srcdir
1579 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001580esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001581ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +00001582
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001583 cd "$ac_dir" || { ac_status=$?; continue; }
1584 # Check for guested configure.
Jeremy White0ebeb532006-06-20 13:18:41 +02001585 if test -f "$ac_srcdir/configure.gnu"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001586 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001589 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001590 $SHELL "$ac_srcdir/configure" --help=recursive
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001591 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01001592 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001593 fi || ac_status=$?
1594 cd "$ac_pwd" || { ac_status=$?; break; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001595 done
1596fi
1597
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001598test -n "$ac_init_help" && exit $ac_status
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001599if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001600 cat <<\_ACEOF
Alexandre Julliard24e7b5f2011-06-10 20:08:11 +02001601Wine configure 1.3.22
Alexandre Julliard9797da42011-04-27 17:37:43 +02001602generated by GNU Autoconf 2.68
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001603
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001604Copyright (C) 2010 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001605This configure script is free software; the Free Software Foundation
1606gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001607_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001608 exit
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001609fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001610
1611## ------------------------ ##
1612## Autoconf initialization. ##
1613## ------------------------ ##
1614
1615# ac_fn_c_try_compile LINENO
1616# --------------------------
1617# Try to compile conftest.$ac_ext, and return whether this succeeded.
1618ac_fn_c_try_compile ()
1619{
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext
1622 if { { ac_try="$ac_compile"
1623case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626esac
1627eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628$as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext; then :
1641 ac_retval=0
1642else
1643 $as_echo "$as_me: failed program was:" >&5
1644sed 's/^/| /' conftest.$ac_ext >&5
1645
1646 ac_retval=1
1647fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001649 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001650
1651} # ac_fn_c_try_compile
1652
1653# ac_fn_cxx_try_compile LINENO
1654# ----------------------------
1655# Try to compile conftest.$ac_ext, and return whether this succeeded.
1656ac_fn_cxx_try_compile ()
1657{
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 rm -f conftest.$ac_objext
1660 if { { ac_try="$ac_compile"
1661case "(($ac_try" in
1662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1663 *) ac_try_echo=$ac_try;;
1664esac
1665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1666$as_echo "$ac_try_echo"; } >&5
1667 (eval "$ac_compile") 2>conftest.err
1668 ac_status=$?
1669 if test -s conftest.err; then
1670 grep -v '^ *+' conftest.err >conftest.er1
1671 cat conftest.er1 >&5
1672 mv -f conftest.er1 conftest.err
1673 fi
1674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1675 test $ac_status = 0; } && {
1676 test -z "$ac_cxx_werror_flag" ||
1677 test ! -s conftest.err
1678 } && test -s conftest.$ac_objext; then :
1679 ac_retval=0
1680else
1681 $as_echo "$as_me: failed program was:" >&5
1682sed 's/^/| /' conftest.$ac_ext >&5
1683
1684 ac_retval=1
1685fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001687 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001688
1689} # ac_fn_cxx_try_compile
1690
1691# ac_fn_c_try_link LINENO
1692# -----------------------
1693# Try to link conftest.$ac_ext, and return whether this succeeded.
1694ac_fn_c_try_link ()
1695{
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 rm -f conftest.$ac_objext conftest$ac_exeext
1698 if { { ac_try="$ac_link"
1699case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702esac
1703eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704$as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_link") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } && {
1714 test -z "$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 } && test -s conftest$ac_exeext && {
1717 test "$cross_compiling" = yes ||
1718 $as_test_x conftest$ac_exeext
1719 }; then :
1720 ac_retval=0
1721else
1722 $as_echo "$as_me: failed program was:" >&5
1723sed 's/^/| /' conftest.$ac_ext >&5
1724
1725 ac_retval=1
1726fi
1727 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1728 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1729 # interfere with the next link command; also delete a directory that is
1730 # left behind by Apple's compiler. We do this before executing the actions.
1731 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Alexandre Julliard9797da42011-04-27 17:37:43 +02001732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001733 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001734
1735} # ac_fn_c_try_link
1736
1737# ac_fn_c_try_cpp LINENO
1738# ----------------------
1739# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1740ac_fn_c_try_cpp ()
1741{
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 if { { ac_try="$ac_cpp conftest.$ac_ext"
1744case "(($ac_try" in
1745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1746 *) ac_try_echo=$ac_try;;
1747esac
1748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1749$as_echo "$ac_try_echo"; } >&5
1750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1751 ac_status=$?
1752 if test -s conftest.err; then
1753 grep -v '^ *+' conftest.err >conftest.er1
1754 cat conftest.er1 >&5
1755 mv -f conftest.er1 conftest.err
1756 fi
1757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001758 test $ac_status = 0; } > conftest.i && {
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1760 test ! -s conftest.err
1761 }; then :
1762 ac_retval=0
1763else
1764 $as_echo "$as_me: failed program was:" >&5
1765sed 's/^/| /' conftest.$ac_ext >&5
1766
1767 ac_retval=1
1768fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001769 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001770 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001771
1772} # ac_fn_c_try_cpp
1773
1774# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1775# -------------------------------------------------------
1776# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1777# the include files in INCLUDES and setting the cache variable VAR
1778# accordingly.
1779ac_fn_c_check_header_mongrel ()
1780{
1781 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Alexandre Julliard9797da42011-04-27 17:37:43 +02001782 if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001785if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001786 $as_echo_n "(cached) " >&6
1787fi
1788eval ac_res=\$$3
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790$as_echo "$ac_res" >&6; }
1791else
1792 # Is the header compilable?
1793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1794$as_echo_n "checking $2 usability... " >&6; }
1795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1796/* end confdefs.h. */
1797$4
1798#include <$2>
1799_ACEOF
1800if ac_fn_c_try_compile "$LINENO"; then :
1801 ac_header_compiler=yes
1802else
1803 ac_header_compiler=no
1804fi
1805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1807$as_echo "$ac_header_compiler" >&6; }
1808
1809# Is the header present?
1810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1811$as_echo_n "checking $2 presence... " >&6; }
1812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h. */
1814#include <$2>
1815_ACEOF
1816if ac_fn_c_try_cpp "$LINENO"; then :
1817 ac_header_preproc=yes
1818else
1819 ac_header_preproc=no
1820fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001821rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1823$as_echo "$ac_header_preproc" >&6; }
1824
1825# So? What about this header?
1826case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1827 yes:no: )
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1829$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1831$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1832 ;;
1833 no:yes:* )
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1835$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1837$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1839$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1841$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1843$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001844( $as_echo "## ------------------------------------ ##
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001845## Report this to wine-devel@winehq.org ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001846## ------------------------------------ ##"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001847 ) | sed "s/^/$as_me: WARNING: /" >&2
1848 ;;
1849esac
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001852if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001853 $as_echo_n "(cached) " >&6
1854else
1855 eval "$3=\$ac_header_compiler"
1856fi
1857eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859$as_echo "$ac_res" >&6; }
1860fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001862
1863} # ac_fn_c_check_header_mongrel
1864
1865# ac_fn_c_try_run LINENO
1866# ----------------------
1867# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1868# that executables *can* be run.
1869ac_fn_c_try_run ()
1870{
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_link"
1873case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876esac
1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878$as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1883 { { case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_try") 2>&5
1890 ac_status=$?
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; }; }; then :
1893 ac_retval=0
1894else
1895 $as_echo "$as_me: program exited with status $ac_status" >&5
1896 $as_echo "$as_me: failed program was:" >&5
1897sed 's/^/| /' conftest.$ac_ext >&5
1898
1899 ac_retval=$ac_status
1900fi
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Alexandre Julliard9797da42011-04-27 17:37:43 +02001902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001903 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001904
1905} # ac_fn_c_try_run
1906
1907# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1908# -------------------------------------------------------
1909# Tests whether HEADER exists and can be compiled using the include files in
1910# INCLUDES, setting the cache variable VAR accordingly.
1911ac_fn_c_check_header_compile ()
1912{
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001916if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001917 $as_echo_n "(cached) " >&6
1918else
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920/* end confdefs.h. */
1921$4
1922#include <$2>
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"; then :
1925 eval "$3=yes"
1926else
1927 eval "$3=no"
1928fi
1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930fi
1931eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001935
1936} # ac_fn_c_check_header_compile
1937
1938# ac_fn_c_check_func LINENO FUNC VAR
1939# ----------------------------------
1940# Tests whether FUNC exists, setting the cache variable VAR accordingly
1941ac_fn_c_check_func ()
1942{
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1945$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001946if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001947 $as_echo_n "(cached) " >&6
1948else
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950/* end confdefs.h. */
1951/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1953#define $2 innocuous_$2
1954
1955/* System header to define __stub macros and hopefully few prototypes,
1956 which can conflict with char $2 (); below.
1957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1958 <limits.h> exists even on freestanding compilers. */
1959
1960#ifdef __STDC__
1961# include <limits.h>
1962#else
1963# include <assert.h>
1964#endif
1965
1966#undef $2
1967
1968/* Override any GCC internal prototype to avoid an error.
1969 Use char because int might match the return type of a GCC
1970 builtin and then its argument prototype would still apply. */
1971#ifdef __cplusplus
1972extern "C"
1973#endif
1974char $2 ();
1975/* The GNU C library defines this for functions which it implements
1976 to always fail with ENOSYS. Some functions are actually named
1977 something starting with __ and the normal name is an alias. */
1978#if defined __stub_$2 || defined __stub___$2
1979choke me
1980#endif
1981
1982int
1983main ()
1984{
1985return $2 ();
1986 ;
1987 return 0;
1988}
1989_ACEOF
1990if ac_fn_c_try_link "$LINENO"; then :
1991 eval "$3=yes"
1992else
1993 eval "$3=no"
1994fi
1995rm -f core conftest.err conftest.$ac_objext \
1996 conftest$ac_exeext conftest.$ac_ext
1997fi
1998eval ac_res=\$$3
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2000$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002001 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002002
2003} # ac_fn_c_check_func
2004
2005# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2006# ----------------------------------------------------
2007# Tries to find if the field MEMBER exists in type AGGR, after including
2008# INCLUDES, setting cache variable VAR accordingly.
2009ac_fn_c_check_member ()
2010{
2011 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2013$as_echo_n "checking for $2.$3... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002014if eval \${$4+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002015 $as_echo_n "(cached) " >&6
2016else
2017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2018/* end confdefs.h. */
2019$5
2020int
2021main ()
2022{
2023static $2 ac_aggr;
2024if (ac_aggr.$3)
2025return 0;
2026 ;
2027 return 0;
2028}
2029_ACEOF
2030if ac_fn_c_try_compile "$LINENO"; then :
2031 eval "$4=yes"
2032else
2033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2034/* end confdefs.h. */
2035$5
2036int
2037main ()
2038{
2039static $2 ac_aggr;
2040if (sizeof ac_aggr.$3)
2041return 0;
2042 ;
2043 return 0;
2044}
2045_ACEOF
2046if ac_fn_c_try_compile "$LINENO"; then :
2047 eval "$4=yes"
2048else
2049 eval "$4=no"
2050fi
2051rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2052fi
2053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2054fi
2055eval ac_res=\$$4
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002059
2060} # ac_fn_c_check_member
2061
2062# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2063# -------------------------------------------
2064# Tests whether TYPE exists after having included INCLUDES, setting cache
2065# variable VAR accordingly.
2066ac_fn_c_check_type ()
2067{
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002071if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002072 $as_echo_n "(cached) " >&6
2073else
2074 eval "$3=no"
2075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2076/* end confdefs.h. */
2077$4
2078int
2079main ()
2080{
2081if (sizeof ($2))
2082 return 0;
2083 ;
2084 return 0;
2085}
2086_ACEOF
2087if ac_fn_c_try_compile "$LINENO"; then :
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089/* end confdefs.h. */
2090$4
2091int
2092main ()
2093{
2094if (sizeof (($2)))
2095 return 0;
2096 ;
2097 return 0;
2098}
2099_ACEOF
2100if ac_fn_c_try_compile "$LINENO"; then :
2101
2102else
2103 eval "$3=yes"
2104fi
2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106fi
2107rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108fi
2109eval ac_res=\$$3
2110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2111$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002113
2114} # ac_fn_c_check_type
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002115cat >config.log <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002116This file contains any messages produced by compilers while
2117running configure, to aid debugging if configure makes a mistake.
2118
Alexandre Julliard24e7b5f2011-06-10 20:08:11 +02002119It was created by Wine $as_me 1.3.22, which was
Alexandre Julliard9797da42011-04-27 17:37:43 +02002120generated by GNU Autoconf 2.68. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002121
2122 $ $0 $@
2123
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002124_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002125exec 5>>config.log
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002126{
2127cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002128## --------- ##
2129## Platform. ##
2130## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002131
2132hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2133uname -m = `(uname -m) 2>/dev/null || echo unknown`
2134uname -r = `(uname -r) 2>/dev/null || echo unknown`
2135uname -s = `(uname -s) 2>/dev/null || echo unknown`
2136uname -v = `(uname -v) 2>/dev/null || echo unknown`
2137
2138/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2139/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2140
2141/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2142/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2143/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002144/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002145/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2146/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2147/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2148
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002149_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002150
2151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152for as_dir in $PATH
2153do
2154 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002156 $as_echo "PATH: $as_dir"
2157 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002158IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002159
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002160} >&5
2161
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002162cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002163
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002164
2165## ----------- ##
2166## Core tests. ##
2167## ----------- ##
2168
2169_ACEOF
2170
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002171
2172# Keep a trace of the command line.
2173# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002174# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002175# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002176# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002177ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002178ac_configure_args0=
2179ac_configure_args1=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002180ac_must_keep_next=false
2181for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002182do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002183 for ac_arg
2184 do
2185 case $ac_arg in
2186 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2188 | -silent | --silent | --silen | --sile | --sil)
2189 continue ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002190 *\'*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01002191 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002192 esac
2193 case $ac_pass in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002194 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002195 2)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002196 as_fn_append ac_configure_args1 " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002197 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00002198 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002199 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00002200 case $ac_arg in
2201 *=* | --config-cache | -C | -disable-* | --disable-* \
2202 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2203 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2204 | -with-* | --with-* | -without-* | --without-* | --x)
2205 case "$ac_configure_args0 " in
2206 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2207 esac
2208 ;;
2209 -* ) ac_must_keep_next=true ;;
2210 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002211 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002212 as_fn_append ac_configure_args " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002213 ;;
2214 esac
2215 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002216done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002217{ ac_configure_args0=; unset ac_configure_args0;}
2218{ ac_configure_args1=; unset ac_configure_args1;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002219
2220# When interrupted or exit'd, cleanup temporary files, and complete
2221# config.log. We remove comments because anyway the quotes in there
2222# would cause problems or look ugly.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002223# WARNING: Use '\'' to represent an apostrophe within the trap.
2224# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002225trap 'exit_status=$?
2226 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002227 {
2228 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002229
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002230 $as_echo "## ---------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002231## Cache variables. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002232## ---------------- ##"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002233 echo
2234 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002235(
2236 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2237 eval ac_val=\$$ac_var
2238 case $ac_val in #(
2239 *${as_nl}*)
2240 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002241 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002242$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002243 esac
2244 case $ac_var in #(
2245 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +01002246 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002247 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002248 esac ;;
2249 esac
2250 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002251 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002252 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2253 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002254 sed -n \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002255 "s/'\''/'\''\\\\'\'''\''/g;
2256 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2257 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002258 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002259 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002260 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002261 esac |
2262 sort
2263)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002264 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002265
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002266 $as_echo "## ----------------- ##
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002267## Output variables. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002268## ----------------- ##"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002269 echo
2270 for ac_var in $ac_subst_vars
2271 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002272 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002273 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002274 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002275 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002276 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002277 done | sort
2278 echo
2279
2280 if test -n "$ac_subst_files"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002281 $as_echo "## ------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002282## File substitutions. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002283## ------------------- ##"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002284 echo
2285 for ac_var in $ac_subst_files
2286 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002287 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002288 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002289 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002290 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002291 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002292 done | sort
2293 echo
2294 fi
2295
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002296 if test -s confdefs.h; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002297 $as_echo "## ----------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002298## confdefs.h. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002299## ----------- ##"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002300 echo
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002301 cat confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002302 echo
2303 fi
2304 test "$ac_signal" != 0 &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01002305 $as_echo "$as_me: caught signal $ac_signal"
2306 $as_echo "$as_me: exit $exit_status"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002307 } >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002308 rm -f core *.core core.conftest.* &&
2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002310 exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002311' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002312for ac_signal in 1 2 13 15; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002314done
2315ac_signal=0
2316
2317# confdefs.h avoids OS command line length limits that DEFS can exceed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002318rm -f -r conftest* confdefs.h
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002319
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002320$as_echo "/* confdefs.h */" > confdefs.h
2321
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002322# Predefined preprocessor variables.
2323
2324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_NAME "$PACKAGE_NAME"
2326_ACEOF
2327
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2330_ACEOF
2331
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002332cat >>confdefs.h <<_ACEOF
2333#define PACKAGE_VERSION "$PACKAGE_VERSION"
2334_ACEOF
2335
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002336cat >>confdefs.h <<_ACEOF
2337#define PACKAGE_STRING "$PACKAGE_STRING"
2338_ACEOF
2339
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002340cat >>confdefs.h <<_ACEOF
2341#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2342_ACEOF
2343
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002344cat >>confdefs.h <<_ACEOF
2345#define PACKAGE_URL "$PACKAGE_URL"
2346_ACEOF
2347
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002348
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002349# Let the site file select an alternate cache file if it wants to.
Alexandre Julliardabf50482008-10-31 12:56:53 +01002350# Prefer an explicitly selected file to automatically selected ones.
2351ac_site_file1=NONE
2352ac_site_file2=NONE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002353if test -n "$CONFIG_SITE"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002354 # We do not want a PATH search for config.site.
2355 case $CONFIG_SITE in #((
2356 -*) ac_site_file1=./$CONFIG_SITE;;
2357 */*) ac_site_file1=$CONFIG_SITE;;
2358 *) ac_site_file1=./$CONFIG_SITE;;
2359 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002360elif test "x$prefix" != xNONE; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002361 ac_site_file1=$prefix/share/config.site
2362 ac_site_file2=$prefix/etc/config.site
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002363else
Alexandre Julliardabf50482008-10-31 12:56:53 +01002364 ac_site_file1=$ac_default_prefix/share/config.site
2365 ac_site_file2=$ac_default_prefix/etc/config.site
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002366fi
Alexandre Julliardabf50482008-10-31 12:56:53 +01002367for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002368do
Alexandre Julliardabf50482008-10-31 12:56:53 +01002369 test "x$ac_site_file" = xNONE && continue
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002370 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002371 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002372$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002373 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002374 . "$ac_site_file" \
2375 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2376$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2377as_fn_error $? "failed to load site script $ac_site_file
Alexandre Julliard9797da42011-04-27 17:37:43 +02002378See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002379 fi
2380done
2381
2382if test -r "$cache_file"; then
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002383 # Some versions of bash will fail to source /dev/null (special files
2384 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2385 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002387$as_echo "$as_me: loading cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002388 case $cache_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02002389 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2390 *) . "./$cache_file";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002391 esac
2392 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002393else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002395$as_echo "$as_me: creating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002396 >$cache_file
2397fi
2398
2399# Check that the precious variables saved in the cache have kept the same
2400# value.
2401ac_cache_corrupted=false
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002402for ac_var in $ac_precious_vars; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002403 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2404 eval ac_new_set=\$ac_env_${ac_var}_set
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002405 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2406 eval ac_new_val=\$ac_env_${ac_var}_value
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002407 case $ac_old_set,$ac_new_set in
2408 set,)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002410$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002411 ac_cache_corrupted=: ;;
2412 ,set)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002414$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002415 ac_cache_corrupted=: ;;
2416 ,);;
2417 *)
2418 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002419 # differences in whitespace do not lead to failure.
2420 ac_old_val_w=`echo x $ac_old_val`
2421 ac_new_val_w=`echo x $ac_new_val`
2422 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002424$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2425 ac_cache_corrupted=:
2426 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002427 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002428$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2429 eval $ac_var=\$ac_old_val
2430 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002431 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002432$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002433 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002434$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002435 fi;;
2436 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002437 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002438 if test "$ac_new_set" = set; then
2439 case $ac_new_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002440 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002441 *) ac_arg=$ac_var=$ac_new_val ;;
2442 esac
2443 case " $ac_configure_args " in
2444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002445 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002446 esac
2447 fi
2448done
2449if $ac_cache_corrupted; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002453$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002454 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002455fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002456## -------------------- ##
2457## Main body of script. ##
2458## -------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002459
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002460ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002461ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2464ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002465
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002466
2467
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002468ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00002469
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002470ac_aux_dir=
Jeremy White0ebeb532006-06-20 13:18:41 +02002471for ac_dir in tools "$srcdir"/tools; do
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002472 if test -f "$ac_dir/install-sh"; then
2473 ac_aux_dir=$ac_dir
2474 ac_install_sh="$ac_aux_dir/install-sh -c"
2475 break
2476 elif test -f "$ac_dir/install.sh"; then
2477 ac_aux_dir=$ac_dir
2478 ac_install_sh="$ac_aux_dir/install.sh -c"
2479 break
2480 elif test -f "$ac_dir/shtool"; then
2481 ac_aux_dir=$ac_dir
2482 ac_install_sh="$ac_aux_dir/shtool install -c"
2483 break
2484 fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002485done
2486if test -z "$ac_aux_dir"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002487 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002488fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002489
2490# These three variables are undocumented and unsupported,
2491# and are intended to be withdrawn in a future Autoconf release.
2492# They can cause serious problems if a builder's source tree is in a directory
2493# whose full name contains unusual characters.
2494ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2495ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2496ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2497
Howard Abrams13277481999-07-10 13:16:29 +00002498
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002499
2500
Alexandre Julliardd59227e2010-02-20 12:36:04 +01002501
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002502# Check whether --enable-win16 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002503if test "${enable_win16+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002504 enableval=$enable_win16;
2505fi
Alexandre Julliardc728efc2002-10-02 02:34:09 +00002506
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002507# Check whether --enable-win64 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002508if test "${enable_win64+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002509 enableval=$enable_win64;
2510fi
Alexandre Julliardb8074992002-11-21 21:51:24 +00002511
Alexandre Julliard35078f42008-11-21 10:16:12 +01002512# Check whether --enable-tests was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002513if test "${enable_tests+set}" = set; then :
Alexandre Julliard35078f42008-11-21 10:16:12 +01002514 enableval=$enable_tests;
2515fi
2516
Alexandre Julliard9d037222008-03-20 13:00:12 +01002517# Check whether --enable-maintainer-mode was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002518if test "${enable_maintainer_mode+set}" = set; then :
Alexandre Julliard9d037222008-03-20 13:00:12 +01002519 enableval=$enable_maintainer_mode;
Alexandre Julliard9d037222008-03-20 13:00:12 +01002520fi
2521
Alexandre Julliardb8074992002-11-21 21:51:24 +00002522
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002523
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002524# Check whether --with-alsa was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002525if test "${with_alsa+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002526 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2527fi
2528
2529
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002530# Check whether --with-capi was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002531if test "${with_capi+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002532 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2533fi
2534
2535
2536# Check whether --with-cms was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002537if test "${with_cms+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002538 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2539fi
2540
2541
2542# Check whether --with-coreaudio was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002543if test "${with_coreaudio+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002544 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2545fi
2546
2547
2548# Check whether --with-cups was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002549if test "${with_cups+set}" = set; then :
Francois Gouget289ea332008-07-24 16:09:07 +02002550 withval=$with_cups;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002551fi
2552
2553
2554# Check whether --with-curses was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002555if test "${with_curses+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002556 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2557fi
2558
2559
2560# Check whether --with-esd was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002561if test "${with_esd+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002562 withval=$with_esd;
2563fi
2564
2565
2566# Check whether --with-fontconfig was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002567if test "${with_fontconfig+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002568 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2569fi
2570
2571
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002572# Check whether --with-freetype was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002573if test "${with_freetype+set}" = set; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002574 withval=$with_freetype;
2575fi
2576
2577
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01002578# Check whether --with-gettextpo was given.
2579if test "${with_gettextpo+set}" = set; then :
2580 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2581fi
2582
2583
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002584# Check whether --with-gphoto was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002585if test "${with_gphoto+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002586 withval=$with_gphoto;
2587fi
2588
2589
Alexandre Julliardad798732008-05-01 13:29:02 +02002590# Check whether --with-glu was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002591if test "${with_glu+set}" = set; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02002592 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2593fi
2594
2595
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002596# Check whether --with-gnutls was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002597if test "${with_gnutls+set}" = set; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002598 withval=$with_gnutls;
2599fi
2600
2601
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02002602# Check whether --with-gsm was given.
2603if test "${with_gsm+set}" = set; then :
2604 withval=$with_gsm; if test "x$withval" = "xno"; then ac_cv_header_gsm_h=no; ac_cv_header_gsm_gsm_h=no; fi
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +02002605fi
2606
2607
Aric Stewart2914d652010-10-20 13:55:16 -05002608# Check whether --with-gstreamer was given.
2609if test "${with_gstreamer+set}" = set; then :
2610 withval=$with_gstreamer;
2611fi
2612
2613
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002614# Check whether --with-hal was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002615if test "${with_hal+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002616 withval=$with_hal;
2617fi
2618
2619
2620# Check whether --with-jack was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002621if test "${with_jack+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002622 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2623fi
2624
2625
2626# Check whether --with-jpeg was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002627if test "${with_jpeg+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002628 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2629fi
2630
2631
2632# Check whether --with-ldap was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002633if test "${with_ldap+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002634 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2635fi
2636
2637
Aric Stewartdb71d7c2009-08-19 09:37:48 -05002638# Check whether --with-mpg123 was given.
2639if test "${with_mpg123+set}" = set; then :
2640 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2641fi
2642
2643
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002644# Check whether --with-nas was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002645if test "${with_nas+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002646 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2647fi
2648
2649
Chris Robinson862965f2009-08-25 03:26:35 -07002650# Check whether --with-openal was given.
2651if test "${with_openal+set}" = set; then :
Ken Thomases0b08f192009-09-09 22:23:35 -05002652 withval=$with_openal; if test "x$withval" = "xno"; then ac_cv_header_AL_al_h=no; ac_cv_header_OpenAL_al_h=no; fi
Chris Robinson862965f2009-08-25 03:26:35 -07002653fi
2654
2655
Peter Urbanec65c84d72010-12-02 23:41:48 +11002656# Check whether --with-opencl was given.
2657if test "${with_opencl+set}" = set; then :
Adam Martinson2eb2f712010-12-28 12:46:09 -06002658 withval=$with_opencl; if test "x$withval" = "xno"; then ac_cv_header_CL_cl_h=no; ac_cv_header_OpenCL_opencl_h=no; fi
Peter Urbanec65c84d72010-12-02 23:41:48 +11002659fi
2660
2661
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002662# Check whether --with-opengl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002663if test "${with_opengl+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002664 withval=$with_opengl;
2665fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002666
Alexandre Julliardf90efa91998-06-14 15:24:15 +00002667
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002668# Check whether --with-openssl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002669if test "${with_openssl+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002670 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2671fi
2672
2673
2674# Check whether --with-oss was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002675if test "${with_oss+set}" = set; then :
Alexandre Julliardf60a0f52011-05-02 20:06:49 +02002676 withval=$with_oss;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002677fi
2678
2679
2680# Check whether --with-png was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002681if test "${with_png+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002682 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2683fi
2684
2685
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002686# Check whether --with-pthread was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002687if test "${with_pthread+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002688 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2689fi
2690
2691
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002692# Check whether --with-sane was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002693if test "${with_sane+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002694 withval=$with_sane;
2695fi
2696
2697
Vincent Povirk73cd5692010-03-08 17:07:29 -06002698# Check whether --with-tiff was given.
2699if test "${with_tiff+set}" = set; then :
2700 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2701fi
2702
2703
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01002704# Check whether --with-v4l was given.
2705if test "${with_v4l+set}" = set; then :
2706 withval=$with_v4l;
2707fi
2708
2709
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002710# Check whether --with-xcomposite was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002711if test "${with_xcomposite+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002712 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2713fi
2714
2715
2716# Check whether --with-xcursor was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002717if test "${with_xcursor+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002718 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2719fi
2720
2721
2722# Check whether --with-xinerama was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002723if test "${with_xinerama+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002724 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2725fi
2726
2727
2728# Check whether --with-xinput was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002729if test "${with_xinput+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002730 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2731fi
2732
2733
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02002734# Check whether --with-xinput2 was given.
2735if test "${with_xinput2+set}" = set; then :
2736 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2737fi
2738
2739
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002740# Check whether --with-xml was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002741if test "${with_xml+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002742 withval=$with_xml;
2743fi
2744
2745
2746# Check whether --with-xrandr was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002747if test "${with_xrandr+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002748 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2749fi
2750
2751
2752# Check whether --with-xrender was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002753if test "${with_xrender+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002754 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2755fi
2756
2757
2758# Check whether --with-xshape was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002759if test "${with_xshape+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002760 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2761fi
2762
2763
2764# Check whether --with-xshm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002765if test "${with_xshm+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002766 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2767fi
2768
2769
2770# Check whether --with-xslt was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002771if test "${with_xslt+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002772 withval=$with_xslt;
2773fi
2774
2775
Francois Gougeta49beb42008-06-26 14:02:17 +02002776# Check whether --with-xxf86vm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002777if test "${with_xxf86vm+set}" = set; then :
André Hentschel7b285a42009-09-19 19:08:09 +02002778 withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; ac_cv_header_X11_extensions_xf86vmproto_h=no; fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002779fi
2780
2781
Alexandre Julliardba6a41a2011-02-18 13:07:27 +01002782# Check whether --with-zlib was given.
2783if test "${with_zlib+set}" = set; then :
2784 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2785fi
2786
2787
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002788
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002789# Check whether --with-wine-tools was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002790if test "${with_wine_tools+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002791 withval=$with_wine_tools;
2792fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002793
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002794
Alexandre Julliard39a75d32009-08-13 19:45:31 +02002795# Check whether --with-wine64 was given.
2796if test "${with_wine64+set}" = set; then :
2797 withval=$with_wine64;
2798fi
2799
2800
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002801# Make sure we can run config.sub.
Jeremy White0ebeb532006-06-20 13:18:41 +02002802$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002803 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00002804
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002806$as_echo_n "checking build system type... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002807if ${ac_cv_build+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002808 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002809else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002810 ac_build_alias=$build_alias
2811test "x$ac_build_alias" = x &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002812 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002813test "x$ac_build_alias" = x &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002814 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Jeremy White0ebeb532006-06-20 13:18:41 +02002815ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002816 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002817
2818fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002820$as_echo "$ac_cv_build" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002821case $ac_cv_build in
2822*-*-*) ;;
Alexandre Julliard9797da42011-04-27 17:37:43 +02002823*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002824esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002825build=$ac_cv_build
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002826ac_save_IFS=$IFS; IFS='-'
2827set x $ac_cv_build
2828shift
2829build_cpu=$1
2830build_vendor=$2
2831shift; shift
2832# Remember, the first character of IFS is used to create $*,
2833# except with old shells:
2834build_os=$*
2835IFS=$ac_save_IFS
2836case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002837
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002838
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002840$as_echo_n "checking host system type... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002841if ${ac_cv_host+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002842 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002843else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002844 if test "x$host_alias" = x; then
2845 ac_cv_host=$ac_cv_build
2846else
Jeremy White0ebeb532006-06-20 13:18:41 +02002847 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002848 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002849fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002850
2851fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002853$as_echo "$ac_cv_host" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002854case $ac_cv_host in
2855*-*-*) ;;
Alexandre Julliard9797da42011-04-27 17:37:43 +02002856*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002857esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002858host=$ac_cv_host
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002859ac_save_IFS=$IFS; IFS='-'
2860set x $ac_cv_host
2861shift
2862host_cpu=$1
2863host_vendor=$2
2864shift; shift
2865# Remember, the first character of IFS is used to create $*,
2866# except with old shells:
2867host_os=$*
2868IFS=$ac_save_IFS
2869case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002870
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002871
Alexandre Julliard71440f32005-05-19 14:28:17 +00002872
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002873case "$srcdir" in
2874 .) ;;
2875 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002876 as_fn_error $? "you are building out of the source tree, but the source tree contains object files.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002877You need to run 'make distclean' in the source tree first." "$LINENO" 5
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002878 fi ;;
2879esac
2880
Alexandre Julliard71440f32005-05-19 14:28:17 +00002881
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002883$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2884set x ${MAKE-make}
2885ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Alexandre Julliard9797da42011-04-27 17:37:43 +02002886if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002887 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002888else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002889 cat >conftest.make <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002890SHELL = /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002891all:
Jeremy White0ebeb532006-06-20 13:18:41 +02002892 @echo '@@@%%%=$(MAKE)=@@@%%%'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002893_ACEOF
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002894# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02002895case `${MAKE-make} -f conftest.make 2>/dev/null` in
2896 *@@@%%%=?*=@@@%%%*)
2897 eval ac_cv_prog_make_${ac_make}_set=yes;;
2898 *)
2899 eval ac_cv_prog_make_${ac_make}_set=no;;
2900esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002901rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002902fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002903if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002905$as_echo "yes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002906 SET_MAKE=
2907else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002909$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002910 SET_MAKE="MAKE=${MAKE-make}"
2911fi
2912
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002913ac_ext=c
2914ac_cpp='$CPP $CPPFLAGS'
2915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917ac_compiler_gnu=$ac_cv_c_compiler_gnu
2918if test -n "$ac_tool_prefix"; then
2919 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2920set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002922$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002923if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002924 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002925else
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC="$CC" # Let the user override the test.
2928else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2930for as_dir in $PATH
2931do
2932 IFS=$as_save_IFS
2933 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002934 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002936 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002938 break 2
2939 fi
2940done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002941 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002942IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002943
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002944fi
2945fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002946CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002947if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002949$as_echo "$CC" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002950else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002952$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002953fi
2954
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002955
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002956fi
2957if test -z "$ac_cv_prog_CC"; then
2958 ac_ct_CC=$CC
2959 # Extract the first word of "gcc", so it can be a program name with args.
2960set dummy gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002962$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002963if ${ac_cv_prog_ac_ct_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002964 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002965else
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2968else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2970for as_dir in $PATH
2971do
2972 IFS=$as_save_IFS
2973 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002974 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002976 ac_cv_prog_ac_ct_CC="gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002978 break 2
2979 fi
2980done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002981 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002982IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002983
2984fi
2985fi
2986ac_ct_CC=$ac_cv_prog_ac_ct_CC
2987if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002989$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002990else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002992$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002993fi
2994
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002995 if test "x$ac_ct_CC" = x; then
2996 CC=""
2997 else
2998 case $cross_compiling:$ac_tool_warned in
2999yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003002ac_tool_warned=yes ;;
3003esac
3004 CC=$ac_ct_CC
3005 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003006else
3007 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003008fi
3009
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003010if test -z "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003011 if test -n "$ac_tool_prefix"; then
3012 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003013set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003015$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003016if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003017 $as_echo_n "(cached) " >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003018else
3019 if test -n "$CC"; then
3020 ac_cv_prog_CC="$CC" # Let the user override the test.
3021else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3023for as_dir in $PATH
3024do
3025 IFS=$as_save_IFS
3026 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003027 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003029 ac_cv_prog_CC="${ac_tool_prefix}cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003031 break 2
3032 fi
3033done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003034 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003035IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003036
3037fi
3038fi
3039CC=$ac_cv_prog_CC
3040if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003042$as_echo "$CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003043else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003045$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003046fi
3047
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003048
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003049 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003050fi
3051if test -z "$CC"; then
3052 # Extract the first word of "cc", so it can be a program name with args.
3053set dummy cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003055$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003056if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003057 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003058else
3059 if test -n "$CC"; then
3060 ac_cv_prog_CC="$CC" # Let the user override the test.
3061else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003062 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064for as_dir in $PATH
3065do
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003068 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003070 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3071 ac_prog_rejected=yes
3072 continue
3073 fi
3074 ac_cv_prog_CC="cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003076 break 2
3077 fi
3078done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003079 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003080IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003081
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003082if test $ac_prog_rejected = yes; then
3083 # We found a bogon in the path, so make sure we never use it.
3084 set dummy $ac_cv_prog_CC
3085 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003086 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003087 # We chose a different compiler from the bogus one.
3088 # However, it has the same basename, so the bogon will be chosen
3089 # first if we set CC to just the basename; use the full file name.
3090 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003091 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003092 fi
3093fi
3094fi
3095fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003096CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003097if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003099$as_echo "$CC" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003100else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003102$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003103fi
3104
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003105
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003106fi
3107if test -z "$CC"; then
3108 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003109 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003110 do
3111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3112set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003114$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003115if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003116 $as_echo_n "(cached) " >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00003117else
3118 if test -n "$CC"; then
3119 ac_cv_prog_CC="$CC" # Let the user override the test.
3120else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122for as_dir in $PATH
3123do
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003126 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003128 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003130 break 2
3131 fi
3132done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003133 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003134IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003135
Eric Pouech18ad24a2000-01-16 22:16:33 +00003136fi
3137fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003138CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00003139if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003141$as_echo "$CC" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003142else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003144$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003145fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003146
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003147
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003148 test -n "$CC" && break
3149 done
3150fi
3151if test -z "$CC"; then
3152 ac_ct_CC=$CC
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003153 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003154do
3155 # Extract the first word of "$ac_prog", so it can be a program name with args.
3156set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003158$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003159if ${ac_cv_prog_ac_ct_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003160 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003161else
3162 if test -n "$ac_ct_CC"; then
3163 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3164else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003165as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3166for as_dir in $PATH
3167do
3168 IFS=$as_save_IFS
3169 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003170 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003172 ac_cv_prog_ac_ct_CC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003174 break 2
3175 fi
3176done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003177 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003178IFS=$as_save_IFS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003179
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003180fi
3181fi
3182ac_ct_CC=$ac_cv_prog_ac_ct_CC
3183if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003185$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003186else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003188$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003189fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003190
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003191
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003192 test -n "$ac_ct_CC" && break
3193done
Eric Pouech18ad24a2000-01-16 22:16:33 +00003194
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003195 if test "x$ac_ct_CC" = x; then
3196 CC=""
3197 else
3198 case $cross_compiling:$ac_tool_warned in
3199yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003200{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003201$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003202ac_tool_warned=yes ;;
3203esac
3204 CC=$ac_ct_CC
3205 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003206fi
3207
3208fi
3209
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003210
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003211test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003212$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003213as_fn_error $? "no acceptable C compiler found in \$PATH
Alexandre Julliard9797da42011-04-27 17:37:43 +02003214See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003215
3216# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003217$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003218set X $ac_compile
3219ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003220for ac_option in --version -v -V -qversion; do
3221 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003222case "(($ac_try" in
3223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3224 *) ac_try_echo=$ac_try;;
3225esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003226eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3227$as_echo "$ac_try_echo"; } >&5
3228 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003229 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003230 if test -s conftest.err; then
3231 sed '10a\
3232... rest of stderr output deleted ...
3233 10q' conftest.err >conftest.er1
3234 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003235 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003236 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3238 test $ac_status = 0; }
3239done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003240
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003241cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003242/* end confdefs.h. */
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003243
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003244int
3245main ()
3246{
3247
3248 ;
3249 return 0;
3250}
3251_ACEOF
3252ac_clean_files_save=$ac_clean_files
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003253ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003254# Try to create an executable without -o first, disregard a.out.
3255# It will help us diagnose broken compilers, and finding out an intuition
3256# of exeext.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3258$as_echo_n "checking whether the C compiler works... " >&6; }
Alexandre Julliardabf50482008-10-31 12:56:53 +01003259ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3260
3261# The possible output files:
3262ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3263
Jeremy White0ebeb532006-06-20 13:18:41 +02003264ac_rmfiles=
3265for ac_file in $ac_files
3266do
3267 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003268 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003269 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3270 esac
3271done
3272rm -f $ac_rmfiles
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003273
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003274if { { ac_try="$ac_link_default"
Jeremy White0ebeb532006-06-20 13:18:41 +02003275case "(($ac_try" in
3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3277 *) ac_try_echo=$ac_try;;
3278esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003281 (eval "$ac_link_default") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003282 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3284 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003285 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3286# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3287# in a Makefile. We should not override ac_cv_exeext if it was cached,
3288# so that the user can short-circuit this test for compilers unknown to
3289# Autoconf.
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003290for ac_file in $ac_files ''
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003291do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003292 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003293 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jeremy White0ebeb532006-06-20 13:18:41 +02003295 ;;
3296 [ab].out )
3297 # We found the default executable, but exeext='' is most
3298 # certainly right.
3299 break;;
3300 *.* )
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003301 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jeremy White0ebeb532006-06-20 13:18:41 +02003302 then :; else
3303 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3304 fi
3305 # We set ac_cv_exeext here because the later test for it is not
3306 # safe: cross compilers may not add the suffix if given an `-o'
3307 # argument, so we may need to know it at that point already.
3308 # Even if this section looks crufty: it has the advantage of
3309 # actually working.
3310 break;;
3311 * )
3312 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003313 esac
3314done
Jeremy White0ebeb532006-06-20 13:18:41 +02003315test "$ac_cv_exeext" = no && ac_cv_exeext=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003316
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003317else
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003318 ac_file=''
3319fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003320if test -z "$ac_file"; then :
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322$as_echo "no" >&6; }
3323$as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003324sed 's/^/| /' conftest.$ac_ext >&5
3325
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003326{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003327$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003328as_fn_error 77 "C compiler cannot create executables
Alexandre Julliard9797da42011-04-27 17:37:43 +02003329See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003330else
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332$as_echo "yes" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003333fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3335$as_echo_n "checking for C compiler default output file name... " >&6; }
3336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3337$as_echo "$ac_file" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003338ac_exeext=$ac_cv_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02003339
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003340rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jeremy White0ebeb532006-06-20 13:18:41 +02003341ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003343$as_echo_n "checking for suffix of executables... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003344if { { ac_try="$ac_link"
Jeremy White0ebeb532006-06-20 13:18:41 +02003345case "(($ac_try" in
3346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3347 *) ac_try_echo=$ac_try;;
3348esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003349eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3350$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003351 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003352 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003353 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3354 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003355 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3356# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3357# work properly (i.e., refer to `conftest.exe'), while it won't with
3358# `rm'.
3359for ac_file in conftest.exe conftest conftest.*; do
3360 test -f "$ac_file" || continue
3361 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003362 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003363 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3364 break;;
3365 * ) break;;
3366 esac
3367done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003368else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003370$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003371as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Alexandre Julliard9797da42011-04-27 17:37:43 +02003372See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003373fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003374rm -f conftest conftest$ac_cv_exeext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003376$as_echo "$ac_cv_exeext" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003377
3378rm -f conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003379EXEEXT=$ac_cv_exeext
3380ac_exeext=$EXEEXT
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003381cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3382/* end confdefs.h. */
3383#include <stdio.h>
3384int
3385main ()
3386{
3387FILE *f = fopen ("conftest.out", "w");
3388 return ferror (f) || fclose (f) != 0;
3389
3390 ;
3391 return 0;
3392}
3393_ACEOF
3394ac_clean_files="$ac_clean_files conftest.out"
3395# Check that the compiler produces executables we can run. If not, either
3396# the compiler is broken, or we cross compile.
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3398$as_echo_n "checking whether we are cross compiling... " >&6; }
3399if test "$cross_compiling" != yes; then
3400 { { ac_try="$ac_link"
3401case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404esac
3405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406$as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_link") 2>&5
3408 ac_status=$?
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }
3411 if { ac_try='./conftest$ac_cv_exeext'
3412 { { case "(($ac_try" in
3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3414 *) ac_try_echo=$ac_try;;
3415esac
3416eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3417$as_echo "$ac_try_echo"; } >&5
3418 (eval "$ac_try") 2>&5
3419 ac_status=$?
3420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3421 test $ac_status = 0; }; }; then
3422 cross_compiling=no
3423 else
3424 if test "$cross_compiling" = maybe; then
3425 cross_compiling=yes
3426 else
3427 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3428$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003429as_fn_error $? "cannot run C compiled programs.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003430If you meant to cross compile, use \`--host'.
Alexandre Julliard9797da42011-04-27 17:37:43 +02003431See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003432 fi
3433 fi
3434fi
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3436$as_echo "$cross_compiling" >&6; }
3437
3438rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3439ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003441$as_echo_n "checking for suffix of object files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003442if ${ac_cv_objext+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003443 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003444else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jeremy White0ebeb532006-06-20 13:18:41 +02003446/* end confdefs.h. */
3447
3448int
3449main ()
3450{
3451
3452 ;
3453 return 0;
3454}
3455_ACEOF
3456rm -f conftest.o conftest.obj
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003457if { { ac_try="$ac_compile"
Jeremy White0ebeb532006-06-20 13:18:41 +02003458case "(($ac_try" in
3459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3460 *) ac_try_echo=$ac_try;;
3461esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003462eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003464 (eval "$ac_compile") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003465 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467 test $ac_status = 0; }; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003468 for ac_file in conftest.o conftest.obj conftest.*; do
3469 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003470 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003472 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3473 break;;
3474 esac
3475done
3476else
Alexandre Julliardabf50482008-10-31 12:56:53 +01003477 $as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003478sed 's/^/| /' conftest.$ac_ext >&5
3479
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003480{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003482as_fn_error $? "cannot compute suffix of object files: cannot compile
Alexandre Julliard9797da42011-04-27 17:37:43 +02003483See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003484fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003485rm -f conftest.$ac_cv_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003486fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003488$as_echo "$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003489OBJEXT=$ac_cv_objext
3490ac_objext=$OBJEXT
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003492$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003493if ${ac_cv_c_compiler_gnu+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003494 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003495else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003497/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003498
3499int
3500main ()
3501{
3502#ifndef __GNUC__
3503 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003504#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003505
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003506 ;
3507 return 0;
3508}
3509_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003510if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003511 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00003512else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003513 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00003514fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003516ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00003517
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003518fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003520$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3521if test $ac_compiler_gnu = yes; then
3522 GCC=yes
3523else
3524 GCC=
3525fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003526ac_test_CFLAGS=${CFLAGS+set}
3527ac_save_CFLAGS=$CFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003529$as_echo_n "checking whether $CC accepts -g... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003530if ${ac_cv_prog_cc_g+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003531 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003532else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003533 ac_save_c_werror_flag=$ac_c_werror_flag
3534 ac_c_werror_flag=yes
3535 ac_cv_prog_cc_g=no
3536 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003538/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003539
3540int
3541main ()
3542{
3543
3544 ;
3545 return 0;
3546}
3547_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003548if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003549 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003550else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003551 CFLAGS=""
3552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003553/* end confdefs.h. */
3554
3555int
3556main ()
3557{
3558
3559 ;
3560 return 0;
3561}
3562_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003563if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003564
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003565else
3566 ac_c_werror_flag=$ac_save_c_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003567 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003569/* end confdefs.h. */
3570
3571int
3572main ()
3573{
3574
3575 ;
3576 return 0;
3577}
3578_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003579if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003580 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003581fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003583fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003585fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003587 ac_c_werror_flag=$ac_save_c_werror_flag
3588fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003590$as_echo "$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003591if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003592 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003593elif test $ac_cv_prog_cc_g = yes; then
3594 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003595 CFLAGS="-g -O2"
3596 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003597 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003598 fi
3599else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003600 if test "$GCC" = yes; then
3601 CFLAGS="-O2"
3602 else
3603 CFLAGS=
3604 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003605fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003607$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003608if ${ac_cv_prog_cc_c89+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003609 $as_echo_n "(cached) " >&6
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003610else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003611 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003612ac_save_CC=$CC
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003614/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003615#include <stdarg.h>
3616#include <stdio.h>
3617#include <sys/types.h>
3618#include <sys/stat.h>
3619/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3620struct buf { int x; };
3621FILE * (*rcsopen) (struct buf *, struct stat *, int);
3622static char *e (p, i)
3623 char **p;
3624 int i;
3625{
3626 return p[i];
3627}
3628static char *f (char * (*g) (char **, int), char **p, ...)
3629{
3630 char *s;
3631 va_list v;
3632 va_start (v,p);
3633 s = g (p, va_arg (v,int));
3634 va_end (v);
3635 return s;
3636}
Alexandre Julliard875927f2004-01-02 01:55:29 +00003637
3638/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3639 function prototypes and stuff, but not '\xHH' hex character constants.
3640 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003641 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00003642 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3643 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003644 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003645int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3646
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02003647/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3648 inside strings and character constants. */
3649#define FOO(x) 'x'
3650int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3651
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003652int test (int i, double x);
3653struct s1 {int (*f) (int a);};
3654struct s2 {int (*f) (double a);};
3655int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3656int argc;
3657char **argv;
3658int
3659main ()
3660{
3661return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3662 ;
3663 return 0;
3664}
3665_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003666for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3667 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003668do
3669 CC="$ac_save_CC $ac_arg"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003670 if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003671 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003672fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003673rm -f core conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003674 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003675done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003676rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003677CC=$ac_save_CC
3678
3679fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003680# AC_CACHE_VAL
3681case "x$ac_cv_prog_cc_c89" in
3682 x)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003684$as_echo "none needed" >&6; } ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003685 xno)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003687$as_echo "unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003688 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003689 CC="$CC $ac_cv_prog_cc_c89"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003691$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003692esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003693if test "x$ac_cv_prog_cc_c89" != xno; then :
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003694
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003695fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003696
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003697ac_ext=c
3698ac_cpp='$CPP $CPPFLAGS'
3699ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3700ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3701ac_compiler_gnu=$ac_cv_c_compiler_gnu
3702
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003703ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003704ac_cpp='$CXXCPP $CPPFLAGS'
3705ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3706ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3707ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003708if test -z "$CXX"; then
3709 if test -n "$CCC"; then
3710 CXX=$CCC
3711 else
3712 if test -n "$ac_tool_prefix"; then
3713 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003714 do
3715 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3716set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003718$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003719if ${ac_cv_prog_CXX+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003720 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003721else
3722 if test -n "$CXX"; then
3723 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3724else
3725as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3726for as_dir in $PATH
3727do
3728 IFS=$as_save_IFS
3729 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003730 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003732 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003734 break 2
3735 fi
3736done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003737 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003738IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003739
3740fi
3741fi
3742CXX=$ac_cv_prog_CXX
3743if test -n "$CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003745$as_echo "$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003746else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003748$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003749fi
3750
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003751
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003752 test -n "$CXX" && break
3753 done
3754fi
3755if test -z "$CXX"; then
3756 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003757 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003758do
3759 # Extract the first word of "$ac_prog", so it can be a program name with args.
3760set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003762$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003763if ${ac_cv_prog_ac_ct_CXX+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003764 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003765else
3766 if test -n "$ac_ct_CXX"; then
3767 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3768else
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003774 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003776 ac_cv_prog_ac_ct_CXX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003778 break 2
3779 fi
3780done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003781 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003782IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003783
3784fi
3785fi
3786ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3787if test -n "$ac_ct_CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003789$as_echo "$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003790else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003792$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003793fi
3794
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003795
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003796 test -n "$ac_ct_CXX" && break
3797done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003798
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003799 if test "x$ac_ct_CXX" = x; then
3800 CXX="g++"
3801 else
3802 case $cross_compiling:$ac_tool_warned in
3803yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003804{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003805$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003806ac_tool_warned=yes ;;
3807esac
3808 CXX=$ac_ct_CXX
3809 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003810fi
3811
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003812 fi
3813fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003814# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003815$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003816set X $ac_compile
3817ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003818for ac_option in --version -v -V -qversion; do
3819 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003820case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3825$as_echo "$ac_try_echo"; } >&5
3826 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003827 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003828 if test -s conftest.err; then
3829 sed '10a\
3830... rest of stderr output deleted ...
3831 10q' conftest.err >conftest.er1
3832 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003833 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003834 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3836 test $ac_status = 0; }
3837done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003838
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003840$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003841if ${ac_cv_cxx_compiler_gnu+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003842 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003843else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003845/* end confdefs.h. */
3846
3847int
3848main ()
3849{
3850#ifndef __GNUC__
3851 choke me
3852#endif
3853
3854 ;
3855 return 0;
3856}
3857_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003858if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003859 ac_compiler_gnu=yes
3860else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003861 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003862fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003864ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3865
3866fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003868$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3869if test $ac_compiler_gnu = yes; then
3870 GXX=yes
3871else
3872 GXX=
3873fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003874ac_test_CXXFLAGS=${CXXFLAGS+set}
3875ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003877$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003878if ${ac_cv_prog_cxx_g+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003879 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003880else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003881 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3882 ac_cxx_werror_flag=yes
3883 ac_cv_prog_cxx_g=no
3884 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003886/* end confdefs.h. */
3887
3888int
3889main ()
3890{
3891
3892 ;
3893 return 0;
3894}
3895_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003896if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003897 ac_cv_prog_cxx_g=yes
3898else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003899 CXXFLAGS=""
3900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003901/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003902
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003903int
3904main ()
3905{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003906
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003907 ;
3908 return 0;
3909}
3910_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003911if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003912
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003913else
3914 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003915 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003917/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003918
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003919int
3920main ()
3921{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003922
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003923 ;
3924 return 0;
3925}
3926_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003927if ac_fn_cxx_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003928 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003929fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003931fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003932rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003933fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003935 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3936fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003938$as_echo "$ac_cv_prog_cxx_g" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003939if test "$ac_test_CXXFLAGS" = set; then
3940 CXXFLAGS=$ac_save_CXXFLAGS
3941elif test $ac_cv_prog_cxx_g = yes; then
3942 if test "$GXX" = yes; then
3943 CXXFLAGS="-g -O2"
3944 else
3945 CXXFLAGS="-g"
3946 fi
3947else
3948 if test "$GXX" = yes; then
3949 CXXFLAGS="-O2"
3950 else
3951 CXXFLAGS=
3952 fi
3953fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003954ac_ext=c
3955ac_cpp='$CPP $CPPFLAGS'
3956ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3957ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3958ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003960if test -n "$ac_tool_prefix"; then
3961 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3962set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003964$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003965if ${ac_cv_prog_CPPBIN+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003966 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003967else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003968 if test -n "$CPPBIN"; then
3969 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003970else
3971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972for as_dir in $PATH
3973do
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003976 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003978 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003980 break 2
3981 fi
3982done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003983 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003984IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003985
3986fi
3987fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003988CPPBIN=$ac_cv_prog_CPPBIN
3989if test -n "$CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003991$as_echo "$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003992else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003994$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003995fi
3996
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003997
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003998fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003999if test -z "$ac_cv_prog_CPPBIN"; then
4000 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004001 # Extract the first word of "cpp", so it can be a program name with args.
4002set dummy cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004004$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004005if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004006 $as_echo_n "(cached) " >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004007else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004008 if test -n "$ac_ct_CPPBIN"; then
4009 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004010else
4011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4012for as_dir in $PATH
4013do
4014 IFS=$as_save_IFS
4015 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004016 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004018 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004020 break 2
4021 fi
4022done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004023 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004024IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004025
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004026fi
4027fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004028ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4029if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004031$as_echo "$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004032else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004034$as_echo "no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004035fi
4036
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004037 if test "x$ac_ct_CPPBIN" = x; then
4038 CPPBIN="cpp"
4039 else
4040 case $cross_compiling:$ac_tool_warned in
4041yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004044ac_tool_warned=yes ;;
4045esac
4046 CPPBIN=$ac_ct_CPPBIN
4047 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004048else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004049 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004050fi
4051
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004052
Alexandre Julliard1aea4ef2009-08-27 13:35:46 +02004053cat >>confdefs.h <<_ACEOF
4054#define EXEEXT "$ac_exeext"
4055_ACEOF
4056
4057
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004058case $host in
Ken Thomases42664332009-05-01 22:59:52 -05004059 *-darwin*)
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004060 if test "x$enable_win64" = "xyes"
Ken Thomases42664332009-05-01 22:59:52 -05004061 then
4062 CC="$CC -m64"
4063 CXX="$CXX -m64"
4064 LD="${LD:-ld} -arch x86_64"
4065 AS="${AS:-as} -arch x86_64"
4066 host_cpu="x86_64"
4067 notice_platform="64-bit "
4068 TARGETFLAGS="-m64"
4069
4070 else
4071 CC="$CC -m32"
4072 CXX="$CXX -m32"
4073 LD="${LD:-ld} -arch i386"
4074 AS="${AS:-as} -arch i386"
4075 host_cpu="i386"
4076 notice_platform="32-bit "
4077 TARGETFLAGS="-m32"
4078
4079 enable_win16=${enable_win16:-yes}
4080 fi
4081 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004082 x86_64*)
Alexandre Julliard6b4ed0f2009-01-12 19:29:43 +01004083 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004084 then
4085 CC="$CC -m32"
4086 CXX="$CXX -m32"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004088$as_echo_n "checking whether $CC works... " >&6; }
4089
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004090cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004091/* end confdefs.h. */
4092
4093int
4094main ()
4095{
4096
4097 ;
4098 return 0;
4099}
4100_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004101if ac_fn_c_try_link "$LINENO"; then :
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004103$as_echo "yes" >&6; }
4104else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004106$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004107 as_fn_error $? "Cannot build a 32-bit program, you need to install 32-bit development libraries." "$LINENO" 5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004108fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004109rm -f core conftest.err conftest.$ac_objext \
4110 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004111 LD="${LD:-ld} -m elf_i386"
4112 AS="${AS:-as} --32"
4113 host_cpu="i386"
4114 notice_platform="32-bit "
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004115 TARGETFLAGS="-m32"
4116
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004117 enable_win16=${enable_win16:-yes}
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004118 else
Alexandre Julliard8812d242009-06-14 11:19:54 +02004119 if test "x${GCC}" = "xyes"
4120 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004122$as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard8812d242009-06-14 11:19:54 +02004124/* end confdefs.h. */
4125#include <stdarg.h>
4126int
4127main ()
4128{
4129void func(__builtin_ms_va_list *args);
4130 ;
4131 return 0;
4132}
4133_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004134if ac_fn_c_try_compile "$LINENO"; then :
4135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004136$as_echo "yes" >&6; }
4137else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004139$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004140 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004141fi
Alexandre Julliard8812d242009-06-14 11:19:54 +02004142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 fi
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004144 TARGETFLAGS="-m64"
4145
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004146 fi
4147 ;;
Alexandre Julliard391fce62009-04-02 12:59:52 +02004148 *-mingw32*|*-cygwin*)
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004149 enable_win16=${enable_win16:-no}
Alexandre Goujonac0a38c2010-03-01 21:39:40 +01004150 CFLAGS="$CFLAGS -D_WIN32"
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004151 ;;
4152 i[3456789]86*)
4153 enable_win16=${enable_win16:-yes}
4154 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004155esac
4156
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004157enable_win16=${enable_win16:-no}
Alexandre Julliard4422d222011-05-10 13:26:28 +02004158enable_win64=${enable_win64:-no}
Alexandre Julliard776820e2009-02-23 17:46:33 +01004159
Alexandre Julliard95081552010-02-09 19:08:17 +01004160enable_winetest=${enable_winetest:-$enable_tests}
4161
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004162if test -n "$with_wine64"
4163then
4164 if test "x$enable_win64" = "xyes"
4165 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004166 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004167--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4168 fi
Alexandre Julliard90647772009-08-13 19:48:42 +02004169 WOW64_DISABLE=\#
4170
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004171 enable_fonts=${enable_fonts:-no}
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004172 enable_server=${enable_server:-no}
4173 enable_tools=${enable_tools:-no}
Alexandre Julliardb3265322010-04-21 12:28:22 +02004174elif test "x$enable_win64" = "xyes"
4175then
4176 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004177fi
4178
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004180$as_echo_n "checking for the directory containing the Wine tools... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004181if ${wine_cv_toolsdir+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004182 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004183else
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004184 wine_cv_toolsdir="$with_wine_tools"
4185 if test -z "$with_wine_tools"; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004186 if test "$cross_compiling" = "yes"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004187 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004188 elif test -n "$with_wine64"; then
4189 wine_cv_toolsdir="$with_wine64"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004190 fi
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004191 fi
4192 if test -z "$wine_cv_toolsdir"; then
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004193 wine_cv_toolsdir="\$(top_builddir)"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004194 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4195 case "$wine_cv_toolsdir" in
4196 /*) ;;
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004197 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004198 esac
4199 else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004200 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004201 fi
4202fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004204$as_echo "$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004205TOOLSDIR=$wine_cv_toolsdir
4206
Alexandre Julliard4d135d92009-02-16 13:08:44 +01004207if test -n "$host_alias" -a "$host_alias" != "$build_alias"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004208then
Alexandre Julliard0fea4a52009-02-12 10:28:23 +01004209 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004210
4211fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004212
Alexandre Julliard40916272007-03-08 13:19:50 +01004213for ac_prog in flex
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004214do
4215 # Extract the first word of "$ac_prog", so it can be a program name with args.
4216set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004218$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004219if ${ac_cv_prog_FLEX+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004220 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004221else
Alexandre Julliard40916272007-03-08 13:19:50 +01004222 if test -n "$FLEX"; then
4223 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004224else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004225as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226for as_dir in $PATH
4227do
4228 IFS=$as_save_IFS
4229 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004230 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004231 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliard40916272007-03-08 13:19:50 +01004232 ac_cv_prog_FLEX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004234 break 2
4235 fi
4236done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004237 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004238IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004239
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004240fi
4241fi
Alexandre Julliard40916272007-03-08 13:19:50 +01004242FLEX=$ac_cv_prog_FLEX
4243if test -n "$FLEX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004245$as_echo "$FLEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004246else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004248$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004249fi
4250
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004251
Alexandre Julliard40916272007-03-08 13:19:50 +01004252 test -n "$FLEX" && break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004253done
Alexandre Julliard40916272007-03-08 13:19:50 +01004254test -n "$FLEX" || FLEX="none"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004255
Alexandre Julliard40916272007-03-08 13:19:50 +01004256if test "$FLEX" = "none"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004257then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004258 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004259fi
Michael Stefaniucce307332009-12-29 18:07:02 +01004260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4261$as_echo_n "checking whether flex is recent enough... " >&6; }
4262cat >conftest.l <<EOF
4263%top{
4264#include "prediluvian.h"
4265}
4266%%
4267EOF
Alexandre Julliard27816c72010-07-28 11:04:46 +02004268if $FLEX -t conftest.l >/dev/null 2>&5
Michael Stefaniucce307332009-12-29 18:07:02 +01004269then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4271$as_echo "yes" >&6; }
4272else
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004275 as_fn_error $? "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
Michael Stefaniucce307332009-12-29 18:07:02 +01004276fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004277
Mike McCormackc068f672004-03-16 03:11:39 +00004278for ac_prog in bison
4279do
4280 # Extract the first word of "$ac_prog", so it can be a program name with args.
4281set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004283$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004284if ${ac_cv_prog_BISON+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004285 $as_echo_n "(cached) " >&6
Mike McCormackc068f672004-03-16 03:11:39 +00004286else
4287 if test -n "$BISON"; then
4288 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4289else
4290as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4291for as_dir in $PATH
4292do
4293 IFS=$as_save_IFS
4294 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004295 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Mike McCormackc068f672004-03-16 03:11:39 +00004297 ac_cv_prog_BISON="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackc068f672004-03-16 03:11:39 +00004299 break 2
4300 fi
4301done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004302 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004303IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00004304
4305fi
4306fi
4307BISON=$ac_cv_prog_BISON
4308if test -n "$BISON"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004310$as_echo "$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004311else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004313$as_echo "no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004314fi
4315
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004316
Mike McCormackc068f672004-03-16 03:11:39 +00004317 test -n "$BISON" && break
4318done
4319test -n "$BISON" || BISON="none"
4320
4321if test "$BISON" = "none"
4322then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004323 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
Mike McCormackc068f672004-03-16 03:11:39 +00004324fi
4325
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004326if test -n "$ac_tool_prefix"; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004327 for ac_prog in ar gar
4328 do
4329 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4330set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004332$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004333if ${ac_cv_prog_AR+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004334 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004335else
4336 if test -n "$AR"; then
4337 ac_cv_prog_AR="$AR" # Let the user override the test.
4338else
4339as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340for as_dir in $PATH
4341do
4342 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004344 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004346 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004348 break 2
4349 fi
4350done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004351 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004352IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004353
4354fi
4355fi
4356AR=$ac_cv_prog_AR
4357if test -n "$AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004359$as_echo "$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004360else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004362$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004363fi
4364
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004365
Francois Gouget86bd0462008-06-26 14:05:57 +02004366 test -n "$AR" && break
4367 done
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004368fi
Francois Gouget86bd0462008-06-26 14:05:57 +02004369if test -z "$AR"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004370 ac_ct_AR=$AR
Francois Gouget86bd0462008-06-26 14:05:57 +02004371 for ac_prog in ar gar
4372do
4373 # Extract the first word of "$ac_prog", so it can be a program name with args.
4374set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004376$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004377if ${ac_cv_prog_ac_ct_AR+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004378 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004379else
4380 if test -n "$ac_ct_AR"; then
4381 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4382else
4383as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384for as_dir in $PATH
4385do
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004388 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004390 ac_cv_prog_ac_ct_AR="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004392 break 2
4393 fi
4394done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004395 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004396IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004397
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004398fi
4399fi
4400ac_ct_AR=$ac_cv_prog_ac_ct_AR
4401if test -n "$ac_ct_AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004403$as_echo "$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004404else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004406$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004407fi
4408
Francois Gouget86bd0462008-06-26 14:05:57 +02004409
4410 test -n "$ac_ct_AR" && break
4411done
4412
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004413 if test "x$ac_ct_AR" = x; then
4414 AR="ar"
4415 else
4416 case $cross_compiling:$ac_tool_warned in
4417yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004420ac_tool_warned=yes ;;
4421esac
4422 AR=$ac_ct_AR
4423 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004424fi
4425
Rob Shearman0c694d72008-03-04 15:53:41 +00004426ARFLAGS=rc
4427
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004428if test -n "$ac_tool_prefix"; then
4429 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4430set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004432$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004433if ${ac_cv_prog_RANLIB+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004434 $as_echo_n "(cached) " >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004435else
4436 if test -n "$RANLIB"; then
4437 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4438else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440for as_dir in $PATH
4441do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004444 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004446 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004448 break 2
4449 fi
4450done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004451 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004452IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004453
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004454fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004455fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004456RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004457if test -n "$RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004459$as_echo "$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004460else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004462$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004463fi
4464
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004465
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004466fi
4467if test -z "$ac_cv_prog_RANLIB"; then
4468 ac_ct_RANLIB=$RANLIB
4469 # Extract the first word of "ranlib", so it can be a program name with args.
4470set dummy ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004472$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004473if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004474 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004475else
4476 if test -n "$ac_ct_RANLIB"; then
4477 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4478else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480for as_dir in $PATH
4481do
4482 IFS=$as_save_IFS
4483 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004484 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004486 ac_cv_prog_ac_ct_RANLIB="ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004488 break 2
4489 fi
4490done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004491 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004492IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004493
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004494fi
4495fi
4496ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4497if test -n "$ac_ct_RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004499$as_echo "$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004500else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004502$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004503fi
4504
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004505 if test "x$ac_ct_RANLIB" = x; then
4506 RANLIB=":"
4507 else
4508 case $cross_compiling:$ac_tool_warned in
4509yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004512ac_tool_warned=yes ;;
4513esac
4514 RANLIB=$ac_ct_RANLIB
4515 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004516else
4517 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004518fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004519
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004521$as_echo_n "checking whether ln -s works... " >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004522LN_S=$as_ln_s
4523if test "$LN_S" = "ln -s"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004525$as_echo "yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004526else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004528$as_echo "no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004529fi
4530
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004532$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004533if ${ac_cv_path_GREP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004534 $as_echo_n "(cached) " >&6
Alexandre Julliardc6264912004-08-16 20:09:37 +00004535else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004536 if test -z "$GREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004537 ac_path_GREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004538 # Loop through the user's path and test for each of PROGNAME-LIST
4539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004540for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4541do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004544 for ac_prog in grep ggrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4547 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4548# Check for GNU ac_path_GREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004549 # Check for GNU $ac_path_GREP
4550case `"$ac_path_GREP" --version 2>&1` in
4551*GNU*)
4552 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4553*)
4554 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004555 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004556 while :
4557 do
4558 cat "conftest.in" "conftest.in" >"conftest.tmp"
4559 mv "conftest.tmp" "conftest.in"
4560 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004561 $as_echo 'GREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004562 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4563 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004564 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004565 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4566 # Best one so far, save it but keep looking for a better one
4567 ac_cv_path_GREP="$ac_path_GREP"
4568 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00004569 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004570 # 10*(2^10) chars as input seems more than enough
4571 test $ac_count -gt 10 && break
4572 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004573 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004574esac
4575
Alexandre Julliardabf50482008-10-31 12:56:53 +01004576 $ac_path_GREP_found && break 3
4577 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004578 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004579 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004580IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004581 if test -z "$ac_cv_path_GREP"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004582 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004583 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004584else
4585 ac_cv_path_GREP=$GREP
4586fi
4587
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004588fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004590$as_echo "$ac_cv_path_GREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004591 GREP="$ac_cv_path_GREP"
4592
4593
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004595$as_echo_n "checking for egrep... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004596if ${ac_cv_path_EGREP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004597 $as_echo_n "(cached) " >&6
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004598else
4599 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4600 then ac_cv_path_EGREP="$GREP -E"
4601 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004602 if test -z "$EGREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004603 ac_path_EGREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004604 # Loop through the user's path and test for each of PROGNAME-LIST
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004606for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4607do
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004610 for ac_prog in egrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004611 for ac_exec_ext in '' $ac_executable_extensions; do
4612 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4613 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4614# Check for GNU ac_path_EGREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004615 # Check for GNU $ac_path_EGREP
4616case `"$ac_path_EGREP" --version 2>&1` in
4617*GNU*)
4618 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4619*)
4620 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004621 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004622 while :
4623 do
4624 cat "conftest.in" "conftest.in" >"conftest.tmp"
4625 mv "conftest.tmp" "conftest.in"
4626 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004627 $as_echo 'EGREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004628 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004630 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004631 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4632 # Best one so far, save it but keep looking for a better one
4633 ac_cv_path_EGREP="$ac_path_EGREP"
4634 ac_path_EGREP_max=$ac_count
4635 fi
4636 # 10*(2^10) chars as input seems more than enough
4637 test $ac_count -gt 10 && break
4638 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004640esac
4641
Alexandre Julliardabf50482008-10-31 12:56:53 +01004642 $ac_path_EGREP_found && break 3
4643 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004644 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004645 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004646IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004647 if test -z "$ac_cv_path_EGREP"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004648 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004649 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004650else
4651 ac_cv_path_EGREP=$EGREP
4652fi
4653
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004654 fi
4655fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004657$as_echo "$ac_cv_path_EGREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004658 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00004659
4660
James Juranffe6b761999-06-12 08:21:57 +00004661# Extract the first word of "ldconfig", so it can be a program name with args.
4662set dummy ldconfig; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004664$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004665if ${ac_cv_path_LDCONFIG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004666 $as_echo_n "(cached) " >&6
James Juranffe6b761999-06-12 08:21:57 +00004667else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004668 case $LDCONFIG in
4669 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004670 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4671 ;;
4672 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004674for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004675do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004678 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004679 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004680 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004682 break 2
4683 fi
4684done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004685 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004686IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004687
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004688 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004689 ;;
4690esac
4691fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004692LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00004693if test -n "$LDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004695$as_echo "$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004696else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004698$as_echo "no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004699fi
4700
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004701
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004702# Find a good install program. We prefer a C program (faster),
4703# so one script is as good as another. But avoid the broken or
4704# incompatible versions:
4705# SysV /etc/install, /usr/sbin/install
4706# SunOS /usr/etc/install
4707# IRIX /sbin/install
4708# AIX /bin/install
4709# AmigaOS /C/install, which installs bootblocks on floppy discs
4710# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4711# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4712# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00004713# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004714# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardabf50482008-10-31 12:56:53 +01004715# Reject install programs that cannot install multiple files.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004717$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004718if test -z "$INSTALL"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +02004719if ${ac_cv_path_install+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004720 $as_echo_n "(cached) " >&6
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004721else
4722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
4724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004727 # Account for people who put trailing slashes in PATH elements.
4728case $as_dir/ in #((
4729 ./ | .// | /[cC]/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004730 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004731 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004732 /usr/ucb/* ) ;;
4733 *)
4734 # OSF1 and SCO ODT 3.0 have their own names for install.
4735 # Don't use installbsd from OSF since it installs stuff as root
4736 # by default.
4737 for ac_prog in ginstall scoinst install; do
4738 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004739 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00004740 if test $ac_prog = install &&
4741 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4742 # AIX install. It has an incompatible calling convention.
4743 :
4744 elif test $ac_prog = install &&
4745 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4746 # program-specific install script used by HP pwplus--don't use.
4747 :
4748 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004749 rm -rf conftest.one conftest.two conftest.dir
4750 echo one > conftest.one
4751 echo two > conftest.two
4752 mkdir conftest.dir
4753 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4754 test -s conftest.one && test -s conftest.two &&
4755 test -s conftest.dir/conftest.one &&
4756 test -s conftest.dir/conftest.two
4757 then
4758 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4759 break 3
4760 fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004761 fi
4762 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004763 done
4764 done
4765 ;;
4766esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01004767
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004768 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004769IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004770
Alexandre Julliardabf50482008-10-31 12:56:53 +01004771rm -rf conftest.one conftest.two conftest.dir
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004772
4773fi
4774 if test "${ac_cv_path_install+set}" = set; then
4775 INSTALL=$ac_cv_path_install
4776 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004777 # As a last resort, use the slow shell script. Don't cache a
4778 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004779 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004780 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004781 INSTALL=$ac_install_sh
4782 fi
4783fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004785$as_echo "$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004786
4787# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4788# It thinks the first close brace ends the variable substitution.
4789test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4790
4791test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4792
4793test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4794
4795case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00004796 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004797 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004798esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004799
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004800for ac_prog in lclint lint
4801do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004802 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004803set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004805$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004806if ${ac_cv_prog_LINT+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004807 $as_echo_n "(cached) " >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004808else
4809 if test -n "$LINT"; then
4810 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4811else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004812as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4813for as_dir in $PATH
4814do
4815 IFS=$as_save_IFS
4816 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004817 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004819 ac_cv_prog_LINT="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004821 break 2
4822 fi
4823done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004824 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004825IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004826
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004827fi
4828fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004829LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004830if test -n "$LINT"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004832$as_echo "$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004833else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004835$as_echo "no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004836fi
4837
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004838
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004839 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004840done
4841
4842if test "$LINT" = "lint"
4843then
4844 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4845 fi
4846
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004847
4848
Huw Davies00acb5f2004-08-17 22:33:14 +00004849for ac_prog in fontforge
4850do
4851 # Extract the first word of "$ac_prog", so it can be a program name with args.
4852set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004854$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004855if ${ac_cv_prog_FONTFORGE+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004856 $as_echo_n "(cached) " >&6
Huw Davies00acb5f2004-08-17 22:33:14 +00004857else
4858 if test -n "$FONTFORGE"; then
4859 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4860else
4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004866 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Huw Davies00acb5f2004-08-17 22:33:14 +00004868 ac_cv_prog_FONTFORGE="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Huw Davies00acb5f2004-08-17 22:33:14 +00004870 break 2
4871 fi
4872done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004873 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004874IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00004875
4876fi
4877fi
4878FONTFORGE=$ac_cv_prog_FONTFORGE
4879if test -n "$FONTFORGE"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004881$as_echo "$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004882else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004884$as_echo "no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004885fi
4886
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004887
Huw Davies00acb5f2004-08-17 22:33:14 +00004888 test -n "$FONTFORGE" && break
4889done
4890test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00004891
Mike McCormack90c75bd2005-08-08 18:36:53 +00004892for ac_prog in pkg-config
4893do
4894 # Extract the first word of "$ac_prog", so it can be a program name with args.
4895set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004897$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004898if ${ac_cv_prog_PKG_CONFIG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004899 $as_echo_n "(cached) " >&6
Mike McCormack90c75bd2005-08-08 18:36:53 +00004900else
4901 if test -n "$PKG_CONFIG"; then
4902 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4903else
4904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4905for as_dir in $PATH
4906do
4907 IFS=$as_save_IFS
4908 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004909 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Mike McCormack90c75bd2005-08-08 18:36:53 +00004911 ac_cv_prog_PKG_CONFIG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormack90c75bd2005-08-08 18:36:53 +00004913 break 2
4914 fi
4915done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004916 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004917IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00004918
4919fi
4920fi
4921PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4922if test -n "$PKG_CONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004924$as_echo "$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004925else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004927$as_echo "no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004928fi
4929
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004930
Mike McCormack90c75bd2005-08-08 18:36:53 +00004931 test -n "$PKG_CONFIG" && break
4932done
4933test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4934
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004935for ac_prog in rsvg
4936do
4937 # Extract the first word of "$ac_prog", so it can be a program name with args.
4938set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004939{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004940$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004941if ${ac_cv_prog_RSVG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004942 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004943else
4944 if test -n "$RSVG"; then
4945 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4946else
4947as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948for as_dir in $PATH
4949do
4950 IFS=$as_save_IFS
4951 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004952 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4954 ac_cv_prog_RSVG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004956 break 2
4957 fi
4958done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004959 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004960IFS=$as_save_IFS
4961
4962fi
4963fi
4964RSVG=$ac_cv_prog_RSVG
4965if test -n "$RSVG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004967$as_echo "$RSVG" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004968else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004970$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004971fi
4972
4973
4974 test -n "$RSVG" && break
4975done
4976test -n "$RSVG" || RSVG="false"
4977
Joel Holdsworth476a2be2010-04-05 11:15:03 +01004978for ac_prog in convert
4979do
4980 # Extract the first word of "$ac_prog", so it can be a program name with args.
4981set dummy $ac_prog; ac_word=$2
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4983$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004984if ${ac_cv_prog_CONVERT+:} false; then :
Joel Holdsworth476a2be2010-04-05 11:15:03 +01004985 $as_echo_n "(cached) " >&6
4986else
4987 if test -n "$CONVERT"; then
4988 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4989else
4990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991for as_dir in $PATH
4992do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
4995 for ac_exec_ext in '' $ac_executable_extensions; do
4996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4997 ac_cv_prog_CONVERT="$ac_prog"
4998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4999 break 2
5000 fi
5001done
5002 done
5003IFS=$as_save_IFS
5004
5005fi
5006fi
5007CONVERT=$ac_cv_prog_CONVERT
5008if test -n "$CONVERT"; then
5009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5010$as_echo "$CONVERT" >&6; }
5011else
5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5013$as_echo "no" >&6; }
5014fi
5015
5016
5017 test -n "$CONVERT" && break
5018done
5019test -n "$CONVERT" || CONVERT="false"
5020
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005021for ac_prog in icotool
5022do
5023 # Extract the first word of "$ac_prog", so it can be a program name with args.
5024set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005026$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005027if ${ac_cv_prog_ICOTOOL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005028 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005029else
5030 if test -n "$ICOTOOL"; then
5031 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5032else
5033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005038 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_prog_ICOTOOL="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005042 break 2
5043 fi
5044done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005045 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005046IFS=$as_save_IFS
5047
5048fi
5049fi
5050ICOTOOL=$ac_cv_prog_ICOTOOL
5051if test -n "$ICOTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005053$as_echo "$ICOTOOL" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005054else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005056$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005057fi
5058
5059
5060 test -n "$ICOTOOL" && break
5061done
5062test -n "$ICOTOOL" || ICOTOOL="false"
5063
5064
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005065if test "x$enable_maintainer_mode" != "xyes"
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005066then
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005067 MAINTAINER_MODE=\#
5068
5069else
Alexandre Julliard9797da42011-04-27 17:37:43 +02005070 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5071 if test "$RSVG" = "false"; then as_fn_error $? "You need rsvg to rebuild icons in maintainer mode." "$LINENO" 5; fi
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005072
5073 if test "$CONVERT" = false
5074 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005075 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005076 else
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5078$as_echo_n "checking for recent enough imagemagick... " >&6; }
5079 convert_version=`convert --version | head -n1`
5080 if test "x$convert_version" != "x"
5081 then
5082 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5083 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5084 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5085 then
5086 CONVERT=false
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005087 fi
5088 fi
5089 if test "$CONVERT" = false
5090 then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5092$as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005093 as_fn_error $? "You need imagemagick version 6.6 or newer to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5096$as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5097 fi
5098 fi
Joel Holdsworth425f1382010-04-05 11:14:47 +01005099
5100 if test "$ICOTOOL" = false
5101 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005102 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworth425f1382010-04-05 11:14:47 +01005103 else
5104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5105$as_echo_n "checking for recent enough icotool... " >&6; }
5106 icotool_version=`icotool --version | head -n1`
5107 if test "x$icotool_version" != "x"
5108 then
Joel Holdsworth9571f782010-05-16 23:07:33 +01005109 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5110 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
Joel Holdsworth425f1382010-04-05 11:14:47 +01005111 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5112 then
5113 ICOTOOL=false
5114 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5115 fi
5116 fi
5117 if test "$ICOTOOL" = false
5118 then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5120$as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005121 as_fn_error $? "You need icotool version 0.29.0 or newer to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworth425f1382010-04-05 11:14:47 +01005122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5124$as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5125 fi
5126 fi
5127
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005128fi
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005129
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005130
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005132$as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005133if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005134 $as_echo_n "(cached) " >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005135else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005136 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005137LIBS="-li386 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005139/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005140
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005141/* Override any GCC internal prototype to avoid an error.
5142 Use char because int might match the return type of a GCC
5143 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005144#ifdef __cplusplus
5145extern "C"
5146#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005147char i386_set_ldt ();
5148int
5149main ()
5150{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005151return i386_set_ldt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005152 ;
5153 return 0;
5154}
5155_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005156if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005157 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005158else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005159 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005160fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005161rm -f core conftest.err conftest.$ac_objext \
5162 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005163LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005164fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005166$as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005167if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005168 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005169#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005170_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005171
5172 LIBS="-li386 $LIBS"
5173
Alexandre Julliard02e90081998-01-04 17:49:09 +00005174fi
5175
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005177$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005178if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005179 $as_echo_n "(cached) " >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005180else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005181 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005182LIBS="-lossaudio $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005184/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005185
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005186/* Override any GCC internal prototype to avoid an error.
5187 Use char because int might match the return type of a GCC
5188 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005189#ifdef __cplusplus
5190extern "C"
5191#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005192char _oss_ioctl ();
5193int
5194main ()
5195{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005196return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005197 ;
5198 return 0;
5199}
5200_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005201if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005202 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005203else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005204 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005205fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005206rm -f core conftest.err conftest.$ac_objext \
5207 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005208LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005209fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005211$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005212if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005213 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005214#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005215_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005216
5217 LIBS="-lossaudio $LIBS"
5218
Todd Vierlingecc76691998-12-15 17:49:02 +00005219fi
5220
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005221
Alexandre Julliard82776022005-08-08 11:17:25 +00005222XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005223
Huw Daviese82dfab2004-08-04 19:10:26 +00005224OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005225
Rein Klazes7ff12562004-11-09 20:16:35 +00005226
Alexandre Julliard82776022005-08-08 11:17:25 +00005227
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005228# Check whether --enable-largefile was given.
5229if test "${enable_largefile+set}" = set; then :
5230 enableval=$enable_largefile;
5231fi
5232
5233if test "$enable_largefile" != no; then
5234
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5236$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005237if ${ac_cv_sys_largefile_CC+:} false; then :
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005238 $as_echo_n "(cached) " >&6
5239else
5240 ac_cv_sys_largefile_CC=no
5241 if test "$GCC" != yes; then
5242 ac_save_CC=$CC
5243 while :; do
5244 # IRIX 6.2 and later do not support large files by default,
5245 # so use the C compiler's -n32 option if that helps.
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247/* end confdefs.h. */
5248#include <sys/types.h>
5249 /* Check that off_t can represent 2**63 - 1 correctly.
5250 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5251 since some C++ compilers masquerading as C compilers
5252 incorrectly reject 9223372036854775807. */
5253#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5254 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5255 && LARGE_OFF_T % 2147483647 == 1)
5256 ? 1 : -1];
5257int
5258main ()
5259{
5260
5261 ;
5262 return 0;
5263}
5264_ACEOF
5265 if ac_fn_c_try_compile "$LINENO"; then :
5266 break
5267fi
5268rm -f core conftest.err conftest.$ac_objext
5269 CC="$CC -n32"
5270 if ac_fn_c_try_compile "$LINENO"; then :
5271 ac_cv_sys_largefile_CC=' -n32'; break
5272fi
5273rm -f core conftest.err conftest.$ac_objext
5274 break
5275 done
5276 CC=$ac_save_CC
5277 rm -f conftest.$ac_ext
5278 fi
5279fi
5280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5281$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5282 if test "$ac_cv_sys_largefile_CC" != no; then
5283 CC=$CC$ac_cv_sys_largefile_CC
5284 fi
5285
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5287$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005288if ${ac_cv_sys_file_offset_bits+:} false; then :
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005289 $as_echo_n "(cached) " >&6
5290else
5291 while :; do
5292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5293/* end confdefs.h. */
5294#include <sys/types.h>
5295 /* Check that off_t can represent 2**63 - 1 correctly.
5296 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5297 since some C++ compilers masquerading as C compilers
5298 incorrectly reject 9223372036854775807. */
5299#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5300 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5301 && LARGE_OFF_T % 2147483647 == 1)
5302 ? 1 : -1];
5303int
5304main ()
5305{
5306
5307 ;
5308 return 0;
5309}
5310_ACEOF
5311if ac_fn_c_try_compile "$LINENO"; then :
5312 ac_cv_sys_file_offset_bits=no; break
5313fi
5314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316/* end confdefs.h. */
5317#define _FILE_OFFSET_BITS 64
5318#include <sys/types.h>
5319 /* Check that off_t can represent 2**63 - 1 correctly.
5320 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5321 since some C++ compilers masquerading as C compilers
5322 incorrectly reject 9223372036854775807. */
5323#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5324 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5325 && LARGE_OFF_T % 2147483647 == 1)
5326 ? 1 : -1];
5327int
5328main ()
5329{
5330
5331 ;
5332 return 0;
5333}
5334_ACEOF
5335if ac_fn_c_try_compile "$LINENO"; then :
5336 ac_cv_sys_file_offset_bits=64; break
5337fi
5338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5339 ac_cv_sys_file_offset_bits=unknown
5340 break
5341done
5342fi
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5344$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5345case $ac_cv_sys_file_offset_bits in #(
5346 no | unknown) ;;
5347 *)
5348cat >>confdefs.h <<_ACEOF
5349#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5350_ACEOF
5351;;
5352esac
5353rm -rf conftest*
5354 if test $ac_cv_sys_file_offset_bits = unknown; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5356$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005357if ${ac_cv_sys_large_files+:} false; then :
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005358 $as_echo_n "(cached) " >&6
5359else
5360 while :; do
5361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5362/* end confdefs.h. */
5363#include <sys/types.h>
5364 /* Check that off_t can represent 2**63 - 1 correctly.
5365 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5366 since some C++ compilers masquerading as C compilers
5367 incorrectly reject 9223372036854775807. */
5368#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5369 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5370 && LARGE_OFF_T % 2147483647 == 1)
5371 ? 1 : -1];
5372int
5373main ()
5374{
5375
5376 ;
5377 return 0;
5378}
5379_ACEOF
5380if ac_fn_c_try_compile "$LINENO"; then :
5381 ac_cv_sys_large_files=no; break
5382fi
5383rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5385/* end confdefs.h. */
5386#define _LARGE_FILES 1
5387#include <sys/types.h>
5388 /* Check that off_t can represent 2**63 - 1 correctly.
5389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5390 since some C++ compilers masquerading as C compilers
5391 incorrectly reject 9223372036854775807. */
5392#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5394 && LARGE_OFF_T % 2147483647 == 1)
5395 ? 1 : -1];
5396int
5397main ()
5398{
5399
5400 ;
5401 return 0;
5402}
5403_ACEOF
5404if ac_fn_c_try_compile "$LINENO"; then :
5405 ac_cv_sys_large_files=1; break
5406fi
5407rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5408 ac_cv_sys_large_files=unknown
5409 break
5410done
5411fi
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5413$as_echo "$ac_cv_sys_large_files" >&6; }
5414case $ac_cv_sys_large_files in #(
5415 no | unknown) ;;
5416 *)
5417cat >>confdefs.h <<_ACEOF
5418#define _LARGE_FILES $ac_cv_sys_large_files
5419_ACEOF
5420;;
5421esac
5422rm -rf conftest*
5423 fi
5424fi
5425
5426
Alexandre Julliard40664c02009-02-11 20:40:58 +01005427ac_ext=c
5428ac_cpp='$CPP $CPPFLAGS'
5429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005433$as_echo_n "checking how to run the C preprocessor... " >&6; }
5434# On Suns, sometimes $CPP names a directory.
5435if test -n "$CPP" && test -d "$CPP"; then
5436 CPP=
5437fi
5438if test -z "$CPP"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +02005439 if ${ac_cv_prog_CPP+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005440 $as_echo_n "(cached) " >&6
5441else
5442 # Double quotes because CPP needs to be expanded
5443 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5444 do
5445 ac_preproc_ok=false
5446for ac_c_preproc_warn_flag in '' yes
5447do
5448 # Use a header file that comes with gcc, so configuring glibc
5449 # with a fresh cross-compiler works.
5450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5451 # <limits.h> exists even on freestanding compilers.
5452 # On the NeXT, cc -E runs the code through the compiler's parser,
5453 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005455/* end confdefs.h. */
5456#ifdef __STDC__
5457# include <limits.h>
5458#else
5459# include <assert.h>
5460#endif
5461 Syntax error
5462_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005463if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005464
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005465else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005466 # Broken: fails on valid input.
5467continue
5468fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005469rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005470
5471 # OK, works on sane cases. Now check whether nonexistent headers
5472 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005474/* end confdefs.h. */
5475#include <ac_nonexistent.h>
5476_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005477if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005478 # Broken: success on invalid input.
5479continue
5480else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005481 # Passes both tests.
5482ac_preproc_ok=:
5483break
5484fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005485rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005486
5487done
5488# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005489rm -f conftest.i conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005490if $ac_preproc_ok; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005491 break
5492fi
5493
5494 done
5495 ac_cv_prog_CPP=$CPP
5496
5497fi
5498 CPP=$ac_cv_prog_CPP
5499else
5500 ac_cv_prog_CPP=$CPP
5501fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005503$as_echo "$CPP" >&6; }
5504ac_preproc_ok=false
5505for ac_c_preproc_warn_flag in '' yes
5506do
5507 # Use a header file that comes with gcc, so configuring glibc
5508 # with a fresh cross-compiler works.
5509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5510 # <limits.h> exists even on freestanding compilers.
5511 # On the NeXT, cc -E runs the code through the compiler's parser,
5512 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005514/* end confdefs.h. */
5515#ifdef __STDC__
5516# include <limits.h>
5517#else
5518# include <assert.h>
5519#endif
5520 Syntax error
5521_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005522if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005523
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005524else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005525 # Broken: fails on valid input.
5526continue
5527fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005528rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005529
5530 # OK, works on sane cases. Now check whether nonexistent headers
5531 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005533/* end confdefs.h. */
5534#include <ac_nonexistent.h>
5535_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005536if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005537 # Broken: success on invalid input.
5538continue
5539else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005540 # Passes both tests.
5541ac_preproc_ok=:
5542break
5543fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005544rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005545
5546done
5547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005548rm -f conftest.i conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005549if $ac_preproc_ok; then :
5550
Alexandre Julliard40664c02009-02-11 20:40:58 +01005551else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005554as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Alexandre Julliard9797da42011-04-27 17:37:43 +02005555See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliard40664c02009-02-11 20:40:58 +01005556fi
5557
5558ac_ext=c
5559ac_cpp='$CPP $CPPFLAGS'
5560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5562ac_compiler_gnu=$ac_cv_c_compiler_gnu
5563
5564
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005566$as_echo_n "checking for ANSI C header files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005567if ${ac_cv_header_stdc+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005568 $as_echo_n "(cached) " >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005569else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005571/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005572#include <stdlib.h>
5573#include <stdarg.h>
5574#include <string.h>
5575#include <float.h>
5576
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005577int
5578main ()
5579{
5580
5581 ;
5582 return 0;
5583}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005584_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005585if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005586 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005587else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005588 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005589fi
Jeremy White0ebeb532006-06-20 13:18:41 +02005590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005591
5592if test $ac_cv_header_stdc = yes; then
5593 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005595/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005596#include <string.h>
5597
5598_ACEOF
5599if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005600 $EGREP "memchr" >/dev/null 2>&1; then :
5601
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005602else
5603 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005604fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005605rm -f conftest*
5606
5607fi
5608
5609if test $ac_cv_header_stdc = yes; then
5610 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005612/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005613#include <stdlib.h>
5614
5615_ACEOF
5616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005617 $EGREP "free" >/dev/null 2>&1; then :
5618
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005619else
5620 ac_cv_header_stdc=no
5621fi
5622rm -f conftest*
5623
5624fi
5625
5626if test $ac_cv_header_stdc = yes; then
5627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005628 if test "$cross_compiling" = yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005629 :
5630else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005632/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005633#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005634#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005635#if ((' ' & 0x0FF) == 0x020)
5636# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5637# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5638#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005639# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005640 (('a' <= (c) && (c) <= 'i') \
5641 || ('j' <= (c) && (c) <= 'r') \
5642 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005643# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5644#endif
5645
5646#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5647int
5648main ()
5649{
5650 int i;
5651 for (i = 0; i < 256; i++)
5652 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00005653 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005654 return 2;
5655 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005656}
5657_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005658if ac_fn_c_try_run "$LINENO"; then :
5659
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005660else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005661 ac_cv_header_stdc=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005662fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005663rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5664 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005665fi
5666
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005667fi
5668fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005670$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005671if test $ac_cv_header_stdc = yes; then
5672
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005673$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005674
5675fi
5676
5677# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005678for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005679 inttypes.h stdint.h unistd.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005680do :
5681 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5682ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5683"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005684if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005685 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005686#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005687_ACEOF
5688
5689fi
5690
5691done
5692
5693
Rein Klazes7ff12562004-11-09 20:16:35 +00005694for ac_header in \
Chris Robinson862965f2009-08-25 03:26:35 -07005695 AL/al.h \
Ken Thomases21137cd2011-01-05 07:25:23 -06005696 ApplicationServices/ApplicationServices.h \
Aric Stewart4430ab42010-03-17 10:58:32 -05005697 AudioToolbox/AudioConverter.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005698 AudioUnit/AudioUnit.h \
Charles Davis459d9422011-01-29 16:45:53 -07005699 AudioUnit/AudioComponent.h \
Adam Martinson2eb2f712010-12-28 12:46:09 -06005700 CL/cl.h \
Pierre d'Herbemont08884512006-10-24 15:26:33 +02005701 Carbon/Carbon.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005702 CoreAudio/CoreAudio.h \
Alexandre Julliard66f45a52006-11-06 13:33:16 +01005703 DiskArbitration/DiskArbitration.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00005704 IOKit/IOKitLib.h \
Aric Stewart225a4942009-03-10 14:59:20 -05005705 IOKit/hid/IOHIDLib.h \
Ken Thomases0b08f192009-09-09 22:23:35 -05005706 OpenAL/al.h \
Peter Urbanec65c84d72010-12-02 23:41:48 +11005707 OpenCL/opencl.h \
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +01005708 QuickTime/ImageCompression.h \
Ken Thomases25ed6872011-03-13 18:58:44 -05005709 Security/Security.h \
Eric Durbin020b0ef2008-06-24 22:45:51 -05005710 alias.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005711 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005712 arpa/inet.h \
5713 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00005714 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005715 capi20.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005716 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005717 direct.h \
Rob Shearman87175c62008-10-03 12:55:21 +01005718 dirent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005719 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005720 elf.h \
5721 float.h \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +02005722 fnmatch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005723 fontconfig/fontconfig.h \
5724 getopt.h \
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01005725 gettext-po.h \
Alexandre Julliard46678dc2008-12-09 17:09:42 +01005726 grp.h \
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +02005727 gsm.h \
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +02005728 gsm/gsm.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005729 ieeefp.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005730 inet/mib2.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005731 io.h \
5732 jack/jack.h \
5733 jpeglib.h \
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +01005734 kstat.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005735 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005736 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005737 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005738 ldap.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005739 link.h \
5740 linux/cdrom.h \
5741 linux/compiler.h \
5742 linux/hdreg.h \
5743 linux/input.h \
5744 linux/ioctl.h \
5745 linux/joystick.h \
5746 linux/major.h \
5747 linux/param.h \
5748 linux/serial.h \
Francois Gougetda1a3522008-12-28 10:35:02 +01005749 linux/types.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005750 linux/ucdrom.h \
Ken Thomasesd35c0e82009-03-11 09:05:53 -05005751 mach-o/nlist.h \
Austin English95740b32010-10-08 00:33:52 -07005752 mach-o/loader.h \
Alexandre Julliard150b5dc2006-12-29 20:02:02 +01005753 mach/mach.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005754 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005755 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005756 machine/limits.h \
Austin English40b3d2e2010-05-23 21:18:17 -05005757 machine/sysarch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005758 mntent.h \
Aric Stewartdb71d7c2009-08-19 09:37:48 -05005759 mpg123.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005760 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005761 netdb.h \
5762 netinet/in.h \
5763 netinet/in_systm.h \
5764 netinet/tcp.h \
5765 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01005766 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005767 openssl/ssl.h \
Alexandre Julliard00302152007-07-02 19:54:00 +02005768 png.h \
Steven Edwards57279182005-03-04 12:38:36 +00005769 poll.h \
Albert Lee01b972d2009-11-20 18:35:26 -05005770 port.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005771 process.h \
5772 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005773 pwd.h \
5774 regex.h \
5775 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005776 scsi/scsi.h \
5777 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005778 scsi/sg.h \
Austin English2d7ccb32009-06-13 18:01:24 -05005779 stdbool.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005780 stdint.h \
5781 strings.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005782 stropts.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005783 sys/asoundlib.h \
Charles Davis4e44e152011-01-18 13:09:44 -07005784 sys/attr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005785 sys/cdio.h \
5786 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005787 sys/epoll.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005788 sys/errno.h \
Alexandre Julliardc8278922006-08-04 22:11:00 +02005789 sys/event.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005790 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005791 sys/filio.h \
Alexandre Julliard61a70362009-06-26 15:45:03 +02005792 sys/inotify.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005793 sys/ioctl.h \
5794 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00005795 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005796 sys/link.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005797 sys/mman.h \
5798 sys/modem.h \
5799 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01005800 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005801 sys/param.h \
5802 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02005803 sys/prctl.h \
Austin English94021a12009-01-20 17:42:53 -06005804 sys/protosw.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005805 sys/ptrace.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09005806 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005807 sys/scsiio.h \
5808 sys/shm.h \
5809 sys/signal.h \
5810 sys/socket.h \
Mark Adams25696352007-07-10 23:39:21 -04005811 sys/socketvar.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005812 sys/sockio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005813 sys/statvfs.h \
5814 sys/strtio.h \
5815 sys/syscall.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005816 sys/tihdr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005817 sys/time.h \
Austin English8b195912009-01-21 21:59:11 -06005818 sys/timeout.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005819 sys/times.h \
5820 sys/uio.h \
5821 sys/un.h \
Alexandre Julliard66eb4bd2008-12-09 19:33:06 +01005822 sys/utsname.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005823 sys/vm86.h \
5824 sys/wait.h \
5825 syscall.h \
5826 termios.h \
Vincent Povirk73cd5692010-03-08 17:07:29 -06005827 tiffio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005828 unistd.h \
5829 utime.h \
John Reiser0a2c94e2008-07-24 13:31:53 -07005830 valgrind/memcheck.h \
Jacek Caban11ca05f2009-05-29 23:35:13 +02005831 valgrind/valgrind.h \
5832 zlib.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005833
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005834do :
5835 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5836ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005837if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005838 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005839#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Rein Klazes7ff12562004-11-09 20:16:35 +00005840_ACEOF
5841
5842fi
5843
5844done
5845
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005847$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005848if ${ac_cv_header_stat_broken+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005849 $as_echo_n "(cached) " >&6
Rein Klazes7ff12562004-11-09 20:16:35 +00005850else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005852/* end confdefs.h. */
5853#include <sys/types.h>
5854#include <sys/stat.h>
5855
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005856#if defined S_ISBLK && defined S_IFDIR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005857extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005858#endif
5859
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005860#if defined S_ISBLK && defined S_IFCHR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005861extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005862#endif
5863
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005864#if defined S_ISLNK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005865extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005866#endif
5867
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005868#if defined S_ISSOCK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005869extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005870#endif
5871
5872_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005873if ac_fn_c_try_compile "$LINENO"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005874 ac_cv_header_stat_broken=no
Phil Krylovf0ca5862006-11-05 23:03:46 +03005875else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005876 ac_cv_header_stat_broken=yes
Phil Krylovf0ca5862006-11-05 23:03:46 +03005877fi
Phil Krylovf0ca5862006-11-05 23:03:46 +03005878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005879fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005881$as_echo "$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00005882if test $ac_cv_header_stat_broken = yes; then
5883
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005884$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005885
5886fi
5887
5888
5889
Austin English51094be2008-12-27 14:53:53 -06005890for ac_header in sys/mount.h sys/statfs.h sys/sysctl.h sys/user.h sys/vfs.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005891do :
5892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5893ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005894 #ifdef HAVE_SYS_PARAM_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005895 # include <sys/param.h>
5896 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005897"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005898if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005899 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005900#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005901_ACEOF
5902
5903fi
5904
5905done
5906
5907
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005908for ac_header in \
5909 netinet/ip.h \
5910 net/if.h \
5911 net/if_arp.h \
5912 net/if_dl.h \
5913 net/if_types.h \
5914 net/route.h \
5915 netinet/if_ether.h \
Austin English337067a2009-01-22 10:44:06 -06005916 netinet/if_inarp.h \
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005917 netinet/in_pcb.h \
5918 netinet/ip_icmp.h \
5919 netinet/ip_var.h \
5920 netinet/udp.h \
5921 netipx/ipx.h \
5922
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005923do :
5924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5925ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005926 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005927 # include <sys/socket.h>
5928 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005929 #ifdef HAVE_SYS_SOCKETVAR_H
Ken Thomasesa609fee2007-10-19 16:18:17 -05005930 # include <sys/socketvar.h>
5931 #endif
Austin Englishbb3f2582009-01-26 23:34:42 -06005932 #ifdef HAVE_NET_ROUTE_H
5933 # include <net/route.h>
5934 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005935 #ifdef HAVE_NETINET_IN_H
Ken Thomasesffd78b12007-10-19 16:18:27 -05005936 # include <netinet/in.h>
5937 #endif
Austin English03173932009-01-23 13:29:42 -06005938 #ifdef HAVE_NETINET_IN_SYSTM_H
5939 # include <netinet/in_systm.h>
5940 #endif
Alexandre Julliardd7e846c2009-01-30 14:01:12 +01005941 #ifdef HAVE_NET_IF_H
5942 # include <net/if.h>
5943 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005944 #ifdef HAVE_NETINET_IP_H
5945 # include <netinet/ip.h>
5946 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005947"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005948if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005949 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005950#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005951_ACEOF
5952
5953fi
5954
5955done
5956
Mark Adams25696352007-07-10 23:39:21 -04005957
Austin English03173932009-01-23 13:29:42 -06005958for ac_header in netinet/tcp_timer.h netinet/udp_var.h netinet/icmp_var.h netinet/tcp_var.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005959do :
5960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5961ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Eric Durbin020b0ef2008-06-24 22:45:51 -05005962 #ifdef HAVE_ALIAS_H
5963 # include <alias.h>
5964 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005965 #ifdef HAVE_SYS_SOCKET_H
Mark Adams25696352007-07-10 23:39:21 -04005966 # include <sys/socket.h>
5967 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005968 #ifdef HAVE_SYS_SOCKETVAR_H
Mark Adams25696352007-07-10 23:39:21 -04005969 # include <sys/socketvar.h>
5970 #endif
Austin English53d3c462009-01-26 23:47:49 -06005971 #ifdef HAVE_SYS_TIMEOUT_H
5972 # include <sys/timeout.h>
5973 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005974 #ifdef HAVE_NETINET_IN_H
Mark Adams25696352007-07-10 23:39:21 -04005975 # include <netinet/in.h>
5976 #endif
Austin English03173932009-01-23 13:29:42 -06005977 #ifdef HAVE_NETINET_IN_SYSTM_H
5978 # include <netinet/in_systm.h>
5979 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005980 #ifdef HAVE_NETINET_IP_H
5981 # include <netinet/ip.h>
5982 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05005983 #ifdef HAVE_NETINET_IP_VAR_H
5984 # include <netinet/ip_var.h>
5985 #endif
Eric Durbin020b0ef2008-06-24 22:45:51 -05005986 #ifdef HAVE_NETINET_IP_ICMP_H
5987 # include <netinet/ip_icmp.h>
5988 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05005989 #ifdef HAVE_NETINET_UDP_H
5990 # include <netinet/udp.h>
5991 #endif
Mark Adams25696352007-07-10 23:39:21 -04005992 #ifdef HAVE_NETINET_TCP_H
5993 # include <netinet/tcp.h>
5994 #endif
Austin English03173932009-01-23 13:29:42 -06005995 #ifdef HAVE_NETINET_TCP_TIMER_H
5996 #include <netinet/tcp_timer.h>
5997 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005998"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005999if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mark Adams25696352007-07-10 23:39:21 -04006000 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01006001#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mark Adams25696352007-07-10 23:39:21 -04006002_ACEOF
6003
6004fi
6005
6006done
6007
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006008
Juan Lang0ce420d2009-08-12 09:14:16 -07006009for ac_header in linux/ipx.h linux/irda.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006010do :
Juan Lang0ce420d2009-08-12 09:14:16 -07006011 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6012ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gougetfaf05df2006-08-07 21:52:36 +02006013 #ifdef HAVE_ASM_TYPES_H
6014 # include <asm/types.h>
6015 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006016 #ifdef HAVE_SYS_SOCKET_H
Francois Gougetfaf05df2006-08-07 21:52:36 +02006017 # include <sys/socket.h>
6018 #endif
Francois Gougetda1a3522008-12-28 10:35:02 +01006019 #ifdef HAVE_LINUX_TYPES_H
6020 # include <linux/types.h>
6021 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006022"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006023if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Francois Gougetfaf05df2006-08-07 21:52:36 +02006024 cat >>confdefs.h <<_ACEOF
Juan Lang0ce420d2009-08-12 09:14:16 -07006025#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Francois Gougetfaf05df2006-08-07 21:52:36 +02006026_ACEOF
6027
6028fi
6029
6030done
6031
6032
Austin English2d7ccb32009-06-13 18:01:24 -05006033for ac_header in mach-o/dyld_images.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006034do :
6035 ac_fn_c_check_header_compile "$LINENO" "mach-o/dyld_images.h" "ac_cv_header_mach_o_dyld_images_h" "#ifdef HAVE_STDBOOL_H
Austin English2d7ccb32009-06-13 18:01:24 -05006036 # include <stdbool.h>
6037 #endif
6038 #ifdef HAVE_STDINT_H
6039 # include <stdint.h>
6040 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006041"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006042if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
Austin English2d7ccb32009-06-13 18:01:24 -05006043 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006044#define HAVE_MACH_O_DYLD_IMAGES_H 1
Austin English2d7ccb32009-06-13 18:01:24 -05006045_ACEOF
6046
6047fi
6048
6049done
6050
6051
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006052for ac_header in resolv.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006053do :
6054 ac_fn_c_check_header_compile "$LINENO" "resolv.h" "ac_cv_header_resolv_h" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01006055 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006056 # include <sys/socket.h>
6057 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006058 #ifdef HAVE_NETINET_IN_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006059 # include <netinet/in.h>
6060 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006061 #ifdef HAVE_ARPA_NAMESER_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006062 # include <arpa/nameser.h>
6063 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006064"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006065if test "x$ac_cv_header_resolv_h" = xyes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006066 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006067#define HAVE_RESOLV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006068_ACEOF
6069
6070fi
6071
6072done
6073
6074
Juan Lange3c0e302010-03-11 18:36:46 -08006075for ac_header in ifaddrs.h
6076do :
6077 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6078"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006079if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
Juan Lange3c0e302010-03-11 18:36:46 -08006080 cat >>confdefs.h <<_ACEOF
6081#define HAVE_IFADDRS_H 1
6082_ACEOF
6083
6084fi
6085
6086done
6087
6088
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006089for ac_header in ucontext.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006090do :
6091 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6092"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006093if test "x$ac_cv_header_ucontext_h" = xyes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006094 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006095#define HAVE_UCONTEXT_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006096_ACEOF
6097
6098fi
6099
6100done
6101
6102
Tijl Coosemans60833da2007-08-08 00:25:24 +02006103for ac_header in sys/thr.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006104do :
6105 ac_fn_c_check_header_compile "$LINENO" "sys/thr.h" "ac_cv_header_sys_thr_h" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01006106#ifdef HAVE_UCONTEXT_H
Tijl Coosemans60833da2007-08-08 00:25:24 +02006107#include <ucontext.h>
6108#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006109"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006110if test "x$ac_cv_header_sys_thr_h" = xyes; then :
Tijl Coosemans60833da2007-08-08 00:25:24 +02006111 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006112#define HAVE_SYS_THR_H 1
Tijl Coosemans60833da2007-08-08 00:25:24 +02006113_ACEOF
6114
6115fi
6116
6117done
6118
6119
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006120for ac_header in pthread_np.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006121do :
6122 ac_fn_c_check_header_compile "$LINENO" "pthread_np.h" "ac_cv_header_pthread_np_h" "#ifdef HAVE_PTHREAD_H
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006123#include <pthread.h>
6124#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006125"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006126if test "x$ac_cv_header_pthread_np_h" = xyes; then :
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006127 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006128#define HAVE_PTHREAD_NP_H 1
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006129_ACEOF
6130
6131fi
6132
6133done
6134
6135
Francois Gougetfaf05df2006-08-07 21:52:36 +02006136for ac_header in linux/videodev.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006137do :
6138 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006139#include <sys/time.h>
6140#endif
6141#include <sys/types.h>
6142#ifdef HAVE_ASM_TYPES_H
6143#include <asm/types.h>
6144#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006145"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006146if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006147 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006148#define HAVE_LINUX_VIDEODEV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006149_ACEOF
6150
6151fi
6152
6153done
6154
6155
Alexandre Julliardb079add2006-02-24 11:46:17 +01006156for ac_header in linux/capi.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006157do :
6158 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6159"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006160if test "x$ac_cv_header_linux_capi_h" = xyes; then :
Alexandre Julliardb079add2006-02-24 11:46:17 +01006161 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006162#define HAVE_LINUX_CAPI_H 1
Alexandre Julliardb079add2006-02-24 11:46:17 +01006163_ACEOF
6164
6165fi
6166
6167done
6168
6169
6170
Alexandre Julliarda3097622007-07-02 17:27:48 +02006171DLLEXT=""
6172
6173DLLFLAGS="-D_REENTRANT"
6174
6175LDSHARED=""
6176
6177LDDLLFLAGS=""
6178
6179LIBEXT="so"
6180
6181IMPLIBEXT="def"
6182
6183LDRPATH_INSTALL=""
6184
6185LDRPATH_LOCAL=""
6186
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006187STATIC_IMPLIBEXT="def.a"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006188# Extract the first word of "ldd", so it can be a program name with args.
6189set dummy ldd; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006191$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006192if ${ac_cv_path_LDD+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006193 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006194else
6195 case $LDD in
6196 [\\/]* | ?:[\\/]*)
6197 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6198 ;;
6199 *)
6200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6201as_dummy="/sbin:/usr/sbin:$PATH"
6202for as_dir in $as_dummy
6203do
6204 IFS=$as_save_IFS
6205 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006206 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6208 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006210 break 2
6211 fi
6212done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006213 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006214IFS=$as_save_IFS
6215
6216 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6217 ;;
6218esac
6219fi
6220LDD=$ac_cv_path_LDD
6221if test -n "$LDD"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006223$as_echo "$LDD" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006224else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006226$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006227fi
6228
6229
6230
6231case $host_os in
6232 cygwin*|mingw32*)
6233 if test -n "$ac_tool_prefix"; then
6234 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6235set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006237$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006238if ${ac_cv_prog_DLLTOOL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006239 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006240else
6241 if test -n "$DLLTOOL"; then
6242 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6243else
6244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245for as_dir in $PATH
6246do
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006249 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006253 break 2
6254 fi
6255done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006256 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006257IFS=$as_save_IFS
6258
6259fi
6260fi
6261DLLTOOL=$ac_cv_prog_DLLTOOL
6262if test -n "$DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006264$as_echo "$DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006265else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006267$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006268fi
6269
6270
6271fi
6272if test -z "$ac_cv_prog_DLLTOOL"; then
6273 ac_ct_DLLTOOL=$DLLTOOL
6274 # Extract the first word of "dlltool", so it can be a program name with args.
6275set dummy dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006277$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006278if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006279 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006280else
6281 if test -n "$ac_ct_DLLTOOL"; then
6282 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6283else
6284as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285for as_dir in $PATH
6286do
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006289 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006293 break 2
6294 fi
6295done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006296 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006297IFS=$as_save_IFS
6298
6299fi
6300fi
6301ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6302if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006304$as_echo "$ac_ct_DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006305else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006307$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006308fi
6309
6310 if test "x$ac_ct_DLLTOOL" = x; then
6311 DLLTOOL="false"
6312 else
6313 case $cross_compiling:$ac_tool_warned in
6314yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006315{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006316$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006317ac_tool_warned=yes ;;
6318esac
6319 DLLTOOL=$ac_ct_DLLTOOL
6320 fi
6321else
6322 DLLTOOL="$ac_cv_prog_DLLTOOL"
6323fi
6324
6325 if test -n "$ac_tool_prefix"; then
6326 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6327set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006329$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006330if ${ac_cv_prog_DLLWRAP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006331 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006332else
6333 if test -n "$DLLWRAP"; then
6334 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6335else
6336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337for as_dir in $PATH
6338do
6339 IFS=$as_save_IFS
6340 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006341 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6343 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006345 break 2
6346 fi
6347done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006348 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006349IFS=$as_save_IFS
6350
6351fi
6352fi
6353DLLWRAP=$ac_cv_prog_DLLWRAP
6354if test -n "$DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006356$as_echo "$DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006357else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006359$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006360fi
6361
6362
6363fi
6364if test -z "$ac_cv_prog_DLLWRAP"; then
6365 ac_ct_DLLWRAP=$DLLWRAP
6366 # Extract the first word of "dllwrap", so it can be a program name with args.
6367set dummy dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006369$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006370if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006371 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006372else
6373 if test -n "$ac_ct_DLLWRAP"; then
6374 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6375else
6376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377for as_dir in $PATH
6378do
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006381 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006385 break 2
6386 fi
6387done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006388 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006389IFS=$as_save_IFS
6390
6391fi
6392fi
6393ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6394if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006396$as_echo "$ac_ct_DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006397else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006399$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006400fi
6401
6402 if test "x$ac_ct_DLLWRAP" = x; then
6403 DLLWRAP="false"
6404 else
6405 case $cross_compiling:$ac_tool_warned in
6406yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006409ac_tool_warned=yes ;;
6410esac
6411 DLLWRAP=$ac_ct_DLLWRAP
6412 fi
6413else
6414 DLLWRAP="$ac_cv_prog_DLLWRAP"
6415fi
6416
Alexandre Julliarda3097622007-07-02 17:27:48 +02006417 if test "$DLLWRAP" = "false"; then
6418 LIBEXT="a"
6419 else
6420 LIBEXT="dll"
6421 fi
6422 IMPLIBEXT="a"
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006423 STATIC_IMPLIBEXT="a"
Alexandre Julliardec1ebfb2008-09-04 12:29:07 +02006424 enable_iphlpapi=${enable_iphlpapi:-no}
6425 enable_kernel32=${enable_kernel32:-no}
6426 enable_msvcrt=${enable_msvcrt:-no}
6427 enable_ntdll=${enable_ntdll:-no}
6428 enable_ws2_32=${enable_ws2_32:-no}
6429 enable_loader=${enable_loader:-no}
6430 enable_server=${enable_server:-no}
Alexandre Julliard40664c02009-02-11 20:40:58 +01006431 with_x=${with_x:-no}
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01006432 with_pthread=${with_pthread:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006433 ;;
6434 darwin*|macosx*)
6435 DLLEXT=".so"
6436 LIBEXT="dylib"
6437 DLLFLAGS="$DLLFLAGS -fPIC"
6438 LDDLLFLAGS="-bundle -multiply_defined suppress"
6439 LIBWINE_LDFLAGS="-multiply_defined suppress"
6440 LDSHARED="\$(CC) -dynamiclib"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006441 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
Alexandre Julliard45db3482011-03-14 14:25:45 +01006442 COREFOUNDATIONLIB="-framework CoreFoundation"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006443
6444 IOKITLIB="-framework IOKit -framework CoreFoundation"
6445
Ken Thomases21137cd2011-01-05 07:25:23 -06006446 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6447
Alexandre Julliard691bdbd2009-06-23 20:51:37 +02006448 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006449
6450 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6451 then
6452 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6453
6454 fi
Alexandre Julliard45db3482011-03-14 14:25:45 +01006455 if test "$ac_cv_header_Security_Security_h" = "yes"
6456 then
6457 SECURITYLIB="-framework Security -framework CoreFoundation"
6458
6459 with_gnutls=${with_gnutls:-no}
6460 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006461 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6462 then
Charles Davis459d9422011-01-29 16:45:53 -07006463 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6464 then
6465 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006466
Charles Davis459d9422011-01-29 16:45:53 -07006467 else
6468 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6469
6470 fi
Charles Davisb149d7b2011-01-29 16:45:54 -07006471 ac_save_LIBS="$LIBS"
6472 LIBS="$LIBS $COREAUDIO"
6473 for ac_func in AUGraphAddNode
6474do :
6475 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006476if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
Charles Davisb149d7b2011-01-29 16:45:54 -07006477 cat >>confdefs.h <<_ACEOF
6478#define HAVE_AUGRAPHADDNODE 1
6479_ACEOF
6480
6481fi
6482done
6483
6484 LIBS="$ac_save_LIBS"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006485 fi
Ken Thomases0b08f192009-09-09 22:23:35 -05006486 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6487 then
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006488 FRAMEWORK_OPENAL="-framework OpenAL"
Ken Thomases0b08f192009-09-09 22:23:35 -05006489
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006490
6491cat >>confdefs.h <<_ACEOF
6492#define HAVE_OPENAL 1
6493_ACEOF
6494
6495 ac_cv_lib_openal=yes
Ken Thomases0b08f192009-09-09 22:23:35 -05006496 fi
Alexandre Julliardfac67412010-12-03 14:16:55 +01006497 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6498 then
6499 LIBOPENCL="-framework OpenCL"
6500
6501 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6502 fi
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006503 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6504 then
6505 ac_save_LIBS="$LIBS"
6506 LIBS="$LIBS $IOKITLIB"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006507 for ac_func in IOHIDManagerCreate
6508do :
6509 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006510if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006511 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006512#define HAVE_IOHIDMANAGERCREATE 1
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006513_ACEOF
6514
6515fi
6516done
6517
6518 LIBS="$ac_save_LIBS"
6519 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006520 case $host_cpu in
6521 *powerpc*)
6522 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6523 esac
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +01006524 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6525 then
6526 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6527
6528 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6529 else
6530 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6531 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006532 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6533 then
6534 CARBONLIB="-framework Carbon"
6535
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02006536 enable_winequartz_drv=${enable_winequartz_drv:-yes}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006537 fi
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006538 if test "x$enable_win16" = "xyes"
6539 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006541$as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006542 if test "$cross_compiling" = yes; then :
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006544$as_echo "cross-compiling, assuming yes" >&6; }
6545else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006547/* end confdefs.h. */
6548asm(".text\n"
6549 "bad:\tnop;nop\n"
6550 "good:\tnop;nop\n\t"
6551 ".globl _testfunc\n"
6552 "_testfunc:\tcallw good");
6553 extern void testfunc();
6554int
6555main ()
6556{
6557unsigned short *p = (unsigned short *)testfunc;
6558 return p[0] != 0xe866 || p[1] != 0xfffa
6559 ;
6560 return 0;
6561}
6562_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006563if ac_fn_c_try_run "$LINENO"; then :
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006565$as_echo "yes" >&6; }
6566else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006568$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006569 as_fn_error $? "Xcode 3.x cannot build 16-bit code correctly. Use --disable-win16 if you don't need 16-bit support." "$LINENO" 5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006570fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006571rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6572 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006573fi
6574
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006575 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006576 ;;
6577 *)
6578 DLLFLAGS="$DLLFLAGS -fPIC"
6579 DLLEXT=".so"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a GNU style ELF dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006581$as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006582if ${ac_cv_c_dll_gnuelf+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006583 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006584else
6585 ac_wine_try_cflags_saved=$CFLAGS
6586CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6588/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006589void myfunc() {}
6590_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006591if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006592 ac_cv_c_dll_gnuelf="yes"
6593else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006594 ac_cv_c_dll_gnuelf="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006595fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006596rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006598CFLAGS=$ac_wine_try_cflags_saved
6599fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006601$as_echo "$ac_cv_c_dll_gnuelf" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006602 if test "$ac_cv_c_dll_gnuelf" = "yes"
6603 then
6604 LDSHARED="\$(CC) -shared"
6605 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006607$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006608if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006609 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006610else
6611 ac_wine_try_cflags_saved=$CFLAGS
6612CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006614/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006615int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006616_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006617if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006618 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6619else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006620 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006621fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006622rm -f core conftest.err conftest.$ac_objext \
6623 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006624CFLAGS=$ac_wine_try_cflags_saved
6625fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006627$as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006628if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006629 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6630else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006632$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006633if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006634 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006635else
6636 ac_wine_try_cflags_saved=$CFLAGS
6637CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006638cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006639/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006640int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006641_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006642if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006643 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6644else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006645 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006646fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006647rm -f core conftest.err conftest.$ac_objext \
6648 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006649CFLAGS=$ac_wine_try_cflags_saved
6650fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006652$as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006653if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006654 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6655fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006656fi
6657
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006659$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006660if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006661 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006662else
6663 ac_wine_try_cflags_saved=$CFLAGS
6664CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006665cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006666/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006667int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006668_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006669if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006670 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6671else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006672 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006673fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006674rm -f core conftest.err conftest.$ac_objext \
6675 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006676CFLAGS=$ac_wine_try_cflags_saved
6677fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006679$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006680if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006681 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6682fi
6683
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006685$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006686if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006687 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006688else
6689 ac_wine_try_cflags_saved=$CFLAGS
6690CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006692/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006693int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006694_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006695if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006696 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6697else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006698 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006699fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006700rm -f core conftest.err conftest.$ac_objext \
6701 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006702CFLAGS=$ac_wine_try_cflags_saved
6703fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006705$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006706if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006707 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6708fi
6709
Alexandre Julliarda3097622007-07-02 17:27:48 +02006710 echo '{ global: *; };' >conftest.map
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006711 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006713$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006714if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006715 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006716else
6717 ac_wine_try_cflags_saved=$CFLAGS
6718CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006720/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006721int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006722_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006723if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006724 eval "$as_ac_var=yes"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006725else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006726 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006727fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006728rm -f core conftest.err conftest.$ac_objext \
6729 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006730CFLAGS=$ac_wine_try_cflags_saved
6731fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006732eval ac_res=\$$as_ac_var
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6734$as_echo "$ac_res" >&6; }
6735if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006736 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6737fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006738 rm -f conftest.map
6739
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006741$as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006742if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006743 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006744else
6745 ac_wine_try_cflags_saved=$CFLAGS
6746CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006747cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006748/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006749int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006750_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006751if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006752 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6753else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006754 ac_cv_cflags__fPIC__Wl___export_dynamic=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006755fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006756rm -f core conftest.err conftest.$ac_objext \
6757 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006758CFLAGS=$ac_wine_try_cflags_saved
6759fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006761$as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006762if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006763 LDEXECFLAGS="-Wl,--export-dynamic"
6764
6765fi
6766
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006767 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006769$as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006770if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006771 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006772else
6773 ac_wine_try_cflags_saved=$CFLAGS
6774CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006776/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006777int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006778_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006779if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006780 eval "$as_ac_var=yes"
6781else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006782 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006783fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006784rm -f core conftest.err conftest.$ac_objext \
6785 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006786CFLAGS=$ac_wine_try_cflags_saved
6787fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006788eval ac_res=\$$as_ac_var
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006790$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006791if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006792 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006793 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006794else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006795 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006797$as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006798if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006799 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006800else
6801 ac_wine_try_cflags_saved=$CFLAGS
6802CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006804/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006805int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006806_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006807if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006808 eval "$as_ac_var=yes"
6809else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006810 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006811fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006812rm -f core conftest.err conftest.$ac_objext \
6813 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006814CFLAGS=$ac_wine_try_cflags_saved
6815fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006816eval ac_res=\$$as_ac_var
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006818$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006819if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006820 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006821 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006822fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006823fi
6824
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006826$as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006827if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006828 $as_echo_n "(cached) " >&6
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006829else
6830 ac_wine_try_cflags_saved=$CFLAGS
6831CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006833/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006834int main(int argc, char **argv) { return 0; }
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006835_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006836if ac_fn_c_try_link "$LINENO"; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006837 ac_cv_cflags__Wl___enable_new_dtags=yes
6838else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006839 ac_cv_cflags__Wl___enable_new_dtags=no
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006840fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006841rm -f core conftest.err conftest.$ac_objext \
6842 conftest$ac_exeext conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006843CFLAGS=$ac_wine_try_cflags_saved
6844fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006846$as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006847if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006848 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6849fi
6850
Alexandre Julliarda3097622007-07-02 17:27:48 +02006851 case $host_cpu in
6852 *i[3456789]86* | x86_64)
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006853 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006855$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006856if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006857 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006858else
6859 ac_wine_try_cflags_saved=$CFLAGS
6860CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006862/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006863int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006864_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006865if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006866 eval "$as_ac_var=yes"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006867else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006868 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006869fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006870rm -f core conftest.err conftest.$ac_objext \
6871 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006872CFLAGS=$ac_wine_try_cflags_saved
6873fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006874eval ac_res=\$$as_ac_var
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6876$as_echo "$ac_res" >&6; }
6877if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Francois Gouget5f694dd2010-11-26 16:18:32 +01006878 case $host_os in
6879 freebsd*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6880 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6881 esac
6882
Alexandre Julliarda3097622007-07-02 17:27:48 +02006883fi
Alexandre Julliardb5d824b2010-08-24 13:42:10 +02006884 # Extract the first word of "prelink", so it can be a program name with args.
6885set dummy prelink; ac_word=$2
6886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6887$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006888if ${ac_cv_path_PRELINK+:} false; then :
Alexandre Julliardb5d824b2010-08-24 13:42:10 +02006889 $as_echo_n "(cached) " >&6
6890else
6891 case $PRELINK in
6892 [\\/]* | ?:[\\/]*)
6893 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6894 ;;
6895 *)
6896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6897for as_dir in /sbin /usr/sbin $PATH
6898do
6899 IFS=$as_save_IFS
6900 test -z "$as_dir" && as_dir=.
6901 for ac_exec_ext in '' $ac_executable_extensions; do
6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6903 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 break 2
6906 fi
6907done
6908 done
6909IFS=$as_save_IFS
6910
6911 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6912 ;;
6913esac
6914fi
6915PRELINK=$ac_cv_path_PRELINK
6916if test -n "$PRELINK"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6918$as_echo "$PRELINK" >&6; }
6919else
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921$as_echo "no" >&6; }
6922fi
6923
6924
6925 if test "x$PRELINK" = xfalse
6926 then
6927 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6928 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006929 ;;
6930 esac
6931
6932 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006934$as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006935if ${ac_cv_c_dll_unixware+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006936 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006937else
6938 ac_wine_try_cflags_saved=$CFLAGS
6939CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006942void myfunc() {}
6943_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006944if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006945 ac_cv_c_dll_unixware="yes"
6946else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006947 ac_cv_c_dll_unixware="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006948fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006949rm -f core conftest.err conftest.$ac_objext \
6950 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006951CFLAGS=$ac_wine_try_cflags_saved
6952fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006954$as_echo "$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006955 if test "$ac_cv_c_dll_unixware" = "yes"
6956 then
6957 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6958 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6959
6960 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006962$as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006963if ${ac_cv_c_dll_hpux+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006964 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006965else
6966 ac_wine_try_cflags_saved=$CFLAGS
6967CFLAGS="$CFLAGS -shared"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006968cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006970void myfunc() {}
6971_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006972if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006973 ac_cv_c_dll_hpux="yes"
6974else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006975 ac_cv_c_dll_hpux="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006976fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006977rm -f core conftest.err conftest.$ac_objext \
6978 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006979CFLAGS=$ac_wine_try_cflags_saved
6980fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006982$as_echo "$ac_cv_c_dll_hpux" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006983 if test "$ac_cv_c_dll_hpux" = "yes"
6984 then
6985 LIBEXT="sl"
6986 DLLEXT=".sl"
6987 LDDLLFLAGS="-shared -fPIC"
6988 LDSHARED="\$(CC) -shared"
6989 fi
6990 fi
6991 fi
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006992 ;;
6993esac
Alexandre Julliarda3097622007-07-02 17:27:48 +02006994
Aric Stewarteefe6f62010-12-03 07:33:08 -06006995enable_wineqtdecoder=${enable_wineqtdecoder:-no}
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006996enable_winequartz_drv=${enable_winequartz_drv:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006997
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006998if test "$LIBEXT" = "a"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006999 as_fn_error $? "could not find a way to build shared libraries.
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007000It is currently not possible to build Wine without shared library
7001(.so) support to allow transparent switch between .so and .dll files.
7002If you are using Linux, you will need a newer binutils.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007003" "$LINENO" 5
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007004fi
7005
Alexandre Julliard7d2e7722010-07-26 12:13:47 +02007006CROSSTEST_DISABLE=\#
7007
7008if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007009then
Alexandre Julliarda91fb212009-12-07 15:36:09 +01007010 case "$host_cpu" in
7011 i[3456789]86*)
Jacek Caban0b6bfad2010-12-21 18:08:38 +01007012 ac_prefix_list="i686-w64-mingw32-gcc i586-w64-mingw32-gcc i486-w64-mingw32-gcc i386-w64-mingw32-gcc i686-pc-mingw32-gcc i586-pc-mingw32-gcc i486-pc-mingw32-gcc i386-pc-mingw32-gcc i686-mingw32msvc-gcc i586-mingw32msvc-gcc i486-mingw32msvc-gcc i386-mingw32msvc-gcc i686-mingw32-gcc i586-mingw32-gcc i486-mingw32-gcc i386-mingw32-gcc " ;;
Alexandre Julliarda91fb212009-12-07 15:36:09 +01007013 x86_64)
Vincent Povirkd2103752010-10-11 15:55:40 -05007014 ac_prefix_list="x86_64-pc-mingw32-gcc amd64-pc-mingw32-gcc x86_64-w64-mingw32-gcc amd64-w64-mingw32-gcc x86_64-mingw32msvc-gcc amd64-mingw32msvc-gcc " ;;
Alexandre Julliarda91fb212009-12-07 15:36:09 +01007015 *)
7016 ac_prefix_list="" ;;
7017esac
7018for ac_prog in $ac_prefix_list
Alexandre Julliarda3097622007-07-02 17:27:48 +02007019do
7020 # Extract the first word of "$ac_prog", so it can be a program name with args.
7021set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007023$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007024if ${ac_cv_prog_CROSSCC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007025 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007026else
7027 if test -n "$CROSSCC"; then
7028 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7029else
7030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7031for as_dir in $PATH
7032do
7033 IFS=$as_save_IFS
7034 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007035 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02007036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7037 ac_cv_prog_CROSSCC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02007039 break 2
7040 fi
7041done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007042 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02007043IFS=$as_save_IFS
7044
7045fi
7046fi
7047CROSSCC=$ac_cv_prog_CROSSCC
7048if test -n "$CROSSCC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007050$as_echo "$CROSSCC" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007051else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007053$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007054fi
7055
7056
7057 test -n "$CROSSCC" && break
7058done
7059test -n "$CROSSCC" || CROSSCC="false"
7060
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007061 if test "$CROSSCC" != "false"
7062 then
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007063 ac_save_CC="$CC"
7064 CC="$CROSSCC"
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7066$as_echo_n "checking whether $CROSSCC works... " >&6; }
7067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7068/* end confdefs.h. */
Alexandre Julliarda2d88ab2009-05-30 17:08:06 +02007069
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007070int
7071main ()
7072{
7073
7074 ;
7075 return 0;
7076}
7077_ACEOF
7078if ac_fn_c_try_compile "$LINENO"; then :
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7080$as_echo "yes" >&6; }
7081 set x $CROSSCC
7082 shift
7083 target=""
7084 while test $# -ge 1
7085 do
7086 case "$1" in
7087 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7088 esac
7089 shift
7090 done
7091 if test -n "$target"
7092 then
7093 CROSSTEST_DISABLE=""
7094 CROSSTARGET="$target"
7095
7096 fi
7097else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099$as_echo "no" >&6; }
7100fi
7101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7102 CC="$ac_save_CC"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007103 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007104fi
7105
7106
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007107if test "$ac_cv_header_pthread_h" = "yes"
7108then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007110$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007111if ${ac_cv_lib_pthread_pthread_create+:} false; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007112 $as_echo_n "(cached) " >&6
7113else
7114 ac_check_lib_save_LIBS=$LIBS
7115LIBS="-lpthread $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007116cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007117/* end confdefs.h. */
7118
7119/* Override any GCC internal prototype to avoid an error.
7120 Use char because int might match the return type of a GCC
7121 builtin and then its argument prototype would still apply. */
7122#ifdef __cplusplus
7123extern "C"
7124#endif
7125char pthread_create ();
7126int
7127main ()
7128{
7129return pthread_create ();
7130 ;
7131 return 0;
7132}
7133_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007134if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007135 ac_cv_lib_pthread_pthread_create=yes
7136else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007137 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007138fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007139rm -f core conftest.err conftest.$ac_objext \
7140 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007141LIBS=$ac_check_lib_save_LIBS
7142fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007144$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007145if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007146 LIBPTHREAD="-lpthread"
7147
7148fi
7149
7150fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007151if test "x$LIBPTHREAD" = "x"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007152 case "x$with_pthread" in
7153 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007154 *) as_fn_error $? "pthread ${notice_platform}development files not found.
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007155Wine cannot support threads without libpthread.
Alexandre Julliard9797da42011-04-27 17:37:43 +02007156Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007157esac
7158fi
7159
7160
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007162$as_echo_n "checking for X... " >&6; }
7163
7164
7165# Check whether --with-x was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007166if test "${with_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007167 withval=$with_x;
7168fi
7169
7170# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7171if test "x$with_x" = xno; then
7172 # The user explicitly disabled X.
7173 have_x=disabled
7174else
7175 case $x_includes,$x_libraries in #(
Alexandre Julliard9797da42011-04-27 17:37:43 +02007176 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7177 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007178 $as_echo_n "(cached) " >&6
7179else
7180 # One or both of the vars are not set, and there is no cached value.
7181ac_x_includes=no ac_x_libraries=no
7182rm -f -r conftest.dir
7183if mkdir conftest.dir; then
7184 cd conftest.dir
7185 cat >Imakefile <<'_ACEOF'
7186incroot:
7187 @echo incroot='${INCROOT}'
7188usrlibdir:
7189 @echo usrlibdir='${USRLIBDIR}'
7190libdir:
7191 @echo libdir='${LIBDIR}'
7192_ACEOF
7193 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007194 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Alexandre Julliard40664c02009-02-11 20:40:58 +01007195 for ac_var in incroot usrlibdir libdir; do
7196 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7197 done
7198 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7199 for ac_extension in a so sl dylib la dll; do
7200 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7201 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7202 ac_im_usrlibdir=$ac_im_libdir; break
7203 fi
7204 done
7205 # Screen out bogus values from the imake configuration. They are
7206 # bogus both because they are the default anyway, and because
7207 # using them would break gcc on systems where it needs fixed includes.
7208 case $ac_im_incroot in
7209 /usr/include) ac_x_includes= ;;
7210 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7211 esac
7212 case $ac_im_usrlibdir in
7213 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7214 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7215 esac
7216 fi
7217 cd ..
7218 rm -f -r conftest.dir
7219fi
7220
7221# Standard set of common directories for X headers.
7222# Check X11 before X11Rn because it is often a symlink to the current release.
7223ac_x_header_dirs='
7224/usr/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007225/usr/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007226/usr/X11R6/include
7227/usr/X11R5/include
7228/usr/X11R4/include
7229
7230/usr/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007231/usr/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007232/usr/include/X11R6
7233/usr/include/X11R5
7234/usr/include/X11R4
7235
7236/usr/local/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007237/usr/local/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007238/usr/local/X11R6/include
7239/usr/local/X11R5/include
7240/usr/local/X11R4/include
7241
7242/usr/local/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007243/usr/local/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007244/usr/local/include/X11R6
7245/usr/local/include/X11R5
7246/usr/local/include/X11R4
7247
7248/usr/X386/include
7249/usr/x386/include
7250/usr/XFree86/include/X11
7251
7252/usr/include
7253/usr/local/include
7254/usr/unsupported/include
7255/usr/athena/include
7256/usr/local/x11r5/include
7257/usr/lpp/Xamples/include
7258
7259/usr/openwin/include
7260/usr/openwin/share/include'
7261
7262if test "$ac_x_includes" = no; then
7263 # Guess where to find include files, by looking for Xlib.h.
7264 # First, try using that file with no special directory specified.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007266/* end confdefs.h. */
7267#include <X11/Xlib.h>
7268_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007269if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007270 # We can compile using X headers with no special include directory.
7271ac_x_includes=
7272else
Alexandre Julliard40664c02009-02-11 20:40:58 +01007273 for ac_dir in $ac_x_header_dirs; do
7274 if test -r "$ac_dir/X11/Xlib.h"; then
7275 ac_x_includes=$ac_dir
7276 break
7277 fi
7278done
7279fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007280rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007281fi # $ac_x_includes = no
7282
7283if test "$ac_x_libraries" = no; then
7284 # Check for the libraries.
7285 # See if we find them without any special options.
7286 # Don't add to $LIBS permanently.
7287 ac_save_LIBS=$LIBS
7288 LIBS="-lX11 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007290/* end confdefs.h. */
7291#include <X11/Xlib.h>
7292int
7293main ()
7294{
7295XrmInitialize ()
7296 ;
7297 return 0;
7298}
7299_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007300if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007301 LIBS=$ac_save_LIBS
7302# We can link X programs with no special library path.
7303ac_x_libraries=
7304else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007305 LIBS=$ac_save_LIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +01007306for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7307do
7308 # Don't even attempt the hair of trying to link an X program!
7309 for ac_extension in a so sl dylib la dll; do
7310 if test -r "$ac_dir/libX11.$ac_extension"; then
7311 ac_x_libraries=$ac_dir
7312 break 2
7313 fi
7314 done
7315done
7316fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007317rm -f core conftest.err conftest.$ac_objext \
7318 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007319fi # $ac_x_libraries = no
7320
7321case $ac_x_includes,$ac_x_libraries in #(
7322 no,* | *,no | *\'*)
7323 # Didn't find X, or a directory has "'" in its name.
7324 ac_cv_have_x="have_x=no";; #(
7325 *)
7326 # Record where we found X for the cache.
7327 ac_cv_have_x="have_x=yes\
7328 ac_x_includes='$ac_x_includes'\
7329 ac_x_libraries='$ac_x_libraries'"
7330esac
7331fi
7332;; #(
7333 *) have_x=yes;;
7334 esac
7335 eval "$ac_cv_have_x"
7336fi # $with_x != no
7337
7338if test "$have_x" != yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007340$as_echo "$have_x" >&6; }
7341 no_x=yes
7342else
7343 # If each of the values was on the command line, it overrides each guess.
7344 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7345 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7346 # Update the cache value to reflect the command line values.
7347 ac_cv_have_x="have_x=yes\
7348 ac_x_includes='$x_includes'\
7349 ac_x_libraries='$x_libraries'"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007351$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7352fi
7353
7354if test "$no_x" = yes; then
7355 # Not all programs may use this symbol, but it does not hurt to define it.
7356
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007357$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
Alexandre Julliard40664c02009-02-11 20:40:58 +01007358
7359 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7360else
7361 if test -n "$x_includes"; then
7362 X_CFLAGS="$X_CFLAGS -I$x_includes"
7363 fi
7364
7365 # It would also be nice to do this for all -L options, not just this one.
7366 if test -n "$x_libraries"; then
7367 X_LIBS="$X_LIBS -L$x_libraries"
7368 # For Solaris; some versions of Sun CC require a space after -R and
7369 # others require no space. Words are not sufficient . . . .
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007371$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7372 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7373 ac_xsave_c_werror_flag=$ac_c_werror_flag
7374 ac_c_werror_flag=yes
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007376/* end confdefs.h. */
7377
7378int
7379main ()
7380{
7381
7382 ;
7383 return 0;
7384}
7385_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007386if ac_fn_c_try_link "$LINENO"; then :
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007388$as_echo "no" >&6; }
7389 X_LIBS="$X_LIBS -R$x_libraries"
7390else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007391 LIBS="$ac_xsave_LIBS -R $x_libraries"
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007393/* end confdefs.h. */
7394
7395int
7396main ()
7397{
7398
7399 ;
7400 return 0;
7401}
7402_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007403if ac_fn_c_try_link "$LINENO"; then :
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007405$as_echo "yes" >&6; }
7406 X_LIBS="$X_LIBS -R $x_libraries"
7407else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007409$as_echo "neither works" >&6; }
7410fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007411rm -f core conftest.err conftest.$ac_objext \
7412 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007413fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007414rm -f core conftest.err conftest.$ac_objext \
7415 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007416 ac_c_werror_flag=$ac_xsave_c_werror_flag
7417 LIBS=$ac_xsave_LIBS
7418 fi
7419
7420 # Check for system-dependent libraries X programs must link with.
7421 # Do this before checking for the system-independent R6 libraries
7422 # (-lICE), since we may need -lsocket or whatever for X linking.
7423
7424 if test "$ISC" = yes; then
7425 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7426 else
7427 # Martyn Johnson says this is needed for Ultrix, if the X
7428 # libraries were built with DECnet support. And Karl Berry says
7429 # the Alpha needs dnet_stub (dnet does not exist).
7430 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007432/* end confdefs.h. */
7433
7434/* Override any GCC internal prototype to avoid an error.
7435 Use char because int might match the return type of a GCC
7436 builtin and then its argument prototype would still apply. */
7437#ifdef __cplusplus
7438extern "C"
7439#endif
7440char XOpenDisplay ();
7441int
7442main ()
7443{
7444return XOpenDisplay ();
7445 ;
7446 return 0;
7447}
7448_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007449if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007450
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007451else
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007453$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007454if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007455 $as_echo_n "(cached) " >&6
7456else
7457 ac_check_lib_save_LIBS=$LIBS
7458LIBS="-ldnet $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007460/* end confdefs.h. */
7461
7462/* Override any GCC internal prototype to avoid an error.
7463 Use char because int might match the return type of a GCC
7464 builtin and then its argument prototype would still apply. */
7465#ifdef __cplusplus
7466extern "C"
7467#endif
7468char dnet_ntoa ();
7469int
7470main ()
7471{
7472return dnet_ntoa ();
7473 ;
7474 return 0;
7475}
7476_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007477if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007478 ac_cv_lib_dnet_dnet_ntoa=yes
7479else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007480 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007481fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007482rm -f core conftest.err conftest.$ac_objext \
7483 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007484LIBS=$ac_check_lib_save_LIBS
7485fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007487$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007488if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007489 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7490fi
7491
7492 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007494$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007495if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007496 $as_echo_n "(cached) " >&6
7497else
7498 ac_check_lib_save_LIBS=$LIBS
7499LIBS="-ldnet_stub $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007501/* end confdefs.h. */
7502
7503/* Override any GCC internal prototype to avoid an error.
7504 Use char because int might match the return type of a GCC
7505 builtin and then its argument prototype would still apply. */
7506#ifdef __cplusplus
7507extern "C"
7508#endif
7509char dnet_ntoa ();
7510int
7511main ()
7512{
7513return dnet_ntoa ();
7514 ;
7515 return 0;
7516}
7517_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007518if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007519 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7520else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007521 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007522fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007523rm -f core conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007525LIBS=$ac_check_lib_save_LIBS
7526fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007528$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007529if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007530 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7531fi
7532
7533 fi
7534fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007535rm -f core conftest.err conftest.$ac_objext \
7536 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007537 LIBS="$ac_xsave_LIBS"
7538
7539 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7540 # to get the SysV transport functions.
7541 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7542 # needs -lnsl.
7543 # The nsl library prevents programs from opening the X display
7544 # on Irix 5.2, according to T.E. Dickey.
7545 # The functions gethostbyname, getservbyname, and inet_addr are
7546 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007547 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007548if test "x$ac_cv_func_gethostbyname" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007549
Alexandre Julliard40664c02009-02-11 20:40:58 +01007550fi
7551
Alexandre Julliard40664c02009-02-11 20:40:58 +01007552 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007554$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007555if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007556 $as_echo_n "(cached) " >&6
7557else
7558 ac_check_lib_save_LIBS=$LIBS
7559LIBS="-lnsl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007561/* end confdefs.h. */
7562
7563/* Override any GCC internal prototype to avoid an error.
7564 Use char because int might match the return type of a GCC
7565 builtin and then its argument prototype would still apply. */
7566#ifdef __cplusplus
7567extern "C"
7568#endif
7569char gethostbyname ();
7570int
7571main ()
7572{
7573return gethostbyname ();
7574 ;
7575 return 0;
7576}
7577_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007578if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007579 ac_cv_lib_nsl_gethostbyname=yes
7580else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007581 ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007582fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007583rm -f core conftest.err conftest.$ac_objext \
7584 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007585LIBS=$ac_check_lib_save_LIBS
7586fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007588$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007589if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007590 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7591fi
7592
7593 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007595$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007596if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007597 $as_echo_n "(cached) " >&6
7598else
7599 ac_check_lib_save_LIBS=$LIBS
7600LIBS="-lbsd $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007602/* end confdefs.h. */
7603
7604/* Override any GCC internal prototype to avoid an error.
7605 Use char because int might match the return type of a GCC
7606 builtin and then its argument prototype would still apply. */
7607#ifdef __cplusplus
7608extern "C"
7609#endif
7610char gethostbyname ();
7611int
7612main ()
7613{
7614return gethostbyname ();
7615 ;
7616 return 0;
7617}
7618_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007619if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007620 ac_cv_lib_bsd_gethostbyname=yes
7621else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007622 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007623fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007624rm -f core conftest.err conftest.$ac_objext \
7625 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007626LIBS=$ac_check_lib_save_LIBS
7627fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007629$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007630if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007631 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7632fi
7633
7634 fi
7635 fi
7636
7637 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7638 # socket/setsockopt and other routines are undefined under SCO ODT
7639 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7640 # on later versions), says Simon Leinen: it contains gethostby*
7641 # variants that don't use the name server (or something). -lsocket
7642 # must be given before -lnsl if both are needed. We assume that
7643 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007644 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007645if test "x$ac_cv_func_connect" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007646
Alexandre Julliard40664c02009-02-11 20:40:58 +01007647fi
7648
Alexandre Julliard40664c02009-02-11 20:40:58 +01007649 if test $ac_cv_func_connect = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007651$as_echo_n "checking for connect in -lsocket... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007652if ${ac_cv_lib_socket_connect+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007653 $as_echo_n "(cached) " >&6
7654else
7655 ac_check_lib_save_LIBS=$LIBS
7656LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007658/* end confdefs.h. */
7659
7660/* Override any GCC internal prototype to avoid an error.
7661 Use char because int might match the return type of a GCC
7662 builtin and then its argument prototype would still apply. */
7663#ifdef __cplusplus
7664extern "C"
7665#endif
7666char connect ();
7667int
7668main ()
7669{
7670return connect ();
7671 ;
7672 return 0;
7673}
7674_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007675if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007676 ac_cv_lib_socket_connect=yes
7677else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007678 ac_cv_lib_socket_connect=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007679fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007680rm -f core conftest.err conftest.$ac_objext \
7681 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007682LIBS=$ac_check_lib_save_LIBS
7683fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007685$as_echo "$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007686if test "x$ac_cv_lib_socket_connect" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007687 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7688fi
7689
7690 fi
7691
7692 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007693 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007694if test "x$ac_cv_func_remove" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007695
Alexandre Julliard40664c02009-02-11 20:40:58 +01007696fi
7697
Alexandre Julliard40664c02009-02-11 20:40:58 +01007698 if test $ac_cv_func_remove = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007700$as_echo_n "checking for remove in -lposix... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007701if ${ac_cv_lib_posix_remove+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007702 $as_echo_n "(cached) " >&6
7703else
7704 ac_check_lib_save_LIBS=$LIBS
7705LIBS="-lposix $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007706cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007707/* end confdefs.h. */
7708
7709/* Override any GCC internal prototype to avoid an error.
7710 Use char because int might match the return type of a GCC
7711 builtin and then its argument prototype would still apply. */
7712#ifdef __cplusplus
7713extern "C"
7714#endif
7715char remove ();
7716int
7717main ()
7718{
7719return remove ();
7720 ;
7721 return 0;
7722}
7723_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007724if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007725 ac_cv_lib_posix_remove=yes
7726else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007727 ac_cv_lib_posix_remove=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007728fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007729rm -f core conftest.err conftest.$ac_objext \
7730 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007731LIBS=$ac_check_lib_save_LIBS
7732fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007734$as_echo "$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007735if test "x$ac_cv_lib_posix_remove" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007736 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7737fi
7738
7739 fi
7740
7741 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007742 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007743if test "x$ac_cv_func_shmat" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007744
Alexandre Julliard40664c02009-02-11 20:40:58 +01007745fi
7746
Alexandre Julliard40664c02009-02-11 20:40:58 +01007747 if test $ac_cv_func_shmat = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007749$as_echo_n "checking for shmat in -lipc... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007750if ${ac_cv_lib_ipc_shmat+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007751 $as_echo_n "(cached) " >&6
7752else
7753 ac_check_lib_save_LIBS=$LIBS
7754LIBS="-lipc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007756/* end confdefs.h. */
7757
7758/* Override any GCC internal prototype to avoid an error.
7759 Use char because int might match the return type of a GCC
7760 builtin and then its argument prototype would still apply. */
7761#ifdef __cplusplus
7762extern "C"
7763#endif
7764char shmat ();
7765int
7766main ()
7767{
7768return shmat ();
7769 ;
7770 return 0;
7771}
7772_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007773if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007774 ac_cv_lib_ipc_shmat=yes
7775else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007776 ac_cv_lib_ipc_shmat=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007777fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007778rm -f core conftest.err conftest.$ac_objext \
7779 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007780LIBS=$ac_check_lib_save_LIBS
7781fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007783$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007784if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007785 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7786fi
7787
7788 fi
7789 fi
7790
7791 # Check for libraries that X11R6 Xt/Xaw programs need.
7792 ac_save_LDFLAGS=$LDFLAGS
7793 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7794 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7795 # check for ICE first), but we must link in the order -lSM -lICE or
7796 # we get undefined symbols. So assume we have SM if we have ICE.
7797 # These have to be linked with before -lX11, unlike the other
7798 # libraries we check for below, so use a different variable.
7799 # John Interrante, Karl Berry
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007801$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007802if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007803 $as_echo_n "(cached) " >&6
7804else
7805 ac_check_lib_save_LIBS=$LIBS
7806LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007807cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007808/* end confdefs.h. */
7809
7810/* Override any GCC internal prototype to avoid an error.
7811 Use char because int might match the return type of a GCC
7812 builtin and then its argument prototype would still apply. */
7813#ifdef __cplusplus
7814extern "C"
7815#endif
7816char IceConnectionNumber ();
7817int
7818main ()
7819{
7820return IceConnectionNumber ();
7821 ;
7822 return 0;
7823}
7824_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007825if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007826 ac_cv_lib_ICE_IceConnectionNumber=yes
7827else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007828 ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007829fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007830rm -f core conftest.err conftest.$ac_objext \
7831 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007832LIBS=$ac_check_lib_save_LIBS
7833fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007835$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007836if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007837 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7838fi
7839
7840 LDFLAGS=$ac_save_LDFLAGS
7841
7842fi
7843
7844
Rein Klazes7ff12562004-11-09 20:16:35 +00007845if test "$have_x" = "yes"
7846then
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007847 XLIB="-lX11"
Rein Klazes7ff12562004-11-09 20:16:35 +00007848 ac_save_CPPFLAGS="$CPPFLAGS"
7849 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7850
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007852$as_echo_n "checking for -lX11... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007853if ${ac_cv_lib_soname_X11+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007854 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007855else
7856 ac_check_soname_save_LIBS=$LIBS
7857LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007859/* end confdefs.h. */
7860
7861/* Override any GCC internal prototype to avoid an error.
7862 Use char because int might match the return type of a GCC
7863 builtin and then its argument prototype would still apply. */
7864#ifdef __cplusplus
7865extern "C"
7866#endif
7867char XCreateWindow ();
7868int
7869main ()
7870{
7871return XCreateWindow ();
7872 ;
7873 return 0;
7874}
7875_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007876if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007877 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007878 dll) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest.exe | grep "X11" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliarda8518542007-07-09 22:43:45 +02007879 dylib) ac_cv_lib_soname_X11=`otool -L conftest$ac_exeext | grep "libX11\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libX11\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
7880 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7881 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007882fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007883rm -f core conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007885 LIBS=$ac_check_soname_save_LIBS
7886fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007887if test "x$ac_cv_lib_soname_X11" = "x"; then :
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007889$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007890
7891else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007893$as_echo "$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007894
7895cat >>confdefs.h <<_ACEOF
7896#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7897_ACEOF
7898
7899
7900fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007902$as_echo_n "checking for -lXext... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007903if ${ac_cv_lib_soname_Xext+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007904 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007905else
7906 ac_check_soname_save_LIBS=$LIBS
7907LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007909/* end confdefs.h. */
7910
7911/* Override any GCC internal prototype to avoid an error.
7912 Use char because int might match the return type of a GCC
7913 builtin and then its argument prototype would still apply. */
7914#ifdef __cplusplus
7915extern "C"
7916#endif
7917char XextCreateExtension ();
7918int
7919main ()
7920{
7921return XextCreateExtension ();
7922 ;
7923 return 0;
7924}
7925_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007926if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007927 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007928 dll) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest.exe | grep "Xext" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliarda8518542007-07-09 22:43:45 +02007929 dylib) ac_cv_lib_soname_Xext=`otool -L conftest$ac_exeext | grep "libXext\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXext\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
7930 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7931 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007932fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007933rm -f core conftest.err conftest.$ac_objext \
7934 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007935 LIBS=$ac_check_soname_save_LIBS
7936fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007937if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007939$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007940
7941else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007943$as_echo "$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007944
7945cat >>confdefs.h <<_ACEOF
7946#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7947_ACEOF
7948
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007949 XLIB="-lXext $XLIB"
Alexandre Julliarda8518542007-07-09 22:43:45 +02007950fi
7951
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007952 for ac_header in X11/Xlib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007953 X11/XKBlib.h \
7954 X11/Xutil.h \
Andrew Riedi23e2cb12007-03-22 12:06:19 -07007955 X11/Xcursor/Xcursor.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007956 X11/extensions/shape.h \
7957 X11/extensions/XInput.h \
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02007958 X11/extensions/XInput2.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007959 X11/extensions/XShm.h \
Chris Robinson42584652007-09-22 18:19:08 -07007960 X11/extensions/Xcomposite.h \
Alexandre Julliard7d00b052006-10-23 13:46:34 +02007961 X11/extensions/Xinerama.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007962 X11/extensions/Xrandr.h \
7963 X11/extensions/Xrender.h \
André Hentschel7b285a42009-09-19 19:08:09 +02007964 X11/extensions/xf86vmode.h \
7965 X11/extensions/xf86vmproto.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007966do :
7967 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7968ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
Alexandre Julliard73482142005-08-03 19:21:04 +00007969# include <X11/Xlib.h>
7970#endif
7971#ifdef HAVE_X11_XUTIL_H
7972# include <X11/Xutil.h>
7973#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007974"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007975if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007976 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01007977#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007978_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00007979
7980fi
7981
7982done
7983
7984
7985 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7986 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007988$as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007989if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007990 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007991else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007992 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007993LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007995/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007996
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007997/* Override any GCC internal prototype to avoid an error.
7998 Use char because int might match the return type of a GCC
7999 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008000#ifdef __cplusplus
8001extern "C"
8002#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008003char XkbQueryExtension ();
8004int
8005main ()
8006{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008007return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008008 ;
8009 return 0;
8010}
8011_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008012if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008013 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008014else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008015 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008016fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008017rm -f core conftest.err conftest.$ac_objext \
8018 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008019LIBS=$ac_check_lib_save_LIBS
8020fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008022$as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008023if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
Patrik Stridvall24110281999-02-04 10:09:54 +00008024
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008025$as_echo "#define HAVE_XKB 1" >>confdefs.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008026
Patrik Stridvall24110281999-02-04 10:09:54 +00008027fi
8028
Alexandre Julliard255b4862003-10-15 04:09:55 +00008029 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008030
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008031 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8032 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008034$as_echo_n "checking for -lXcursor... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008035if ${ac_cv_lib_soname_Xcursor+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008036 $as_echo_n "(cached) " >&6
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008037else
8038 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008039LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008041/* end confdefs.h. */
8042
8043/* Override any GCC internal prototype to avoid an error.
8044 Use char because int might match the return type of a GCC
8045 builtin and then its argument prototype would still apply. */
8046#ifdef __cplusplus
8047extern "C"
8048#endif
8049char XcursorImageLoadCursor ();
8050int
8051main ()
8052{
8053return XcursorImageLoadCursor ();
8054 ;
8055 return 0;
8056}
8057_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008058if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008059 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008060 dll) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest.exe | grep "Xcursor" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008061 dylib) ac_cv_lib_soname_Xcursor=`otool -L conftest$ac_exeext | grep "libXcursor\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcursor\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8062 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8063 esac
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008064fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008065rm -f core conftest.err conftest.$ac_objext \
8066 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008067 LIBS=$ac_check_soname_save_LIBS
8068fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008069if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008071$as_echo "not found" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008072
8073else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008075$as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008076
8077cat >>confdefs.h <<_ACEOF
8078#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8079_ACEOF
8080
8081
8082fi
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008083 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008084 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008085 case "x$with_xcursor" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008086 x) as_fn_append wine_notices "|libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008087 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008088 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008089This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008090esac
8091fi
8092
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008093 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8094 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008096$as_echo_n "checking for -lXi... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008097if ${ac_cv_lib_soname_Xi+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008098 $as_echo_n "(cached) " >&6
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008099else
8100 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008101LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008103/* end confdefs.h. */
8104
8105/* Override any GCC internal prototype to avoid an error.
8106 Use char because int might match the return type of a GCC
8107 builtin and then its argument prototype would still apply. */
8108#ifdef __cplusplus
8109extern "C"
8110#endif
8111char XOpenDevice ();
8112int
8113main ()
8114{
8115return XOpenDevice ();
8116 ;
8117 return 0;
8118}
8119_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008120if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008121 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008122 dll) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest.exe | grep "Xi" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008123 dylib) ac_cv_lib_soname_Xi=`otool -L conftest$ac_exeext | grep "libXi\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXi\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8124 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8125 esac
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008126fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008127rm -f core conftest.err conftest.$ac_objext \
8128 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008129 LIBS=$ac_check_soname_save_LIBS
8130fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008131if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008133$as_echo "not found" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008134
8135else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008137$as_echo "$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008138
8139cat >>confdefs.h <<_ACEOF
8140#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8141_ACEOF
8142
8143
8144fi
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008145 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008146 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008147 case "x$with_xinput" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008148 x) as_fn_append wine_notices "|libxi ${notice_platform}development files not found, the Xinput extension won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008149 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008150 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008151This is an error since --with-xinput was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008152esac
8153fi
8154
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02008155 if test "x$ac_cv_lib_soname_Xi" != x
8156 then
8157 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8158 case "x$with_xinput2" in
8159 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8160 xno) ;;
8161 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008162This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02008163esac
8164fi
8165 fi
8166
Alexandre Julliard255b4862003-10-15 04:09:55 +00008167 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8168 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008170$as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008171if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008172 $as_echo_n "(cached) " >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00008173else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008174 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008175LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008177/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008178
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008179/* Override any GCC internal prototype to avoid an error.
8180 Use char because int might match the return type of a GCC
8181 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008182#ifdef __cplusplus
8183extern "C"
8184#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008185char XShmQueryExtension ();
8186int
8187main ()
8188{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008189return XShmQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008190 ;
8191 return 0;
8192}
8193_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008194if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008195 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00008196else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008197 ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00008198fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008199rm -f core conftest.err conftest.$ac_objext \
8200 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008201LIBS=$ac_check_lib_save_LIBS
8202fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008204$as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008205if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
Francois Jacques5b6879c2000-07-28 23:04:54 +00008206
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008207$as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00008208
Francois Jacques5b6879c2000-07-28 23:04:54 +00008209fi
8210
Alexandre Julliard255b4862003-10-15 04:09:55 +00008211 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008212 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008213 case "x$with_xshm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008214 x) as_fn_append wine_notices "|XShm ${notice_platform}development files not found, X Shared Memory won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008215 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008216 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008217This is an error since --with-xshm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008218esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008219fi
8220
Alexandre Julliard255b4862003-10-15 04:09:55 +00008221 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8222 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008224$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008225if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008226 $as_echo_n "(cached) " >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00008227else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008228 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008229LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008231/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008232
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008233/* Override any GCC internal prototype to avoid an error.
8234 Use char because int might match the return type of a GCC
8235 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008236#ifdef __cplusplus
8237extern "C"
8238#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008239char XShapeQueryExtension ();
8240int
8241main ()
8242{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008243return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008244 ;
8245 return 0;
8246}
8247_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008248if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008249 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00008250else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008251 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00008252fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008253rm -f core conftest.err conftest.$ac_objext \
8254 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008255LIBS=$ac_check_lib_save_LIBS
8256fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008258$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008259if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
Ove Kaavenc90fb252001-01-02 22:39:14 +00008260
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008261$as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00008262
Ove Kaavenc90fb252001-01-02 22:39:14 +00008263fi
8264
Alexandre Julliard255b4862003-10-15 04:09:55 +00008265 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008266 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008267 case "x$with_xshape" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008268 x) as_fn_append wine_notices "|XShape ${notice_platform}development files not found, XShape won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008269 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008270 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008271This is an error since --with-xshape was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008272esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008273fi
8274
André Hentschel7b285a42009-09-19 19:08:09 +02008275 if test "$ac_cv_header_X11_extensions_xf86vmode_h" = "yes" -o "$ac_cv_header_X11_extensions_xf86vmproto_h" = "yes"
Alexandre Julliard255b4862003-10-15 04:09:55 +00008276 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008278$as_echo_n "checking for -lXxf86vm... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008279if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008280 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008281else
Francois Gougeta49beb42008-06-26 14:02:17 +02008282 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008283LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008285/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008286
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008287/* Override any GCC internal prototype to avoid an error.
8288 Use char because int might match the return type of a GCC
8289 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008290#ifdef __cplusplus
8291extern "C"
8292#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008293char XF86VidModeQueryExtension ();
8294int
8295main ()
8296{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008297return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008298 ;
8299 return 0;
8300}
8301_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008302if ac_fn_c_try_link "$LINENO"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008303 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008304 dll) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest.exe | grep "Xxf86vm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Francois Gougeta49beb42008-06-26 14:02:17 +02008305 dylib) ac_cv_lib_soname_Xxf86vm=`otool -L conftest$ac_exeext | grep "libXxf86vm\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXxf86vm\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8306 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8307 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008308fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008309rm -f core conftest.err conftest.$ac_objext \
8310 conftest$ac_exeext conftest.$ac_ext
Francois Gougeta49beb42008-06-26 14:02:17 +02008311 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008312fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008313if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008315$as_echo "not found" >&6; }
Patrik Stridvall24110281999-02-04 10:09:54 +00008316
Francois Gougeta49beb42008-06-26 14:02:17 +02008317else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008319$as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
Francois Gougeta49beb42008-06-26 14:02:17 +02008320
8321cat >>confdefs.h <<_ACEOF
8322#define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008323_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008324
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008325
Patrik Stridvall24110281999-02-04 10:09:54 +00008326fi
Alexandre Julliard255b4862003-10-15 04:09:55 +00008327 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008328 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008329 case "x$with_xxf86vm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008330 x) as_fn_append wine_notices "|libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008331 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008332 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008333This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008334esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008335fi
8336
Alexandre Julliarda8518542007-07-09 22:43:45 +02008337 if test "$ac_cv_header_X11_extensions_Xrender_h" = "yes" -a "x$ac_cv_lib_soname_X11" != "x" -a "x$ac_cv_lib_soname_Xext" != "x"
Alexandre Julliard629639e2007-07-04 12:47:57 +02008338 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008340$as_echo_n "checking for -lXrender... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008341if ${ac_cv_lib_soname_Xrender+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008342 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008343else
8344 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008345LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008347/* end confdefs.h. */
8348
8349/* Override any GCC internal prototype to avoid an error.
8350 Use char because int might match the return type of a GCC
8351 builtin and then its argument prototype would still apply. */
8352#ifdef __cplusplus
8353extern "C"
8354#endif
8355char XRenderQueryExtension ();
8356int
8357main ()
8358{
8359return XRenderQueryExtension ();
8360 ;
8361 return 0;
8362}
8363_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008364if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008365 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008366 dll) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest.exe | grep "Xrender" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard629639e2007-07-04 12:47:57 +02008367 dylib) ac_cv_lib_soname_Xrender=`otool -L conftest$ac_exeext | grep "libXrender\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXrender\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8368 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8369 esac
Alexandre Julliard629639e2007-07-04 12:47:57 +02008370fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008371rm -f core conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008373 LIBS=$ac_check_soname_save_LIBS
8374fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008375if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008377$as_echo "not found" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008378
8379else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008381$as_echo "$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008382
8383cat >>confdefs.h <<_ACEOF
8384#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8385_ACEOF
8386
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008388$as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008389if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008390 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008391else
8392 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008393LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008394cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008395/* end confdefs.h. */
8396
8397/* Override any GCC internal prototype to avoid an error.
8398 Use char because int might match the return type of a GCC
8399 builtin and then its argument prototype would still apply. */
8400#ifdef __cplusplus
8401extern "C"
8402#endif
8403char XRenderSetPictureTransform ();
8404int
8405main ()
8406{
8407return XRenderSetPictureTransform ();
8408 ;
8409 return 0;
8410}
8411_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008412if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008413 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8414else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008415 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Alexandre Julliard629639e2007-07-04 12:47:57 +02008416fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008417rm -f core conftest.err conftest.$ac_objext \
8418 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008419LIBS=$ac_check_lib_save_LIBS
8420fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008422$as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008423if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008424
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008425$as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
Alexandre Julliard629639e2007-07-04 12:47:57 +02008426
8427fi
8428
8429fi
8430
Alexandre Julliard629639e2007-07-04 12:47:57 +02008431 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008432 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008433 case "x$with_xrender" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008434 x) as_fn_append wine_warnings "|libxrender ${notice_platform}development files not found, XRender won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008435 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008436 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008437This is an error since --with-xrender was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008438esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008439fi
8440
Alexandre Julliard629639e2007-07-04 12:47:57 +02008441 if test "$ac_cv_header_X11_extensions_Xrandr_h" = "yes" -a "x$ac_cv_lib_soname_Xrender" != "x"
Alexandre Julliard255b4862003-10-15 04:09:55 +00008442 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008444/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008445#include <X11/Xlib.h>
8446#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008447int
8448main ()
8449{
Mike McCormackc7c9f932004-04-07 03:57:35 +00008450static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008451 ;
8452 return 0;
8453}
8454_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008455if ac_fn_c_try_compile "$LINENO"; then :
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008457$as_echo_n "checking for -lXrandr... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008458if ${ac_cv_lib_soname_Xrandr+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008459 $as_echo_n "(cached) " >&6
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008460else
8461 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008462LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008464/* end confdefs.h. */
8465
8466/* Override any GCC internal prototype to avoid an error.
8467 Use char because int might match the return type of a GCC
8468 builtin and then its argument prototype would still apply. */
8469#ifdef __cplusplus
8470extern "C"
8471#endif
8472char XRRQueryExtension ();
8473int
8474main ()
8475{
8476return XRRQueryExtension ();
8477 ;
8478 return 0;
8479}
8480_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008481if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008482 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008483 dll) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest.exe | grep "Xrandr" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008484 dylib) ac_cv_lib_soname_Xrandr=`otool -L conftest$ac_exeext | grep "libXrandr\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXrandr\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8485 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8486 esac
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008487fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008488rm -f core conftest.err conftest.$ac_objext \
8489 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008490 LIBS=$ac_check_soname_save_LIBS
8491fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008492if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008494$as_echo "not found" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008495
8496else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008498$as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008499
8500cat >>confdefs.h <<_ACEOF
8501#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8502_ACEOF
8503
8504
8505fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008506fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00008508 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008509 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008510 case "x$with_xrandr" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008511 x) as_fn_append wine_notices "|libxrandr ${notice_platform}development files not found, XRandr won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008512 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008513 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008514This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008515esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008516fi
8517
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008518 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8519 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008521/* end confdefs.h. */
8522#include <X11/Xlib.h>
8523#include <X11/extensions/Xinerama.h>
8524int
8525main ()
8526{
8527static typeof(XineramaQueryScreens) * func;
8528 ;
8529 return 0;
8530}
8531_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008532if ac_fn_c_try_compile "$LINENO"; then :
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008534$as_echo_n "checking for -lXinerama... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008535if ${ac_cv_lib_soname_Xinerama+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008536 $as_echo_n "(cached) " >&6
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008537else
8538 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008539LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008541/* end confdefs.h. */
8542
8543/* Override any GCC internal prototype to avoid an error.
8544 Use char because int might match the return type of a GCC
8545 builtin and then its argument prototype would still apply. */
8546#ifdef __cplusplus
8547extern "C"
8548#endif
8549char XineramaQueryScreens ();
8550int
8551main ()
8552{
8553return XineramaQueryScreens ();
8554 ;
8555 return 0;
8556}
8557_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008558if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008559 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008560 dll) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest.exe | grep "Xinerama" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008561 dylib) ac_cv_lib_soname_Xinerama=`otool -L conftest$ac_exeext | grep "libXinerama\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXinerama\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8562 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8563 esac
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008564fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008565rm -f core conftest.err conftest.$ac_objext \
8566 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008567 LIBS=$ac_check_soname_save_LIBS
8568fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008569if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008571$as_echo "not found" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008572
8573else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008575$as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008576
8577cat >>confdefs.h <<_ACEOF
8578#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8579_ACEOF
8580
8581
8582fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008583fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008586 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008587 case "x$with_xinerama" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008588 x) as_fn_append wine_notices "|libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008589 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008590 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008591This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008592esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008593fi
8594
Chris Robinson42584652007-09-22 18:19:08 -07008595 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8596 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008598$as_echo_n "checking for -lXcomposite... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008599if ${ac_cv_lib_soname_Xcomposite+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008600 $as_echo_n "(cached) " >&6
Chris Robinson42584652007-09-22 18:19:08 -07008601else
8602 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008603LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008605/* end confdefs.h. */
8606
8607/* Override any GCC internal prototype to avoid an error.
8608 Use char because int might match the return type of a GCC
8609 builtin and then its argument prototype would still apply. */
8610#ifdef __cplusplus
8611extern "C"
8612#endif
8613char XCompositeRedirectWindow ();
8614int
8615main ()
8616{
8617return XCompositeRedirectWindow ();
8618 ;
8619 return 0;
8620}
8621_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008622if ac_fn_c_try_link "$LINENO"; then :
Chris Robinson42584652007-09-22 18:19:08 -07008623 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008624 dll) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest.exe | grep "Xcomposite" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Chris Robinson42584652007-09-22 18:19:08 -07008625 dylib) ac_cv_lib_soname_Xcomposite=`otool -L conftest$ac_exeext | grep "libXcomposite\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libXcomposite\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8626 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8627 esac
Chris Robinson42584652007-09-22 18:19:08 -07008628fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008629rm -f core conftest.err conftest.$ac_objext \
8630 conftest$ac_exeext conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008631 LIBS=$ac_check_soname_save_LIBS
8632fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008633if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008635$as_echo "not found" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008636
8637else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008639$as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008640
8641cat >>confdefs.h <<_ACEOF
8642#define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8643_ACEOF
8644
8645
8646fi
Chris Robinson42584652007-09-22 18:19:08 -07008647 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008648 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008649 case "x$with_xcomposite" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008650 x) as_fn_append wine_notices "|libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008651 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008652 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008653This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008654esac
Chris Robinson42584652007-09-22 18:19:08 -07008655fi
8656
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008657 ac_fn_c_check_member "$LINENO" "XICCallback" "callback" "ac_cv_member_XICCallback_callback" "#ifdef HAVE_X11_XLIB_H
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008658#include <X11/Xlib.h>
8659#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008660"
Alexandre Julliard9797da42011-04-27 17:37:43 +02008661if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008662
8663cat >>confdefs.h <<_ACEOF
8664#define HAVE_XICCALLBACK_CALLBACK 1
8665_ACEOF
8666
8667
8668fi
Alexandre Julliarda8575a82011-04-12 21:16:15 +02008669ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8670#include <X11/Xlib.h>
8671#endif
8672"
Alexandre Julliard9797da42011-04-27 17:37:43 +02008673if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
Alexandre Julliarda8575a82011-04-12 21:16:15 +02008674
8675cat >>confdefs.h <<_ACEOF
8676#define HAVE_XEVENT_XCOOKIE 1
8677_ACEOF
8678
8679
8680fi
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008681
8682
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008683
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008684 opengl_msg=""
8685 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008686 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008687 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8688do :
8689 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8690ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
Alexandre Julliard73482142005-08-03 19:21:04 +00008691# include <GL/glx.h>
8692#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008693"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008694if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008695 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01008696#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008697_ACEOF
8698
8699fi
8700
8701done
8702
Alexandre Julliard73482142005-08-03 19:21:04 +00008703 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8704 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008706$as_echo_n "checking for up-to-date OpenGL version... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008707if ${wine_cv_opengl_header_version_OK+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008708 $as_echo_n "(cached) " >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008709else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008711/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008712#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008713int
8714main ()
8715{
Lionel Ulmer5c085701999-02-28 19:48:53 +00008716GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008717 ;
8718 return 0;
8719}
8720_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008721if ac_fn_c_try_compile "$LINENO"; then :
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008722 wine_cv_opengl_header_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008723else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008724 wine_cv_opengl_header_version_OK="no"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008725fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008726rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008727fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008729$as_echo "$wine_cv_opengl_header_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008730
Alexandre Julliardcc6a08c2006-08-24 14:34:22 +02008731 if test "$wine_cv_opengl_header_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008732 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008734$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008735if ${ac_cv_lib_soname_GL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008736 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008737else
Alexandre Julliard31353e12007-07-04 12:44:12 +02008738 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008739LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008741/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008742
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008743/* Override any GCC internal prototype to avoid an error.
8744 Use char because int might match the return type of a GCC
8745 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008746#ifdef __cplusplus
8747extern "C"
8748#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008749char glXCreateContext ();
8750int
8751main ()
8752{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008753return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008754 ;
8755 return 0;
8756}
8757_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008758if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard31353e12007-07-04 12:44:12 +02008759 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008760 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard31353e12007-07-04 12:44:12 +02008761 dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep "libGL\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8762 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8763 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008764fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008765rm -f core conftest.err conftest.$ac_objext \
8766 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard31353e12007-07-04 12:44:12 +02008767 LIBS=$ac_check_soname_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008768fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008769if test "x$ac_cv_lib_soname_GL" = "x"; then :
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008771$as_echo "not found" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008773$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008774if ${ac_cv_lib_soname_GL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008775 $as_echo_n "(cached) " >&6
Francois Gougetd701ee22007-12-18 10:17:20 +01008776else
8777 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008778LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS -dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008780/* end confdefs.h. */
8781
8782/* Override any GCC internal prototype to avoid an error.
8783 Use char because int might match the return type of a GCC
8784 builtin and then its argument prototype would still apply. */
8785#ifdef __cplusplus
8786extern "C"
8787#endif
8788char glXCreateContext ();
8789int
8790main ()
8791{
8792return glXCreateContext ();
8793 ;
8794 return 0;
8795}
8796_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008797if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetd701ee22007-12-18 10:17:20 +01008798 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008799 dll) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest.exe | grep "GL" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Francois Gougetd701ee22007-12-18 10:17:20 +01008800 dylib) ac_cv_lib_soname_GL=`otool -L conftest$ac_exeext | grep "libGL\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGL\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8801 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8802 esac
Francois Gougetd701ee22007-12-18 10:17:20 +01008803fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008804rm -f core conftest.err conftest.$ac_objext \
8805 conftest$ac_exeext conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008806 LIBS=$ac_check_soname_save_LIBS
8807fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008808if test "x$ac_cv_lib_soname_GL" = "x"; then :
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008810$as_echo "not found" >&6; }
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008811 if test -f /usr/X11R6/lib/libGL.a
Francois Gougetd701ee22007-12-18 10:17:20 +01008812 then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008813 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008814This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
Francois Gougetd701ee22007-12-18 10:17:20 +01008815 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008816 opengl_msg="No OpenGL library found on this system."
Francois Gougetd701ee22007-12-18 10:17:20 +01008817 fi
8818else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008820$as_echo "$ac_cv_lib_soname_GL" >&6; }
Francois Gougetd701ee22007-12-18 10:17:20 +01008821
8822cat >>confdefs.h <<_ACEOF
8823#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8824_ACEOF
8825
8826 OPENGL_LIBS="-Xlinker -dylib_file -Xlinker /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib -lGL"
Francois Gougetd701ee22007-12-18 10:17:20 +01008827
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008828$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Francois Gougetd701ee22007-12-18 10:17:20 +01008829
8830fi
Alexandre Julliard31353e12007-07-04 12:44:12 +02008831else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008833$as_echo "$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard31353e12007-07-04 12:44:12 +02008834
8835cat >>confdefs.h <<_ACEOF
8836#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8837_ACEOF
8838
8839 OPENGL_LIBS="-lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008840
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008841$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008842
Alexandre Julliardc84c4782006-09-22 09:36:12 +02008843fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008844 if test "$ac_cv_header_GL_glu_h" = "yes"
8845 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008847$as_echo_n "checking for -lGLU... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008848if ${ac_cv_lib_soname_GLU+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008849 $as_echo_n "(cached) " >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008850else
Alexandre Julliardad798732008-05-01 13:29:02 +02008851 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008852LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008854/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008855
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008856/* Override any GCC internal prototype to avoid an error.
8857 Use char because int might match the return type of a GCC
8858 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008859#ifdef __cplusplus
8860extern "C"
8861#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008862char gluLookAt ();
8863int
8864main ()
8865{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008866return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008867 ;
8868 return 0;
8869}
8870_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008871if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008872 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008873 dll) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest.exe | grep "GLU" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardad798732008-05-01 13:29:02 +02008874 dylib) ac_cv_lib_soname_GLU=`otool -L conftest$ac_exeext | grep "libGLU\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libGLU\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
8875 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8876 esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008877fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008878rm -f core conftest.err conftest.$ac_objext \
8879 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardad798732008-05-01 13:29:02 +02008880 LIBS=$ac_check_soname_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008881fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008882if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008884$as_echo "not found" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008885
Alexandre Julliardad798732008-05-01 13:29:02 +02008886else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008888$as_echo "$ac_cv_lib_soname_GLU" >&6; }
Alexandre Julliardad798732008-05-01 13:29:02 +02008889
8890cat >>confdefs.h <<_ACEOF
8891#define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8892_ACEOF
8893
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02008894
Alexandre Julliardad798732008-05-01 13:29:02 +02008895fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008896 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008897 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008898 case "x$with_glu" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008899 x) as_fn_append wine_notices "|libGLU ${notice_platform}development files not found, GLU won't be supported." ;;
Alexandre Julliardad798732008-05-01 13:29:02 +02008900 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008901 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008902This is an error since --with-glu was requested." "$LINENO" 5 ;;
Alexandre Julliardad798732008-05-01 13:29:02 +02008903esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008904fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008905 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008906 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008907 fi
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008908 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008909 opengl_msg="OpenGL development headers not found."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008910 fi
Alexandre Julliard8e9504d2008-09-24 13:11:11 +02008911 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8912 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8913 else
8914 enable_opengl32=${enable_opengl32:-no}
8915 enable_glu32=${enable_glu32:-no}
Patrik Stridvall24110281999-02-04 10:09:54 +00008916 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008917 if test -n "$opengl_msg"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008918 case "x$with_opengl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008919 x) as_fn_append wine_warnings "|$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008920OpenGL and Direct3D won't be supported." ;;
8921 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008922 *) as_fn_error $? "$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008923OpenGL and Direct3D won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008924This is an error since --with-opengl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008925esac
8926fi
8927
Francois Gouget6f670b12002-10-10 17:54:27 +00008928 NASLIBS=""
8929
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008930 for ac_header in audio/audiolib.h
8931do :
8932 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +02008933if test "x$ac_cv_header_audio_audiolib_h" = xyes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008934 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008935#define HAVE_AUDIO_AUDIOLIB_H 1
Francois Gouget6f670b12002-10-10 17:54:27 +00008936_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008937 for ac_header in audio/soundlib.h
8938do :
8939 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8940"
Alexandre Julliard9797da42011-04-27 17:37:43 +02008941if test "x$ac_cv_header_audio_soundlib_h" = xyes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008942 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008943#define HAVE_AUDIO_SOUNDLIB_H 1
Francois Gouget6f670b12002-10-10 17:54:27 +00008944_ACEOF
8945
8946fi
8947
8948done
8949
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008951$as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008952if ${ac_cv_lib_audio_AuCreateFlow+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008953 $as_echo_n "(cached) " >&6
Francois Gouget6f670b12002-10-10 17:54:27 +00008954else
8955 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008956LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008958/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008959
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008960/* Override any GCC internal prototype to avoid an error.
8961 Use char because int might match the return type of a GCC
8962 builtin and then its argument prototype would still apply. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008963#ifdef __cplusplus
8964extern "C"
8965#endif
Francois Gouget6f670b12002-10-10 17:54:27 +00008966char AuCreateFlow ();
8967int
8968main ()
8969{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008970return AuCreateFlow ();
Francois Gouget6f670b12002-10-10 17:54:27 +00008971 ;
8972 return 0;
8973}
8974_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008975if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008976 ac_cv_lib_audio_AuCreateFlow=yes
8977else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008978 ac_cv_lib_audio_AuCreateFlow=no
Francois Gouget6f670b12002-10-10 17:54:27 +00008979fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008980rm -f core conftest.err conftest.$ac_objext \
8981 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008982LIBS=$ac_check_lib_save_LIBS
8983fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008985$as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008986if test "x$ac_cv_lib_audio_AuCreateFlow" = xyes; then :
Alexandre Julliard4c719462011-03-28 22:13:38 +02008987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008988$as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008989if ${ac_cv_lib_Xau_XauGetBestAuthByAddr+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008990 $as_echo_n "(cached) " >&6
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008991else
8992 ac_check_lib_save_LIBS=$LIBS
8993LIBS="-lXau $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008994cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008995/* end confdefs.h. */
8996
8997/* Override any GCC internal prototype to avoid an error.
8998 Use char because int might match the return type of a GCC
8999 builtin and then its argument prototype would still apply. */
9000#ifdef __cplusplus
9001extern "C"
9002#endif
9003char XauGetBestAuthByAddr ();
9004int
9005main ()
9006{
9007return XauGetBestAuthByAddr ();
9008 ;
9009 return 0;
9010}
9011_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009012if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009013 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9014else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009015 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009016fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009017rm -f core conftest.err conftest.$ac_objext \
9018 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009019LIBS=$ac_check_lib_save_LIBS
9020fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009021{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009022$as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009023if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = xyes; then :
Alexandre Julliardfd03c502009-08-17 15:11:08 +02009024 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009025else
Alexandre Julliardfd03c502009-08-17 15:11:08 +02009026 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009027fi
9028
9029
Francois Gouget6f670b12002-10-10 17:54:27 +00009030fi
9031
9032fi
9033
9034done
9035
9036
Ove Kaaven1eb593c1999-02-14 09:34:46 +00009037 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00009038else
9039 XLIB=""
9040 X_CFLAGS=""
9041 X_LIBS=""
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02009042 enable_winex11_drv=${enable_winex11_drv:-no}
9043 enable_opengl32=${enable_opengl32:-no}
9044 enable_glu32=${enable_glu32:-no}
Patrik Stridvallea584721998-11-01 16:22:07 +00009045fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009046if test "x$XLIB" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009047 case "x$with_x" in
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009048 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009049 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
Gerald Pfeifer5805d8b2010-09-19 21:10:13 +02009050without X support, which probably isn't what you want. You will need
9051to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009052Use the --without-x option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009053esac
9054fi
9055
Adam Martinson2eb2f712010-12-28 12:46:09 -06009056if test "$ac_cv_header_CL_cl_h" = "yes"
Peter Urbanec65c84d72010-12-02 23:41:48 +11009057then
9058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9059$as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009060if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
Peter Urbanec65c84d72010-12-02 23:41:48 +11009061 $as_echo_n "(cached) " >&6
9062else
9063 ac_check_lib_save_LIBS=$LIBS
9064LIBS="-lOpenCL $LIBS"
9065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9066/* end confdefs.h. */
9067
9068/* Override any GCC internal prototype to avoid an error.
9069 Use char because int might match the return type of a GCC
9070 builtin and then its argument prototype would still apply. */
9071#ifdef __cplusplus
9072extern "C"
9073#endif
9074char clGetPlatformInfo ();
9075int
9076main ()
9077{
9078return clGetPlatformInfo ();
9079 ;
9080 return 0;
9081}
9082_ACEOF
9083if ac_fn_c_try_link "$LINENO"; then :
9084 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9085else
9086 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9087fi
9088rm -f core conftest.err conftest.$ac_objext \
9089 conftest$ac_exeext conftest.$ac_ext
9090LIBS=$ac_check_lib_save_LIBS
9091fi
9092{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9093$as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009094if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
Peter Urbanec65c84d72010-12-02 23:41:48 +11009095 LIBOPENCL="-lOpenCL"
9096
9097fi
9098
9099fi
9100if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9101 case "x$with_opencl" in
9102 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9103 xno) ;;
9104 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009105This is an error since --with-opencl was requested." "$LINENO" 5 ;;
Peter Urbanec65c84d72010-12-02 23:41:48 +11009106esac
9107fi
9108test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9109
Alexandre Julliard902da691995-11-05 14:39:02 +00009110
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009111XML2LIBS=""
9112
9113XML2INCL=""
9114
Mike McCormackf3719a82005-09-03 09:39:38 +00009115XSLTINCL=""
9116
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009117if test "x$with_xml" != "xno"
Mike McCormack90c75bd2005-08-08 18:36:53 +00009118then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009119 ac_save_CPPFLAGS="$CPPFLAGS"
9120 if test "$PKG_CONFIG" != "false"
9121 then
9122 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9123 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9124 else
9125 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9126 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9127 fi
9128 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009129 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009130do :
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009131 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9132ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9133if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009134 cat >>confdefs.h <<_ACEOF
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009135#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009136_ACEOF
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009137
9138fi
9139
9140done
9141
9142 if test "$ac_cv_header_libxml_parser_h" = "yes" -a "$ac_cv_header_libxml_xmlsave_h" = "yes" -a "$ac_cv_header_libxml_SAX2_h" = "yes"
9143 then
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009145$as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009146if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009147 $as_echo_n "(cached) " >&6
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009148else
9149 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +00009150LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009152/* end confdefs.h. */
9153
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009154/* Override any GCC internal prototype to avoid an error.
9155 Use char because int might match the return type of a GCC
9156 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009157#ifdef __cplusplus
9158extern "C"
9159#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +00009160char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009161int
9162main ()
9163{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009164return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009165 ;
9166 return 0;
9167}
9168_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009169if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack90c75bd2005-08-08 18:36:53 +00009170 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009171else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009172 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009173fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009174rm -f core conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009176LIBS=$ac_check_lib_save_LIBS
9177fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009179$as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009180if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009181
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009182$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009183
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009184 XML2LIBS="$ac_xml_libs"
9185 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009186fi
9187
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009189$as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009190if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009191 $as_echo_n "(cached) " >&6
Mike McCormack70adb8f2005-08-12 10:35:17 +00009192else
9193 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009194LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009196/* end confdefs.h. */
9197
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009198/* Override any GCC internal prototype to avoid an error.
9199 Use char because int might match the return type of a GCC
9200 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +00009201#ifdef __cplusplus
9202extern "C"
9203#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +00009204char xmlReadMemory ();
9205int
9206main ()
9207{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009208return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +00009209 ;
9210 return 0;
9211}
9212_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009213if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009214 ac_cv_lib_xml2_xmlReadMemory=yes
9215else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009216 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +00009217fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009218rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009220LIBS=$ac_check_lib_save_LIBS
9221fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009223$as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009224if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009225
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009226$as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
Mike McCormack70adb8f2005-08-12 10:35:17 +00009227
9228fi
9229
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009231$as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009232if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009233 $as_echo_n "(cached) " >&6
Lei Zhang6a530ab2006-11-29 15:59:03 -08009234else
9235 ac_check_lib_save_LIBS=$LIBS
9236LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009237cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009238/* end confdefs.h. */
9239
9240/* Override any GCC internal prototype to avoid an error.
9241 Use char because int might match the return type of a GCC
9242 builtin and then its argument prototype would still apply. */
9243#ifdef __cplusplus
9244extern "C"
9245#endif
9246char xmlNewDocPI ();
9247int
9248main ()
9249{
9250return xmlNewDocPI ();
9251 ;
9252 return 0;
9253}
9254_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009255if ac_fn_c_try_link "$LINENO"; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009256 ac_cv_lib_xml2_xmlNewDocPI=yes
9257else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009258 ac_cv_lib_xml2_xmlNewDocPI=no
Lei Zhang6a530ab2006-11-29 15:59:03 -08009259fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009260rm -f core conftest.err conftest.$ac_objext \
9261 conftest$ac_exeext conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009262LIBS=$ac_check_lib_save_LIBS
9263fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009265$as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009266if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009267
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009268$as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
Lei Zhang6a530ab2006-11-29 15:59:03 -08009269
9270fi
9271
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
Adam Martinson6ee22312010-11-22 20:54:54 -06009273$as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009274if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
Adam Martinson6ee22312010-11-22 20:54:54 -06009275 $as_echo_n "(cached) " >&6
9276else
9277 ac_check_lib_save_LIBS=$LIBS
9278LIBS="-lxml2 $ac_xml_libs $LIBS"
9279cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280/* end confdefs.h. */
9281
9282/* Override any GCC internal prototype to avoid an error.
9283 Use char because int might match the return type of a GCC
9284 builtin and then its argument prototype would still apply. */
9285#ifdef __cplusplus
9286extern "C"
9287#endif
9288char xmlSchemaSetParserStructuredErrors ();
9289int
9290main ()
9291{
9292return xmlSchemaSetParserStructuredErrors ();
9293 ;
9294 return 0;
9295}
9296_ACEOF
9297if ac_fn_c_try_link "$LINENO"; then :
9298 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9299else
9300 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9301fi
9302rm -f core conftest.err conftest.$ac_objext \
9303 conftest$ac_exeext conftest.$ac_ext
9304LIBS=$ac_check_lib_save_LIBS
9305fi
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9307$as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009308if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
Adam Martinson6ee22312010-11-22 20:54:54 -06009309
9310$as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9311
9312fi
9313
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009315$as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009316if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009317 $as_echo_n "(cached) " >&6
9318else
9319 ac_check_lib_save_LIBS=$LIBS
9320LIBS="-lxml2 $ac_xml_libs $LIBS"
9321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9322/* end confdefs.h. */
9323
9324/* Override any GCC internal prototype to avoid an error.
9325 Use char because int might match the return type of a GCC
9326 builtin and then its argument prototype would still apply. */
9327#ifdef __cplusplus
9328extern "C"
9329#endif
9330char xmlSchemaSetValidStructuredErrors ();
9331int
9332main ()
9333{
9334return xmlSchemaSetValidStructuredErrors ();
9335 ;
9336 return 0;
9337}
9338_ACEOF
9339if ac_fn_c_try_link "$LINENO"; then :
9340 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9341else
9342 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9343fi
9344rm -f core conftest.err conftest.$ac_objext \
9345 conftest$ac_exeext conftest.$ac_ext
9346LIBS=$ac_check_lib_save_LIBS
9347fi
9348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9349$as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009350if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009351
9352$as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9353
9354fi
9355
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
Adam Martinson82f73c82010-11-11 15:16:24 -06009357$as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009358if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
Adam Martinson82f73c82010-11-11 15:16:24 -06009359 $as_echo_n "(cached) " >&6
9360else
9361 ac_check_lib_save_LIBS=$LIBS
9362LIBS="-lxml2 $ac_xml_libs $LIBS"
9363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9364/* end confdefs.h. */
9365
9366/* Override any GCC internal prototype to avoid an error.
9367 Use char because int might match the return type of a GCC
9368 builtin and then its argument prototype would still apply. */
9369#ifdef __cplusplus
9370extern "C"
9371#endif
9372char xmlFirstElementChild ();
9373int
9374main ()
9375{
9376return xmlFirstElementChild ();
9377 ;
9378 return 0;
9379}
9380_ACEOF
9381if ac_fn_c_try_link "$LINENO"; then :
9382 ac_cv_lib_xml2_xmlFirstElementChild=yes
9383else
9384 ac_cv_lib_xml2_xmlFirstElementChild=no
9385fi
9386rm -f core conftest.err conftest.$ac_objext \
9387 conftest$ac_exeext conftest.$ac_ext
9388LIBS=$ac_check_lib_save_LIBS
9389fi
9390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9391$as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009392if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
Adam Martinson82f73c82010-11-11 15:16:24 -06009393
9394$as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9395
9396fi
9397
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009398 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
Adam Martinson9408b492010-11-02 17:20:08 -05009399"
Alexandre Julliard9797da42011-04-27 17:37:43 +02009400if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
Adam Martinson9408b492010-11-02 17:20:08 -05009401
9402$as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9403
9404fi
9405
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009406 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009407 CPPFLAGS="$ac_save_CPPFLAGS"
9408fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009409if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009410 case "x$with_xml" in
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009411 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found (or too old), XML won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009412 xno) ;;
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009413 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009414This is an error since --with-xml was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009415esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009416fi
9417
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009418if test "x$with_xslt" != "xno"
Emmanuel Maillard2a98b402007-06-22 02:58:39 +02009419then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009420 if test "$PKG_CONFIG" != "false"
9421 then
9422 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9423 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9424 else
9425 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9426 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9427 fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009428 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009429 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009430 for ac_header in libxslt/pattern.h libxslt/transform.h
9431do :
9432 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9433ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
Vincent Bérond7f64242005-09-15 09:39:09 +00009434# include <libxslt/pattern.h>
9435#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009436"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009437if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mike McCormackf3719a82005-09-03 09:39:38 +00009438 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009439#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackf3719a82005-09-03 09:39:38 +00009440_ACEOF
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009441
9442fi
9443
9444done
9445
9446 CPPFLAGS="$ac_save_CPPFLAGS"
9447 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9448 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009450$as_echo_n "checking for -lxslt... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009451if ${ac_cv_lib_soname_xslt+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009452 $as_echo_n "(cached) " >&6
Mike McCormackf3719a82005-09-03 09:39:38 +00009453else
Francois Gouget3d384f12008-11-17 19:29:32 +01009454 ac_check_soname_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009455LIBS="-lxslt $ac_xslt_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +00009457/* end confdefs.h. */
9458
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009459/* Override any GCC internal prototype to avoid an error.
9460 Use char because int might match the return type of a GCC
9461 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +00009462#ifdef __cplusplus
9463extern "C"
9464#endif
Mike McCormackf3719a82005-09-03 09:39:38 +00009465char xsltCompilePattern ();
9466int
9467main ()
9468{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009469return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +00009470 ;
9471 return 0;
9472}
9473_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009474if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget3d384f12008-11-17 19:29:32 +01009475 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009476 dll) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest.exe | grep "xslt" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Francois Gouget3d384f12008-11-17 19:29:32 +01009477 dylib) ac_cv_lib_soname_xslt=`otool -L conftest$ac_exeext | grep "libxslt\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libxslt\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9478 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9479 esac
Mike McCormackf3719a82005-09-03 09:39:38 +00009480fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009481rm -f core conftest.err conftest.$ac_objext \
9482 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3d384f12008-11-17 19:29:32 +01009483 LIBS=$ac_check_soname_save_LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009484fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009485if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009487$as_echo "not found" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +00009488
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009489else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009491$as_echo "$ac_cv_lib_soname_xslt" >&6; }
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009492
Francois Gouget3d384f12008-11-17 19:29:32 +01009493cat >>confdefs.h <<_ACEOF
9494#define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009495_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +00009496
Francois Gouget3d384f12008-11-17 19:29:32 +01009497 XSLTINCL="$ac_xslt_cflags"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009498fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009499 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009500fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009501if test "x$ac_cv_lib_soname_xslt" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009502 case "x$with_xslt" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009503 x) as_fn_append wine_warnings "|libxslt ${notice_platform}development files not found, xslt won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009504 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009505 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009506This is an error since --with-xslt was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009507esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009508fi
9509
Alexandre Julliard00068982006-04-18 16:47:53 +02009510HALINCL=""
9511
Francois Gouget295a0cd2009-01-09 20:22:22 +01009512if test "x$with_hal" != "xno"
Alexandre Julliard00068982006-04-18 16:47:53 +02009513then
9514 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009515 if test "$PKG_CONFIG" != "false"
9516 then
9517 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9518 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9519 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9520 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009521 for ac_header in dbus/dbus.h hal/libhal.h
9522do :
9523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9524ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009525if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliard00068982006-04-18 16:47:53 +02009526 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009527#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliard00068982006-04-18 16:47:53 +02009528_ACEOF
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009529
9530fi
9531
9532done
9533
9534 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9535 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009537$as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009538if ${ac_cv_lib_dbus_1_dbus_connection_close+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009539 $as_echo_n "(cached) " >&6
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009540else
9541 ac_check_lib_save_LIBS=$LIBS
9542LIBS="-ldbus-1 $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009544/* end confdefs.h. */
9545
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009546/* Override any GCC internal prototype to avoid an error.
9547 Use char because int might match the return type of a GCC
9548 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009549#ifdef __cplusplus
9550extern "C"
9551#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009552char dbus_connection_close ();
9553int
9554main ()
9555{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009556return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009557 ;
9558 return 0;
9559}
9560_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009561if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009562 ac_cv_lib_dbus_1_dbus_connection_close=yes
9563else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009564 ac_cv_lib_dbus_1_dbus_connection_close=no
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009565fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009566rm -f core conftest.err conftest.$ac_objext \
9567 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009568LIBS=$ac_check_lib_save_LIBS
9569fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009571$as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009572if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009574$as_echo_n "checking for -lhal... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009575if ${ac_cv_lib_soname_hal+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009576 $as_echo_n "(cached) " >&6
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009577else
9578 ac_check_soname_save_LIBS=$LIBS
9579LIBS="-lhal $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009581/* end confdefs.h. */
Alexandre Julliard00068982006-04-18 16:47:53 +02009582
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009583/* Override any GCC internal prototype to avoid an error.
9584 Use char because int might match the return type of a GCC
9585 builtin and then its argument prototype would still apply. */
9586#ifdef __cplusplus
9587extern "C"
9588#endif
9589char libhal_ctx_new ();
9590int
9591main ()
9592{
9593return libhal_ctx_new ();
9594 ;
9595 return 0;
9596}
9597_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009598if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009599 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009600 dll) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest.exe | grep "hal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009601 dylib) ac_cv_lib_soname_hal=`otool -L conftest$ac_exeext | grep "libhal\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libhal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9602 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9603 esac
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009604fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009605rm -f core conftest.err conftest.$ac_objext \
9606 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009607 LIBS=$ac_check_soname_save_LIBS
9608fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009609if test "x$ac_cv_lib_soname_hal" = "x"; then :
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009611$as_echo "not found" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009612
9613else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009615$as_echo "$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009616
9617cat >>confdefs.h <<_ACEOF
9618#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
Alexandre Julliard00068982006-04-18 16:47:53 +02009619_ACEOF
9620
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009621 HALINCL="$ac_hal_cflags"
Alexandre Julliard00068982006-04-18 16:47:53 +02009622fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009623fi
9624
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009625 fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009626 CPPFLAGS="$ac_save_CPPFLAGS"
9627fi
Alexandre Julliardd8062732010-04-26 06:57:49 -05009628if test "x$ac_cv_lib_soname_hal" = "x" -a "x$ac_cv_header_DiskArbitration_DiskArbitration_h" != "xyes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009629 case "x$with_hal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009630 x) as_fn_append wine_notices "|libhal/libdbus ${notice_platform}development files not found, no dynamic device support." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009631 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009632 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009633This is an error since --with-hal was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009634esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009635fi
9636
Francois Gouget295a0cd2009-01-09 20:22:22 +01009637if test "x$with_gnutls" != "xno"
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009638then
9639 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009640 if test "$PKG_CONFIG" != "false"
9641 then
9642 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9643 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9644 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9645 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009646 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +02009647if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gouget3aae9542008-10-24 11:24:58 +02009649/* end confdefs.h. */
9650#include <gnutls/gnutls.h>
9651int
9652main ()
9653{
Henri Verbeet8c4a2972008-12-30 09:45:20 +01009654typeof(gnutls_mac_get_key_size) *pfunc;
Francois Gouget3aae9542008-10-24 11:24:58 +02009655 ;
9656 return 0;
9657}
9658_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009659if ac_fn_c_try_compile "$LINENO"; then :
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009661$as_echo_n "checking for -lgnutls... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009662if ${ac_cv_lib_soname_gnutls+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009663 $as_echo_n "(cached) " >&6
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009664else
9665 ac_check_soname_save_LIBS=$LIBS
9666LIBS="-lgnutls $ac_gnutls_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009668/* end confdefs.h. */
9669
9670/* Override any GCC internal prototype to avoid an error.
9671 Use char because int might match the return type of a GCC
9672 builtin and then its argument prototype would still apply. */
9673#ifdef __cplusplus
9674extern "C"
9675#endif
9676char gnutls_global_init ();
9677int
9678main ()
9679{
9680return gnutls_global_init ();
9681 ;
9682 return 0;
9683}
9684_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009685if ac_fn_c_try_link "$LINENO"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009686 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009687 dll) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest.exe | grep "gnutls" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009688 dylib) ac_cv_lib_soname_gnutls=`otool -L conftest$ac_exeext | grep "libgnutls\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgnutls\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9689 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9690 esac
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009691fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009692rm -f core conftest.err conftest.$ac_objext \
9693 conftest$ac_exeext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009694 LIBS=$ac_check_soname_save_LIBS
9695fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009696if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009698$as_echo "not found" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009699
9700else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009702$as_echo "$ac_cv_lib_soname_gnutls" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009703
9704cat >>confdefs.h <<_ACEOF
9705#define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9706_ACEOF
9707
9708 GNUTLSINCL="$ac_gnutls_cflags"
9709
9710fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009711fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009712rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009713fi
9714
9715
9716 CPPFLAGS="$ac_save_CPPFLAGS"
9717fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009718if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009719 case "x$with_gnutls" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009720 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009721 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009722 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009723This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009724esac
9725fi
9726
Alexandre Julliard48957682001-12-26 23:08:31 +00009727CURSESLIBS=""
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009728if test "$ac_cv_header_ncurses_h" = "yes"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00009729then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009731$as_echo_n "checking for -lncurses... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009732if ${ac_cv_lib_soname_ncurses+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009733 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009734else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009735 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009736LIBS="-lncurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009738/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009739
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009740/* Override any GCC internal prototype to avoid an error.
9741 Use char because int might match the return type of a GCC
9742 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009743#ifdef __cplusplus
9744extern "C"
9745#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009746char waddch ();
9747int
9748main ()
9749{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009750return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009751 ;
9752 return 0;
9753}
9754_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009755if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009756 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009757 dll) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest.exe | grep "ncurses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardd0783772007-07-02 17:28:50 +02009758 dylib) ac_cv_lib_soname_ncurses=`otool -L conftest$ac_exeext | grep "libncurses\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libncurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9759 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9760 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009761fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009762rm -f core conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009764 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009765fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009766if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009768$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009769
9770else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009772$as_echo "$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009773
9774cat >>confdefs.h <<_ACEOF
9775#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9776_ACEOF
9777
9778 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009779fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009780elif test "$ac_cv_header_curses_h" = "yes"
9781then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009783$as_echo_n "checking for -lcurses... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009784if ${ac_cv_lib_soname_curses+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009785 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009786else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009787 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009788LIBS="-lcurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009790/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009791
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009792/* Override any GCC internal prototype to avoid an error.
9793 Use char because int might match the return type of a GCC
9794 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009795#ifdef __cplusplus
9796extern "C"
9797#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009798char waddch ();
9799int
9800main ()
9801{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009802return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009803 ;
9804 return 0;
9805}
9806_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009807if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009808 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009809 dll) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest.exe | grep "curses" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardd0783772007-07-02 17:28:50 +02009810 dylib) ac_cv_lib_soname_curses=`otool -L conftest$ac_exeext | grep "libcurses\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcurses\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9811 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9812 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009813fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009814rm -f core conftest.err conftest.$ac_objext \
9815 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009816 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009817fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009818if test "x$ac_cv_lib_soname_curses" = "x"; then :
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009820$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009821
9822else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009824$as_echo "$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009825
9826cat >>confdefs.h <<_ACEOF
9827#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9828_ACEOF
9829
9830 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009831fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009832fi
9833ac_save_LIBS="$LIBS"
9834LIBS="$LIBS $CURSESLIBS"
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009835for ac_func in mousemask
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009836do :
9837 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
Alexandre Julliard9797da42011-04-27 17:37:43 +02009838if test "x$ac_cv_func_mousemask" = xyes; then :
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009839 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009840#define HAVE_MOUSEMASK 1
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009841_ACEOF
9842
9843fi
9844done
9845
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009846LIBS="$ac_save_LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009847if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009848 case "x$with_curses" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009849 x) as_fn_append wine_notices "|lib(n)curses ${notice_platform}development files not found, curses won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009850 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009851 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009852This is an error since --with-curses was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009853esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009854fi
9855
Francois Gouget3fe5d802009-01-14 14:16:06 +01009856if test "x$with_sane" != "xno"
9857then
9858 ac_save_CPPFLAGS="$CPPFLAGS"
9859 # Extract the first word of "sane-config", so it can be a program name with args.
Shi Quan He6b0720f2002-03-21 02:58:39 +00009860set dummy sane-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009862$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009863if ${ac_cv_prog_sane_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009864 $as_echo_n "(cached) " >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009865else
9866 if test -n "$sane_devel"; then
9867 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9868else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9870for as_dir in $PATH
9871do
9872 IFS=$as_save_IFS
9873 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009874 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009876 ac_cv_prog_sane_devel="sane-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009878 break 2
9879 fi
9880done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009881 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009882IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +00009883
9884 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9885fi
9886fi
9887sane_devel=$ac_cv_prog_sane_devel
9888if test -n "$sane_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009890$as_echo "$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009891else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009893$as_echo "no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009894fi
9895
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009896
Francois Gouget3fe5d802009-01-14 14:16:06 +01009897 if test "$sane_devel" != "no"
9898 then
9899 ac_sane_incl="`$sane_devel --cflags`"
9900 ac_sane_libs="`$sane_devel --ldflags`"
9901 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9902 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009903 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +02009904if test "x$ac_cv_header_sane_sane_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009906$as_echo_n "checking for -lsane... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009907if ${ac_cv_lib_soname_sane+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009908 $as_echo_n "(cached) " >&6
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009909else
9910 ac_check_soname_save_LIBS=$LIBS
Francois Gougeta9d7bab2008-07-20 22:41:41 +02009911LIBS="-lsane $ac_sane_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009913/* end confdefs.h. */
9914
9915/* Override any GCC internal prototype to avoid an error.
9916 Use char because int might match the return type of a GCC
9917 builtin and then its argument prototype would still apply. */
9918#ifdef __cplusplus
9919extern "C"
9920#endif
9921char sane_init ();
9922int
9923main ()
9924{
9925return sane_init ();
9926 ;
9927 return 0;
9928}
9929_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009930if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009931 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009932 dll) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest.exe | grep "sane" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009933 dylib) ac_cv_lib_soname_sane=`otool -L conftest$ac_exeext | grep "libsane\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libsane\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
9934 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9935 esac
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009936fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009937rm -f core conftest.err conftest.$ac_objext \
9938 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009939 LIBS=$ac_check_soname_save_LIBS
9940fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009941if test "x$ac_cv_lib_soname_sane" = "x"; then :
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009943$as_echo "not found" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009944
9945else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009947$as_echo "$ac_cv_lib_soname_sane" >&6; }
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009948
9949cat >>confdefs.h <<_ACEOF
9950#define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9951_ACEOF
9952
9953 SANEINCL="$ac_sane_incl"
9954
9955fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009956fi
9957
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009958
Shi Quan He6b0720f2002-03-21 02:58:39 +00009959 CPPFLAGS="$ac_save_CPPFLAGS"
9960fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009961if test "x$ac_cv_lib_soname_sane" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009962 case "x$with_sane" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009963 x) as_fn_append wine_notices "|libsane ${notice_platform}development files not found, scanners won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009964 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009965 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009966This is an error since --with-sane was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009967esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009968fi
9969
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009970if test "x$with_v4l" != "xno"
9971then
9972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9973$as_echo_n "checking for -lv4l1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009974if ${ac_cv_lib_soname_v4l1+:} false; then :
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009975 $as_echo_n "(cached) " >&6
9976else
9977 ac_check_soname_save_LIBS=$LIBS
9978LIBS="-lv4l1 $LIBS"
9979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980/* end confdefs.h. */
9981
9982/* Override any GCC internal prototype to avoid an error.
9983 Use char because int might match the return type of a GCC
9984 builtin and then its argument prototype would still apply. */
9985#ifdef __cplusplus
9986extern "C"
9987#endif
9988char v4l1_open ();
9989int
9990main ()
9991{
9992return v4l1_open ();
9993 ;
9994 return 0;
9995}
9996_ACEOF
9997if ac_fn_c_try_link "$LINENO"; then :
9998 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009999 dll) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest.exe | grep "v4l1" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +010010000 dylib) ac_cv_lib_soname_v4l1=`otool -L conftest$ac_exeext | grep "libv4l1\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libv4l1\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10001 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10002 esac
10003fi
10004rm -f core conftest.err conftest.$ac_objext \
10005 conftest$ac_exeext conftest.$ac_ext
10006 LIBS=$ac_check_soname_save_LIBS
10007fi
10008if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10010$as_echo "not found" >&6; }
10011
10012else
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10014$as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10015
10016cat >>confdefs.h <<_ACEOF
10017#define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10018_ACEOF
10019
10020
10021fi
10022fi
10023if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10024 case "x$with_v4l" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010025 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +010010026 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010027 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010028This is an error since --with-v4l was requested." "$LINENO" 5 ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +010010029esac
10030fi
10031
Francois Gouget3fe5d802009-01-14 14:16:06 +010010032if test "x$with_gphoto" != "xno"
10033then
10034 ac_save_CPPFLAGS="$CPPFLAGS"
10035 # Extract the first word of "gphoto2-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010036set dummy gphoto2-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010038$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010039if ${ac_cv_prog_gphoto2_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010040 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010041else
10042 if test -n "$gphoto2_devel"; then
10043 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10044else
10045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10046for as_dir in $PATH
10047do
10048 IFS=$as_save_IFS
10049 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010050 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010052 ac_cv_prog_gphoto2_devel="gphoto2-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010054 break 2
10055 fi
10056done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010057 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010058IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010059
10060 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10061fi
10062fi
10063gphoto2_devel=$ac_cv_prog_gphoto2_devel
10064if test -n "$gphoto2_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010066$as_echo "$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010067else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010069$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010070fi
10071
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010072
Francois Gouget3fe5d802009-01-14 14:16:06 +010010073 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010074set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010076$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010077if ${ac_cv_prog_gphoto2port_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010078 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010079else
10080 if test -n "$gphoto2port_devel"; then
10081 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10082else
10083as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10084for as_dir in $PATH
10085do
10086 IFS=$as_save_IFS
10087 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010088 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010090 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010092 break 2
10093 fi
10094done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010095 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010096IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010097
10098 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10099fi
10100fi
10101gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10102if test -n "$gphoto2port_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010104$as_echo "$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010105else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010107$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010108fi
10109
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010110
Francois Gouget3fe5d802009-01-14 14:16:06 +010010111 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10112 then
10113 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10114 ac_gphoto2_libs=""
10115 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10116 do
10117 case "$i" in
10118 -L/usr/lib|-L/usr/lib64) ;;
10119 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10120 esac
10121 done
10122 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10123 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010124 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010125 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010126if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010128$as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010129if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010130 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010131else
10132 ac_check_lib_save_LIBS=$LIBS
Francois Gouget4bc03fe2008-07-21 17:10:45 +020010133LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010135/* end confdefs.h. */
10136
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010137/* Override any GCC internal prototype to avoid an error.
10138 Use char because int might match the return type of a GCC
10139 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010140#ifdef __cplusplus
10141extern "C"
10142#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010143char gp_camera_new ();
10144int
10145main ()
10146{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010147return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010148 ;
10149 return 0;
10150}
10151_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010152if ac_fn_c_try_link "$LINENO"; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010153 ac_cv_lib_gphoto2_gp_camera_new=yes
10154else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010155 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010156fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010157rm -f core conftest.err conftest.$ac_objext \
10158 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010159LIBS=$ac_check_lib_save_LIBS
10160fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010162$as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010163if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010164
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010165$as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010166
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010167 GPHOTO2LIBS="$ac_gphoto2_libs"
10168
10169 GPHOTO2INCL="$ac_gphoto2_incl"
10170
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010171fi
10172
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010173fi
10174
10175
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010176 CPPFLAGS="$ac_save_CPPFLAGS"
10177fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010178if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010179 case "x$with_gphoto" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010180 x) as_fn_append wine_notices "|libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010181 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010182 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010183This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010184esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010185fi
10186
10187
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010188if test "$ac_cv_header_resolv_h" = "yes"
10189then
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010190 ac_save_LIBS="$LIBS"
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010191 for lib in '' -lresolv
10192 do
10193 LIBS="$lib $ac_save_LIBS"
10194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010195/* end confdefs.h. */
Rob Shearmanba349212009-01-02 12:12:06 +000010196#ifdef HAVE_NETINET_IN_H
10197#include <netinet/in.h>
10198#endif
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010199#include <resolv.h>
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010200int
10201main ()
10202{
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010203res_query("foo",ns_c_in,0,0,0);
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010204 ;
10205 return 0;
10206}
10207_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010208if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010209
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010210$as_echo "#define HAVE_RESOLV 1" >>confdefs.h
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010211
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010212 RESOLVLIBS="$lib"
10213
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010214fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010215rm -f core conftest.err conftest.$ac_objext \
10216 conftest$ac_exeext conftest.$ac_ext
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010217 if test "${RESOLVLIBS+set}" = set; then
10218 break
10219 fi
10220 done
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010221 LIBS="$ac_save_LIBS"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010222fi
10223
Hans Leidekkerd3447022005-07-15 10:09:43 +000010224LCMSLIBS=""
10225
10226if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10227then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010229$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010230if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010231 $as_echo_n "(cached) " >&6
Hans Leidekkerd3447022005-07-15 10:09:43 +000010232else
10233 ac_check_lib_save_LIBS=$LIBS
10234LIBS="-llcms $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010235cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010236/* end confdefs.h. */
10237
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010238/* Override any GCC internal prototype to avoid an error.
10239 Use char because int might match the return type of a GCC
10240 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +000010241#ifdef __cplusplus
10242extern "C"
10243#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +000010244char cmsOpenProfileFromFile ();
10245int
10246main ()
10247{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010248return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000010249 ;
10250 return 0;
10251}
10252_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010253if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010254 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10255else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010256 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000010257fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010258rm -f core conftest.err conftest.$ac_objext \
10259 conftest$ac_exeext conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010260LIBS=$ac_check_lib_save_LIBS
10261fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010263$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010264if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010265
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010266$as_echo "#define HAVE_LCMS 1" >>confdefs.h
Hans Leidekkerd3447022005-07-15 10:09:43 +000010267
10268 LCMSLIBS="-llcms"
10269fi
10270
10271fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010272if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010273 case "x$with_cms" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010274 x) as_fn_append wine_notices "|liblcms ${notice_platform}development files not found, Color Management won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010275 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010276 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010277This is an error since --with-cms was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010278esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010279fi
10280
Francois Gouget3fe5d802009-01-14 14:16:06 +010010281if test "x$with_freetype" != "xno"
10282then
10283 for ac_prog in freetype-config freetype2-config
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010284do
10285 # Extract the first word of "$ac_prog", so it can be a program name with args.
10286set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010288$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010289if ${ac_cv_prog_ft_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010290 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010291else
10292 if test -n "$ft_devel"; then
10293 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10294else
10295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296for as_dir in $PATH
10297do
10298 IFS=$as_save_IFS
10299 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010300 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010302 ac_cv_prog_ft_devel="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010304 break 2
10305 fi
10306done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010307 done
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010308IFS=$as_save_IFS
10309
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010310fi
10311fi
10312ft_devel=$ac_cv_prog_ft_devel
10313if test -n "$ft_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010315$as_echo "$ft_devel" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010316else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010318$as_echo "no" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010319fi
10320
10321
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010322 test -n "$ft_devel" && break
10323done
Francois Gouget3fe5d802009-01-14 14:16:06 +010010324test -n "$ft_devel" || ft_devel="no"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010325
Francois Gouget3fe5d802009-01-14 14:16:06 +010010326 if test "$ft_devel" != "no"
10327 then
10328 ac_freetype_incl=`$ft_devel --cflags`
10329 ac_freetype_libs=`$ft_devel --libs`
10330 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010331 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010333$as_echo_n "checking for -lfreetype... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010334if ${ac_cv_lib_soname_freetype+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010335 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010336else
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010337 ac_check_soname_save_LIBS=$LIBS
10338LIBS="-lfreetype $ac_freetype_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010340/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010341
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010342/* Override any GCC internal prototype to avoid an error.
10343 Use char because int might match the return type of a GCC
10344 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010345#ifdef __cplusplus
10346extern "C"
10347#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010348char FT_Init_FreeType ();
10349int
10350main ()
10351{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010352return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010353 ;
10354 return 0;
10355}
10356_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010357if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010358 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010359 dll) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest.exe | grep "freetype" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010360 dylib) ac_cv_lib_soname_freetype=`otool -L conftest$ac_exeext | grep "libfreetype\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfreetype\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10361 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10362 esac
Ian Pilcher563598d2001-05-16 20:56:05 +000010363fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010364rm -f core conftest.err conftest.$ac_objext \
10365 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010366 LIBS=$ac_check_soname_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010367fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010368if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010370$as_echo "not found" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010371 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010372else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010374$as_echo "$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010375
10376cat >>confdefs.h <<_ACEOF
10377#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10378_ACEOF
10379
10380 ft_lib=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010381fi
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010382 if test "$ft_lib" = "yes"
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010383 then
Ian Pilcher40432fe2001-06-06 21:05:23 +000010384 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010385 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010386 for ac_header in ft2build.h \
Rein Klazese617a9c2003-11-19 02:18:13 +000010387 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010388 freetype/ftglyph.h \
Dmitry Timoshkovb0d15902007-09-20 19:10:31 +090010389 freetype/fttypes.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010390 freetype/tttables.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010391 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010392 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010393 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010394 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010010395 freetype/ftmodapi.h \
ByeongSik Jeon028617b2008-12-10 23:50:44 +090010396 freetype/ftlcdfil.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010397 freetype/internal/sfnt.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010398do :
10399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10400ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
Francois Gouget9e67edf2008-03-06 12:34:48 +010010401 # include <ft2build.h>
Rein Klazes9c269172003-11-20 04:17:33 +000010402 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010403"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010404if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010405 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010406#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010407_ACEOF
10408
10409fi
10410
Ian Pilcher40432fe2001-06-06 21:05:23 +000010411done
10412
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010414/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010415#include <ft2build.h>
10416 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010417_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010418if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010419
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010420$as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
Alexandre Julliard18d75732002-01-29 03:02:50 +000010421
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010422 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010423else
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010424 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010425fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010426rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010427 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10428"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010429if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
Huw Daviesd8a6c272006-02-22 12:24:25 +000010430
10431cat >>confdefs.h <<_ACEOF
10432#define HAVE_FT_TRUETYPEENGINETYPE 1
10433_ACEOF
10434
10435
10436fi
10437
Huw Davies35bca772006-04-12 12:14:27 +010010438 ac_save_CFLAGS="$CFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010439 CFLAGS="$CFLAGS $ac_freetype_libs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010440 for ac_func in FT_Load_Sfnt_Table
10441do :
10442 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010443if test "x$ac_cv_func_FT_Load_Sfnt_Table" = xyes; then :
Huw Davies35bca772006-04-12 12:14:27 +010010444 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010445#define HAVE_FT_LOAD_SFNT_TABLE 1
Huw Davies35bca772006-04-12 12:14:27 +010010446_ACEOF
10447
10448fi
10449done
10450
10451 CFLAGS="$ac_save_CFLAGS"
Ian Pilcher40432fe2001-06-06 21:05:23 +000010452 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010453 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010454 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010455
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010456$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010457
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010458 FREETYPELIBS="$ac_freetype_libs"
10459
10460 FREETYPEINCL="$ac_freetype_incl"
10461
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010462 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010463 fi
10464fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010465if test "x$FREETYPELIBS" = "x"; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010466 case "x$with_freetype" in
10467 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010468 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010469Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010470esac
Huw Davies00acb5f2004-08-17 22:33:14 +000010471fi
Alexandre Julliard6de0af12008-08-25 14:41:03 +020010472test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010473
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010475$as_echo_n "checking for parport header/ppdev.h... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010476if ${ac_cv_c_ppdev+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010477 $as_echo_n "(cached) " >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010478else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010480/* end confdefs.h. */
Yann Droneauddd33ee92010-03-08 14:46:46 +010010481#ifdef HAVE_SYS_IOCTL_H
10482# include <sys/ioctl.h>
10483#endif
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010484#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010485int
10486main ()
10487{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010488ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010489 ;
10490 return 0;
10491}
10492_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010493if ac_fn_c_try_compile "$LINENO"; then :
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010494 ac_cv_c_ppdev="yes"
10495else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010496 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010497fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010498rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010499fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010501$as_echo "$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010502if test "$ac_cv_c_ppdev" = "yes"
10503then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010504
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010505$as_echo "#define HAVE_PPDEV 1" >>confdefs.h
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010506
10507fi
10508
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010509ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010510LIBS="$LIBS $LIBPTHREAD"
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010511for ac_func in \
Tijl Coosemansfc8172f2006-08-05 23:31:07 +020010512 pthread_attr_get_np \
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010513 pthread_getattr_np \
10514 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010515 pthread_get_stacksize_np
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010516do :
10517 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10518ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010519if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Alexandre Julliard821ab862003-11-12 22:44:56 +000010520 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010521#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010522_ACEOF
10523
10524fi
10525done
10526
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010527LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010528
Jacek Caban11ca05f2009-05-29 23:35:13 +020010529if test "$ac_cv_header_zlib_h" = "yes"
10530then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010532$as_echo_n "checking for inflate in -lz... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010533if ${ac_cv_lib_z_inflate+:} false; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010534 $as_echo_n "(cached) " >&6
10535else
10536 ac_check_lib_save_LIBS=$LIBS
10537LIBS="-lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010539/* end confdefs.h. */
10540
10541/* Override any GCC internal prototype to avoid an error.
10542 Use char because int might match the return type of a GCC
10543 builtin and then its argument prototype would still apply. */
10544#ifdef __cplusplus
10545extern "C"
10546#endif
10547char inflate ();
10548int
10549main ()
10550{
10551return inflate ();
10552 ;
10553 return 0;
10554}
10555_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010556if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010557 ac_cv_lib_z_inflate=yes
10558else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010559 ac_cv_lib_z_inflate=no
Jacek Caban11ca05f2009-05-29 23:35:13 +020010560fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010561rm -f core conftest.err conftest.$ac_objext \
10562 conftest$ac_exeext conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010563LIBS=$ac_check_lib_save_LIBS
10564fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010566$as_echo "$ac_cv_lib_z_inflate" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010567if test "x$ac_cv_lib_z_inflate" = xyes; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010568
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010569$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
Jacek Caban11ca05f2009-05-29 23:35:13 +020010570
10571 ZLIB="-lz"
10572
10573fi
10574
10575fi
Alexandre Julliardba6a41a2011-02-18 13:07:27 +010010576if test "x$ZLIB" = "x"; then :
10577 case "x$with_zlib" in
10578 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10579 xno) ;;
10580 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010581This is an error since --with-zlib was requested." "$LINENO" 5 ;;
Alexandre Julliardba6a41a2011-02-18 13:07:27 +010010582esac
10583fi
Jacek Caban11ca05f2009-05-29 23:35:13 +020010584
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010585if test "x$enable_tools" != xno
10586then
10587 if test "$ac_cv_header_gettext_po_h" = "yes"
10588 then
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10590$as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010591if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010592 $as_echo_n "(cached) " >&6
10593else
10594 ac_check_lib_save_LIBS=$LIBS
10595LIBS="-lgettextpo $LIBS"
10596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597/* end confdefs.h. */
10598
10599/* Override any GCC internal prototype to avoid an error.
10600 Use char because int might match the return type of a GCC
10601 builtin and then its argument prototype would still apply. */
10602#ifdef __cplusplus
10603extern "C"
10604#endif
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010605char po_message_msgctxt ();
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010606int
10607main ()
10608{
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010609return po_message_msgctxt ();
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010610 ;
10611 return 0;
10612}
10613_ACEOF
10614if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010615 ac_cv_lib_gettextpo_po_message_msgctxt=yes
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010616else
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010617 ac_cv_lib_gettextpo_po_message_msgctxt=no
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010618fi
10619rm -f core conftest.err conftest.$ac_objext \
10620 conftest$ac_exeext conftest.$ac_ext
10621LIBS=$ac_check_lib_save_LIBS
10622fi
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10624$as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010625if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010626
10627$as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10628
10629 LIBGETTEXTPO="-lgettextpo"
10630
10631fi
10632
10633 fi
10634 if test "x$LIBGETTEXTPO" = "x"; then :
10635 case "x$with_gettextpo" in
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010636 x) as_fn_append wine_warnings "|GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported." ;;
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010637 xno) ;;
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010638 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010639This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010640esac
10641fi
10642fi
10643
Francois Gouget3fe5d802009-01-14 14:16:06 +010010644if test "x$with_esd" != xno
10645then
10646 save_CFLAGS="$CFLAGS"
10647 # Extract the first word of "esd-config", so it can be a program name with args.
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010648set dummy esd-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010650$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010651if ${ac_cv_path_ESDCONFIG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010652 $as_echo_n "(cached) " >&6
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010653else
10654 case $ESDCONFIG in
10655 [\\/]* | ?:[\\/]*)
10656 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10657 ;;
10658 *)
10659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10660for as_dir in $PATH
10661do
10662 IFS=$as_save_IFS
10663 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010664 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010666 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010668 break 2
10669 fi
10670done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010671 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010672IFS=$as_save_IFS
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010673
Francois Gouget3fe5d802009-01-14 14:16:06 +010010674 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010675 ;;
10676esac
10677fi
10678ESDCONFIG=$ac_cv_path_ESDCONFIG
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010679if test -n "$ESDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010681$as_echo "$ESDCONFIG" >&6; }
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010682else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010684$as_echo "no" >&6; }
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010685fi
10686
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010687
Francois Gouget3fe5d802009-01-14 14:16:06 +010010688 if test "x$ESDCONFIG" != "xno"
10689 then
10690 ac_esd_incl=""
10691 for i in `$ESDCONFIG --cflags`
10692 do
10693 case "$i" in
10694 -I*) ac_esd_incl="$ac_esd_incl $i";;
10695 esac
10696 done
10697 ac_esd_libs=`$ESDCONFIG --libs`
10698 CFLAGS="$CFLAGS $ac_esd_incl"
10699 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010700 ac_esd_libs=${ac_esd_libs:-"-lesd"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010701 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010702if test "x$ac_cv_header_esd_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010704$as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010705if ${ac_cv_lib_esd_esd_open_sound+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010706 $as_echo_n "(cached) " >&6
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010707else
10708 ac_check_lib_save_LIBS=$LIBS
Francois Gougete9b1a402008-07-21 23:41:21 +020010709LIBS="-lesd $ac_esd_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010710cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010711/* end confdefs.h. */
10712
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010713/* Override any GCC internal prototype to avoid an error.
10714 Use char because int might match the return type of a GCC
10715 builtin and then its argument prototype would still apply. */
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010716#ifdef __cplusplus
10717extern "C"
10718#endif
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010719char esd_open_sound ();
10720int
10721main ()
10722{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010723return esd_open_sound ();
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010724 ;
10725 return 0;
10726}
10727_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010728if ac_fn_c_try_link "$LINENO"; then :
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010729 ac_cv_lib_esd_esd_open_sound=yes
10730else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010731 ac_cv_lib_esd_esd_open_sound=no
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010732fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010733rm -f core conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010735LIBS=$ac_check_lib_save_LIBS
10736fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010738$as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010739if test "x$ac_cv_lib_esd_esd_open_sound" = xyes; then :
Francois Gougete9b1a402008-07-21 23:41:21 +020010740 ESDINCL="$ac_esd_incl"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010741
Francois Gouget3fe5d802009-01-14 14:16:06 +010010742 ESDLIBS="$ac_esd_libs"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010743
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010744fi
10745
Francois Gouget3fe5d802009-01-14 14:16:06 +010010746fi
10747
10748
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010749 CFLAGS="$save_CFLAGS"
10750fi
10751
Aric Stewart2914d652010-10-20 13:55:16 -050010752if test "x$with_gstreamer" != "xno"
10753then
10754 ac_save_CPPFLAGS="$CPPFLAGS"
10755 if test "$PKG_CONFIG" != "false"; then
10756 ac_gst_incl=""
10757 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10758 do
10759 case "$i" in
10760 -I*) ac_gst_incl="$ac_gst_incl $i";;
10761 esac
10762 done
10763 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10764 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
Andrew Nguyende417972010-10-29 00:26:04 -050010765 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010766if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
Andrew Nguyende417972010-10-29 00:26:04 -050010767 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010768if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
Andrew Nguyende417972010-10-29 00:26:04 -050010769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10770$as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010771if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
Andrew Nguyende417972010-10-29 00:26:04 -050010772 $as_echo_n "(cached) " >&6
10773else
10774 ac_check_lib_save_LIBS=$LIBS
10775LIBS="-lgstreamer-0.10 $LIBS"
10776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10777/* end confdefs.h. */
10778
10779/* Override any GCC internal prototype to avoid an error.
10780 Use char because int might match the return type of a GCC
10781 builtin and then its argument prototype would still apply. */
10782#ifdef __cplusplus
10783extern "C"
10784#endif
10785char gst_pad_get_caps_reffed ();
10786int
10787main ()
10788{
10789return gst_pad_get_caps_reffed ();
10790 ;
10791 return 0;
10792}
10793_ACEOF
10794if ac_fn_c_try_link "$LINENO"; then :
10795 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10796else
10797 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10798fi
10799rm -f core conftest.err conftest.$ac_objext \
10800 conftest$ac_exeext conftest.$ac_ext
10801LIBS=$ac_check_lib_save_LIBS
10802fi
10803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10804$as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010805if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10807$as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010808if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010809 $as_echo_n "(cached) " >&6
10810else
10811 ac_check_lib_save_LIBS=$LIBS
10812LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10813cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814/* end confdefs.h. */
10815
10816/* Override any GCC internal prototype to avoid an error.
10817 Use char because int might match the return type of a GCC
10818 builtin and then its argument prototype would still apply. */
10819#ifdef __cplusplus
10820extern "C"
10821#endif
10822char gst_app_buffer_new ();
10823int
10824main ()
10825{
10826return gst_app_buffer_new ();
10827 ;
10828 return 0;
10829}
10830_ACEOF
10831if ac_fn_c_try_link "$LINENO"; then :
10832 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10833else
10834 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10835fi
10836rm -f core conftest.err conftest.$ac_objext \
10837 conftest$ac_exeext conftest.$ac_ext
10838LIBS=$ac_check_lib_save_LIBS
10839fi
10840{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10841$as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010842if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010843 GSTREAMER_LIBS="$ac_gst_libs"
10844
Andrew Nguyende417972010-10-29 00:26:04 -050010845 GSTREAMER_INCL="$ac_gst_incl"
Aric Stewart2914d652010-10-20 13:55:16 -050010846
10847fi
10848
10849fi
10850
Andrew Nguyende417972010-10-29 00:26:04 -050010851fi
10852
10853
10854fi
10855
Aric Stewart2914d652010-10-20 13:55:16 -050010856
10857 fi
10858 CPPFLAGS="$ac_save_CPPFLAGS"
10859fi
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +010010860if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" != xyes -a "x$ac_cv_header_QuickTime_ImageCompression_h" != xyes; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010861 case "x$with_gstreamer" in
Detlef Riekenberg654bb4a2010-12-12 22:48:56 +010010862 x) as_fn_append wine_notices "|gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled" ;;
Aric Stewart2914d652010-10-20 13:55:16 -050010863 xno) ;;
Detlef Riekenberg654bb4a2010-12-12 22:48:56 +010010864 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
Alexandre Julliard9797da42011-04-27 17:37:43 +020010865This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
Aric Stewart2914d652010-10-20 13:55:16 -050010866esac
10867fi
10868test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10869
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010870ALSALIBS=""
10871
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010872if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010873then
Austin Englishaeb78cb2011-01-12 01:43:46 -080010874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10875$as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010876if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010877 $as_echo_n "(cached) " >&6
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010878else
10879 ac_check_lib_save_LIBS=$LIBS
10880LIBS="-lasound $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010882/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010883
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010884/* Override any GCC internal prototype to avoid an error.
10885 Use char because int might match the return type of a GCC
10886 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010887#ifdef __cplusplus
10888extern "C"
10889#endif
Austin Englishaeb78cb2011-01-12 01:43:46 -080010890char snd_pcm_hw_params_get_access_mask ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010891int
10892main ()
10893{
Austin Englishaeb78cb2011-01-12 01:43:46 -080010894return snd_pcm_hw_params_get_access_mask ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010895 ;
10896 return 0;
10897}
10898_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010899if ac_fn_c_try_link "$LINENO"; then :
Austin Englishaeb78cb2011-01-12 01:43:46 -080010900 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010901else
Austin Englishaeb78cb2011-01-12 01:43:46 -080010902 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010903fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010904rm -f core conftest.err conftest.$ac_objext \
10905 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010906LIBS=$ac_check_lib_save_LIBS
10907fi
Austin Englishaeb78cb2011-01-12 01:43:46 -080010908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10909$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010910if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Vincent Béron151015f2005-01-10 13:26:33 +000010912/* end confdefs.h. */
10913#ifdef HAVE_ALSA_ASOUNDLIB_H
10914#include <alsa/asoundlib.h>
10915#elif defined(HAVE_SYS_ASOUNDLIB_H)
10916#include <sys/asoundlib.h>
10917#endif
10918int
10919main ()
10920{
Austin Englishaeb78cb2011-01-12 01:43:46 -080010921int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)
Vincent Béron151015f2005-01-10 13:26:33 +000010922 ;
10923 return 0;
10924}
10925_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010926if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard255cc212011-03-28 22:07:26 +020010927 ALSALIBS="-lasound"
Vincent Béron151015f2005-01-10 13:26:33 +000010928fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010930fi
10931
10932fi
10933
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010934if test "x$with_oss" != xno
Andrew Eikumbe332322011-04-27 09:12:36 -050010935then
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010936 ac_save_CPPFLAGS="$CPPFLAGS"
10937 if test -f /etc/oss.conf
10938 then
10939 . /etc/oss.conf
10940 fi
10941 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10942 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10943 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10944if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10945 ac_fn_c_check_member "$LINENO" "oss_sysinfo" "numaudioengines" "ac_cv_member_oss_sysinfo_numaudioengines" "#include <sys/soundcard.h>
Andrew Eikumbe332322011-04-27 09:12:36 -050010946"
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010947if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
Andrew Eikumbe332322011-04-27 09:12:36 -050010948
10949cat >>confdefs.h <<_ACEOF
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010950#define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
Andrew Eikumbe332322011-04-27 09:12:36 -050010951_ACEOF
10952
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010953OSS4INCL="$ac_oss_incl"
Andrew Eikumbe332322011-04-27 09:12:36 -050010954
10955fi
10956
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010957fi
10958
10959
10960 CPPFLAGS="$ac_save_CPPFLAGS"
10961 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
Andrew Eikumbe332322011-04-27 09:12:36 -050010962 then
10963 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10964 fi
10965fi
10966
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010967
Alexandre Julliard73482142005-08-03 19:21:04 +000010968if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10969then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010971$as_echo_n "checking for -lcapi20... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010972if ${ac_cv_lib_soname_capi20+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010973 $as_echo_n "(cached) " >&6
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010974else
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010975 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010976LIBS="-lcapi20 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010978/* end confdefs.h. */
10979
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010980/* Override any GCC internal prototype to avoid an error.
10981 Use char because int might match the return type of a GCC
10982 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010983#ifdef __cplusplus
10984extern "C"
10985#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010986char capi20_register ();
10987int
10988main ()
10989{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010990return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010991 ;
10992 return 0;
10993}
10994_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010995if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010996 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010997 dll) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest.exe | grep "capi20" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010998 dylib) ac_cv_lib_soname_capi20=`otool -L conftest$ac_exeext | grep "libcapi20\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcapi20\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
10999 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11000 esac
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011001fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011002rm -f core conftest.err conftest.$ac_objext \
11003 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020011004 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011005fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011006if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011008$as_echo "not found" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011009
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020011010else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011012$as_echo "$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020011013
11014cat >>confdefs.h <<_ACEOF
11015#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011016_ACEOF
11017
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020011018
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011019fi
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011020fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011021if test "x$ac_cv_lib_soname_capi20" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011022 case "x$with_capi" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011023 x) as_fn_append wine_notices "|libcapi20 ${notice_platform}development files not found, ISDN won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011024 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011025 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011026This is an error since --with-capi was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011027esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020011028fi
11029
Francois Gouget289ea332008-07-24 16:09:07 +020011030CUPSINCL=""
11031
11032if test "x$with_cups" != "xno"
Alexandre Julliard702d3552007-07-02 17:30:44 +020011033then
Francois Gouget289ea332008-07-24 16:09:07 +020011034 ac_save_CPPFLAGS="$CPPFLAGS"
11035 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
Alexandre Julliarda991a562008-07-28 12:04:46 +020011036 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
Francois Gouget289ea332008-07-24 16:09:07 +020011037 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011038 for ac_header in cups/cups.h
11039do :
11040 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020011041if test "x$ac_cv_header_cups_cups_h" = xyes; then :
Francois Gouget289ea332008-07-24 16:09:07 +020011042 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011043#define HAVE_CUPS_CUPS_H 1
Francois Gouget289ea332008-07-24 16:09:07 +020011044_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011046$as_echo_n "checking for -lcups... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011047if ${ac_cv_lib_soname_cups+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011048 $as_echo_n "(cached) " >&6
Alexandre Julliard702d3552007-07-02 17:30:44 +020011049else
11050 ac_check_soname_save_LIBS=$LIBS
Francois Gouget289ea332008-07-24 16:09:07 +020011051LIBS="-lcups $ac_cups_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020011053/* end confdefs.h. */
11054
11055/* Override any GCC internal prototype to avoid an error.
11056 Use char because int might match the return type of a GCC
11057 builtin and then its argument prototype would still apply. */
11058#ifdef __cplusplus
11059extern "C"
11060#endif
11061char cupsGetDefault ();
11062int
11063main ()
11064{
11065return cupsGetDefault ();
11066 ;
11067 return 0;
11068}
11069_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011070if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard702d3552007-07-02 17:30:44 +020011071 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011072 dll) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest.exe | grep "cups" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard702d3552007-07-02 17:30:44 +020011073 dylib) ac_cv_lib_soname_cups=`otool -L conftest$ac_exeext | grep "libcups\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcups\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11074 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11075 esac
Alexandre Julliard702d3552007-07-02 17:30:44 +020011076fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011077rm -f core conftest.err conftest.$ac_objext \
11078 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020011079 LIBS=$ac_check_soname_save_LIBS
11080fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011081if test "x$ac_cv_lib_soname_cups" = "x"; then :
11082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011083$as_echo "not found" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020011084
11085else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011087$as_echo "$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020011088
11089cat >>confdefs.h <<_ACEOF
11090#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11091_ACEOF
11092
Francois Gouget289ea332008-07-24 16:09:07 +020011093 CUPSINCL="$ac_cups_cflags"
11094fi
Alexandre Julliard702d3552007-07-02 17:30:44 +020011095fi
11096
Francois Gouget289ea332008-07-24 16:09:07 +020011097done
11098
11099 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliard702d3552007-07-02 17:30:44 +020011100fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011101if test "x$ac_cv_lib_soname_cups" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011102 case "x$with_cups" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011103 x) as_fn_append wine_notices "|libcups ${notice_platform}development files not found, CUPS won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011104 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011105 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011106This is an error since --with-cups was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011107esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020011108fi
11109
Alexandre Julliard34200c32007-07-02 17:31:19 +020011110if test "$ac_cv_header_jack_jack_h" = "yes"
11111then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011113$as_echo_n "checking for -ljack... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011114if ${ac_cv_lib_soname_jack+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011115 $as_echo_n "(cached) " >&6
Alexandre Julliard34200c32007-07-02 17:31:19 +020011116else
11117 ac_check_soname_save_LIBS=$LIBS
11118LIBS="-ljack $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard34200c32007-07-02 17:31:19 +020011120/* end confdefs.h. */
11121
11122/* Override any GCC internal prototype to avoid an error.
11123 Use char because int might match the return type of a GCC
11124 builtin and then its argument prototype would still apply. */
11125#ifdef __cplusplus
11126extern "C"
11127#endif
11128char jack_client_new ();
11129int
11130main ()
11131{
11132return jack_client_new ();
11133 ;
11134 return 0;
11135}
11136_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011137if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard34200c32007-07-02 17:31:19 +020011138 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011139 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Francois Gouget90a6fb02008-07-11 17:47:23 +020011140 dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11141 *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
Alexandre Julliard34200c32007-07-02 17:31:19 +020011142 esac
Alexandre Julliard34200c32007-07-02 17:31:19 +020011143fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011144rm -f core conftest.err conftest.$ac_objext \
11145 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard34200c32007-07-02 17:31:19 +020011146 LIBS=$ac_check_soname_save_LIBS
11147fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011148if test "x$ac_cv_lib_soname_jack" = "x"; then :
11149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011150$as_echo "not found" >&6; }
Alexandre Julliard34200c32007-07-02 17:31:19 +020011151
11152else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011154$as_echo "$ac_cv_lib_soname_jack" >&6; }
Alexandre Julliard34200c32007-07-02 17:31:19 +020011155
11156cat >>confdefs.h <<_ACEOF
11157#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11158_ACEOF
11159
11160
11161fi
Alexandre Julliard34200c32007-07-02 17:31:19 +020011162fi
11163
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011164if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11165then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011167$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011168if ${ac_cv_lib_soname_fontconfig+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011169 $as_echo_n "(cached) " >&6
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011170else
11171 ac_check_soname_save_LIBS=$LIBS
11172LIBS="-lfontconfig $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011174/* end confdefs.h. */
11175
11176/* Override any GCC internal prototype to avoid an error.
11177 Use char because int might match the return type of a GCC
11178 builtin and then its argument prototype would still apply. */
11179#ifdef __cplusplus
11180extern "C"
11181#endif
11182char FcInit ();
11183int
11184main ()
11185{
11186return FcInit ();
11187 ;
11188 return 0;
11189}
11190_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011191if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011192 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011193 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011194 dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep "libfontconfig\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11195 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11196 esac
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011197fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011198rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011200 LIBS=$ac_check_soname_save_LIBS
11201fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011202if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011204$as_echo "not found" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011205
11206else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011208$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011209
11210cat >>confdefs.h <<_ACEOF
11211#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11212_ACEOF
11213
11214
11215fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011216elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
Alexandre Julliard5c076732007-10-17 17:04:01 +020011217then
11218 ac_save_CPPFLAGS="$CPPFLAGS"
11219 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11220 $as_unset ac_cv_header_fontconfig_fontconfig_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011221 for ac_header in fontconfig/fontconfig.h
11222do :
11223 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020011224if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020011225 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011226#define HAVE_FONTCONFIG_FONTCONFIG_H 1
Alexandre Julliard5c076732007-10-17 17:04:01 +020011227_ACEOF
11228
11229fi
11230
11231done
11232
11233 CPPFLAGS="$ac_save_CPPFLAGS"
11234 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11235 then
11236 FONTCONFIGINCL="$X_CFLAGS"
11237
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011239$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011240if ${ac_cv_lib_soname_fontconfig+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011241 $as_echo_n "(cached) " >&6
Alexandre Julliard5c076732007-10-17 17:04:01 +020011242else
11243 ac_check_soname_save_LIBS=$LIBS
11244LIBS="-lfontconfig $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020011246/* end confdefs.h. */
11247
11248/* Override any GCC internal prototype to avoid an error.
11249 Use char because int might match the return type of a GCC
11250 builtin and then its argument prototype would still apply. */
11251#ifdef __cplusplus
11252extern "C"
11253#endif
11254char FcInit ();
11255int
11256main ()
11257{
11258return FcInit ();
11259 ;
11260 return 0;
11261}
11262_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011263if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020011264 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011265 dll) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest.exe | grep "fontconfig" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard5c076732007-10-17 17:04:01 +020011266 dylib) ac_cv_lib_soname_fontconfig=`otool -L conftest$ac_exeext | grep "libfontconfig\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libfontconfig\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11267 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11268 esac
Alexandre Julliard5c076732007-10-17 17:04:01 +020011269fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011270rm -f core conftest.err conftest.$ac_objext \
11271 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020011272 LIBS=$ac_check_soname_save_LIBS
11273fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011274if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011276$as_echo "not found" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020011277
11278else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011280$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020011281
11282cat >>confdefs.h <<_ACEOF
11283#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11284_ACEOF
11285
11286
11287fi
Alexandre Julliard5c076732007-10-17 17:04:01 +020011288 fi
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011289fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011290if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011291 case "x$with_fontconfig" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011292 x) as_fn_append wine_notices "|fontconfig ${notice_platform}development files not found, fontconfig won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011293 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011294 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011295This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011296esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011297fi
11298
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011299if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11300then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011302$as_echo_n "checking for -lssl... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011303if ${ac_cv_lib_soname_ssl+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011304 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011305else
11306 ac_check_soname_save_LIBS=$LIBS
11307LIBS="-lssl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011309/* end confdefs.h. */
11310
11311/* Override any GCC internal prototype to avoid an error.
11312 Use char because int might match the return type of a GCC
11313 builtin and then its argument prototype would still apply. */
11314#ifdef __cplusplus
11315extern "C"
11316#endif
11317char SSL_library_init ();
11318int
11319main ()
11320{
11321return SSL_library_init ();
11322 ;
11323 return 0;
11324}
11325_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011326if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011327 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011328 dll) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest.exe | grep "ssl" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011329 dylib) ac_cv_lib_soname_ssl=`otool -L conftest$ac_exeext | grep "libssl\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libssl\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11330 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11331 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011332fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011333rm -f core conftest.err conftest.$ac_objext \
11334 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011335 LIBS=$ac_check_soname_save_LIBS
11336fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011337if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011339$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011340
11341else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011343$as_echo "$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011344
11345cat >>confdefs.h <<_ACEOF
11346#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11347_ACEOF
11348
11349
11350fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011352$as_echo_n "checking for -lcrypto... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011353if ${ac_cv_lib_soname_crypto+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011354 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011355else
11356 ac_check_soname_save_LIBS=$LIBS
11357LIBS="-lcrypto $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011359/* end confdefs.h. */
11360
11361/* Override any GCC internal prototype to avoid an error.
11362 Use char because int might match the return type of a GCC
11363 builtin and then its argument prototype would still apply. */
11364#ifdef __cplusplus
11365extern "C"
11366#endif
11367char BIO_new_socket ();
11368int
11369main ()
11370{
11371return BIO_new_socket ();
11372 ;
11373 return 0;
11374}
11375_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011376if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011377 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011378 dll) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest.exe | grep "crypto" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011379 dylib) ac_cv_lib_soname_crypto=`otool -L conftest$ac_exeext | grep "libcrypto\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libcrypto\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11380 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11381 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011382fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011383rm -f core conftest.err conftest.$ac_objext \
11384 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011385 LIBS=$ac_check_soname_save_LIBS
11386fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011387if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011389$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011390
11391else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011393$as_echo "$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011394
11395cat >>confdefs.h <<_ACEOF
11396#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11397_ACEOF
11398
11399
11400fi
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011401fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011402if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011403 case "x$with_openssl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011404 x) as_fn_append wine_warnings "|OpenSSL ${notice_platform}development files not found, SSL won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011405 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011406 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011407This is an error since --with-openssl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011408esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011409fi
11410
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +020011411if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011412then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011414$as_echo_n "checking for -lgsm... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011415if ${ac_cv_lib_soname_gsm+:} false; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011416 $as_echo_n "(cached) " >&6
11417else
11418 ac_check_soname_save_LIBS=$LIBS
11419LIBS="-lgsm $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011421/* end confdefs.h. */
11422
11423/* Override any GCC internal prototype to avoid an error.
11424 Use char because int might match the return type of a GCC
11425 builtin and then its argument prototype would still apply. */
11426#ifdef __cplusplus
11427extern "C"
11428#endif
11429char gsm_create ();
11430int
11431main ()
11432{
11433return gsm_create ();
11434 ;
11435 return 0;
11436}
11437_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011438if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011439 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011440 dll) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest.exe | grep "gsm" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011441 dylib) ac_cv_lib_soname_gsm=`otool -L conftest$ac_exeext | grep "libgsm\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libgsm\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11442 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11443 esac
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011444fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011445rm -f core conftest.err conftest.$ac_objext \
11446 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011447 LIBS=$ac_check_soname_save_LIBS
11448fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011449if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011451$as_echo "not found" >&6; }
11452
11453else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011455$as_echo "$ac_cv_lib_soname_gsm" >&6; }
11456
11457cat >>confdefs.h <<_ACEOF
11458#define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11459_ACEOF
11460
11461
11462fi
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011463fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011464if test "x$ac_cv_lib_soname_gsm" = "x"; then :
Alexandre Julliard6ce32e02009-08-19 15:53:04 +020011465 case "x$with_gsm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011466 x) as_fn_append wine_notices "|libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported." ;;
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011467 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011468 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011469This is an error since --with-gsm was requested." "$LINENO" 5 ;;
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011470esac
11471fi
11472
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011473if test "$ac_cv_header_jpeglib_h" = "yes"
11474then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011476$as_echo_n "checking for -ljpeg... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011477if ${ac_cv_lib_soname_jpeg+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011478 $as_echo_n "(cached) " >&6
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011479else
11480 ac_check_soname_save_LIBS=$LIBS
11481LIBS="-ljpeg $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011483/* end confdefs.h. */
11484
11485/* Override any GCC internal prototype to avoid an error.
11486 Use char because int might match the return type of a GCC
11487 builtin and then its argument prototype would still apply. */
11488#ifdef __cplusplus
11489extern "C"
11490#endif
11491char jpeg_start_decompress ();
11492int
11493main ()
11494{
11495return jpeg_start_decompress ();
11496 ;
11497 return 0;
11498}
11499_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011500if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011501 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011502 dll) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest.exe | grep "jpeg" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011503 dylib) ac_cv_lib_soname_jpeg=`otool -L conftest$ac_exeext | grep "libjpeg\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjpeg\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11504 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11505 esac
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011506fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011507rm -f core conftest.err conftest.$ac_objext \
11508 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011509 LIBS=$ac_check_soname_save_LIBS
11510fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011511if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011513$as_echo "not found" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011514
11515else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011517$as_echo "$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011518
11519cat >>confdefs.h <<_ACEOF
11520#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11521_ACEOF
11522
11523
11524fi
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011525fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011526if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011527 case "x$with_jpeg" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011528 x) as_fn_append wine_warnings "|libjpeg ${notice_platform}development files not found, JPEG won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011529 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011530 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011531This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011532esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011533fi
11534
Alexandre Julliard00302152007-07-02 19:54:00 +020011535if test "$ac_cv_header_png_h" = "yes"
11536then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011538$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011539if ${ac_cv_lib_soname_png+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011540 $as_echo_n "(cached) " >&6
Alexandre Julliard00302152007-07-02 19:54:00 +020011541else
11542 ac_check_soname_save_LIBS=$LIBS
Austin Englishfe8879e2008-12-28 19:10:19 -060011543LIBS="-lpng -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011545/* end confdefs.h. */
11546
11547/* Override any GCC internal prototype to avoid an error.
11548 Use char because int might match the return type of a GCC
11549 builtin and then its argument prototype would still apply. */
11550#ifdef __cplusplus
11551extern "C"
11552#endif
11553char png_create_read_struct ();
11554int
11555main ()
11556{
11557return png_create_read_struct ();
11558 ;
11559 return 0;
11560}
11561_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011562if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard00302152007-07-02 19:54:00 +020011563 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011564 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard00302152007-07-02 19:54:00 +020011565 dylib) ac_cv_lib_soname_png=`otool -L conftest$ac_exeext | grep "libpng[0-9]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libpng[0-9]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11566 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11567 esac
Alexandre Julliard00302152007-07-02 19:54:00 +020011568fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011569rm -f core conftest.err conftest.$ac_objext \
11570 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011571 LIBS=$ac_check_soname_save_LIBS
11572fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011573if test "x$ac_cv_lib_soname_png" = "x"; then :
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011575$as_echo "not found" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011576
11577else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011579$as_echo "$ac_cv_lib_soname_png" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011580
11581cat >>confdefs.h <<_ACEOF
11582#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11583_ACEOF
11584
11585
11586fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11588$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011589if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011590 $as_echo_n "(cached) " >&6
11591else
11592 ac_check_lib_save_LIBS=$LIBS
11593LIBS="-lpng -lm -lz $LIBS"
11594cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11595/* end confdefs.h. */
11596
11597/* Override any GCC internal prototype to avoid an error.
11598 Use char because int might match the return type of a GCC
11599 builtin and then its argument prototype would still apply. */
11600#ifdef __cplusplus
11601extern "C"
11602#endif
11603char png_set_expand_gray_1_2_4_to_8 ();
11604int
11605main ()
11606{
11607return png_set_expand_gray_1_2_4_to_8 ();
11608 ;
11609 return 0;
11610}
11611_ACEOF
11612if ac_fn_c_try_link "$LINENO"; then :
11613 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11614else
11615 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11616fi
11617rm -f core conftest.err conftest.$ac_objext \
11618 conftest$ac_exeext conftest.$ac_ext
11619LIBS=$ac_check_lib_save_LIBS
11620fi
11621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11622$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011623if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011624
11625$as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11626
11627
11628fi
11629
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011630elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11631then
11632 ac_save_CPPFLAGS="$CPPFLAGS"
11633 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11634 $as_unset ac_cv_header_png_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011635 for ac_header in png.h
11636do :
11637 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020011638if test "x$ac_cv_header_png_h" = xyes; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011639 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011640#define HAVE_PNG_H 1
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011641_ACEOF
11642
11643fi
11644
11645done
11646
11647 CPPFLAGS="$ac_save_CPPFLAGS"
11648 if test "$ac_cv_header_png_h" = "yes"
11649 then
11650 PNGINCL="$X_CFLAGS"
11651
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011653$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011654if ${ac_cv_lib_soname_png+:} false; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011655 $as_echo_n "(cached) " >&6
11656else
11657 ac_check_soname_save_LIBS=$LIBS
11658LIBS="-lpng $X_LIBS -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011660/* end confdefs.h. */
11661
11662/* Override any GCC internal prototype to avoid an error.
11663 Use char because int might match the return type of a GCC
11664 builtin and then its argument prototype would still apply. */
11665#ifdef __cplusplus
11666extern "C"
11667#endif
11668char png_create_read_struct ();
11669int
11670main ()
11671{
11672return png_create_read_struct ();
11673 ;
11674 return 0;
11675}
11676_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011677if ac_fn_c_try_link "$LINENO"; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011678 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011679 dll) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest.exe | grep "png" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011680 dylib) ac_cv_lib_soname_png=`otool -L conftest$ac_exeext | grep "libpng[0-9]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libpng[0-9]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11681 *) ac_cv_lib_soname_png=`$ac_cv_path_LDD conftest$ac_exeext | grep "libpng[0-9]*\\.$LIBEXT" | sed -e "s/^.*\(libpng[0-9]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11682 esac
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011683fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011684rm -f core conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011686 LIBS=$ac_check_soname_save_LIBS
11687fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011688if test "x$ac_cv_lib_soname_png" = "x"; then :
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011690$as_echo "not found" >&6; }
11691
11692else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011694$as_echo "$ac_cv_lib_soname_png" >&6; }
11695
11696cat >>confdefs.h <<_ACEOF
11697#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11698_ACEOF
11699
11700
11701fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11703$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011704if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011705 $as_echo_n "(cached) " >&6
11706else
11707 ac_check_lib_save_LIBS=$LIBS
11708LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11710/* end confdefs.h. */
11711
11712/* Override any GCC internal prototype to avoid an error.
11713 Use char because int might match the return type of a GCC
11714 builtin and then its argument prototype would still apply. */
11715#ifdef __cplusplus
11716extern "C"
11717#endif
11718char png_set_expand_gray_1_2_4_to_8 ();
11719int
11720main ()
11721{
11722return png_set_expand_gray_1_2_4_to_8 ();
11723 ;
11724 return 0;
11725}
11726_ACEOF
11727if ac_fn_c_try_link "$LINENO"; then :
11728 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11729else
11730 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11731fi
11732rm -f core conftest.err conftest.$ac_objext \
11733 conftest$ac_exeext conftest.$ac_ext
11734LIBS=$ac_check_lib_save_LIBS
11735fi
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11737$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011738if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011739 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11740
11741fi
11742
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011743 fi
Alexandre Julliard00302152007-07-02 19:54:00 +020011744fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011745if test "x$ac_cv_lib_soname_png" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011746 case "x$with_png" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011747 x) as_fn_append wine_warnings "|libpng ${notice_platform}development files not found, PNG won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011748 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011749 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011750This is an error since --with-png was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011751esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011752fi
11753
Vincent Povirk73cd5692010-03-08 17:07:29 -060011754if test "$ac_cv_header_tiffio_h" = "yes"
11755then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11757$as_echo_n "checking for -ltiff... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011758if ${ac_cv_lib_soname_tiff+:} false; then :
Vincent Povirk73cd5692010-03-08 17:07:29 -060011759 $as_echo_n "(cached) " >&6
11760else
11761 ac_check_soname_save_LIBS=$LIBS
11762LIBS="-ltiff $LIBS"
11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764/* end confdefs.h. */
11765
11766/* Override any GCC internal prototype to avoid an error.
11767 Use char because int might match the return type of a GCC
11768 builtin and then its argument prototype would still apply. */
11769#ifdef __cplusplus
11770extern "C"
11771#endif
11772char TIFFClientOpen ();
11773int
11774main ()
11775{
11776return TIFFClientOpen ();
11777 ;
11778 return 0;
11779}
11780_ACEOF
11781if ac_fn_c_try_link "$LINENO"; then :
11782 case "$LIBEXT" in
11783 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11784 dylib) ac_cv_lib_soname_tiff=`otool -L conftest$ac_exeext | grep "libtiff\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libtiff\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11785 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11786 esac
11787fi
11788rm -f core conftest.err conftest.$ac_objext \
11789 conftest$ac_exeext conftest.$ac_ext
11790 LIBS=$ac_check_soname_save_LIBS
11791fi
11792if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11794$as_echo "not found" >&6; }
11795
11796else
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11798$as_echo "$ac_cv_lib_soname_tiff" >&6; }
11799
11800cat >>confdefs.h <<_ACEOF
11801#define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11802_ACEOF
11803
11804
11805fi
11806fi
11807if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11808 case "x$with_tiff" in
11809 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11810 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011811 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011812This is an error since --with-tiff was requested." "$LINENO" 5 ;;
Vincent Povirk73cd5692010-03-08 17:07:29 -060011813esac
11814fi
11815
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011816if test "$ac_cv_header_mpg123_h" = "yes"
11817then
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11819$as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011820if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011821 $as_echo_n "(cached) " >&6
11822else
11823 ac_check_lib_save_LIBS=$LIBS
11824LIBS="-lmpg123 $LIBS"
11825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826/* end confdefs.h. */
11827
11828/* Override any GCC internal prototype to avoid an error.
11829 Use char because int might match the return type of a GCC
11830 builtin and then its argument prototype would still apply. */
11831#ifdef __cplusplus
11832extern "C"
11833#endif
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011834char mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011835int
11836main ()
11837{
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011838return mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011839 ;
11840 return 0;
11841}
11842_ACEOF
11843if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011844 ac_cv_lib_mpg123_mpg123_feed=yes
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011845else
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011846 ac_cv_lib_mpg123_mpg123_feed=no
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011847fi
11848rm -f core conftest.err conftest.$ac_objext \
11849 conftest$ac_exeext conftest.$ac_ext
11850LIBS=$ac_check_lib_save_LIBS
11851fi
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11853$as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011854if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011855 LIBMPG123="-lmpg123"
11856
11857fi
11858
11859fi
Aric Stewart4430ab42010-03-17 10:58:32 -050011860if test "x$ac_cv_lib_mpg123_mpg123_feed" != xyes -a x"$ac_cv_header_CoreAudio_CoreAudio_h" != xyes; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011861 case "x$with_mpg123" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011862 x) as_fn_append wine_notices "|libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported." ;;
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011863 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011864 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011865This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011866esac
11867fi
Kristofer Henrikssonc58eff62010-05-24 15:04:42 -040011868test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_header_AudioToolbox_AudioConverter_h" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011869
Chris Robinson862965f2009-08-25 03:26:35 -070011870if test "$ac_cv_header_AL_al_h" = "yes"
11871then
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11873$as_echo_n "checking for -lopenal... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011874if ${ac_cv_lib_soname_openal+:} false; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011875 $as_echo_n "(cached) " >&6
11876else
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011877 ac_check_soname_save_LIBS=$LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011878LIBS="-lopenal $LIBS"
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson862965f2009-08-25 03:26:35 -070011880/* end confdefs.h. */
11881
11882/* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11885#ifdef __cplusplus
11886extern "C"
11887#endif
11888char alGetSource3i ();
11889int
11890main ()
11891{
11892return alGetSource3i ();
11893 ;
11894 return 0;
11895}
11896_ACEOF
11897if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011898 case "$LIBEXT" in
11899 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11900 dylib) ac_cv_lib_soname_openal=`otool -L conftest$ac_exeext | grep "libopenal\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libopenal\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11901 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11902 esac
Chris Robinson862965f2009-08-25 03:26:35 -070011903fi
11904rm -f core conftest.err conftest.$ac_objext \
11905 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011906 LIBS=$ac_check_soname_save_LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011907fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011908if test "x$ac_cv_lib_soname_openal" = "x"; then :
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11910$as_echo "not found" >&6; }
11911
11912else
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11914$as_echo "$ac_cv_lib_soname_openal" >&6; }
11915
11916cat >>confdefs.h <<_ACEOF
11917#define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11918_ACEOF
11919
11920 LIBOPENAL="-lopenal"
11921
11922 ac_cv_lib_openal=yes
11923
11924cat >>confdefs.h <<_ACEOF
11925#define HAVE_OPENAL 1
11926_ACEOF
Chris Robinson862965f2009-08-25 03:26:35 -070011927
11928fi
Chris Robinson862965f2009-08-25 03:26:35 -070011929fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011930if test "x$ac_cv_lib_openal" != xyes; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011931 case "x$with_openal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011932 x) as_fn_append wine_notices "|libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported." ;;
Chris Robinson862965f2009-08-25 03:26:35 -070011933 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011934 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011935This is an error since --with-openal was requested." "$LINENO" 5 ;;
Chris Robinson862965f2009-08-25 03:26:35 -070011936esac
11937fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011938test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
Chris Robinson862965f2009-08-25 03:26:35 -070011939
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011940if test "$ac_cv_header_kstat_h" = "yes"
11941then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011943$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011944if ${ac_cv_lib_kstat_kstat_open+:} false; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011945 $as_echo_n "(cached) " >&6
11946else
11947 ac_check_lib_save_LIBS=$LIBS
11948LIBS="-lkstat $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011950/* end confdefs.h. */
11951
11952/* Override any GCC internal prototype to avoid an error.
11953 Use char because int might match the return type of a GCC
11954 builtin and then its argument prototype would still apply. */
11955#ifdef __cplusplus
11956extern "C"
11957#endif
11958char kstat_open ();
11959int
11960main ()
11961{
11962return kstat_open ();
11963 ;
11964 return 0;
11965}
11966_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011967if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011968 ac_cv_lib_kstat_kstat_open=yes
11969else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011970 ac_cv_lib_kstat_kstat_open=no
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011971fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011972rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011974LIBS=$ac_check_lib_save_LIBS
11975fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011977$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011978if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011979
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011980$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011981
11982 LIBKSTAT="-lkstat"
11983
11984fi
11985
11986fi
11987
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011989$as_echo_n "checking for -lodbc... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011990if ${ac_cv_lib_soname_odbc+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011991 $as_echo_n "(cached) " >&6
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011992else
11993 ac_check_soname_save_LIBS=$LIBS
11994LIBS="-lodbc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011996/* end confdefs.h. */
11997
11998/* Override any GCC internal prototype to avoid an error.
11999 Use char because int might match the return type of a GCC
12000 builtin and then its argument prototype would still apply. */
12001#ifdef __cplusplus
12002extern "C"
12003#endif
12004char SQLConnect ();
12005int
12006main ()
12007{
12008return SQLConnect ();
12009 ;
12010 return 0;
12011}
12012_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012013if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012014 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010012015 dll) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest.exe | grep "odbc" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012016 dylib) ac_cv_lib_soname_odbc=`otool -L conftest$ac_exeext | grep "libodbc\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libodbc\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
12017 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
12018 esac
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012019fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012020rm -f core conftest.err conftest.$ac_objext \
12021 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012022 LIBS=$ac_check_soname_save_LIBS
12023fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012024if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012026$as_echo "not found" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012027 cat >>confdefs.h <<_ACEOF
12028#define SONAME_LIBODBC "libodbc.$LIBEXT"
12029_ACEOF
12030
12031else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012033$as_echo "$ac_cv_lib_soname_odbc" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012034
12035cat >>confdefs.h <<_ACEOF
12036#define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12037_ACEOF
12038
12039
12040fi
12041
Alexandre Julliard98cb21f2011-03-17 11:42:17 +010012042test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
12043test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
12044test -n "$NASLIBS" || enable_winenas_drv=${enable_winenas_drv:-no}
12045test -n "$ESDLIBS" || enable_wineesd_drv=${enable_wineesd_drv:-no}
12046test -n "$ac_cv_lib_soname_jack" || enable_winejack_drv=${enable_winejack_drv:-no}
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020012047test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
Alexandre Julliard98cb21f2011-03-17 11:42:17 +010012048test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
12049
Michael Stefaniuca2f07502010-12-17 11:11:42 +010012050if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020012051 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
Michael Stefaniuca2f07502010-12-17 11:11:42 +010012052 "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010012053then
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010012054 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
Alexandre Julliardf9dec942007-07-10 15:14:15 +020012055fi
12056
12057
Alexandre Julliardfc094232003-04-14 21:46:41 +000012058EXTRACFLAGS=""
12059
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012060if test "x${GCC}" = "xyes"
12061then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000012062 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000012063
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012065$as_echo_n "checking for gcc strength-reduce bug... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012066if ${ac_cv_c_gcc_strength_bug+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012067 $as_echo_n "(cached) " >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012068else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012069 if test "$cross_compiling" = yes; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012070 ac_cv_c_gcc_strength_bug="yes"
12071else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012073/* end confdefs.h. */
Alexandre Julliardad356de2007-06-08 20:23:16 +020012074int L[4] = {0,1,2,3};
12075int
12076main ()
12077{
12078static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012079 unsigned int B = 3;
12080 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000012081 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000012082 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12083 L[i] = 4;
Alexandre Julliard95251a72009-02-16 12:46:58 +010012084 return (Array[1] != -2 || L[2] != 3)
Alexandre Julliardad356de2007-06-08 20:23:16 +020012085 ;
12086 return 0;
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012087}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012088_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012089if ac_fn_c_try_run "$LINENO"; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012090 ac_cv_c_gcc_strength_bug="no"
12091else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012092 ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012093fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12095 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012096fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012097
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012098fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012100$as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012101 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12102 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012103 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012104 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012105
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012107$as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012108if ${ac_cv_cflags__fno_builtin+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012109 $as_echo_n "(cached) " >&6
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012110else
12111 ac_wine_try_cflags_saved=$CFLAGS
12112CFLAGS="$CFLAGS -fno-builtin"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012114/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012115int main(int argc, char **argv) { return 0; }
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012116_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012117if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012118 ac_cv_cflags__fno_builtin=yes
12119else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012120 ac_cv_cflags__fno_builtin=no
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012121fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012122rm -f core conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012124CFLAGS=$ac_wine_try_cflags_saved
12125fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012127$as_echo "$ac_cv_cflags__fno_builtin" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012128if test $ac_cv_cflags__fno_builtin = yes; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012129 BUILTINFLAG="-fno-builtin"
12130
12131fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012133$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012134if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012135 $as_echo_n "(cached) " >&6
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012136else
12137 ac_wine_try_cflags_saved=$CFLAGS
12138CFLAGS="$CFLAGS -fno-strict-aliasing"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012140/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012141int main(int argc, char **argv) { return 0; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012142_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012143if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012144 ac_cv_cflags__fno_strict_aliasing=yes
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012145else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012146 ac_cv_cflags__fno_strict_aliasing=no
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012147fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012148rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012150CFLAGS=$ac_wine_try_cflags_saved
12151fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012153$as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012154if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012155 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12156fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012158$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012159if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012160 $as_echo_n "(cached) " >&6
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012161else
12162 ac_wine_try_cflags_saved=$CFLAGS
12163CFLAGS="$CFLAGS -Wdeclaration-after-statement"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012165/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012166int main(int argc, char **argv) { return 0; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012167_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012168if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012169 ac_cv_cflags__Wdeclaration_after_statement=yes
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012170else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012171 ac_cv_cflags__Wdeclaration_after_statement=no
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012172fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012173rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012175CFLAGS=$ac_wine_try_cflags_saved
12176fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012178$as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012179if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012180 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12181fi
Gerald Pfeifer8213f542011-05-08 02:53:23 +020012182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
12183$as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
12184if ${ac_cv_cflags__Wempty_body+:} false; then :
12185 $as_echo_n "(cached) " >&6
12186else
12187 ac_wine_try_cflags_saved=$CFLAGS
12188CFLAGS="$CFLAGS -Wempty-body"
12189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190/* end confdefs.h. */
12191int main(int argc, char **argv) { return 0; }
12192_ACEOF
12193if ac_fn_c_try_link "$LINENO"; then :
12194 ac_cv_cflags__Wempty_body=yes
12195else
12196 ac_cv_cflags__Wempty_body=no
12197fi
12198rm -f core conftest.err conftest.$ac_objext \
12199 conftest$ac_exeext conftest.$ac_ext
12200CFLAGS=$ac_wine_try_cflags_saved
12201fi
12202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
12203$as_echo "$ac_cv_cflags__Wempty_body" >&6; }
12204if test $ac_cv_cflags__Wempty_body = yes; then :
12205 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
12206fi
Alexandre Julliard295806f2009-10-07 13:46:06 +020012207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12208$as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012209if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
Alexandre Julliard295806f2009-10-07 13:46:06 +020012210 $as_echo_n "(cached) " >&6
12211else
12212 ac_wine_try_cflags_saved=$CFLAGS
12213CFLAGS="$CFLAGS -Wstrict-prototypes"
12214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012216int main(int argc, char **argv) { return 0; }
Alexandre Julliard295806f2009-10-07 13:46:06 +020012217_ACEOF
12218if ac_fn_c_try_link "$LINENO"; then :
12219 ac_cv_cflags__Wstrict_prototypes=yes
12220else
12221 ac_cv_cflags__Wstrict_prototypes=no
12222fi
12223rm -f core conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
12225CFLAGS=$ac_wine_try_cflags_saved
12226fi
12227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12228$as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12229if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12230 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12231fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012233$as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012234if ${ac_cv_cflags__Wtype_limits+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012235 $as_echo_n "(cached) " >&6
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012236else
12237 ac_wine_try_cflags_saved=$CFLAGS
12238CFLAGS="$CFLAGS -Wtype-limits"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012240/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012241int main(int argc, char **argv) { return 0; }
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012242_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012243if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012244 ac_cv_cflags__Wtype_limits=yes
12245else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012246 ac_cv_cflags__Wtype_limits=no
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012247fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012248rm -f core conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012250CFLAGS=$ac_wine_try_cflags_saved
12251fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012253$as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012254if test $ac_cv_cflags__Wtype_limits = yes; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012255 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12256fi
Gerald Pfeifer3ec82c52011-04-10 20:38:52 +020012257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
12258$as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012259if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
Gerald Pfeifer3ec82c52011-04-10 20:38:52 +020012260 $as_echo_n "(cached) " >&6
12261else
12262 ac_wine_try_cflags_saved=$CFLAGS
12263CFLAGS="$CFLAGS -Wunused-but-set-parameter"
12264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265/* end confdefs.h. */
12266int main(int argc, char **argv) { return 0; }
12267_ACEOF
12268if ac_fn_c_try_link "$LINENO"; then :
12269 ac_cv_cflags__Wunused_but_set_parameter=yes
12270else
12271 ac_cv_cflags__Wunused_but_set_parameter=no
12272fi
12273rm -f core conftest.err conftest.$ac_objext \
12274 conftest$ac_exeext conftest.$ac_ext
12275CFLAGS=$ac_wine_try_cflags_saved
12276fi
12277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12278$as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12279if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12280 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12281fi
Gerald Pfeifereae58292010-01-02 15:13:43 +010012282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12283$as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012284if ${ac_cv_cflags__Wwrite_strings+:} false; then :
Gerald Pfeifereae58292010-01-02 15:13:43 +010012285 $as_echo_n "(cached) " >&6
12286else
12287 ac_wine_try_cflags_saved=$CFLAGS
12288CFLAGS="$CFLAGS -Wwrite-strings"
12289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12290/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012291int main(int argc, char **argv) { return 0; }
Gerald Pfeifereae58292010-01-02 15:13:43 +010012292_ACEOF
12293if ac_fn_c_try_link "$LINENO"; then :
12294 ac_cv_cflags__Wwrite_strings=yes
12295else
12296 ac_cv_cflags__Wwrite_strings=no
12297fi
12298rm -f core conftest.err conftest.$ac_objext \
12299 conftest$ac_exeext conftest.$ac_ext
12300CFLAGS=$ac_wine_try_cflags_saved
12301fi
12302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12303$as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12304if test $ac_cv_cflags__Wwrite_strings = yes; then :
12305 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12306fi
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012307
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012308 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012309 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12311$as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012312if ${ac_cv_c_string_h_warnings+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012313 $as_echo_n "(cached) " >&6
Mike McCormackc509bc42003-02-25 04:01:58 +000012314else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012316/* end confdefs.h. */
12317#include <string.h>
12318int
12319main ()
12320{
12321
12322 ;
12323 return 0;
12324}
12325_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012326if ac_fn_c_try_compile "$LINENO"; then :
Mike McCormackc509bc42003-02-25 04:01:58 +000012327 ac_cv_c_string_h_warnings=no
12328else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012329 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000012330fi
Jeremy White0ebeb532006-06-20 13:18:41 +020012331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012332fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012334$as_echo "$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012335 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012336 if test "$ac_cv_c_string_h_warnings" = "no"
12337 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012338 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000012339 fi
Alexandre Julliard12753c52009-10-02 14:39:49 +020012340
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012341 saved_CFLAGS="$CFLAGS"
12342 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12344$as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012345if ${ac_cv_c_logicalop_noisy+:} false; then :
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012346 $as_echo_n "(cached) " >&6
12347else
12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349/* end confdefs.h. */
12350#include <string.h>
12351int
12352main ()
12353{
12354char*f(const char *h,char n) {return strchr(h,n);}
12355 ;
12356 return 0;
12357}
12358_ACEOF
12359if ac_fn_c_try_compile "$LINENO"; then :
12360 ac_cv_c_logicalop_noisy=no
12361else
12362 ac_cv_c_logicalop_noisy=yes
12363fi
12364rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12365fi
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12367$as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12368 CFLAGS="$saved_CFLAGS"
12369 if test "$ac_cv_c_logicalop_noisy" = "no"
12370 then
12371 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12372 fi
12373
Andrew Nguyen2eda9c72010-05-25 22:20:14 -050012374 if test "x$enable_maintainer_mode" = "xyes"
Alexandre Julliard12753c52009-10-02 14:39:49 +020012375 then
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12377$as_echo_n "checking whether the compiler supports -Werror... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012378if ${ac_cv_cflags__Werror+:} false; then :
Alexandre Julliard12753c52009-10-02 14:39:49 +020012379 $as_echo_n "(cached) " >&6
12380else
12381 ac_wine_try_cflags_saved=$CFLAGS
12382CFLAGS="$CFLAGS -Werror"
12383cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12384/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012385int main(int argc, char **argv) { return 0; }
Alexandre Julliard12753c52009-10-02 14:39:49 +020012386_ACEOF
12387if ac_fn_c_try_link "$LINENO"; then :
12388 ac_cv_cflags__Werror=yes
12389else
12390 ac_cv_cflags__Werror=no
12391fi
12392rm -f core conftest.err conftest.$ac_objext \
12393 conftest$ac_exeext conftest.$ac_ext
12394CFLAGS=$ac_wine_try_cflags_saved
12395fi
12396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12397$as_echo "$ac_cv_cflags__Werror" >&6; }
12398if test $ac_cv_cflags__Werror = yes; then :
12399 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12400fi
12401 fi
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020012402
12403 saved_CFLAGS="$CFLAGS"
12404 CFLAGS="$CFLAGS -Werror"
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12406$as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012407if ${ac_cv_have_ms_hook_prologue+:} false; then :
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020012408 $as_echo_n "(cached) " >&6
12409else
12410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12411/* end confdefs.h. */
12412int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12413int
12414main ()
12415{
12416
12417 ;
12418 return 0;
12419}
12420_ACEOF
12421if ac_fn_c_try_compile "$LINENO"; then :
12422 ac_cv_have_ms_hook_prologue="yes"
12423else
12424 ac_cv_have_ms_hook_prologue="no"
12425fi
12426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427fi
12428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12429$as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12430 CFLAGS="$saved_CFLAGS"
12431 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12432 then
12433
12434$as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12435
12436 else
12437 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12438
12439 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012440fi
12441
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012442
Alexandre Julliard105793b2010-10-22 17:13:57 +020012443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12444$as_echo_n "checking for the need to disable Fortify... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012445if ${ac_cv_c_fortify_enabled+:} false; then :
Alexandre Julliard105793b2010-10-22 17:13:57 +020012446 $as_echo_n "(cached) " >&6
12447else
12448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12449/* end confdefs.h. */
12450#include <string.h>
12451int
12452main ()
12453{
12454#if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12455#error Fortify enabled
12456#endif
12457 ;
12458 return 0;
12459}
12460_ACEOF
12461if ac_fn_c_try_compile "$LINENO"; then :
12462 ac_cv_c_fortify_enabled=no
12463else
12464 ac_cv_c_fortify_enabled=yes
12465fi
12466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12467fi
12468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12469$as_echo "$ac_cv_c_fortify_enabled" >&6; }
12470if test "$ac_cv_c_fortify_enabled" = yes
12471then
Alexandre Julliardb10fb862010-10-29 14:25:01 +020012472 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
Alexandre Julliard105793b2010-10-22 17:13:57 +020012473fi
12474
12475
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012477$as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012478if ${ac_cv_c_extern_prefix+:} false; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012479 $as_echo_n "(cached) " >&6
12480else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012482/* end confdefs.h. */
12483extern int ac_test;
12484int
12485main ()
12486{
12487asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12488 ;
12489 return 0;
12490}
12491_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012492if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012493 ac_cv_c_extern_prefix="yes"
12494else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012495 ac_cv_c_extern_prefix="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012496fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012497rm -f core conftest.err conftest.$ac_objext \
12498 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012499fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012501$as_echo "$ac_cv_c_extern_prefix" >&6; }
12502
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012503case $host_cpu in
12504 *i[3456789]86*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012506$as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012507if ${ac_cv_c_stdcall_suffix+:} false; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012508 $as_echo_n "(cached) " >&6
12509else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012511/* end confdefs.h. */
12512#ifndef _MSC_VER
12513#define __stdcall __attribute__((__stdcall__))
12514#endif
12515int __stdcall ac_test(int i) { return i; }
12516int
12517main ()
12518{
12519asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12520 ;
12521 return 0;
12522}
12523_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012524if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012525 ac_cv_c_stdcall_suffix="yes"
12526else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012527 ac_cv_c_stdcall_suffix="no"
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012528fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012529rm -f core conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012531fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012533$as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12534 *) ac_cv_c_stdcall_suffix="no" ;;
12535esac
12536
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012537
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012538if test "$ac_cv_c_extern_prefix" = "yes"
12539then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012540 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012541
12542 asm_name_prefix="_"
12543else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012544 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012545
12546 asm_name_prefix=""
12547fi
12548
12549
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012550if test "$ac_cv_c_stdcall_suffix" = "yes"
12551then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012552 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012553
12554else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012555 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012556
12557fi
12558
12559
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012561$as_echo_n "checking how to define a function in assembly code... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012562if ${ac_cv_asm_func_def+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012563 $as_echo_n "(cached) " >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012564else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012566/* end confdefs.h. */
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012567
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012568int
12569main ()
12570{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012571asm("\t.globl _ac_test\n\t.def _ac_test; .scl 2; .type 32; .endef\n_ac_test:\t.long 0");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012572 ;
12573 return 0;
12574}
12575_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012576if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012577 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012578else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012580/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012581
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012582int
12583main ()
12584{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012585asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012586 ;
12587 return 0;
12588}
12589_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012590if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012591 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012592else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012594/* end confdefs.h. */
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012595
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012596int
12597main ()
12598{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012599asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012600 ;
12601 return 0;
12602}
12603_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012604if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012605 ac_cv_asm_func_def=".type 2"
12606else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012607 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012608fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012609rm -f core conftest.err conftest.$ac_objext \
12610 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012611fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012612rm -f core conftest.err conftest.$ac_objext \
12613 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012614fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012615rm -f core conftest.err conftest.$ac_objext \
12616 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012617fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012619$as_echo "$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012620
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012621
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012622case "$ac_cv_asm_func_def" in
12623 ".def")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012624 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012625
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012626 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012627 ".type @function")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012628 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012629
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012630 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012631 ".type 2")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012632 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012633
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012634 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012635 *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012636 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012637
12638 asm_func_header="" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012639esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012640
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012642$as_echo_n "checking whether asm() works outside of functions... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012643if ${ac_cv_c_asm_outside_funcs+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012644 $as_echo_n "(cached) " >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012645else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012647/* end confdefs.h. */
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012648asm(".text\n\t.long 0");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012649int
12650main ()
12651{
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012652
12653 ;
12654 return 0;
12655}
12656_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012657if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012658 ac_cv_c_asm_outside_funcs="yes"
12659else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012660 ac_cv_c_asm_outside_funcs="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012661fi
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012662rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12663fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012665$as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12666
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012668$as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012669if ${ac_cv_c_dot_previous+:} false; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012670 $as_echo_n "(cached) " >&6
12671else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012673/* end confdefs.h. */
12674
12675int
12676main ()
12677{
12678asm(".text\nac_test:\t.long 0\n\t.previous");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012679 ;
12680 return 0;
12681}
12682_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012683if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012684 ac_cv_c_dot_previous="yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012685else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012686 ac_cv_c_dot_previous="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012687fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012688rm -f core conftest.err conftest.$ac_objext \
12689 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012690fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012692$as_echo "$ac_cv_c_dot_previous" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012693
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012695$as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012696if ${ac_cv_c_cfi_support+:} false; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012697 $as_echo_n "(cached) " >&6
12698else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012700/* end confdefs.h. */
12701asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12702int
12703main ()
12704{
12705
12706 ;
12707 return 0;
12708}
12709_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012710if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012711 ac_cv_c_cfi_support="yes"
12712else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012713 ac_cv_c_cfi_support="no"
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012714fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12716fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012718$as_echo "$ac_cv_c_cfi_support" >&6; }
12719
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012720asm_func_header=".globl $asm_name_prefix\" #name suffix \"\\n\\t$asm_func_header\\n$asm_name_prefix\" #name suffix \":\\n\\t"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012721asm_func_trailer=""
12722if test "$ac_cv_c_dot_previous" = "yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012723then
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012724 asm_func_trailer="\\n\\t.previous"
12725fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012726if test "$ac_cv_c_cfi_support" = "yes"
12727then
12728 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12729 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012730
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012731$as_echo "#define __ASM_CFI(str) str" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012732
Alexandre Julliard6c142382010-04-11 12:47:30 +020012733 UNWINDFLAGS=-fasynchronous-unwind-tables
12734
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012735else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012736 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012737
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012738fi
12739
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012740asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12741
12742
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012743if test "$ac_cv_c_asm_outside_funcs" = "yes"
12744then
12745 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012746#define __ASM_DEFINE_FUNC(name,suffix,code) asm(".text\n\t.align 4\n\t$asm_func_code");
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012747_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012748
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012749else
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012750 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012751#define __ASM_DEFINE_FUNC(name,suffix,code) void __asm_dummy_##name(void) { asm(".text\n\t.align 4\n\t$asm_func_code"); }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012752_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012753
12754fi
12755
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012756$as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012757
12758
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012759$as_echo "#define __ASM_STDCALL_FUNC(name,args,code) __ASM_DEFINE_FUNC(name,__ASM_STDCALL(args),code)" >>confdefs.h
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012760
12761
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012762
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012763LDPATH=""
12764
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012765case $build_os in
12766 cygwin*|mingw32*)
Alexandre Julliardb860c4a2009-09-01 22:36:13 +020012767 TOOLSEXT=".exe"
12768
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012769 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012770 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000012771 darwin*|macosx*)
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012772 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012773 *)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012774 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012775 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012776esac
12777
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012778case $host_os in
12779 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000012780 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012781
Alexandre Julliardbd9852c2010-09-19 12:40:12 +020012782 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012783
12784 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000012785esac
12786
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012787MAIN_BINARY="wine"
12788
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020012789test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012790
Alexandre Julliard0a086202010-12-16 16:54:15 +010012791case $host_os in
12792 linux*)
12793 case $host_cpu in
12794 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12795 ;;
12796 x86_64*) EXTRA_BINARIES="wine64-preloader"
Tijl Coosemans9f5c69c2007-08-24 15:46:36 +020012797 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010012798 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000012799 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012800esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012801
12802
Alexandre Julliard95251a72009-02-16 12:46:58 +010012803ac_save_CFLAGS="$CFLAGS"
12804CFLAGS="$CFLAGS $BUILTINFLAG"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012805for ac_func in \
Stefan Dösingera7741522011-05-24 21:05:28 +020012806 _finite \
12807 _isnan \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012808 _pclose \
12809 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012810 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000012811 _spawnvp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012812 _strdup \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012813 _stricmp \
12814 _strnicmp \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012815 _strtoi64 \
12816 _strtoui64 \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012817 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010012818 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012819 chsize \
Alexandre Julliarde533e972006-08-15 12:11:30 +020012820 dlopen \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000012821 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000012822 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012823 finite \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +020012824 fnmatch \
Hans Leidekkerbed38422004-10-14 03:08:57 +000012825 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012826 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000012827 fstatfs \
12828 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012829 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000012830 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000012831 futimesat \
Charles Davis4e44e152011-01-18 13:09:44 -070012832 getattrlist \
Alexandre Julliarda9f214c2006-11-13 15:42:48 +010012833 getdirentries \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000012834 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012835 getpagesize \
Alexandre Julliard142dab82002-07-01 18:17:30 +000012836 getpwuid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000012837 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000012838 getuid \
Alexandre Julliardc8278922006-08-04 22:11:00 +020012839 kqueue \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000012840 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012841 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000012842 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012843 pclose \
Alexandre Julliard6f68b772009-07-01 12:13:34 +020012844 pipe2 \
Alexandre Julliard10892602006-08-15 11:41:59 +020012845 poll \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012846 popen \
Albert Lee01b972d2009-11-20 18:35:26 -050012847 port_create \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020012848 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012849 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000012850 pwrite \
Rob Shearman87175c62008-10-03 12:55:21 +010012851 readdir \
Alexandre Julliarde2930742004-01-08 05:07:05 +000012852 readlink \
Jeremy White08c0f692004-10-09 02:26:29 +000012853 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012854 select \
Gerald Pfeifer39f67272008-01-20 21:23:08 +010012855 setproctitle \
Paul Millardf10b7d2006-07-16 15:06:28 +010012856 setrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012857 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012858 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000012859 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012860 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000012861 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012862 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000012863 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012864 strcasecmp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012865 strdup \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012866 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012867 strncasecmp \
Louis Lenders6c04a182006-12-17 17:56:50 +000012868 strtold \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012869 strtoll \
12870 strtoull \
Alexandre Julliard0fbd5562008-12-22 10:47:16 +010012871 symlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012872 tcgetattr \
Tijl Coosemans0c4f1522007-08-23 14:12:37 +020012873 thr_kill2 \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012874 timegm \
12875 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012876 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012877 wait4 \
12878 waitpid \
12879
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012880do :
12881 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12882ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020012883if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012884 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012885#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012886_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012887
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012888fi
12889done
12890
Alexandre Julliard95251a72009-02-16 12:46:58 +010012891CFLAGS="$ac_save_CFLAGS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012892
Alexandre Julliarde533e972006-08-15 12:11:30 +020012893if test "$ac_cv_func_dlopen" = no
12894then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012896$as_echo_n "checking for dlopen in -ldl... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012897if ${ac_cv_lib_dl_dlopen+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012898 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012899else
12900 ac_check_lib_save_LIBS=$LIBS
12901LIBS="-ldl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012903/* end confdefs.h. */
12904
12905/* Override any GCC internal prototype to avoid an error.
12906 Use char because int might match the return type of a GCC
12907 builtin and then its argument prototype would still apply. */
12908#ifdef __cplusplus
12909extern "C"
12910#endif
12911char dlopen ();
12912int
12913main ()
12914{
12915return dlopen ();
12916 ;
12917 return 0;
12918}
12919_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012920if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012921 ac_cv_lib_dl_dlopen=yes
12922else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012923 ac_cv_lib_dl_dlopen=no
Alexandre Julliarde533e972006-08-15 12:11:30 +020012924fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012925rm -f core conftest.err conftest.$ac_objext \
12926 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012927LIBS=$ac_check_lib_save_LIBS
12928fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012930$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012931if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012932 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
Alexandre Julliarde533e972006-08-15 12:11:30 +020012933 LIBDL="-ldl"
12934
12935fi
12936
12937fi
12938ac_wine_check_funcs_save_LIBS="$LIBS"
12939LIBS="$LIBS $LIBDL"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012940for ac_func in dladdr
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012941do :
12942 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
Alexandre Julliard9797da42011-04-27 17:37:43 +020012943if test "x$ac_cv_func_dladdr" = xyes; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012944 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012945#define HAVE_DLADDR 1
Alexandre Julliarde533e972006-08-15 12:11:30 +020012946_ACEOF
12947
12948fi
12949done
12950
12951LIBS="$ac_wine_check_funcs_save_LIBS"
12952
Alexandre Julliard10892602006-08-15 11:41:59 +020012953if test "$ac_cv_func_poll" = no
12954then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012956$as_echo_n "checking for poll in -lpoll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012957if ${ac_cv_lib_poll_poll+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012958 $as_echo_n "(cached) " >&6
Alexandre Julliard10892602006-08-15 11:41:59 +020012959else
12960 ac_check_lib_save_LIBS=$LIBS
12961LIBS="-lpoll $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012963/* end confdefs.h. */
12964
12965/* Override any GCC internal prototype to avoid an error.
12966 Use char because int might match the return type of a GCC
12967 builtin and then its argument prototype would still apply. */
12968#ifdef __cplusplus
12969extern "C"
12970#endif
12971char poll ();
12972int
12973main ()
12974{
12975return poll ();
12976 ;
12977 return 0;
12978}
12979_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012980if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard10892602006-08-15 11:41:59 +020012981 ac_cv_lib_poll_poll=yes
12982else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012983 ac_cv_lib_poll_poll=no
Alexandre Julliard10892602006-08-15 11:41:59 +020012984fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012985rm -f core conftest.err conftest.$ac_objext \
12986 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012987LIBS=$ac_check_lib_save_LIBS
12988fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012990$as_echo "$ac_cv_lib_poll_poll" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012991if test "x$ac_cv_lib_poll_poll" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012992 $as_echo "#define HAVE_POLL 1" >>confdefs.h
Alexandre Julliard10892602006-08-15 11:41:59 +020012993 LIBPOLL="-lpoll"
12994
12995fi
12996
12997fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012998
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013000$as_echo_n "checking for library containing gethostbyname... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013001if ${ac_cv_search_gethostbyname+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013002 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020013003else
Alexandre Julliard28710412007-04-23 16:31:58 +020013004 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020013006/* end confdefs.h. */
13007
13008/* Override any GCC internal prototype to avoid an error.
13009 Use char because int might match the return type of a GCC
13010 builtin and then its argument prototype would still apply. */
13011#ifdef __cplusplus
13012extern "C"
13013#endif
13014char gethostbyname ();
13015int
13016main ()
13017{
13018return gethostbyname ();
13019 ;
13020 return 0;
13021}
13022_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020013023for ac_lib in '' nsl; do
13024 if test -z "$ac_lib"; then
13025 ac_res="none required"
13026 else
13027 ac_res=-l$ac_lib
13028 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13029 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013030 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013031 ac_cv_search_gethostbyname=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020013032fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013033rm -f core conftest.err conftest.$ac_objext \
13034 conftest$ac_exeext
Alexandre Julliard9797da42011-04-27 17:37:43 +020013035 if ${ac_cv_search_gethostbyname+:} false; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013036 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020013037fi
Alexandre Julliard28710412007-04-23 16:31:58 +020013038done
Alexandre Julliard9797da42011-04-27 17:37:43 +020013039if ${ac_cv_search_gethostbyname+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013040
Alexandre Julliard28710412007-04-23 16:31:58 +020013041else
13042 ac_cv_search_gethostbyname=no
13043fi
13044rm conftest.$ac_ext
13045LIBS=$ac_func_search_save_LIBS
13046fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013048$as_echo "$ac_cv_search_gethostbyname" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020013049ac_res=$ac_cv_search_gethostbyname
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013050if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013051 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020013052
13053fi
13054
Alexandre Julliarde533e972006-08-15 12:11:30 +020013055
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013057$as_echo_n "checking for library containing connect... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013058if ${ac_cv_search_connect+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013059 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020013060else
Alexandre Julliard28710412007-04-23 16:31:58 +020013061 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020013063/* end confdefs.h. */
13064
13065/* Override any GCC internal prototype to avoid an error.
13066 Use char because int might match the return type of a GCC
13067 builtin and then its argument prototype would still apply. */
13068#ifdef __cplusplus
13069extern "C"
13070#endif
13071char connect ();
13072int
13073main ()
13074{
13075return connect ();
13076 ;
13077 return 0;
13078}
13079_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020013080for ac_lib in '' socket; do
13081 if test -z "$ac_lib"; then
13082 ac_res="none required"
13083 else
13084 ac_res=-l$ac_lib
13085 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13086 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013087 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013088 ac_cv_search_connect=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020013089fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013090rm -f core conftest.err conftest.$ac_objext \
13091 conftest$ac_exeext
Alexandre Julliard9797da42011-04-27 17:37:43 +020013092 if ${ac_cv_search_connect+:} false; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013093 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020013094fi
Alexandre Julliard28710412007-04-23 16:31:58 +020013095done
Alexandre Julliard9797da42011-04-27 17:37:43 +020013096if ${ac_cv_search_connect+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013097
Alexandre Julliard28710412007-04-23 16:31:58 +020013098else
13099 ac_cv_search_connect=no
13100fi
13101rm conftest.$ac_ext
13102LIBS=$ac_func_search_save_LIBS
13103fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013105$as_echo "$ac_cv_search_connect" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020013106ac_res=$ac_cv_search_connect
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013107if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013108 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020013109
13110fi
13111
Alexandre Julliarde533e972006-08-15 12:11:30 +020013112
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013114$as_echo_n "checking for library containing inet_aton... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013115if ${ac_cv_search_inet_aton+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013116 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020013117else
Alexandre Julliard28710412007-04-23 16:31:58 +020013118 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013119cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020013120/* end confdefs.h. */
13121
13122/* Override any GCC internal prototype to avoid an error.
13123 Use char because int might match the return type of a GCC
13124 builtin and then its argument prototype would still apply. */
13125#ifdef __cplusplus
13126extern "C"
13127#endif
13128char inet_aton ();
13129int
13130main ()
13131{
13132return inet_aton ();
13133 ;
13134 return 0;
13135}
13136_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020013137for ac_lib in '' resolv; do
13138 if test -z "$ac_lib"; then
13139 ac_res="none required"
13140 else
13141 ac_res=-l$ac_lib
13142 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13143 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013144 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013145 ac_cv_search_inet_aton=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020013146fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013147rm -f core conftest.err conftest.$ac_objext \
13148 conftest$ac_exeext
Alexandre Julliard9797da42011-04-27 17:37:43 +020013149 if ${ac_cv_search_inet_aton+:} false; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013150 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020013151fi
Alexandre Julliard28710412007-04-23 16:31:58 +020013152done
Alexandre Julliard9797da42011-04-27 17:37:43 +020013153if ${ac_cv_search_inet_aton+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013154
Alexandre Julliard28710412007-04-23 16:31:58 +020013155else
13156 ac_cv_search_inet_aton=no
13157fi
13158rm conftest.$ac_ext
13159LIBS=$ac_func_search_save_LIBS
13160fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013162$as_echo "$ac_cv_search_inet_aton" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020013163ac_res=$ac_cv_search_inet_aton
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013164if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013165 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020013166
13167fi
13168
Alexandre Julliarde533e972006-08-15 12:11:30 +020013169
Ben Taylor41c59962007-04-23 13:41:42 +000013170for ac_func in \
13171 getaddrinfo \
13172 getnameinfo \
13173 getnetbyname \
13174 getprotobyname \
13175 getprotobynumber \
13176 getservbyport \
13177 inet_network \
Austin English06566912009-03-28 00:13:09 -050013178 inet_ntop \
13179 inet_pton \
Ben Taylor41c59962007-04-23 13:41:42 +000013180 sendmsg \
Alexandre Julliard98bec052009-03-26 11:07:28 +010013181 socketpair \
Ben Taylor41c59962007-04-23 13:41:42 +000013182
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013183do :
13184 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13185ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013186if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Ben Taylor41c59962007-04-23 13:41:42 +000013187 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010013188#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Ben Taylor41c59962007-04-23 13:41:42 +000013189_ACEOF
13190
13191fi
13192done
13193
13194
Francois Gougetbcba2702008-07-10 12:36:06 +020013195LDAPLIBS=""
13196
13197if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13198then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013199 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13200"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013201if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013203$as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013204if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013205 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020013206else
13207 ac_check_lib_save_LIBS=$LIBS
13208LIBS="-lldap_r $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013210/* end confdefs.h. */
13211
13212/* Override any GCC internal prototype to avoid an error.
13213 Use char because int might match the return type of a GCC
13214 builtin and then its argument prototype would still apply. */
13215#ifdef __cplusplus
13216extern "C"
13217#endif
13218char ldap_initialize ();
13219int
13220main ()
13221{
13222return ldap_initialize ();
13223 ;
13224 return 0;
13225}
13226_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013227if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013228 ac_cv_lib_ldap_r_ldap_initialize=yes
13229else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013230 ac_cv_lib_ldap_r_ldap_initialize=no
Francois Gougetbcba2702008-07-10 12:36:06 +020013231fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013232rm -f core conftest.err conftest.$ac_objext \
13233 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013234LIBS=$ac_check_lib_save_LIBS
13235fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013237$as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013238if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013240$as_echo_n "checking for ber_init in -llber... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013241if ${ac_cv_lib_lber_ber_init+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013242 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020013243else
13244 ac_check_lib_save_LIBS=$LIBS
13245LIBS="-llber $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013246cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013247/* end confdefs.h. */
13248
13249/* Override any GCC internal prototype to avoid an error.
13250 Use char because int might match the return type of a GCC
13251 builtin and then its argument prototype would still apply. */
13252#ifdef __cplusplus
13253extern "C"
13254#endif
13255char ber_init ();
13256int
13257main ()
13258{
13259return ber_init ();
13260 ;
13261 return 0;
13262}
13263_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013264if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013265 ac_cv_lib_lber_ber_init=yes
13266else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013267 ac_cv_lib_lber_ber_init=no
Francois Gougetbcba2702008-07-10 12:36:06 +020013268fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013269rm -f core conftest.err conftest.$ac_objext \
13270 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013271LIBS=$ac_check_lib_save_LIBS
13272fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013274$as_echo "$ac_cv_lib_lber_ber_init" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013275if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013276
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013277$as_echo "#define HAVE_LDAP 1" >>confdefs.h
Francois Gougetbcba2702008-07-10 12:36:06 +020013278
13279 LDAPLIBS="-lldap_r -llber"
13280fi
13281
13282fi
13283
13284fi
13285
13286 ac_wine_check_funcs_save_LIBS="$LIBS"
13287LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Francois Gougetbcba2702008-07-10 12:36:06 +020013288for ac_func in \
13289 ldap_count_references \
13290 ldap_first_reference \
13291 ldap_next_reference \
13292 ldap_parse_reference \
13293 ldap_parse_sort_control \
13294 ldap_parse_sortresponse_control \
13295 ldap_parse_vlv_control \
13296 ldap_parse_vlvresponse_control
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013297do :
13298 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13299ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013300if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013301 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010013302#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Francois Gougetbcba2702008-07-10 12:36:06 +020013303_ACEOF
13304
13305fi
13306done
13307
13308LIBS="$ac_wine_check_funcs_save_LIBS"
13309fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013310if test "x$LDAPLIBS" = "x"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013311 case "x$with_ldap" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010013312 x) as_fn_append wine_notices "|libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported." ;;
Francois Gougetbcba2702008-07-10 12:36:06 +020013313 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013314 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020013315This is an error since --with-ldap was requested." "$LINENO" 5 ;;
Francois Gougetbcba2702008-07-10 12:36:06 +020013316esac
13317fi
13318
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010013320$as_echo_n "checking whether mkdir takes only one argument... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013321if ${wine_cv_one_arg_mkdir+:} false; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010013322 $as_echo_n "(cached) " >&6
13323else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard921e6622008-12-22 10:39:11 +010013325/* end confdefs.h. */
13326#include <sys/stat.h>
13327int
13328main ()
13329{
13330mkdir("foo");
13331 ;
13332 return 0;
13333}
13334_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013335if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010013336 wine_cv_one_arg_mkdir=yes
13337else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013338 wine_cv_one_arg_mkdir=no
Alexandre Julliard921e6622008-12-22 10:39:11 +010013339fi
Alexandre Julliard921e6622008-12-22 10:39:11 +010013340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010013343$as_echo "$wine_cv_one_arg_mkdir" >&6; }
13344if test "$wine_cv_one_arg_mkdir" = "yes"
13345then
13346
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013347$as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
Alexandre Julliard921e6622008-12-22 10:39:11 +010013348
13349fi
13350
Andrew Nguyen2f22a502011-02-22 07:10:22 -060013351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13352$as_echo_n "checking for sched_setaffinity... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013353if ${wine_cv_have_sched_setaffinity+:} false; then :
Andrew Nguyen2f22a502011-02-22 07:10:22 -060013354 $as_echo_n "(cached) " >&6
13355else
13356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357/* end confdefs.h. */
13358#define _GNU_SOURCE
13359#include <sched.h>
13360int
13361main ()
13362{
13363sched_setaffinity(0, 0, 0);
13364 ;
13365 return 0;
13366}
13367_ACEOF
13368if ac_fn_c_try_link "$LINENO"; then :
13369 wine_cv_have_sched_setaffinity=yes
13370else
13371 wine_cv_have_sched_setaffinity=no
13372fi
13373rm -f core conftest.err conftest.$ac_objext \
13374 conftest$ac_exeext conftest.$ac_ext
13375fi
13376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13377$as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13378if test "$wine_cv_have_sched_setaffinity" = "yes"
13379then
13380
13381$as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13382
13383fi
13384
Ben Taylor41c59962007-04-23 13:41:42 +000013385
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013387$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013388if ${ac_cv_c_const+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013389 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013390else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013392/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013393
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013394int
13395main ()
13396{
13397/* FIXME: Include the comments suggested by Paul. */
13398#ifndef __cplusplus
13399 /* Ultrix mips cc rejects this. */
13400 typedef int charset[2];
Phil Krylovf0ca5862006-11-05 23:03:46 +030013401 const charset cs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013402 /* SunOS 4.1.1 cc rejects this. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030013403 char const *const *pcpcc;
13404 char **ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013405 /* NEC SVR4.0.2 mips cc rejects this. */
13406 struct point {int x, y;};
13407 static struct point const zero = {0,0};
13408 /* AIX XL C 1.02.0.0 rejects this.
13409 It does not let you subtract one const X* pointer from another in
13410 an arm of an if-expression whose if-part is not a constant
13411 expression */
13412 const char *g = "string";
Phil Krylovf0ca5862006-11-05 23:03:46 +030013413 pcpcc = &g + (g ? g-g : 0);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013414 /* HPUX 7.0 cc rejects these. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030013415 ++pcpcc;
13416 ppc = (char**) pcpcc;
13417 pcpcc = (char const *const *) ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013418 { /* SCO 3.2v4 cc rejects this. */
13419 char *t;
13420 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013421
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013422 *t++ = 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013423 if (s) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013424 }
13425 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13426 int x[] = {25, 17};
13427 const int *foo = &x[0];
13428 ++foo;
13429 }
13430 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13431 typedef const int *iptr;
13432 iptr p = 0;
13433 ++p;
13434 }
13435 { /* AIX XL C 1.02.0.0 rejects this saying
13436 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13437 struct s { int j; const int *ap[3]; };
13438 struct s *b; b->j = 5;
13439 }
13440 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13441 const int foo = 10;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013442 if (!foo) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013443 }
Phil Krylovf0ca5862006-11-05 23:03:46 +030013444 return !cs[0] && !zero.x;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013445#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013446
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013447 ;
13448 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013449}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013450_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013451if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013452 ac_cv_c_const=yes
13453else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013454 ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013455fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013457fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013459$as_echo "$ac_cv_c_const" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013460if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013461
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013462$as_echo "#define const /**/" >>confdefs.h
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013463
13464fi
13465
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013467$as_echo_n "checking for inline... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013468if ${ac_cv_c_inline+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013469 $as_echo_n "(cached) " >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013470else
13471 ac_cv_c_inline=no
13472for ac_kw in inline __inline__ __inline; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013474/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013475#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013476typedef int foo_t;
13477static $ac_kw foo_t static_foo () {return 0; }
13478$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013479#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013480
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013481_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013482if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013483 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013484fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013486 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013487done
13488
13489fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013491$as_echo "$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000013492
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013493case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013494 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000013495 *)
13496 case $ac_cv_c_inline in
13497 no) ac_val=;;
13498 *) ac_val=$ac_cv_c_inline;;
13499 esac
13500 cat >>confdefs.h <<_ACEOF
13501#ifndef __cplusplus
13502#define inline $ac_val
13503#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013504_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000013505 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013506esac
13507
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013508ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013509if test "x$ac_cv_type_mode_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013510
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013511cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013512#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013513_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013514
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013515
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013516fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013517ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013518if test "x$ac_cv_type_off_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013519
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013520cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013521#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013522_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013523
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013524
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013525fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013526ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013527if test "x$ac_cv_type_pid_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013528
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013529cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013530#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013531_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013532
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013533
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013534fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013535ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013536if test "x$ac_cv_type_size_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013537
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013538cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013539#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013540_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013541
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013542
13543fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013544ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013545if test "x$ac_cv_type_ssize_t" = xyes; then :
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013546
13547cat >>confdefs.h <<_ACEOF
13548#define HAVE_SSIZE_T 1
13549_ACEOF
13550
13551
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013552fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013553ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013554if test "x$ac_cv_type_long_long" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013555
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013556cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013557#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013558_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013559
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013560
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013561fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013562ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013563if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013564
13565cat >>confdefs.h <<_ACEOF
13566#define HAVE_FSBLKCNT_T 1
13567_ACEOF
13568
13569
13570fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013571ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013572if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013573
13574cat >>confdefs.h <<_ACEOF
13575#define HAVE_FSFILCNT_T 1
13576_ACEOF
13577
13578
13579fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013580
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013581ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
Alexandre Julliardabf50482008-10-31 12:56:53 +010013582#include <signal.h>
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013583"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013584if test "x$ac_cv_type_sigset_t" = xyes; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013585
13586cat >>confdefs.h <<_ACEOF
13587#define HAVE_SIGSET_T 1
13588_ACEOF
13589
13590
13591fi
13592
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013593ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13594"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013595if test "x$ac_cv_type_request_sense" = xyes; then :
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000013596
13597cat >>confdefs.h <<_ACEOF
13598#define HAVE_REQUEST_SENSE 1
13599_ACEOF
13600
13601
13602fi
13603
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013604
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013605ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
Austin English68f2db22009-01-29 08:28:37 -060013606#ifdef HAVE_SYS_SOCKET_H
13607#include <sys/socket.h>
13608#endif
13609#ifdef HAVE_SYS_SOCKETVAR_H
13610#include <sys/socketvar.h>
13611#endif
13612#ifdef HAVE_NET_ROUTE_H
13613#include <net/route.h>
13614#endif
13615#ifdef HAVE_NETINET_IN_H
13616#include <netinet/in.h>
13617#endif
13618#ifdef HAVE_NETINET_IN_SYSTM_H
13619#include <netinet/in_systm.h>
13620#endif
13621#ifdef HAVE_NETINET_IP_H
13622#include <netinet/ip.h>
13623#endif
13624#ifdef HAVE_NETINET_IN_PCB_H
13625#include <netinet/in_pcb.h>
13626#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013627"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013628if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
Austin English68f2db22009-01-29 08:28:37 -060013629
13630cat >>confdefs.h <<_ACEOF
13631#define HAVE_STRUCT_XINPGEN 1
13632_ACEOF
13633
13634
13635fi
13636
13637
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013638ac_fn_c_check_member "$LINENO" "struct ff_effect" "direction" "ac_cv_member_struct_ff_effect_direction" "#ifdef HAVE_LINUX_INPUT_H
Daniel Remenake491e8f2005-07-29 14:18:58 +000013639#include <linux/input.h>
13640#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013641"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013642if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
Daniel Remenake491e8f2005-07-29 14:18:58 +000013643
13644cat >>confdefs.h <<_ACEOF
13645#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13646_ACEOF
13647
13648
13649fi
13650
13651
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013653$as_echo_n "checking for sigaddset... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013654if ${wine_cv_have_sigaddset+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013655 $as_echo_n "(cached) " >&6
Paul Millar10a6c562004-12-07 17:19:54 +000013656else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013658/* end confdefs.h. */
13659#include <signal.h>
13660int
13661main ()
13662{
13663sigset_t set; sigaddset(&set,SIGTERM);
13664 ;
13665 return 0;
13666}
13667_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013668if ac_fn_c_try_link "$LINENO"; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013669 wine_cv_have_sigaddset=yes
13670else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013671 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000013672fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013673rm -f core conftest.err conftest.$ac_objext \
13674 conftest$ac_exeext conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013675fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013677$as_echo "$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000013678if test "$wine_cv_have_sigaddset" = "yes"
13679then
13680
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013681$as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
Paul Millar10a6c562004-12-07 17:19:54 +000013682
13683fi
13684
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013685
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can use re-entrant gethostbyname_r Linux style" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013687$as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013688if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013689 $as_echo_n "(cached) " >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013690else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013692/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000013693#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013694int
13695main ()
13696{
Rein Klazesff7a61f2000-09-24 19:41:57 +000013697
Ken Thomases20d9bad2007-10-19 16:18:51 -050013698 char *name=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013699 struct hostent he;
13700 struct hostent *result;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013701 char *buf=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013702 int bufsize=0;
13703 int res,errnr;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013704 char *addr=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013705 int addrlen=0;
13706 int addrtype=0;
13707 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13708 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013709
13710 ;
13711 return 0;
13712}
13713_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013714if ac_fn_c_try_link "$LINENO"; then :
Rein Klazesff7a61f2000-09-24 19:41:57 +000013715 wine_cv_linux_gethostbyname_r_6=yes
13716else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013717 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000013718
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013719fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013720rm -f core conftest.err conftest.$ac_objext \
13721 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013722
13723fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013725$as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000013726 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13727 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013728
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013729$as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
Rein Klazesff7a61f2000-09-24 19:41:57 +000013730
13731 fi
13732
Marcus Meissner028e9a11999-08-04 15:07:56 +000013733if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013734then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linux/joystick.h uses the Linux 2.2+ API" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013736$as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013737if ${wine_cv_linux_joystick_22_api+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013738 $as_echo_n "(cached) " >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013739else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013741/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013742
Marcus Meissner028e9a11999-08-04 15:07:56 +000013743 #include <sys/ioctl.h>
Marcus Meissner7c434992007-04-12 12:12:05 +020013744 #include <sys/types.h>
Marcus Meissner028e9a11999-08-04 15:07:56 +000013745 #include <linux/joystick.h>
13746
13747 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000013748 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13749 #error "no 2.2 header"
13750 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013751
13752int
13753main ()
13754{
Marcus Meissner028e9a11999-08-04 15:07:56 +000013755/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013756 ;
13757 return 0;
13758}
13759_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013760if ac_fn_c_try_compile "$LINENO"; then :
Marcus Meissner028e9a11999-08-04 15:07:56 +000013761 wine_cv_linux_joystick_22_api=yes
13762else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013763 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000013764fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000013766
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013767fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013769$as_echo "$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000013770 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013771 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013772
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013773$as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
Marcus Meissner028e9a11999-08-04 15:07:56 +000013774
13775 fi
13776fi
13777
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013778
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013779ac_fn_c_check_member "$LINENO" "struct statfs" "f_bfree" "ac_cv_member_struct_statfs_f_bfree" "#include <sys/types.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013780#ifdef HAVE_SYS_PARAM_H
13781# include <sys/param.h>
13782#endif
Robert Millan55b74482006-02-06 21:53:27 +010013783#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013784# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013785#endif
13786#ifdef HAVE_SYS_VFS_H
13787# include <sys/vfs.h>
13788#endif
13789#ifdef HAVE_SYS_STATFS_H
13790# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013791#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013792"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013793if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013794
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013795cat >>confdefs.h <<_ACEOF
13796#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013797_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013798
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013799
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013800fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013801ac_fn_c_check_member "$LINENO" "struct statfs" "f_bavail" "ac_cv_member_struct_statfs_f_bavail" "#include <sys/types.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013802#ifdef HAVE_SYS_PARAM_H
13803# include <sys/param.h>
13804#endif
Robert Millan55b74482006-02-06 21:53:27 +010013805#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013806# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013807#endif
13808#ifdef HAVE_SYS_VFS_H
13809# include <sys/vfs.h>
13810#endif
13811#ifdef HAVE_SYS_STATFS_H
13812# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013813#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013814"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013815if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
Patrik Stridvall09da9662001-07-08 22:30:50 +000013816
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013817cat >>confdefs.h <<_ACEOF
13818#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013819_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013820
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013821
Patrik Stridvall09da9662001-07-08 22:30:50 +000013822fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013823ac_fn_c_check_member "$LINENO" "struct statfs" "f_frsize" "ac_cv_member_struct_statfs_f_frsize" "#include <sys/types.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013824#ifdef HAVE_SYS_PARAM_H
13825# include <sys/param.h>
13826#endif
Robert Millan55b74482006-02-06 21:53:27 +010013827#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013828# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013829#endif
13830#ifdef HAVE_SYS_VFS_H
13831# include <sys/vfs.h>
13832#endif
13833#ifdef HAVE_SYS_STATFS_H
13834# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013835#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013836"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013837if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013838
13839cat >>confdefs.h <<_ACEOF
13840#define HAVE_STRUCT_STATFS_F_FRSIZE 1
13841_ACEOF
13842
13843
13844fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013845ac_fn_c_check_member "$LINENO" "struct statfs" "f_ffree" "ac_cv_member_struct_statfs_f_ffree" "#include <sys/types.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013846#ifdef HAVE_SYS_PARAM_H
13847# include <sys/param.h>
13848#endif
Robert Millan55b74482006-02-06 21:53:27 +010013849#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013850# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013851#endif
13852#ifdef HAVE_SYS_VFS_H
13853# include <sys/vfs.h>
13854#endif
13855#ifdef HAVE_SYS_STATFS_H
13856# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013857#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013858"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013859if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013860
13861cat >>confdefs.h <<_ACEOF
13862#define HAVE_STRUCT_STATFS_F_FFREE 1
13863_ACEOF
13864
13865
13866fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013867ac_fn_c_check_member "$LINENO" "struct statfs" "f_favail" "ac_cv_member_struct_statfs_f_favail" "#include <sys/types.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013868#ifdef HAVE_SYS_PARAM_H
13869# include <sys/param.h>
13870#endif
Robert Millan55b74482006-02-06 21:53:27 +010013871#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013872# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013873#endif
13874#ifdef HAVE_SYS_VFS_H
13875# include <sys/vfs.h>
13876#endif
13877#ifdef HAVE_SYS_STATFS_H
13878# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013879#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013880"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013881if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013882
13883cat >>confdefs.h <<_ACEOF
13884#define HAVE_STRUCT_STATFS_F_FAVAIL 1
13885_ACEOF
13886
13887
13888fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013889ac_fn_c_check_member "$LINENO" "struct statfs" "f_namelen" "ac_cv_member_struct_statfs_f_namelen" "#include <sys/types.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000013890#ifdef HAVE_SYS_PARAM_H
13891# include <sys/param.h>
13892#endif
Robert Millan55b74482006-02-06 21:53:27 +010013893#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000013894# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013895#endif
13896#ifdef HAVE_SYS_VFS_H
13897# include <sys/vfs.h>
13898#endif
13899#ifdef HAVE_SYS_STATFS_H
13900# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000013901#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013902"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013903if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
Alexandre Julliardb859a682004-03-07 03:16:43 +000013904
13905cat >>confdefs.h <<_ACEOF
13906#define HAVE_STRUCT_STATFS_F_NAMELEN 1
13907_ACEOF
13908
13909
13910fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000013911
13912
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013913ac_fn_c_check_member "$LINENO" "struct statvfs" "f_blocks" "ac_cv_member_struct_statvfs_f_blocks" "#ifdef HAVE_SYS_STATVFS_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013914#include <sys/statvfs.h>
13915#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013916"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013917if test "x$ac_cv_member_struct_statvfs_f_blocks" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013918
13919cat >>confdefs.h <<_ACEOF
13920#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13921_ACEOF
13922
13923
13924fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000013925
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013926
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013927ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_accrights" "ac_cv_member_struct_msghdr_msg_accrights" "#include <sys/types.h>
Patrik Stridvall63ae7fe2002-11-08 19:34:52 +000013928#ifdef HAVE_SYS_SOCKET_H
13929# include <sys/socket.h>
13930#endif
13931#ifdef HAVE_SYS_UN_H
13932# include <sys/un.h>
13933#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013934"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013935if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
Juergen Lock2d33ab92000-02-13 16:03:29 +000013936
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013937cat >>confdefs.h <<_ACEOF
13938#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013939_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013940
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013941
13942fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013943ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013944#ifdef HAVE_SYS_SOCKET_H
13945# include <sys/socket.h>
13946#endif
13947#ifdef HAVE_SYS_UN_H
13948# include <sys/un.h>
13949#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013950"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013951if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013952
13953cat >>confdefs.h <<_ACEOF
13954#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13955_ACEOF
13956
13957
13958fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013959ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_len" "ac_cv_member_struct_sockaddr_un_sun_len" "#include <sys/types.h>
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013960#ifdef HAVE_SYS_SOCKET_H
13961# include <sys/socket.h>
13962#endif
13963#ifdef HAVE_SYS_UN_H
13964# include <sys/un.h>
13965#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013966"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013967if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013968
13969cat >>confdefs.h <<_ACEOF
13970#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13971_ACEOF
13972
13973
Juergen Lock2d33ab92000-02-13 16:03:29 +000013974fi
13975
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013976
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013977ac_fn_c_check_member "$LINENO" "scsireq_t" "cmd" "ac_cv_member_scsireq_t_cmd" "#include <sys/types.h>
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013978#ifdef HAVE_SCSI_SG_H
13979#include <scsi/sg.h>
13980#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013981"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013982if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013983
13984cat >>confdefs.h <<_ACEOF
13985#define HAVE_SCSIREQ_T_CMD 1
13986_ACEOF
13987
13988
13989fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013990ac_fn_c_check_member "$LINENO" "sg_io_hdr_t" "interface_id" "ac_cv_member_sg_io_hdr_t_interface_id" "#include <sys/types.h>
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013991#ifdef HAVE_SCSI_SG_H
13992#include <scsi/sg.h>
13993#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013994"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013995if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013996
13997cat >>confdefs.h <<_ACEOF
13998#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13999_ACEOF
14000
14001
14002fi
14003
14004
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014005ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
14006"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014007if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000014008
14009cat >>confdefs.h <<_ACEOF
14010#define HAVE_SIGINFO_T_SI_FD 1
14011_ACEOF
14012
14013
14014fi
14015
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014016
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014017ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blksiz" "ac_cv_member_struct_mtget_mt_blksiz" "#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010014018#ifdef HAVE_SYS_MTIO_H
14019#include <sys/mtio.h>
14020#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014021"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014022if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010014023
14024cat >>confdefs.h <<_ACEOF
14025#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
14026_ACEOF
14027
14028
14029fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014030ac_fn_c_check_member "$LINENO" "struct mtget" "mt_gstat" "ac_cv_member_struct_mtget_mt_gstat" "#include <sys/types.h>
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010014031#ifdef HAVE_SYS_MTIO_H
14032#include <sys/mtio.h>
14033#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014034"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014035if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010014036
14037cat >>confdefs.h <<_ACEOF
14038#define HAVE_STRUCT_MTGET_MT_GSTAT 1
14039_ACEOF
14040
14041
14042fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014043ac_fn_c_check_member "$LINENO" "struct mtget" "mt_blkno" "ac_cv_member_struct_mtget_mt_blkno" "#include <sys/types.h>
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010014044#ifdef HAVE_SYS_MTIO_H
14045#include <sys/mtio.h>
14046#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014047"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014048if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010014049
14050cat >>confdefs.h <<_ACEOF
14051#define HAVE_STRUCT_MTGET_MT_BLKNO 1
14052_ACEOF
14053
14054
14055fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010014056
14057
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014058ac_fn_c_check_member "$LINENO" "struct option" "name" "ac_cv_member_struct_option_name" "#ifdef HAVE_GETOPT_H
Alexandre Julliarddb89a542003-04-20 02:56:14 +000014059#include <getopt.h>
14060#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014061"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014062if test "x$ac_cv_member_struct_option_name" = xyes; then :
Alexandre Julliarddb89a542003-04-20 02:56:14 +000014063
14064cat >>confdefs.h <<_ACEOF
14065#define HAVE_STRUCT_OPTION_NAME 1
14066_ACEOF
14067
14068
14069fi
14070
14071
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014072ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014073if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
Pavel Roskind6507192003-10-03 03:28:40 +000014074
14075cat >>confdefs.h <<_ACEOF
14076#define HAVE_STRUCT_STAT_ST_BLOCKS 1
14077_ACEOF
14078
14079
14080fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014081ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014082if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020014083
14084cat >>confdefs.h <<_ACEOF
14085#define HAVE_STRUCT_STAT_ST_MTIM 1
14086_ACEOF
14087
14088
14089fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014090ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014091if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020014092
14093cat >>confdefs.h <<_ACEOF
14094#define HAVE_STRUCT_STAT_ST_CTIM 1
14095_ACEOF
14096
14097
14098fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014099ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014100if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020014101
14102cat >>confdefs.h <<_ACEOF
14103#define HAVE_STRUCT_STAT_ST_ATIM 1
14104_ACEOF
14105
14106
14107fi
Pavel Roskind6507192003-10-03 03:28:40 +000014108
14109
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014110ac_fn_c_check_member "$LINENO" "struct sockaddr_in6" "sin6_scope_id" "ac_cv_member_struct_sockaddr_in6_sin6_scope_id" "#ifdef HAVE_SYS_TYPES_H
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030014111#include <sys/types.h>
14112#endif
14113#ifdef HAVE_NETINET_IN_H
14114#include <netinet/in.h>
14115#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014116"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014117if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030014118
14119cat >>confdefs.h <<_ACEOF
14120#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14121_ACEOF
14122
14123
14124fi
14125
14126
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014127ac_fn_c_check_member "$LINENO" "ns_msg" "_msg_ptr" "ac_cv_member_ns_msg__msg_ptr" "#ifdef HAVE_SYS_TYPES_H
Alexandre Julliard788e30f2006-05-31 14:43:21 +020014128#include <sys/types.h>
14129#endif
14130#ifdef HAVE_NETINET_IN_H
14131# include <netinet/in.h>
14132#endif
14133#ifdef HAVE_ARPA_NAMESER_H
14134# include <arpa/nameser.h>
14135#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014136"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014137if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
Alexandre Julliard788e30f2006-05-31 14:43:21 +020014138
14139cat >>confdefs.h <<_ACEOF
14140#define HAVE_NS_MSG__MSG_PTR 1
14141_ACEOF
14142
14143
14144fi
14145
14146
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014147ac_fn_c_check_member "$LINENO" "struct icmpstat" "icps_outhist" "ac_cv_member_struct_icmpstat_icps_outhist" "#ifdef HAVE_SYS_TYPES_H
Austin Englishac0252d2009-01-30 10:18:10 -060014148#include <sys/types.h>
14149#endif
14150#ifdef HAVE_ALIAS_H
14151#include <alias.h>
14152#endif
14153#ifdef HAVE_SYS_SOCKET_H
14154#include <sys/socket.h>
14155#endif
14156#ifdef HAVE_SYS_SOCKETVAR_H
14157#include <sys/socketvar.h>
14158#endif
14159#ifdef HAVE_SYS_TIMEOUT_H
14160#include <sys/timeout.h>
14161#endif
14162#ifdef HAVE_NETINET_IN_H
14163#include <netinet/in.h>
14164#endif
14165#ifdef HAVE_NETINET_IN_SYSTM_H
14166#include <netinet/in_systm.h>
14167#endif
14168#ifdef HAVE_NETINET_IP_H
14169#include <netinet/ip.h>
14170#endif
14171#ifdef HAVE_NETINET_IP_VAR_H
14172#include <netinet/ip_var.h>
14173#endif
14174#ifdef HAVE_NETINET_IP_ICMP_H
14175#include <netinet/ip_icmp.h>
14176#endif
14177#ifdef HAVE_NETINET_ICMP_VAR
14178#include <netinet/icmp_var.h>
14179#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014180"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014181if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
Austin Englishac0252d2009-01-30 10:18:10 -060014182
14183cat >>confdefs.h <<_ACEOF
14184#define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14185_ACEOF
14186
14187
14188fi
14189
14190
Juan Lang984c3b22010-03-12 10:38:46 -080014191ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14192#include <sys/types.h>
14193#endif
14194#ifdef HAVE_NET_IF_H
14195# include <net/if.h>
14196#endif
14197"
Alexandre Julliard9797da42011-04-27 17:37:43 +020014198if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
Juan Lang984c3b22010-03-12 10:38:46 -080014199
14200cat >>confdefs.h <<_ACEOF
14201#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14202_ACEOF
14203
14204
14205fi
14206
14207
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014209$as_echo_n "checking for timezone variable... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014210if ${ac_cv_have_timezone+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014211 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000014212else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014214/* end confdefs.h. */
14215#include <time.h>
14216int
14217main ()
14218{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020014219timezone = 1
Phil Krylov6618b032005-05-24 11:52:46 +000014220 ;
14221 return 0;
14222}
14223_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014224if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000014225 ac_cv_have_timezone="yes"
14226else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014227 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000014228fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014229rm -f core conftest.err conftest.$ac_objext \
14230 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014231fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014233$as_echo "$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000014234if test "$ac_cv_have_timezone" = "yes"
14235then
14236
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014237$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000014238
14239fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014241$as_echo_n "checking for daylight variable... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014242if ${ac_cv_have_daylight+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014243 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000014244else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014246/* end confdefs.h. */
14247#include <time.h>
14248int
14249main ()
14250{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020014251daylight = 1
Phil Krylov6618b032005-05-24 11:52:46 +000014252 ;
14253 return 0;
14254}
14255_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014256if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000014257 ac_cv_have_daylight="yes"
14258else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014259 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000014260fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014261rm -f core conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014263fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014265$as_echo "$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000014266if test "$ac_cv_have_daylight" = "yes"
14267then
14268
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014269$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000014270
14271fi
14272
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014274$as_echo_n "checking for isinf... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014275if ${ac_cv_have_isinf+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014276 $as_echo_n "(cached) " >&6
Petr Sumbera4992b652008-04-29 17:08:53 +020014277else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020014279/* end confdefs.h. */
14280#include <math.h>
14281int
14282main ()
14283{
Francois Gouget2fef93a2008-06-26 15:59:05 +020014284float f = 0.0; int i=isinf(f)
Petr Sumbera4992b652008-04-29 17:08:53 +020014285 ;
14286 return 0;
14287}
14288_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014289if ac_fn_c_try_link "$LINENO"; then :
Petr Sumbera4992b652008-04-29 17:08:53 +020014290 ac_cv_have_isinf="yes"
14291else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014292 ac_cv_have_isinf="no"
Petr Sumbera4992b652008-04-29 17:08:53 +020014293fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014294rm -f core conftest.err conftest.$ac_objext \
14295 conftest$ac_exeext conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020014296fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014298$as_echo "$ac_cv_have_isinf" >&6; }
Petr Sumbera4992b652008-04-29 17:08:53 +020014299if test "$ac_cv_have_isinf" = "yes"
14300then
14301
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014302$as_echo "#define HAVE_ISINF 1" >>confdefs.h
Petr Sumbera4992b652008-04-29 17:08:53 +020014303
14304fi
14305
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014307$as_echo_n "checking for isnan... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014308if ${ac_cv_have_isnan+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014309 $as_echo_n "(cached) " >&6
Jacek Caban1715dcb2008-10-14 16:06:49 -050014310else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050014312/* end confdefs.h. */
14313#include <math.h>
14314int
14315main ()
14316{
14317float f = 0.0; int i=isnan(f)
14318 ;
14319 return 0;
14320}
14321_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014322if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban1715dcb2008-10-14 16:06:49 -050014323 ac_cv_have_isnan="yes"
14324else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014325 ac_cv_have_isnan="no"
Jacek Caban1715dcb2008-10-14 16:06:49 -050014326fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014327rm -f core conftest.err conftest.$ac_objext \
14328 conftest$ac_exeext conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050014329fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014331$as_echo "$ac_cv_have_isnan" >&6; }
Jacek Caban1715dcb2008-10-14 16:06:49 -050014332if test "$ac_cv_have_isnan" = "yes"
14333then
14334
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014335$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
Jacek Caban1715dcb2008-10-14 16:06:49 -050014336
14337fi
14338
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014339
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014340case $host_cpu in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014341 *i[3456789]86*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __i386__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014342$as_echo_n "checking whether we need to define __i386__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014343if ${ac_cv_cpp_def___i386__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014344 $as_echo_n "(cached) " >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000014345else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014347/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014348#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014349yes
14350#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014351_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014352if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014353 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014354 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014355else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014356 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014357fi
14358rm -f conftest*
14359
14360fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014362$as_echo "$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014363if test $ac_cv_cpp_def___i386__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014364 CFLAGS="$CFLAGS -D__i386__"
14365 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014366fi ;;
14367 *x86_64*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __x86_64__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014368$as_echo_n "checking whether we need to define __x86_64__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014369if ${ac_cv_cpp_def___x86_64__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014370 $as_echo_n "(cached) " >&6
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014371else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014373/* end confdefs.h. */
14374#ifndef __x86_64__
14375yes
14376#endif
14377_ACEOF
14378if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014379 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014380 ac_cv_cpp_def___x86_64__=yes
14381else
14382 ac_cv_cpp_def___x86_64__=no
14383fi
14384rm -f conftest*
14385
14386fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014388$as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014389if test $ac_cv_cpp_def___x86_64__ = yes; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014390 CFLAGS="$CFLAGS -D__x86_64__"
14391 LINTFLAGS="$LINTFLAGS -D__x86_64__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014392fi ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014393 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014394$as_echo_n "checking whether we need to define __sparc__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014395if ${ac_cv_cpp_def___sparc__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014396 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014397else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014399/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014400#ifndef __sparc__
14401yes
14402#endif
14403_ACEOF
14404if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014405 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014406 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014407else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014408 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014409fi
14410rm -f conftest*
14411
14412fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014414$as_echo "$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014415if test $ac_cv_cpp_def___sparc__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014416 CFLAGS="$CFLAGS -D__sparc__"
14417 LINTFLAGS="$LINTFLAGS -D__sparc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014418fi ;;
14419 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014420$as_echo_n "checking whether we need to define __powerpc__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014421if ${ac_cv_cpp_def___powerpc__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014422 $as_echo_n "(cached) " >&6
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014423else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014425/* end confdefs.h. */
14426#ifndef __powerpc__
14427yes
14428#endif
14429_ACEOF
14430if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014431 $EGREP "yes" >/dev/null 2>&1; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014432 ac_cv_cpp_def___powerpc__=yes
14433else
14434 ac_cv_cpp_def___powerpc__=no
14435fi
14436rm -f conftest*
14437
14438fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014440$as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014441if test $ac_cv_cpp_def___powerpc__ = yes; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014442 CFLAGS="$CFLAGS -D__powerpc__"
14443 LINTFLAGS="$LINTFLAGS -D__powerpc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014444fi ;;
André Hentschel50ada0f2011-04-19 19:37:05 +020014445 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14446$as_echo_n "checking whether we need to define __arm__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014447if ${ac_cv_cpp_def___arm__+:} false; then :
André Hentschel50ada0f2011-04-19 19:37:05 +020014448 $as_echo_n "(cached) " >&6
14449else
14450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451/* end confdefs.h. */
14452#ifndef __arm__
14453yes
14454#endif
14455_ACEOF
14456if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14457 $EGREP "yes" >/dev/null 2>&1; then :
14458 ac_cv_cpp_def___arm__=yes
14459else
14460 ac_cv_cpp_def___arm__=no
14461fi
14462rm -f conftest*
14463
14464fi
14465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14466$as_echo "$ac_cv_cpp_def___arm__" >&6; }
14467if test $ac_cv_cpp_def___arm__ = yes; then :
14468 CFLAGS="$CFLAGS -D__arm__"
14469 LINTFLAGS="$LINTFLAGS -D__arm__"
14470fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014471esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014472
14473case $host_vendor in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014474 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014475$as_echo_n "checking whether we need to define __sun__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014476if ${ac_cv_cpp_def___sun__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014477 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014478else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014480/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014481#ifndef __sun__
14482yes
14483#endif
14484_ACEOF
14485if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014486 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014487 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014488else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014489 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014490fi
14491rm -f conftest*
14492
14493fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014495$as_echo "$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014496if test $ac_cv_cpp_def___sun__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014497 CFLAGS="$CFLAGS -D__sun__"
14498 LINTFLAGS="$LINTFLAGS -D__sun__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014499fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014500esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014501
14502
Alexandre Julliarda360e932008-08-20 16:02:37 +020014503
Alexandre Julliard7d831152010-03-20 15:07:45 +010014504
Alexandre Julliard6c142382010-04-11 12:47:30 +020014505
Alexandre Julliard7d831152010-03-20 15:07:45 +010014506ac_config_commands="$ac_config_commands include/stamp-h"
14507
Alexandre Julliard03642412010-03-20 15:24:22 +010014508
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014509ALL_MAKEFILE_DEPENDS="
14510# Rules automatically generated by configure
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014511
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014512.INIT: Makefile
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014513.MAKEFILEDEPS:
Alexandre Julliardbd3110d2010-05-23 10:34:36 +020014514all: Makefile
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020014515Makefile: Makefile.in Make.vars.in Make.rules config.status
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014516 @./config.status Make.tmp Makefile"
Alexandre Julliarda360e932008-08-20 16:02:37 +020014517
Alexandre Julliard367fd222011-01-04 17:05:21 +010014518ALL_POT_FILES=""
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014519ALL_TEST_RESOURCES=""
Alexandre Julliard454fb3c2010-02-08 21:29:13 +010014520
Alexandre Julliard49163da2008-08-25 12:02:27 +020014521
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014522wine_fn_append_file ()
14523{
14524 as_fn_append $1 " \\$as_nl $2"
14525}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014526
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014527wine_fn_append_rule ()
14528{
14529 as_fn_append $1 "$as_nl$2"
14530}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014531
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014532wine_fn_has_flag ()
14533{
14534 expr ",$2," : ".*,$1,.*" >/dev/null
14535}
14536
Alexandre Julliard943cd732010-03-25 21:52:56 +010014537wine_fn_all_dir_rules ()
14538{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014539 ac_dir=$1
14540 ac_alldeps=$2
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014541 ac_makedep="\$(MAKEDEP)"
14542 ac_input=Make.vars.in:$ac_dir/Makefile.in
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014543 if test $ac_dir != tools
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014544 then
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014545 ac_alldeps="$2 $ac_makedep"
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014546 fi
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014547 case $2 in
14548 *.in) ac_input=$ac_input:$2 ;;
14549 *) ac_makedep="$2 $ac_makedep" ;;
14550 esac
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014551
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014552 wine_fn_append_file ALL_DIRS $ac_dir
Alexandre Julliard943cd732010-03-25 21:52:56 +010014553 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014554"__clean__: $ac_dir/__clean__
14555.PHONY: $ac_dir/__clean__
14556$ac_dir/__clean__: $ac_dir/Makefile
14557 @cd $ac_dir && \$(MAKE) clean
14558 \$(RM) $ac_dir/Makefile
14559$ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014560 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014561depend: $ac_dir/__depend__
14562.PHONY: $ac_dir/__depend__
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014563$ac_dir/__depend__: $ac_makedep dummy
14564 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
Alexandre Julliard943cd732010-03-25 21:52:56 +010014565}
14566
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014567wine_fn_config_makefile ()
14568{
14569 ac_dir=$1
Alexandre Julliard03642412010-03-20 15:24:22 +010014570 ac_enable=$2
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014571 ac_flags=$3
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014572 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014573 return 0
14574fi
Alexandre Julliard03642412010-03-20 15:24:22 +010014575
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014576 wine_fn_all_dir_rules $ac_dir Make.rules
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014577 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014578"all: $ac_dir
14579.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014580$ac_dir: $ac_dir/Makefile dummy
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014581 @cd $ac_dir && \$(MAKE)"
14582
14583 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14584
14585 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14586"install:: $ac_dir
Alexandre Julliarde84063b2010-03-25 21:46:41 +010014587 @cd $ac_dir && \$(MAKE) install
Alexandre Julliarde84063b2010-03-25 21:46:41 +010014588uninstall:: $ac_dir/Makefile
14589 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014590
14591 if wine_fn_has_flag install-lib $ac_flags
14592 then
14593 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14594"install-lib:: $ac_dir
14595 @cd $ac_dir && \$(MAKE) install-lib"
14596 fi
14597
14598 if wine_fn_has_flag install-dev $ac_flags
14599 then
14600 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14601"install-dev:: $ac_dir
14602 @cd $ac_dir && \$(MAKE) install-dev"
14603 fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014604}
14605
14606wine_fn_config_lib ()
14607{
14608 ac_name=$1
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014609 ac_flags=$2
Alexandre Julliardb8fb1d52010-03-20 14:50:53 +010014610 ac_dir=dlls/$ac_name
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014611 wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014612 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014613"all __builddeps__: $ac_dir
Alexandre Julliard7d2e7722010-07-26 12:13:47 +020014614$ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014615 @cd $ac_dir && \$(MAKE)
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014616install install-dev:: $ac_dir
14617 @cd $ac_dir && \$(MAKE) install
14618uninstall:: $ac_dir/Makefile
14619 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014620}
14621
Alexandre Julliard50231942010-03-16 22:00:02 +010014622wine_fn_config_dll ()
14623{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014624 ac_name=$1
14625 ac_dir=dlls/$ac_name
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014626 ac_enable=$2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014627 ac_flags=$3
Alexandre Julliard1858f432010-12-29 14:10:47 +010014628 ac_implib=${4:-$ac_name}
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014629 ac_file=$ac_dir/lib$ac_implib
Alexandre Julliard50231942010-03-16 22:00:02 +010014630 ac_deps="tools/widl tools/winebuild tools/winegcc include"
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014631 ac_implibflags=""
14632
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014633 case $ac_name in
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014634 *16) ac_implibflags=" -m16" ;;
14635 esac
Alexandre Julliard50231942010-03-16 22:00:02 +010014636
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014637 wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014638
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014639 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014640 test "$ac_enable" != enable_win16 || return 0
14641else
Alexandre Julliard60a05ad2010-03-25 12:05:44 +010014642 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014643"all: $ac_dir
14644.PHONY: $ac_dir
14645$ac_dir: $ac_dir/Makefile __builddeps__ dummy
14646 @cd $ac_dir && \$(MAKE)
14647install:: $ac_dir/Makefile __builddeps__
14648 @cd $ac_dir && \$(MAKE) install
14649install-lib:: $ac_dir/Makefile __builddeps__
14650 @cd $ac_dir && \$(MAKE) install-lib
14651uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14652 @cd $ac_dir && \$(MAKE) \$@"
Alexandre Julliard367fd222011-01-04 17:05:21 +010014653
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014654 if test "x$enable_maintainer_mode" = xyes
Alexandre Julliard367fd222011-01-04 17:05:21 +010014655 then
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014656 if wine_fn_has_flag mc $ac_flags
14657 then
14658 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14659 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14660"$ac_dir/msg.pot: $ac_dir"
14661 fi
14662 if wine_fn_has_flag po $ac_flags
14663 then
14664 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14665 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard367fd222011-01-04 17:05:21 +010014666"$ac_dir/rsrc.pot: $ac_dir"
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014667 fi
Alexandre Julliard367fd222011-01-04 17:05:21 +010014668 fi
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014669fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014670
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014671 if wine_fn_has_flag staticimplib $ac_flags
Alexandre Julliard50231942010-03-16 22:00:02 +010014672 then
14673 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014674"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014675$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014676$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14677 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14678$ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14679 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14680install-dev:: $ac_dir/Makefile __builddeps__
14681 @cd $ac_dir && \$(MAKE) install-dev"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014682 if test "x$CROSSTEST_DISABLE" = x
14683 then
14684 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14685"__builddeps__: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014686$ac_file.cross.a: $ac_dir/Makefile dummy
14687 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014688 fi
14689
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014690 elif wine_fn_has_flag implib $ac_flags
Alexandre Julliard50231942010-03-16 22:00:02 +010014691 then
14692 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014693"__builddeps__: $ac_file.$IMPLIBEXT
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014694$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14695 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14696$ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14697 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14698install-dev:: $ac_dir/Makefile __builddeps__
14699 @cd $ac_dir && \$(MAKE) install-dev"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014700 if test "x$CROSSTEST_DISABLE" = x
14701 then
14702 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14703"__builddeps__: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014704$ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14705 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014706 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014707
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014708 if test "$ac_name" != "$ac_implib"
Alexandre Julliard50231942010-03-16 22:00:02 +010014709 then
14710 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014711"__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014712dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014713 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
Alexandre Julliard50231942010-03-16 22:00:02 +010014714clean::
14715 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014716 if test "x$CROSSTEST_DISABLE" = x
14717 then
14718 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14719"__builddeps__: dlls/lib$ac_implib.cross.a
14720dlls/lib$ac_implib.cross.a: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014721 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014722 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014723 fi
14724 fi
14725}
14726
14727wine_fn_config_program ()
14728{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014729 ac_name=$1
14730 ac_dir=programs/$ac_name
Alexandre Julliardd394e042010-03-20 14:53:39 +010014731 ac_enable=$2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014732 ac_flags=$3
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014733 wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014734
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014735 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliardd394e042010-03-20 14:53:39 +010014736
14737else
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014738 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014739"all: $ac_dir
14740.PHONY: $ac_dir
14741$ac_dir: $ac_dir/Makefile __builddeps__ dummy
14742 @cd $ac_dir && \$(MAKE)"
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014743
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014744 if test "x$enable_maintainer_mode" = xyes
Alexandre Julliard367fd222011-01-04 17:05:21 +010014745 then
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014746 if wine_fn_has_flag mc $ac_flags
14747 then
14748 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14749 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14750"$ac_dir/msg.pot: $ac_dir"
14751 fi
14752 if wine_fn_has_flag po $ac_flags
14753 then
14754 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14755 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard367fd222011-01-04 17:05:21 +010014756"$ac_dir/rsrc.pot: $ac_dir"
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014757 fi
Alexandre Julliard367fd222011-01-04 17:05:21 +010014758 fi
14759
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014760 wine_fn_has_flag install $ac_flags || return
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014761 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014762"install install-lib:: $ac_dir/Makefile __builddeps__
14763 @cd $ac_dir && \$(MAKE) install
14764uninstall:: $ac_dir/Makefile
14765 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliardc1e29582011-01-03 18:28:27 +010014766 if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014767 then
14768 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard718ea422010-03-26 09:29:10 +010014769"install install-lib:: tools \$(DESTDIR)\$(bindir)
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014770 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014771uninstall::
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014772 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014773 fi
Alexandre Julliardd394e042010-03-20 14:53:39 +010014774fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014775}
14776
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014777wine_fn_config_test ()
14778{
14779 ac_dir=$1
14780 ac_name=$2
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014781 ac_flags=$3
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014782 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014783 wine_fn_all_dir_rules $ac_dir Maketest.rules
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014784
Alexandre Julliard9797da42011-04-27 17:37:43 +020014785 if test "x$enable_tests" = xno; then :
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014786
14787else
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014788 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014789"all: $ac_dir
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014790.PHONY: $ac_dir
Alexandre Julliarddbbed382011-05-26 12:04:45 +020014791$ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014792 @cd $ac_dir && \$(MAKE)
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014793programs/winetest: $ac_dir
Alexandre Julliarde4eff852011-05-22 13:15:03 +020014794check test: $ac_dir/__test__
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014795.PHONY: $ac_dir/__test__
Alexandre Julliardeab7efd2010-03-25 21:42:54 +010014796$ac_dir/__test__: dummy
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014797 @cd $ac_dir && \$(MAKE) test
14798testclean::
14799 \$(RM) $ac_dir/*.ok"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014800
14801 if test "x$CROSSTEST_DISABLE" = x
14802 then
14803 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14804"crosstest: $ac_dir/__crosstest__
14805.PHONY: $ac_dir/__crosstest__
14806$ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14807 @cd $ac_dir && \$(MAKE) crosstest"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014808 fi
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014809fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014810}
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014811
14812wine_fn_config_tool ()
14813{
14814 ac_dir=$1
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014815 ac_flags=$2
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014816 if test "x$enable_tools" = xno; then :
14817 return 0
14818fi
14819
Alexandre Julliard49c31e32011-06-12 12:13:17 +020014820 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014821
Alexandre Julliard49c31e32011-06-12 12:13:17 +020014822 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14823 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014824 case $ac_dir in
14825 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14826 esac
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014827}
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014828
14829wine_fn_config_makerules ()
14830{
14831 ac_rules=$1
14832 ac_deps=$2
14833 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14834"$ac_rules: $ac_rules.in $ac_deps config.status
14835 @./config.status $ac_rules
14836distclean::
14837 \$(RM) $ac_rules"
14838}
14839
14840wine_fn_config_symlink ()
14841{
14842 ac_link=$1
14843 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14844"$ac_link:
14845 @./config.status $ac_link
14846distclean::
14847 \$(RM) $ac_link"
14848}
Alexandre Julliarda070f9b2010-07-26 20:53:12 +020014849
14850if test "x$CROSSTEST_DISABLE" != x
14851then
14852 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14853"crosstest:
14854 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14855fi
Alexandre Julliard40977bf2010-11-11 12:24:46 +010014856ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14857wine_fn_config_symlink dlls/shell32/AUTHORS
Alexandre Julliarda6320522010-02-03 13:14:03 +010014858ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014859test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014860if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014861ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014862test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014863fi
14864if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014865ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014866test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014867fi
14868if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014869ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014870test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014871fi
14872if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014873ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014874test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014875fi
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014876if test "x$enable_tools" != xno; then
Alexandre Julliard321d3882010-05-06 20:51:53 +020014877ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14878test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014879fi
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014880ac_config_links="$ac_config_links wine:tools/winewrapper"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014881wine_fn_config_symlink wine
Alexandre Julliard4422d222011-05-10 13:26:28 +020014882if test "x$enable_win64" != xno; then
14883ac_config_links="$ac_config_links wine64:tools/winewrapper"
14884wine_fn_config_symlink wine64
14885fi
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014886
Huw Davies4cffb2d2011-04-01 15:27:48 +010014887ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14888
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014889ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014890
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014891ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014892
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020014893ac_config_commands="$ac_config_commands dlls/kernel32/nls"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014894
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010014895ac_config_commands="$ac_config_commands dlls/user32/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014896
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014897ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014898
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014899ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014900
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014901
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014902wine_fn_config_makerules Make.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014903MAKE_RULES=Make.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014904ac_config_files="$ac_config_files Make.rules"
14905
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014906wine_fn_config_makerules Maketest.rules Make.rules
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010014907MAKE_TEST_RULES=Maketest.rules
14908ac_config_files="$ac_config_files Maketest.rules"
14909
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014910wine_fn_config_makerules dlls/Makedll.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014911MAKE_DLL_RULES=dlls/Makedll.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014912ac_config_files="$ac_config_files dlls/Makedll.rules"
14913
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014914wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014915MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014916ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14917
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014918wine_fn_config_makerules programs/Makeprog.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014919MAKE_PROG_RULES=programs/Makeprog.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014920ac_config_files="$ac_config_files programs/Makeprog.rules"
14921
Alexandre Julliarda360e932008-08-20 16:02:37 +020014922
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014923wine_fn_config_dll acledit enable_acledit
Alexandre Julliard1858f432010-12-29 14:10:47 +010014924wine_fn_config_dll aclui enable_aclui implib
14925wine_fn_config_dll activeds enable_activeds implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014926wine_fn_config_dll actxprxy enable_actxprxy
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014927wine_fn_config_lib adsiid
Alexandre Julliard1858f432010-12-29 14:10:47 +010014928wine_fn_config_dll advapi32 enable_advapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014929wine_fn_config_test dlls/advapi32/tests advapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014930wine_fn_config_dll advpack enable_advpack implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014931wine_fn_config_test dlls/advpack/tests advpack_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014932wine_fn_config_dll amstream enable_amstream
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014933wine_fn_config_test dlls/amstream/tests amstream_test
Alexandre Julliard902f10c2011-01-13 15:16:02 +010014934wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014935wine_fn_config_dll atl enable_atl implib
Marcus Meissnerb3f04252010-06-15 11:04:33 +020014936wine_fn_config_test dlls/atl/tests atl_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014937wine_fn_config_dll authz enable_authz
Alexandre Julliard1858f432010-12-29 14:10:47 +010014938wine_fn_config_dll avicap32 enable_avicap32 implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014939wine_fn_config_dll avifil32 enable_avifil32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014940wine_fn_config_test dlls/avifil32/tests avifil32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014941wine_fn_config_dll avifile.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014942wine_fn_config_dll avrt enable_avrt implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014943wine_fn_config_dll bcrypt enable_bcrypt
Alexandre Julliard44479002011-01-11 12:56:17 +010014944wine_fn_config_dll browseui enable_browseui po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014945wine_fn_config_test dlls/browseui/tests browseui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014946wine_fn_config_dll cabinet enable_cabinet implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014947wine_fn_config_test dlls/cabinet/tests cabinet_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014948wine_fn_config_dll capi2032 enable_capi2032 implib
14949wine_fn_config_dll cards enable_cards implib
14950wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14951wine_fn_config_dll clusapi enable_clusapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014952wine_fn_config_dll comcat enable_comcat
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014953wine_fn_config_test dlls/comcat/tests comcat_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014954wine_fn_config_dll comctl32 enable_comctl32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014955wine_fn_config_test dlls/comctl32/tests comctl32_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014956wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014957wine_fn_config_test dlls/comdlg32/tests comdlg32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014958wine_fn_config_dll comm.drv16 enable_win16
14959wine_fn_config_dll commdlg.dll16 enable_win16
14960wine_fn_config_dll compobj.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014961wine_fn_config_dll compstui enable_compstui implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014962wine_fn_config_dll credui enable_credui implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014963wine_fn_config_test dlls/credui/tests credui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014964wine_fn_config_dll crtdll enable_crtdll implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014965wine_fn_config_dll crypt32 enable_crypt32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014966wine_fn_config_test dlls/crypt32/tests crypt32_test
Alexandre Julliard8484e962011-01-06 12:28:26 +010014967wine_fn_config_dll cryptdlg enable_cryptdlg po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014968wine_fn_config_dll cryptdll enable_cryptdll implib
14969wine_fn_config_dll cryptnet enable_cryptnet implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014970wine_fn_config_test dlls/cryptnet/tests cryptnet_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014971wine_fn_config_dll cryptui enable_cryptui implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014972wine_fn_config_test dlls/cryptui/tests cryptui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014973wine_fn_config_dll ctapi32 enable_ctapi32
14974wine_fn_config_dll ctl3d.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014975wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014976wine_fn_config_dll ctl3dv2.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014977wine_fn_config_dll d3d10 enable_d3d10 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014978wine_fn_config_test dlls/d3d10/tests d3d10_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014979wine_fn_config_dll d3d10core enable_d3d10core implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014980wine_fn_config_test dlls/d3d10core/tests d3d10core_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014981wine_fn_config_dll d3d8 enable_d3d8 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014982wine_fn_config_test dlls/d3d8/tests d3d8_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014983wine_fn_config_dll d3d9 enable_d3d9 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014984wine_fn_config_test dlls/d3d9/tests d3d9_test
Matteo Bruni0ac336f2010-07-29 01:53:54 +020014985wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
Matteo Bruni66d44992010-07-29 01:47:13 +020014986wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
Matteo Bruni8ea75832010-07-28 16:44:37 +020014987wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
Matteo Bruni458eb082010-07-28 16:37:28 +020014988wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
Matteo Bruni3c59b9c2010-07-28 16:22:11 +020014989wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
Matteo Brunifbf1e832010-07-28 16:13:40 +020014990wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
Matteo Bruni99491462010-07-28 04:31:18 +020014991wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
Matteo Brunifd4efcd2010-07-28 04:09:13 +020014992wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
Matteo Bruni79c1bc42010-08-03 18:44:25 +020014993wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
Matteo Brunife050702010-08-03 18:44:25 +020014994wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014995wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
Rico Schüller5ad7f7b2010-08-19 21:33:43 +020014996wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014997wine_fn_config_dll d3dim enable_d3dim implib
14998wine_fn_config_dll d3drm enable_d3drm implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014999wine_fn_config_test dlls/d3drm/tests d3drm_test
Owen Rudge9870c042010-08-18 16:02:22 -050015000wine_fn_config_dll d3dx10_33 enable_d3dx10_33
Owen Rudge49dbdc12010-08-18 16:02:20 -050015001wine_fn_config_dll d3dx10_34 enable_d3dx10_34
Owen Rudge955b8442010-08-18 16:02:18 -050015002wine_fn_config_dll d3dx10_35 enable_d3dx10_35
Owen Rudgef44830e2010-08-18 16:02:16 -050015003wine_fn_config_dll d3dx10_36 enable_d3dx10_36
Owen Rudge4196ba22010-08-18 16:02:10 -050015004wine_fn_config_dll d3dx10_37 enable_d3dx10_37
Owen Rudge199ff9b2010-08-18 16:02:08 -050015005wine_fn_config_dll d3dx10_38 enable_d3dx10_38
Owen Rudgefb8d7cd2010-08-18 16:02:06 -050015006wine_fn_config_dll d3dx10_39 enable_d3dx10_39
Owen Rudge662cbb12010-08-18 16:02:03 -050015007wine_fn_config_dll d3dx10_40 enable_d3dx10_40
Owen Rudge17591cc2010-08-18 16:01:59 -050015008wine_fn_config_dll d3dx10_41 enable_d3dx10_41
Owen Rudgee5d9e122010-08-18 16:01:57 -050015009wine_fn_config_dll d3dx10_42 enable_d3dx10_42
Owen Rudge3c5b2e62010-08-18 16:01:53 -050015010wine_fn_config_dll d3dx10_43 enable_d3dx10_43
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015011wine_fn_config_dll d3dx9_24 enable_d3dx9_24
15012wine_fn_config_dll d3dx9_25 enable_d3dx9_25
15013wine_fn_config_dll d3dx9_26 enable_d3dx9_26
15014wine_fn_config_dll d3dx9_27 enable_d3dx9_27
15015wine_fn_config_dll d3dx9_28 enable_d3dx9_28
15016wine_fn_config_dll d3dx9_29 enable_d3dx9_29
15017wine_fn_config_dll d3dx9_30 enable_d3dx9_30
15018wine_fn_config_dll d3dx9_31 enable_d3dx9_31
15019wine_fn_config_dll d3dx9_32 enable_d3dx9_32
15020wine_fn_config_dll d3dx9_33 enable_d3dx9_33
15021wine_fn_config_dll d3dx9_34 enable_d3dx9_34
15022wine_fn_config_dll d3dx9_35 enable_d3dx9_35
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015023wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015024wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015025wine_fn_config_dll d3dx9_37 enable_d3dx9_37
15026wine_fn_config_dll d3dx9_38 enable_d3dx9_38
15027wine_fn_config_dll d3dx9_39 enable_d3dx9_39
15028wine_fn_config_dll d3dx9_40 enable_d3dx9_40
15029wine_fn_config_dll d3dx9_41 enable_d3dx9_41
15030wine_fn_config_dll d3dx9_42 enable_d3dx9_42
Matteo Bruni90c615a2010-08-25 17:12:51 +020015031wine_fn_config_dll d3dx9_43 enable_d3dx9_43
Alexandre Julliard1858f432010-12-29 14:10:47 +010015032wine_fn_config_dll d3dxof enable_d3dxof implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015033wine_fn_config_test dlls/d3dxof/tests d3dxof_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015034wine_fn_config_dll dbgeng enable_dbgeng implib
15035wine_fn_config_dll dbghelp enable_dbghelp implib
15036wine_fn_config_dll dciman32 enable_dciman32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015037wine_fn_config_dll ddeml.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015038wine_fn_config_dll ddraw enable_ddraw implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015039wine_fn_config_test dlls/ddraw/tests ddraw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015040wine_fn_config_dll ddrawex enable_ddrawex
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015041wine_fn_config_test dlls/ddrawex/tests ddrawex_test
Alexandre Julliard0cdd1472011-01-06 12:37:11 +010015042wine_fn_config_dll devenum enable_devenum po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015043wine_fn_config_dll dinput enable_dinput implib,staticimplib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015044wine_fn_config_test dlls/dinput/tests dinput_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015045wine_fn_config_dll dinput8 enable_dinput8 implib
Lucas Fialho Zawacki1fbf8572011-04-29 19:29:19 -030015046wine_fn_config_test dlls/dinput8/tests dinput8_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015047wine_fn_config_dll dispdib.dll16 enable_win16
15048wine_fn_config_dll dispex enable_dispex
Huw Daviesdf075612010-03-19 13:34:53 +000015049wine_fn_config_test dlls/dispex/tests dispex_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015050wine_fn_config_dll display.drv16 enable_win16
15051wine_fn_config_dll dmband enable_dmband
15052wine_fn_config_dll dmcompos enable_dmcompos
15053wine_fn_config_dll dmime enable_dmime
Austin Lund203272e2010-08-06 17:50:49 +100015054wine_fn_config_test dlls/dmime/tests dmime_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015055wine_fn_config_dll dmloader enable_dmloader
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015056wine_fn_config_test dlls/dmloader/tests dmloader_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015057wine_fn_config_dll dmscript enable_dmscript
15058wine_fn_config_dll dmstyle enable_dmstyle
15059wine_fn_config_dll dmsynth enable_dmsynth
15060wine_fn_config_dll dmusic enable_dmusic
Alexandre Julliard1858f432010-12-29 14:10:47 +010015061wine_fn_config_dll dmusic32 enable_dmusic32 implib
15062wine_fn_config_dll dnsapi enable_dnsapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015063wine_fn_config_test dlls/dnsapi/tests dnsapi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015064wine_fn_config_dll dplay enable_dplay implib
15065wine_fn_config_dll dplayx enable_dplayx implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015066wine_fn_config_test dlls/dplayx/tests dplayx_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015067wine_fn_config_dll dpnaddr enable_dpnaddr
Alexandre Julliard1858f432010-12-29 14:10:47 +010015068wine_fn_config_dll dpnet enable_dpnet implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015069wine_fn_config_dll dpnhpast enable_dpnhpast
15070wine_fn_config_dll dpnlobby enable_dpnlobby
15071wine_fn_config_dll dpwsockx enable_dpwsockx
15072wine_fn_config_dll drmclien enable_drmclien
Alexandre Julliard1858f432010-12-29 14:10:47 +010015073wine_fn_config_dll dsound enable_dsound implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015074wine_fn_config_test dlls/dsound/tests dsound_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015075wine_fn_config_dll dssenh enable_dssenh
15076wine_fn_config_dll dswave enable_dswave
Alexandre Julliard1858f432010-12-29 14:10:47 +010015077wine_fn_config_dll dwmapi enable_dwmapi implib
Andrew Nguyenf9c8e462011-04-03 20:55:32 -050015078wine_fn_config_dll dxdiagn enable_dxdiagn po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015079wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015080wine_fn_config_lib dxerr8
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015081wine_fn_config_lib dxerr9
Alexandre Julliard1858f432010-12-29 14:10:47 +010015082wine_fn_config_dll dxgi enable_dxgi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015083wine_fn_config_test dlls/dxgi/tests dxgi_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015084wine_fn_config_lib dxguid
David Hedberge2cf9ad2010-07-31 20:02:45 +020015085wine_fn_config_dll explorerframe enable_explorerframe
David Hedberg87212d52010-07-31 20:02:49 +020015086wine_fn_config_test dlls/explorerframe/tests explorerframe_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015087wine_fn_config_dll faultrep enable_faultrep implib
Detlef Riekenberg53fca112010-10-26 10:11:13 +020015088wine_fn_config_test dlls/faultrep/tests faultrep_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015089wine_fn_config_dll fltlib enable_fltlib
15090wine_fn_config_dll fusion enable_fusion
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015091wine_fn_config_test dlls/fusion/tests fusion_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015092wine_fn_config_dll fwpuclnt enable_fwpuclnt
Mariusz Plucińskib3a9ce42010-07-22 23:59:34 +020015093wine_fn_config_dll gameux enable_gameux
Mariusz Plucińskicb886f42010-08-03 11:58:01 +020015094wine_fn_config_test dlls/gameux/tests gameux_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015095wine_fn_config_dll gdi.exe16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015096wine_fn_config_dll gdi32 enable_gdi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015097wine_fn_config_test dlls/gdi32/tests gdi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015098wine_fn_config_dll gdiplus enable_gdiplus implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015099wine_fn_config_test dlls/gdiplus/tests gdiplus_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015100wine_fn_config_dll glu32 enable_glu32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015101wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
15102wine_fn_config_dll gpkcsp enable_gpkcsp
15103wine_fn_config_dll hal enable_hal
Alexandre Julliardc9b52d22011-01-06 13:19:58 +010015104wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015105wine_fn_config_dll hid enable_hid implib
15106wine_fn_config_dll hlink enable_hlink implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015107wine_fn_config_test dlls/hlink/tests hlink_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015108wine_fn_config_dll hnetcfg enable_hnetcfg
15109wine_fn_config_dll httpapi enable_httpapi
Alexandre Julliard9c6444c2011-01-06 13:31:16 +010015110wine_fn_config_dll iccvid enable_iccvid po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015111wine_fn_config_dll icmp enable_icmp
15112wine_fn_config_dll ifsmgr.vxd enable_win16
15113wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
Alexandre Julliard1858f432010-12-29 14:10:47 +010015114wine_fn_config_dll imagehlp enable_imagehlp implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015115wine_fn_config_test dlls/imagehlp/tests imagehlp_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015116wine_fn_config_dll imm.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015117wine_fn_config_dll imm32 enable_imm32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015118wine_fn_config_test dlls/imm32/tests imm32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015119wine_fn_config_dll inetcomm enable_inetcomm implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015120wine_fn_config_test dlls/inetcomm/tests inetcomm_test
Alexandre Julliardbe521062011-01-12 15:49:32 +010015121wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015122wine_fn_config_dll inetmib1 enable_inetmib1
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015123wine_fn_config_test dlls/inetmib1/tests inetmib1_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015124wine_fn_config_dll infosoft enable_infosoft
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015125wine_fn_config_test dlls/infosoft/tests infosoft_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015126wine_fn_config_dll initpki enable_initpki
15127wine_fn_config_dll inkobj enable_inkobj
15128wine_fn_config_dll inseng enable_inseng
Alexandre Julliard1858f432010-12-29 14:10:47 +010015129wine_fn_config_dll iphlpapi enable_iphlpapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015130wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015131wine_fn_config_dll itircl enable_itircl
15132wine_fn_config_dll itss enable_itss
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015133wine_fn_config_test dlls/itss/tests itss_test
Alexandre Julliard0ccf1d82011-01-06 13:38:57 +010015134wine_fn_config_dll jscript enable_jscript po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015135wine_fn_config_test dlls/jscript/tests jscript_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015136wine_fn_config_dll kernel32 enable_kernel32 implib,mc
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015137wine_fn_config_test dlls/kernel32/tests kernel32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015138wine_fn_config_dll keyboard.drv16 enable_win16
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015139wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
Vincent Povirk8f874592010-09-26 16:38:44 -050015140wine_fn_config_dll ktmw32 enable_ktmw32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015141wine_fn_config_dll loadperf enable_loadperf implib
Alexandre Julliard7df87f32011-01-06 14:24:05 +010015142wine_fn_config_dll localspl enable_localspl po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015143wine_fn_config_test dlls/localspl/tests localspl_test
Alexandre Julliard0546dd52011-01-12 16:11:26 +010015144wine_fn_config_dll localui enable_localui po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015145wine_fn_config_test dlls/localui/tests localui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015146wine_fn_config_dll lz32 enable_lz32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015147wine_fn_config_test dlls/lz32/tests lz32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015148wine_fn_config_dll lzexpand.dll16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015149wine_fn_config_dll mapi32 enable_mapi32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015150wine_fn_config_test dlls/mapi32/tests mapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015151wine_fn_config_dll mapistub enable_mapistub
15152wine_fn_config_dll mciavi32 enable_mciavi32
15153wine_fn_config_dll mcicda enable_mcicda
15154wine_fn_config_dll mciqtz32 enable_mciqtz32
15155wine_fn_config_dll mciseq enable_mciseq
15156wine_fn_config_dll mciwave enable_mciwave
15157wine_fn_config_dll midimap enable_midimap
Alexandre Julliard1858f432010-12-29 14:10:47 +010015158wine_fn_config_dll mlang enable_mlang implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015159wine_fn_config_test dlls/mlang/tests mlang_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015160wine_fn_config_dll mmdevapi enable_mmdevapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015161wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015162wine_fn_config_dll mmdevldr.vxd enable_win16
15163wine_fn_config_dll mmsystem.dll16 enable_win16
15164wine_fn_config_dll monodebg.vxd enable_win16
15165wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15166wine_fn_config_dll mouse.drv16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015167wine_fn_config_dll mpr enable_mpr implib,po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015168wine_fn_config_dll mprapi enable_mprapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015169wine_fn_config_dll msacm.dll16 enable_win16
15170wine_fn_config_dll msacm32.drv enable_msacm32_drv
Alexandre Julliard1858f432010-12-29 14:10:47 +010015171wine_fn_config_dll msacm32 enable_msacm32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015172wine_fn_config_test dlls/msacm32/tests msacm32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015173wine_fn_config_dll msadp32.acm enable_msadp32_acm
15174wine_fn_config_dll mscat32 enable_mscat32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015175wine_fn_config_dll mscms enable_mscms implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015176wine_fn_config_test dlls/mscms/tests mscms_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015177wine_fn_config_dll mscoree enable_mscoree
Louis Lendersa8528702010-08-24 11:48:01 +020015178wine_fn_config_test dlls/mscoree/tests mscoree_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015179wine_fn_config_dll msctf enable_msctf
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015180wine_fn_config_test dlls/msctf/tests msctf_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015181wine_fn_config_dll msdaps enable_msdaps
Alexandre Julliard1858f432010-12-29 14:10:47 +010015182wine_fn_config_dll msdmo enable_msdmo implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015183wine_fn_config_dll msftedit enable_msftedit
15184wine_fn_config_dll msg711.acm enable_msg711_acm
15185wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15186wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015187wine_fn_config_dll mshtml enable_mshtml implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015188wine_fn_config_test dlls/mshtml/tests mshtml_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015189wine_fn_config_dll msi enable_msi implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015190wine_fn_config_test dlls/msi/tests msi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015191wine_fn_config_dll msimg32 enable_msimg32 implib
Hans Leidekker530e9472011-03-10 10:59:44 +010015192wine_fn_config_dll msimsg enable_msimsg
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015193wine_fn_config_dll msimtf enable_msimtf
15194wine_fn_config_dll msisip enable_msisip
15195wine_fn_config_dll msisys.ocx enable_msisys_ocx
15196wine_fn_config_dll msnet32 enable_msnet32
David Hedberg21085ed2011-03-22 04:16:56 +010015197wine_fn_config_dll mspatcha enable_mspatcha
Alexandre Julliardad5605b2011-01-06 16:36:14 +010015198wine_fn_config_dll msrle32 enable_msrle32 po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015199wine_fn_config_dll mssign32 enable_mssign32
15200wine_fn_config_dll mssip32 enable_mssip32
15201wine_fn_config_dll mstask enable_mstask
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015202wine_fn_config_test dlls/mstask/tests mstask_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015203wine_fn_config_dll msvcirt enable_msvcirt
Austin Englishdfbf47b2011-04-05 12:47:46 -070015204wine_fn_config_dll msvcp100 enable_msvcp100
Alexandre Julliarda3172a52011-04-28 23:30:07 +020015205wine_fn_config_dll msvcp60 enable_msvcp60
Alexandre Julliard2f9c02e2011-05-03 11:09:58 +020015206wine_fn_config_dll msvcp70 enable_msvcp70
Alexandre Julliard4be20262011-05-02 17:32:22 +020015207wine_fn_config_dll msvcp71 enable_msvcp71
Piotr Caban71a49eb2010-08-23 16:36:24 +020015208wine_fn_config_dll msvcp80 enable_msvcp80
Piotr Caban9ae9d262010-07-20 23:22:16 +020015209wine_fn_config_dll msvcp90 enable_msvcp90
Piotr Caband589d952010-07-20 23:24:32 +020015210wine_fn_config_test dlls/msvcp90/tests msvcp90_test
Detlef Riekenberg1434ef42010-04-30 14:07:34 +020015211wine_fn_config_dll msvcr100 enable_msvcr100
Alexandre Julliard1858f432010-12-29 14:10:47 +010015212wine_fn_config_dll msvcr70 enable_msvcr70 implib
15213wine_fn_config_dll msvcr71 enable_msvcr71 implib
Piotr Cabanc4522492010-03-25 11:06:29 +010015214wine_fn_config_dll msvcr80 enable_msvcr80
15215wine_fn_config_dll msvcr90 enable_msvcr90
Detlef Riekenberg73e669c2010-03-20 00:32:17 +010015216wine_fn_config_test dlls/msvcr90/tests msvcr90_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015217wine_fn_config_dll msvcrt enable_msvcrt implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015218wine_fn_config_test dlls/msvcrt/tests msvcrt_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015219wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15220wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15221wine_fn_config_dll msvcrtd enable_msvcrtd implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015222wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015223wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015224wine_fn_config_test dlls/msvfw32/tests msvfw32_test
Alexandre Julliard958ecd62011-01-06 17:07:23 +010015225wine_fn_config_dll msvidc32 enable_msvidc32 po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015226wine_fn_config_dll msvideo.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015227wine_fn_config_dll mswsock enable_mswsock implib
Alexandre Julliard25ccc902010-12-21 12:03:14 +010015228wine_fn_config_dll msxml enable_msxml
Alexandre Julliard41d6a922010-12-21 13:27:20 +010015229wine_fn_config_dll msxml2 enable_msxml2
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015230wine_fn_config_dll msxml3 enable_msxml3
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015231wine_fn_config_test dlls/msxml3/tests msxml3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015232wine_fn_config_dll msxml4 enable_msxml4
Nikolay Sivov25bce452010-08-30 01:31:07 +040015233wine_fn_config_dll msxml6 enable_msxml6
Alexandre Julliard1858f432010-12-29 14:10:47 +010015234wine_fn_config_dll nddeapi enable_nddeapi implib
15235wine_fn_config_dll netapi32 enable_netapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015236wine_fn_config_test dlls/netapi32/tests netapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015237wine_fn_config_dll newdev enable_newdev implib
Thomas Mullaly858ccff2011-01-02 17:13:43 -050015238wine_fn_config_dll normaliz enable_normaliz implib
Jacek Caban4a912652010-12-02 19:15:28 +010015239wine_fn_config_dll npmshtml enable_npmshtml
Alexandre Julliard1858f432010-12-29 14:10:47 +010015240wine_fn_config_dll ntdll enable_ntdll implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015241wine_fn_config_test dlls/ntdll/tests ntdll_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015242wine_fn_config_dll ntdsapi enable_ntdsapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015243wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015244wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015245wine_fn_config_dll ntprint enable_ntprint
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015246wine_fn_config_test dlls/ntprint/tests ntprint_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015247wine_fn_config_dll objsel enable_objsel
Alexandre Julliard1858f432010-12-29 14:10:47 +010015248wine_fn_config_dll odbc32 enable_odbc32 implib
15249wine_fn_config_dll odbccp32 enable_odbccp32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015250wine_fn_config_test dlls/odbccp32/tests odbccp32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015251wine_fn_config_dll ole2.dll16 enable_win16
15252wine_fn_config_dll ole2conv.dll16 enable_win16
15253wine_fn_config_dll ole2disp.dll16 enable_win16
15254wine_fn_config_dll ole2nls.dll16 enable_win16
15255wine_fn_config_dll ole2prox.dll16 enable_win16
15256wine_fn_config_dll ole2thk.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015257wine_fn_config_dll ole32 enable_ole32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015258wine_fn_config_test dlls/ole32/tests ole32_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015259wine_fn_config_dll oleacc enable_oleacc implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015260wine_fn_config_test dlls/oleacc/tests oleacc_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015261wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015262wine_fn_config_test dlls/oleaut32/tests oleaut32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015263wine_fn_config_dll olecli.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015264wine_fn_config_dll olecli32 enable_olecli32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015265wine_fn_config_dll oledb32 enable_oledb32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015266wine_fn_config_test dlls/oledb32/tests oledb32_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015267wine_fn_config_dll oledlg enable_oledlg implib,po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015268wine_fn_config_dll olepro32 enable_olepro32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015269wine_fn_config_dll olesvr.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015270wine_fn_config_dll olesvr32 enable_olesvr32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015271wine_fn_config_dll olethk32 enable_olethk32
15272wine_fn_config_dll openal32 enable_openal32
Peter Urbanec65c84d72010-12-02 23:41:48 +110015273wine_fn_config_dll opencl enable_opencl
Alexandre Julliard1858f432010-12-29 14:10:47 +010015274wine_fn_config_dll opengl32 enable_opengl32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015275wine_fn_config_test dlls/opengl32/tests opengl32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015276wine_fn_config_dll pdh enable_pdh implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015277wine_fn_config_test dlls/pdh/tests pdh_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015278wine_fn_config_dll pidgen enable_pidgen
Alexandre Julliard1858f432010-12-29 14:10:47 +010015279wine_fn_config_dll powrprof enable_powrprof implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015280wine_fn_config_dll printui enable_printui
Alexandre Julliard1858f432010-12-29 14:10:47 +010015281wine_fn_config_dll propsys enable_propsys implib
Andrew Nguyenc20908b2010-07-25 21:57:59 -050015282wine_fn_config_test dlls/propsys/tests propsys_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015283wine_fn_config_dll psapi enable_psapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015284wine_fn_config_test dlls/psapi/tests psapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015285wine_fn_config_dll pstorec enable_pstorec
15286wine_fn_config_dll qcap enable_qcap
15287wine_fn_config_dll qedit enable_qedit
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015288wine_fn_config_test dlls/qedit/tests qedit_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015289wine_fn_config_dll qmgr enable_qmgr
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015290wine_fn_config_test dlls/qmgr/tests qmgr_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015291wine_fn_config_dll qmgrprxy enable_qmgrprxy
Alexandre Julliard1858f432010-12-29 14:10:47 +010015292wine_fn_config_dll quartz enable_quartz implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015293wine_fn_config_test dlls/quartz/tests quartz_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015294wine_fn_config_dll query enable_query
15295wine_fn_config_dll rasapi16.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015296wine_fn_config_dll rasapi32 enable_rasapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015297wine_fn_config_test dlls/rasapi32/tests rasapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015298wine_fn_config_dll rasdlg enable_rasdlg implib
Austin Englishd8d77802011-05-21 20:17:07 -050015299wine_fn_config_dll regapi enable_regapi
Alexandre Julliard1858f432010-12-29 14:10:47 +010015300wine_fn_config_dll resutils enable_resutils implib
15301wine_fn_config_dll riched20 enable_riched20 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015302wine_fn_config_test dlls/riched20/tests riched20_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015303wine_fn_config_dll riched32 enable_riched32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015304wine_fn_config_test dlls/riched32/tests riched32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015305wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015306wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015307wine_fn_config_dll rsabase enable_rsabase
Alexandre Julliard1858f432010-12-29 14:10:47 +010015308wine_fn_config_dll rsaenh enable_rsaenh implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015309wine_fn_config_test dlls/rsaenh/tests rsaenh_test
Louis Lenders85b3f292010-08-27 11:45:11 +020015310wine_fn_config_dll rstrtmgr enable_rstrtmgr
Alexandre Julliard1858f432010-12-29 14:10:47 +010015311wine_fn_config_dll rtutils enable_rtutils implib
Louis Lenders1ae673f2010-05-11 22:59:22 +020015312wine_fn_config_dll samlib enable_samlib
Alexandre Julliard036fe882011-01-14 12:48:59 +010015313wine_fn_config_dll sane.ds enable_sane_ds po
Stefan Leichter81f3d682011-04-03 23:50:40 +020015314wine_fn_config_dll scarddlg enable_scarddlg
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015315wine_fn_config_dll sccbase enable_sccbase
15316wine_fn_config_dll schannel enable_schannel
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015317wine_fn_config_test dlls/schannel/tests schannel_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015318wine_fn_config_dll secur32 enable_secur32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015319wine_fn_config_test dlls/secur32/tests secur32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015320wine_fn_config_dll security enable_security
Alexandre Julliard1858f432010-12-29 14:10:47 +010015321wine_fn_config_dll sensapi enable_sensapi implib
15322wine_fn_config_dll serialui enable_serialui implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015323wine_fn_config_test dlls/serialui/tests serialui_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015324wine_fn_config_dll setupapi enable_setupapi implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015325wine_fn_config_test dlls/setupapi/tests setupapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015326wine_fn_config_dll setupx.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015327wine_fn_config_dll sfc enable_sfc implib
15328wine_fn_config_dll sfc_os enable_sfc_os implib
Alexandre Julliardb31d2312011-01-06 17:42:05 +010015329wine_fn_config_dll shdoclc enable_shdoclc po
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015330wine_fn_config_dll shdocvw enable_shdocvw implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015331wine_fn_config_test dlls/shdocvw/tests shdocvw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015332wine_fn_config_dll shell.dll16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015333wine_fn_config_dll shell32 enable_shell32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015334wine_fn_config_test dlls/shell32/tests shell32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015335wine_fn_config_dll shfolder enable_shfolder implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015336wine_fn_config_dll shlwapi enable_shlwapi implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015337wine_fn_config_test dlls/shlwapi/tests shlwapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015338wine_fn_config_dll slbcsp enable_slbcsp
Alexandre Julliard1858f432010-12-29 14:10:47 +010015339wine_fn_config_dll slc enable_slc implib
15340wine_fn_config_dll snmpapi enable_snmpapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015341wine_fn_config_test dlls/snmpapi/tests snmpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015342wine_fn_config_dll softpub enable_softpub
15343wine_fn_config_dll sound.drv16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015344wine_fn_config_dll spoolss enable_spoolss implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015345wine_fn_config_test dlls/spoolss/tests spoolss_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015346wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15347wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
Alexandre Julliard1858f432010-12-29 14:10:47 +010015348wine_fn_config_dll sti enable_sti implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015349wine_fn_config_test dlls/sti/tests sti_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015350wine_fn_config_dll storage.dll16 enable_win16
15351wine_fn_config_dll stress.dll16 enable_win16
Aric Stewart96192102010-10-04 09:48:25 -050015352wine_fn_config_lib strmbase
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015353wine_fn_config_lib strmiids
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015354wine_fn_config_dll svrapi enable_svrapi
15355wine_fn_config_dll sxs enable_sxs
15356wine_fn_config_dll system.drv16 enable_win16
15357wine_fn_config_dll t2embed enable_t2embed
Alexandre Julliard1858f432010-12-29 14:10:47 +010015358wine_fn_config_dll tapi32 enable_tapi32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015359wine_fn_config_dll toolhelp.dll16 enable_win16
15360wine_fn_config_dll traffic enable_traffic
15361wine_fn_config_dll twain.dll16 enable_win16
15362wine_fn_config_dll twain_32 enable_twain_32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015363wine_fn_config_test dlls/twain_32/tests twain_32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015364wine_fn_config_dll typelib.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015365wine_fn_config_dll unicows enable_unicows implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015366wine_fn_config_dll updspapi enable_updspapi
Alexandre Julliard1858f432010-12-29 14:10:47 +010015367wine_fn_config_dll url enable_url implib
15368wine_fn_config_dll urlmon enable_urlmon implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015369wine_fn_config_test dlls/urlmon/tests urlmon_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015370wine_fn_config_dll usbd.sys enable_usbd_sys implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015371wine_fn_config_dll user.exe16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015372wine_fn_config_dll user32 enable_user32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015373wine_fn_config_test dlls/user32/tests user32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015374wine_fn_config_dll userenv enable_userenv implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015375wine_fn_config_test dlls/userenv/tests userenv_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015376wine_fn_config_dll usp10 enable_usp10 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015377wine_fn_config_test dlls/usp10/tests usp10_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015378wine_fn_config_lib uuid
Alexandre Julliard1858f432010-12-29 14:10:47 +010015379wine_fn_config_dll uxtheme enable_uxtheme implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015380wine_fn_config_test dlls/uxtheme/tests uxtheme_test
Austin Englishdd2159c2011-04-08 18:03:47 +000015381wine_fn_config_dll vcomp enable_vcomp
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015382wine_fn_config_dll vdhcp.vxd enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015383wine_fn_config_dll vdmdbg enable_vdmdbg implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015384wine_fn_config_dll ver.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015385wine_fn_config_dll version enable_version implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015386wine_fn_config_test dlls/version/tests version_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015387wine_fn_config_dll vmm.vxd enable_win16
15388wine_fn_config_dll vnbt.vxd enable_win16
15389wine_fn_config_dll vnetbios.vxd enable_win16
15390wine_fn_config_dll vtdapi.vxd enable_win16
15391wine_fn_config_dll vwin32.vxd enable_win16
15392wine_fn_config_dll w32skrnl enable_win16
15393wine_fn_config_dll w32sys.dll16 enable_win16
15394wine_fn_config_dll wbemprox enable_wbemprox
Alexandre Julliard1858f432010-12-29 14:10:47 +010015395wine_fn_config_dll wer enable_wer implib
Detlef Riekenbergd8a5bc92010-10-26 11:37:17 +020015396wine_fn_config_test dlls/wer/tests wer_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015397wine_fn_config_dll wiaservc enable_wiaservc
15398wine_fn_config_dll win32s16.dll16 enable_win16
15399wine_fn_config_dll win87em.dll16 enable_win16
15400wine_fn_config_dll winaspi.dll16 enable_win16
15401wine_fn_config_dll windebug.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015402wine_fn_config_dll windowscodecs enable_windowscodecs implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015403wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015404wine_fn_config_dll winealsa.drv enable_winealsa_drv
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015405wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015406wine_fn_config_lib winecrt0
Alexandre Julliard1858f432010-12-29 14:10:47 +010015407wine_fn_config_dll wined3d enable_wined3d implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015408wine_fn_config_dll wineesd.drv enable_wineesd_drv
Aric Stewart2914d652010-10-20 13:55:16 -050015409wine_fn_config_dll winegstreamer enable_winegstreamer
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015410wine_fn_config_dll winejack.drv enable_winejack_drv
15411wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15412wine_fn_config_dll winemapi enable_winemapi
15413wine_fn_config_dll winemp3.acm enable_winemp3_acm
15414wine_fn_config_dll winenas.drv enable_winenas_drv
15415wine_fn_config_dll wineoss.drv enable_wineoss_drv
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015416wine_fn_config_dll wineps.drv enable_wineps_drv install-lib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015417wine_fn_config_dll wineps16.drv16 enable_win16
Aric Stewarteefe6f62010-12-03 07:33:08 -060015418wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015419wine_fn_config_dll winequartz.drv enable_winequartz_drv
15420wine_fn_config_dll winex11.drv enable_winex11_drv
15421wine_fn_config_dll wing.dll16 enable_win16
15422wine_fn_config_dll wing32 enable_wing32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015423wine_fn_config_dll winhttp enable_winhttp implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015424wine_fn_config_test dlls/winhttp/tests winhttp_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015425wine_fn_config_dll wininet enable_wininet implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015426wine_fn_config_test dlls/wininet/tests wininet_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015427wine_fn_config_dll winmm enable_winmm implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015428wine_fn_config_test dlls/winmm/tests winmm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015429wine_fn_config_dll winnls.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015430wine_fn_config_dll winnls32 enable_winnls32 implib
15431wine_fn_config_dll winscard enable_winscard implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015432wine_fn_config_dll winsock.dll16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015433wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015434wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
Austin English14067ac2011-05-21 20:14:37 -050015435wine_fn_config_dll winsta enable_winsta
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015436wine_fn_config_dll wintab.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015437wine_fn_config_dll wintab32 enable_wintab32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015438wine_fn_config_test dlls/wintab32/tests wintab32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015439wine_fn_config_dll wintrust enable_wintrust implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015440wine_fn_config_test dlls/wintrust/tests wintrust_test
Ričardas Barkauskas303079f2010-10-20 11:21:15 +030015441wine_fn_config_dll wlanapi enable_wlanapi
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015442wine_fn_config_dll wldap32 enable_wldap32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015443wine_fn_config_test dlls/wldap32/tests wldap32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015444wine_fn_config_dll wmi enable_wmi
15445wine_fn_config_dll wmiutils enable_wmiutils
Alexandre Julliard1858f432010-12-29 14:10:47 +010015446wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15447wine_fn_config_dll wow32 enable_win16 implib
15448wine_fn_config_dll ws2_32 enable_ws2_32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015449wine_fn_config_test dlls/ws2_32/tests ws2_32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015450wine_fn_config_dll wsock32 enable_wsock32 implib
15451wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015452wine_fn_config_dll wuapi enable_wuapi
15453wine_fn_config_dll wuaueng enable_wuaueng
Louis Lenders934d6762010-11-12 11:23:37 +010015454wine_fn_config_dll xapofx1_1 enable_xapofx1_1
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015455wine_fn_config_dll xinput1_1 enable_xinput1_1
15456wine_fn_config_dll xinput1_2 enable_xinput1_2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015457wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015458wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015459wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15460wine_fn_config_dll xmllite enable_xmllite
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015461wine_fn_config_test dlls/xmllite/tests xmllite_test
Alexandre Julliard03642412010-03-20 15:24:22 +010015462wine_fn_config_makefile documentation enable_documentation
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015463wine_fn_config_makefile fonts enable_fonts install-lib
15464wine_fn_config_makefile include enable_include install-dev
Alexandre Julliard03642412010-03-20 15:24:22 +010015465wine_fn_config_makefile libs/port enable_libs_port
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015466wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
Alexandre Julliard03642412010-03-20 15:24:22 +010015467wine_fn_config_makefile libs/wpp enable_libs_wpp
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015468wine_fn_config_makefile loader enable_loader install-lib
Hans Leidekkerab789c62010-10-13 14:23:09 +020015469wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015470wine_fn_config_program attrib enable_attrib install
Alexandre Julliard30bdbed2011-02-02 22:44:47 +010015471wine_fn_config_program cabarc enable_cabarc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015472wine_fn_config_program cacls enable_cacls install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015473wine_fn_config_program clock enable_clock install,po
15474wine_fn_config_program cmd enable_cmd install,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015475wine_fn_config_test programs/cmd/tests cmd.exe_test
Alexandre Julliardd394e042010-03-20 14:53:39 +010015476wine_fn_config_program cmdlgtst enable_cmdlgtst
15477wine_fn_config_program control enable_control install
15478wine_fn_config_program dxdiag enable_dxdiag install
15479wine_fn_config_program eject enable_eject install
15480wine_fn_config_program expand enable_expand install
15481wine_fn_config_program explorer enable_explorer install
15482wine_fn_config_program extrac32 enable_extrac32 install
15483wine_fn_config_program hh enable_hh install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015484wine_fn_config_program hostname enable_hostname install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015485wine_fn_config_program icinfo enable_icinfo install
15486wine_fn_config_program iexplore enable_iexplore install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015487wine_fn_config_program ipconfig enable_ipconfig install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015488wine_fn_config_program lodctr enable_lodctr install
Hans Leidekkerf15aea22010-09-29 09:57:34 +020015489wine_fn_config_program mofcomp enable_mofcomp install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015490wine_fn_config_program mshta enable_mshta install
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015491wine_fn_config_program msiexec enable_msiexec install,installbin
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015492wine_fn_config_program net enable_net install,po
Hans Leidekker8ad7d2e2010-12-06 13:19:41 +010015493wine_fn_config_program netsh enable_netsh install
Vincent Povirk4d3e6f42010-04-02 10:19:18 -050015494wine_fn_config_program ngen enable_ngen install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015495wine_fn_config_program notepad enable_notepad install,installbin,po
15496wine_fn_config_program oleview enable_oleview install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015497wine_fn_config_program ping enable_ping install
Hans Leidekker2133b6c2011-01-31 15:26:17 +010015498wine_fn_config_program plugplay enable_plugplay install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015499wine_fn_config_program progman enable_progman install,po
15500wine_fn_config_program reg enable_reg install,po
15501wine_fn_config_program regedit enable_regedit install,installbin,po
Andrew Eikumf3c6c622010-07-30 16:02:34 -050015502wine_fn_config_test programs/regedit/tests regedit.exe_test
Hans Leidekkerab5fbeb2010-11-12 13:07:40 +010015503wine_fn_config_program regsvcs enable_regsvcs install
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015504wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015505wine_fn_config_program rpcss enable_rpcss install
Detlef Riekenbergdf898ea2010-07-18 19:15:57 +020015506wine_fn_config_program rundll.exe16 enable_win16 install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015507wine_fn_config_program rundll32 enable_rundll32 install
Hans Leidekker544da282010-05-03 12:56:58 +020015508wine_fn_config_program sc enable_sc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015509wine_fn_config_program secedit enable_secedit install
Hans Leidekker1885c3d2010-11-18 12:09:11 +010015510wine_fn_config_program servicemodelreg enable_servicemodelreg install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015511wine_fn_config_program services enable_services install
15512wine_fn_config_program spoolsv enable_spoolsv install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015513wine_fn_config_program start enable_start install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015514wine_fn_config_program svchost enable_svchost install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015515wine_fn_config_program taskkill enable_taskkill install,po
15516wine_fn_config_program taskmgr enable_taskmgr install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015517wine_fn_config_program termsv enable_termsv install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015518wine_fn_config_program uninstaller enable_uninstaller install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015519wine_fn_config_program unlodctr enable_unlodctr install
Alexandre Julliard9d6489a2011-01-10 13:25:22 +010015520wine_fn_config_program view enable_view po
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015521wine_fn_config_program wineboot enable_wineboot install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015522wine_fn_config_program winebrowser enable_winebrowser install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015523wine_fn_config_program winecfg enable_winecfg install,installbin,po
15524wine_fn_config_program wineconsole enable_wineconsole install,installbin,po
15525wine_fn_config_program winedbg enable_winedbg install,installbin,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015526wine_fn_config_program winedevice enable_winedevice install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015527wine_fn_config_program winefile enable_winefile install,installbin,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015528wine_fn_config_program winemenubuilder enable_winemenubuilder install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015529wine_fn_config_program winemine enable_winemine install,installbin,po
Hans Leidekker13700722011-02-01 14:01:42 +010015530wine_fn_config_program winemsibuilder enable_winemsibuilder install
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015531wine_fn_config_program winepath enable_winepath install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015532wine_fn_config_program winetest enable_winetest
15533wine_fn_config_program winevdm enable_win16 install
15534wine_fn_config_program winhelp.exe16 enable_win16 install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015535wine_fn_config_program winhlp32 enable_winhlp32 install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015536wine_fn_config_program winoldap.mod16 enable_win16 install
15537wine_fn_config_program winver enable_winver install
Louis Lenders4b281b22010-12-06 23:04:20 +010015538wine_fn_config_program wmic enable_wmic install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015539wine_fn_config_program wordpad enable_wordpad install,po
15540wine_fn_config_program write enable_write install,po
Jacek Caban16bad582010-07-27 15:51:18 +020015541wine_fn_config_program wscript enable_wscript install
Jacek Cabanf5eb15a2011-02-22 19:48:37 +010015542wine_fn_config_test programs/wscript/tests wscript.exe_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015543wine_fn_config_program xcopy enable_xcopy install,po
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015544wine_fn_config_makefile server enable_server install-lib
15545wine_fn_config_tool tools install-dev,install-lib
Alexandre Julliard49c31e32011-06-12 12:13:17 +020015546wine_fn_config_tool tools/widl install-dev
15547wine_fn_config_tool tools/winebuild install-dev
15548wine_fn_config_tool tools/winedump install-dev
15549wine_fn_config_tool tools/winegcc install-dev
15550wine_fn_config_tool tools/wmc install-dev
15551wine_fn_config_tool tools/wrc install-dev
Alexandre Julliard626f4252000-11-10 23:35:20 +000015552
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015553LINGUAS="\
Alexandre Julliardff71d912011-01-08 12:53:31 +010015554ar \
Alexandre Julliard4bca3342011-01-04 19:38:45 +010015555bg \
Alexandre Julliard39558f82011-01-13 17:24:15 +010015556ca \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015557cs \
15558da \
15559de \
Alexandre Julliardc9b52d22011-01-06 13:19:58 +010015560el \
15561en \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015562en_US \
15563eo \
15564es \
Alexandre Julliardff71d912011-01-08 12:53:31 +010015565fa \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015566fi \
15567fr \
15568he \
15569hi \
15570hu \
15571it \
15572ja \
15573ko \
15574lt \
15575ml \
15576nb_NO \
15577nl \
15578or \
15579pa \
15580pl \
15581pt_BR \
15582pt_PT \
Alexandre Julliard433e2402011-01-10 20:30:14 +010015583rm \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015584ro \
15585ru \
15586sk \
15587sl \
Alexandre Julliardc0b813f2011-01-07 12:11:41 +010015588sr_RS@cyrillic \
15589sr_RS@latin \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015590sv \
15591te \
15592th \
15593tr \
15594uk \
15595wa \
15596zh_CN \
15597zh_TW"
15598
15599
15600
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015601ac_config_commands="$ac_config_commands Makefile"
15602
15603
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020015604ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
Alexandre Julliard92b57312010-03-22 20:25:30 +010015605
15606
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015607
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015608if test "x$enable_maintainer_mode" = xyes
15609then
15610 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15611 cd \$(srcdir) && autoconf --warnings=all
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015612\$(srcdir)/include/config.h.in: include/stamp-h.in
15613\$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15614 cd \$(srcdir) && autoheader --warnings=all
Alexandre Julliard367fd222011-01-04 17:05:21 +010015615 @echo timestamp > \$@
15616
15617ALL_POT_FILES =$ALL_POT_FILES
15618all: \$(ALL_PO_FILES)
15619\$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
Alexandre Julliard945ccf52011-01-27 15:09:55 +010015620 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
Alexandre Julliard367fd222011-01-04 17:05:21 +010015621\$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15622 msgcat -o \$@ \$(ALL_POT_FILES)"
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015623fi
15624
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020015625if test "x$enable_tools" != xno
15626then
15627 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15628clean:: __clean__
15629 \$(RM) tools/makedep\$(EXEEXT)"
15630fi
15631
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015632if test -n "$with_wine64"
15633then
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020015634wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15635fonts server tools:
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015636 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020015637$with_wine64/loader/wine:
15638 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
Alexandre Julliard3c42b622010-12-27 14:37:57 +010015639$with_wine64/loader/wine-preloader:
15640 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015641clean::
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020015642 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015643fi
15644
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015645wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15646 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15647
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015648cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015649# This file is a shell script that caches the results of configure
15650# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015651# scripts and configure runs, see configure's option --config-cache.
15652# It is not useful on other systems. If it contains results you don't
15653# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015654#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015655# config.status only pays attention to the cache file if you give it
15656# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015657#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015658# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015659# loading this file, other *unset* `ac_cv_foo' will be assigned the
15660# following values.
15661
15662_ACEOF
15663
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015664# The following way of writing the cache mishandles newlines in values,
15665# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015666# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015667# Ultrix sh set writes to stderr and can't be redirected directly,
15668# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015669(
15670 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15671 eval ac_val=\$$ac_var
15672 case $ac_val in #(
15673 *${as_nl}*)
15674 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015675 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015676$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015677 esac
15678 case $ac_var in #(
15679 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015680 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015681 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015682 esac ;;
15683 esac
15684 done
15685
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015686 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015687 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15688 *${as_nl}ac_space=\ *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015689 # `set' does not quote correctly, so add quotes: double-quote
15690 # substitution turns \\\\ into \\, and sed turns \\ into \.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015691 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015692 "s/'/'\\\\''/g;
15693 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015694 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015695 *)
15696 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015698 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015699 esac |
15700 sort
15701) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015702 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015703 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015704 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015705 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015706 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15707 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015708 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15709 :end' >>confcache
Jeremy White0ebeb532006-06-20 13:18:41 +020015710if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15711 if test -w "$cache_file"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +020015712 if test "x$cache_file" != "x/dev/null"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015713 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015714$as_echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliard9797da42011-04-27 17:37:43 +020015715 if test ! -f "$cache_file" || test -h "$cache_file"; then
15716 cat confcache >"$cache_file"
15717 else
15718 case $cache_file in #(
15719 */* | ?:*)
15720 mv -f confcache "$cache_file"$$ &&
15721 mv -f "$cache_file"$$ "$cache_file" ;; #(
15722 *)
15723 mv -f confcache "$cache_file" ;;
15724 esac
15725 fi
15726 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015727 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015728 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015729$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015730 fi
15731fi
15732rm -f confcache
15733
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015734test "x$prefix" = xNONE && prefix=$ac_default_prefix
15735# Let make expand exec_prefix.
15736test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15737
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015738DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015739
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015740ac_libobjs=
15741ac_ltlibobjs=
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015742U=
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015743for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15744 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015745 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015746 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015747 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15748 # will be set to the directory where LIBOBJS objects are built.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015749 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15750 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015751done
15752LIBOBJS=$ac_libobjs
15753
15754LTLIBOBJS=$ac_ltlibobjs
15755
15756
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015757
Alexandre Julliard9797da42011-04-27 17:37:43 +020015758: "${CONFIG_STATUS=./config.status}"
Alexandre Julliardabf50482008-10-31 12:56:53 +010015759ac_write_fail=0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015760ac_clean_files_save=$ac_clean_files
15761ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015762{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015763$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015764as_write_fail=0
15765cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015766#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015767# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015768# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015769# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015770# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015771
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015772debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015773ac_cs_recheck=false
15774ac_cs_silent=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015775
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015776SHELL=\${CONFIG_SHELL-$SHELL}
15777export SHELL
15778_ASEOF
15779cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15780## -------------------- ##
15781## M4sh Initialization. ##
15782## -------------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015783
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015784# Be more Bourne compatible
15785DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015786if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015787 emulate sh
15788 NULLCMD=:
Alexandre Julliardabf50482008-10-31 12:56:53 +010015789 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015790 # is contrary to our usage. Disable this feature.
15791 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015792 setopt NO_GLOB_SUBST
15793else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015794 case `(set -o) 2>/dev/null` in #(
15795 *posix*) :
15796 set -o posix ;; #(
15797 *) :
15798 ;;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015799esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015800fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015801
15802
Alexandre Julliardabf50482008-10-31 12:56:53 +010015803as_nl='
15804'
15805export as_nl
15806# Printing a long string crashes Solaris 7 /usr/bin/printf.
15807as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15808as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15809as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015810# Prefer a ksh shell builtin over an external printf program on Solaris,
15811# but without wasting forks for bash or zsh.
15812if test -z "$BASH_VERSION$ZSH_VERSION" \
15813 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15814 as_echo='print -r --'
15815 as_echo_n='print -rn --'
15816elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015817 as_echo='printf %s\n'
15818 as_echo_n='printf %s'
15819else
15820 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15821 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15822 as_echo_n='/usr/ucb/echo -n'
15823 else
15824 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15825 as_echo_n_body='eval
15826 arg=$1;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015827 case $arg in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015828 *"$as_nl"*)
15829 expr "X$arg" : "X\\(.*\\)$as_nl";
15830 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15831 esac;
15832 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15833 '
15834 export as_echo_n_body
15835 as_echo_n='sh -c $as_echo_n_body as_echo'
15836 fi
15837 export as_echo_body
15838 as_echo='sh -c $as_echo_body as_echo'
15839fi
15840
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015841# The user is always right.
15842if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015843 PATH_SEPARATOR=:
15844 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15845 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15846 PATH_SEPARATOR=';'
15847 }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015848fi
15849
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015850
15851# IFS
15852# We need space, tab and new line, in precisely that order. Quoting is
15853# there to prevent editors from complaining about space-tab.
15854# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15855# splitting by setting IFS to empty value.)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015856IFS=" "" $as_nl"
15857
15858# Find who we are. Look in the path if we contain no directory separator.
Alexandre Julliard9797da42011-04-27 17:37:43 +020015859as_myself=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015860case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015861 *[\\/]* ) as_myself=$0 ;;
15862 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015863for as_dir in $PATH
15864do
15865 IFS=$as_save_IFS
15866 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015867 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15868 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015869IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015870
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015871 ;;
15872esac
15873# We did not find ourselves, most probably we were run as `sh COMMAND'
15874# in which case we are not to be found in the path.
15875if test "x$as_myself" = x; then
15876 as_myself=$0
15877fi
15878if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015879 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015880 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015881fi
15882
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015883# Unset variables that we do not need and which cause bugs (e.g. in
15884# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15885# suppresses any "Segmentation fault" message there. '((' could
15886# trigger a bug in pdksh 5.2.14.
15887for as_var in BASH_ENV ENV MAIL MAILPATH
15888do eval test x\${$as_var+set} = xset \
15889 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015890done
15891PS1='$ '
15892PS2='> '
15893PS4='+ '
15894
15895# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +010015896LC_ALL=C
15897export LC_ALL
15898LANGUAGE=C
15899export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015900
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015901# CDPATH.
15902(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15903
15904
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015905# as_fn_error STATUS ERROR [LINENO LOG_FD]
15906# ----------------------------------------
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015907# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15908# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015909# script with STATUS, using 1 if that was 0.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015910as_fn_error ()
15911{
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015912 as_status=$1; test $as_status -eq 0 && as_status=1
15913 if test "$4"; then
15914 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15915 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015916 fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015917 $as_echo "$as_me: error: $2" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015918 as_fn_exit $as_status
15919} # as_fn_error
15920
15921
15922# as_fn_set_status STATUS
15923# -----------------------
15924# Set $? to STATUS, without forking.
15925as_fn_set_status ()
15926{
15927 return $1
15928} # as_fn_set_status
15929
15930# as_fn_exit STATUS
15931# -----------------
15932# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15933as_fn_exit ()
15934{
15935 set +e
15936 as_fn_set_status $1
15937 exit $1
15938} # as_fn_exit
15939
15940# as_fn_unset VAR
15941# ---------------
15942# Portably unset VAR.
15943as_fn_unset ()
15944{
15945 { eval $1=; unset $1;}
15946}
15947as_unset=as_fn_unset
15948# as_fn_append VAR VALUE
15949# ----------------------
15950# Append the text in VALUE to the end of the definition contained in VAR. Take
15951# advantage of any shell optimizations that allow amortized linear growth over
15952# repeated appends, instead of the typical quadratic growth present in naive
15953# implementations.
15954if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15955 eval 'as_fn_append ()
15956 {
15957 eval $1+=\$2
15958 }'
15959else
15960 as_fn_append ()
15961 {
15962 eval $1=\$$1\$2
15963 }
15964fi # as_fn_append
15965
15966# as_fn_arith ARG...
15967# ------------------
15968# Perform arithmetic evaluation on the ARGs, and store the result in the
15969# global $as_val. Take advantage of shells that can avoid forks. The arguments
15970# must be portable across $(()) and expr.
15971if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15972 eval 'as_fn_arith ()
15973 {
15974 as_val=$(( $* ))
15975 }'
15976else
15977 as_fn_arith ()
15978 {
15979 as_val=`expr "$@" || test $? -eq 1`
15980 }
15981fi # as_fn_arith
15982
15983
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015984if expr a : '\(a\)' >/dev/null 2>&1 &&
15985 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15986 as_expr=expr
15987else
15988 as_expr=false
15989fi
15990
15991if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15992 as_basename=basename
15993else
15994 as_basename=false
15995fi
15996
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015997if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15998 as_dirname=dirname
15999else
16000 as_dirname=false
16001fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016002
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016003as_me=`$as_basename -- "$0" ||
16004$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16005 X"$0" : 'X\(//\)$' \| \
16006 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016007$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016008 sed '/^.*\/\([^/][^/]*\)\/*$/{
16009 s//\1/
16010 q
16011 }
16012 /^X\/\(\/\/\)$/{
16013 s//\1/
16014 q
16015 }
16016 /^X\/\(\/\).*/{
16017 s//\1/
16018 q
16019 }
16020 s/.*/./; q'`
16021
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016022# Avoid depending upon Character Ranges.
16023as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16024as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16025as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16026as_cr_digits='0123456789'
16027as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016028
16029ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016030case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016031-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016032 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016033 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016034 xy) ECHO_C='\c';;
16035 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16036 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016037 esac;;
16038*)
16039 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016040esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016041
16042rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016043if test -d conf$$.dir; then
16044 rm -f conf$$.dir/conf$$.file
16045else
16046 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +010016047 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016048fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016049if (echo >conf$$.file) 2>/dev/null; then
16050 if ln -s conf$$.file conf$$ 2>/dev/null; then
16051 as_ln_s='ln -s'
16052 # ... but there are two gotchas:
16053 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16054 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16055 # In both cases, we have to default to `cp -p'.
16056 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16057 as_ln_s='cp -p'
16058 elif ln conf$$.file conf$$ 2>/dev/null; then
16059 as_ln_s=ln
16060 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016061 as_ln_s='cp -p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016062 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016063else
16064 as_ln_s='cp -p'
16065fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016066rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16067rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016068
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016069
16070# as_fn_mkdir_p
16071# -------------
16072# Create "$as_dir" as a directory, including parents if necessary.
16073as_fn_mkdir_p ()
16074{
16075
16076 case $as_dir in #(
16077 -*) as_dir=./$as_dir;;
16078 esac
16079 test -d "$as_dir" || eval $as_mkdir_p || {
16080 as_dirs=
16081 while :; do
16082 case $as_dir in #(
16083 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16084 *) as_qdir=$as_dir;;
16085 esac
16086 as_dirs="'$as_qdir' $as_dirs"
16087 as_dir=`$as_dirname -- "$as_dir" ||
16088$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16089 X"$as_dir" : 'X\(//\)[^/]' \| \
16090 X"$as_dir" : 'X\(//\)$' \| \
16091 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16092$as_echo X"$as_dir" |
16093 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16094 s//\1/
16095 q
16096 }
16097 /^X\(\/\/\)[^/].*/{
16098 s//\1/
16099 q
16100 }
16101 /^X\(\/\/\)$/{
16102 s//\1/
16103 q
16104 }
16105 /^X\(\/\).*/{
16106 s//\1/
16107 q
16108 }
16109 s/.*/./; q'`
16110 test -d "$as_dir" && break
16111 done
16112 test -z "$as_dirs" || eval "mkdir $as_dirs"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016113 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016114
16115
16116} # as_fn_mkdir_p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016117if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016118 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016119else
Alexandre Julliard875927f2004-01-02 01:55:29 +000016120 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016121 as_mkdir_p=false
16122fi
16123
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016124if test -x / >/dev/null 2>&1; then
16125 as_test_x='test -x'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016126else
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016127 if ls -dL / >/dev/null 2>&1; then
16128 as_ls_L_option=L
16129 else
16130 as_ls_L_option=
16131 fi
16132 as_test_x='
16133 eval sh -c '\''
16134 if test -d "$1"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016135 test -d "$1/.";
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016136 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016137 case $1 in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010016138 -*)set "./$1";;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016139 esac;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016140 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016141 ???[sx]*):;;*)false;;esac;fi
16142 '\'' sh
16143 '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016144fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016145as_executable_p=$as_test_x
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016146
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016147# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000016148as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016149
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016150# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000016151as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016152
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016153
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016154exec 6>&1
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016155## ----------------------------------- ##
16156## Main body of $CONFIG_STATUS script. ##
16157## ----------------------------------- ##
16158_ASEOF
16159test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016160
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016161cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16162# Save the log message, to keep $0 and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016163# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016164# values after options handling.
16165ac_log="
Alexandre Julliard24e7b5f2011-06-10 20:08:11 +020016166This file was extended by Wine $as_me 1.3.22, which was
Alexandre Julliard9797da42011-04-27 17:37:43 +020016167generated by GNU Autoconf 2.68. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016168
16169 CONFIG_FILES = $CONFIG_FILES
16170 CONFIG_HEADERS = $CONFIG_HEADERS
16171 CONFIG_LINKS = $CONFIG_LINKS
16172 CONFIG_COMMANDS = $CONFIG_COMMANDS
16173 $ $0 $@
16174
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016175on `(hostname || uname -n) 2>/dev/null | sed 1q`
16176"
16177
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016178_ACEOF
16179
Alexandre Julliardabf50482008-10-31 12:56:53 +010016180case $ac_config_files in *"
16181"*) set x $ac_config_files; shift; ac_config_files=$*;;
16182esac
16183
16184case $ac_config_headers in *"
16185"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16186esac
16187
16188
16189cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016190# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016191config_files="$ac_config_files"
16192config_headers="$ac_config_headers"
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016193config_links="$ac_config_links"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016194config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016195
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016196_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016197
Alexandre Julliardabf50482008-10-31 12:56:53 +010016198cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016199ac_cs_usage="\
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016200\`$as_me' instantiates files and other configuration actions
16201from templates according to the current configuration. Unless the files
16202and actions are specified as TAGs, all are instantiated by default.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016203
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016204Usage: $0 [OPTION]... [TAG]...
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016205
16206 -h, --help print this help, then exit
Alexandre Julliard78bd1942006-08-14 20:42:56 +020016207 -V, --version print version number and configuration settings, then exit
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016208 --config print configuration, then exit
Alexandre Julliardabf50482008-10-31 12:56:53 +010016209 -q, --quiet, --silent
16210 do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016211 -d, --debug don't remove temporary files
16212 --recheck update $as_me by reconfiguring in the same conditions
Alexandre Julliardabf50482008-10-31 12:56:53 +010016213 --file=FILE[:TEMPLATE]
16214 instantiate the configuration file FILE
16215 --header=FILE[:TEMPLATE]
16216 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016217
16218Configuration files:
16219$config_files
16220
16221Configuration headers:
16222$config_headers
16223
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016224Configuration links:
16225$config_links
16226
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016227Configuration commands:
16228$config_commands
16229
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016230Report bugs to <wine-devel@winehq.org>.
16231Wine home page: <http://www.winehq.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000016232
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016233_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016234cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016235ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016236ac_cs_version="\\
Alexandre Julliard24e7b5f2011-06-10 20:08:11 +020016237Wine config.status 1.3.22
Alexandre Julliard9797da42011-04-27 17:37:43 +020016238configured by $0, generated by GNU Autoconf 2.68,
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016239 with options \\"\$ac_cs_config\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016240
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016241Copyright (C) 2010 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016242This config.status script is free software; the Free Software Foundation
16243gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016244
16245ac_pwd='$ac_pwd'
16246srcdir='$srcdir'
16247INSTALL='$INSTALL'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016248test -n "\$AWK" || AWK=awk
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016249_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016250
Alexandre Julliardabf50482008-10-31 12:56:53 +010016251cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16252# The default lists apply if the user does not specify any file.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016253ac_need_defaults=:
16254while test $# != 0
16255do
16256 case $1 in
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016257 --*=?*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016258 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16259 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016260 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016261 ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016262 --*=)
16263 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16264 ac_optarg=
16265 ac_shift=:
16266 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016267 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016268 ac_option=$1
16269 ac_optarg=$2
16270 ac_shift=shift
16271 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016272 esac
16273
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016274 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016275 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016276 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16277 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016278 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Alexandre Julliardabf50482008-10-31 12:56:53 +010016279 $as_echo "$ac_cs_version"; exit ;;
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016280 --config | --confi | --conf | --con | --co | --c )
16281 $as_echo "$ac_cs_config"; exit ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016282 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016283 debug=: ;;
16284 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016285 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010016286 case $ac_optarg in
16287 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016288 '') as_fn_error $? "missing file argument" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +010016289 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016290 as_fn_append CONFIG_FILES " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016291 ac_need_defaults=false;;
16292 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016293 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010016294 case $ac_optarg in
16295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16296 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016297 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016298 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016299 --he | --h)
16300 # Conflict between --help and --header
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016301 as_fn_error $? "ambiguous option: \`$1'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016302Try \`$0 --help' for more information.";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016303 --help | --hel | -h )
Alexandre Julliardabf50482008-10-31 12:56:53 +010016304 $as_echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16306 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16307 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016308
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016309 # This is an error.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016310 -*) as_fn_error $? "unrecognized option: \`$1'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016311Try \`$0 --help' for more information." ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016312
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016313 *) as_fn_append ac_config_targets " $1"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016314 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016315
16316 esac
16317 shift
16318done
16319
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016320ac_configure_extra_args=
16321
16322if $ac_cs_silent; then
16323 exec 6>/dev/null
16324 ac_configure_extra_args="$ac_configure_extra_args --silent"
16325fi
16326
16327_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016329if \$ac_cs_recheck; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016330 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16331 shift
16332 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16333 CONFIG_SHELL='$SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016334 export CONFIG_SHELL
Alexandre Julliardabf50482008-10-31 12:56:53 +010016335 exec "\$@"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016336fi
16337
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016338_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016339cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016340exec 5>>config.log
16341{
16342 echo
16343 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16344## Running $as_me. ##
16345_ASBOX
Alexandre Julliardabf50482008-10-31 12:56:53 +010016346 $as_echo "$ac_log"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016347} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016348
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016349_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016350cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016351#
16352# INIT-COMMANDS
16353#
16354wine_fn_output_makefile ()
16355{
16356 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16357$ALL_MAKEFILE_DEPENDS
16358_WINE_EOF
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016359 as_fn_error $? "could not create Makefile" "$LINENO" 5
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016360}
16361
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016362_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016363
Alexandre Julliardabf50482008-10-31 12:56:53 +010016364cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016365
16366# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016367for ac_config_target in $ac_config_targets
16368do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016369 case $ac_config_target in
16370 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliardc4704c22006-09-22 09:33:00 +020016371 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
Alexandre Julliard40977bf2010-11-11 12:24:46 +010016372 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
Alexandre Julliarda6320522010-02-03 13:14:03 +010016373 "dlls/wineps.drv/generic.ppd") CONFIG_LINKS="$CONFIG_LINKS dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd" ;;
Alexandre Julliardce122962010-02-03 13:13:16 +010016374 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16375 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16376 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16377 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
Alexandre Julliard321d3882010-05-06 20:51:53 +020016378 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016379 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
Alexandre Julliard4422d222011-05-10 13:26:28 +020016380 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
Huw Davies4cffb2d2011-04-01 15:27:48 +010016381 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020016382 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16383 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020016384 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010016385 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016386 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16387 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16388 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010016389 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016390 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16391 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016392 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016393 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020016394 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016395
Alexandre Julliard9797da42011-04-27 17:37:43 +020016396 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016397 esac
16398done
16399
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016400
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016401# If the user did not use the arguments to specify the items to instantiate,
16402# then the envvar interface is used. Set only those that are not.
16403# We use the long form for the default assignment because of an extremely
16404# bizarre bug on SunOS 4.1.3.
16405if $ac_need_defaults; then
16406 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16407 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016408 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016409 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16410fi
16411
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016412# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016413# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016414# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016415# Hook for its removal unless debugging.
16416# Note that there is a small window in which the directory will not be cleaned:
16417# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016418$debug ||
16419{
Alexandre Julliard9797da42011-04-27 17:37:43 +020016420 tmp= ac_tmp=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016421 trap 'exit_status=$?
Alexandre Julliard9797da42011-04-27 17:37:43 +020016422 : "${ac_tmp:=$tmp}"
16423 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016424' 0
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016425 trap 'as_fn_exit 1' 1 2 13 15
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016426}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016427# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016428
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016429{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016430 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliard9797da42011-04-27 17:37:43 +020016431 test -d "$tmp"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016432} ||
16433{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016434 tmp=./conf$$-$RANDOM
16435 (umask 077 && mkdir "$tmp")
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016436} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Alexandre Julliard9797da42011-04-27 17:37:43 +020016437ac_tmp=$tmp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016438
Alexandre Julliardabf50482008-10-31 12:56:53 +010016439# Set up the scripts for CONFIG_FILES section.
16440# No need to generate them if there are no CONFIG_FILES.
16441# This happens for instance with `./config.status config.h'.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016442if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016443
Alexandre Julliardabf50482008-10-31 12:56:53 +010016444if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16445 ac_cs_awk_getline=:
16446 ac_cs_awk_pipe_init=
16447 ac_cs_awk_read_file='
16448 while ((getline aline < (F[key])) > 0)
16449 print(aline)
16450 close(F[key])'
16451 ac_cs_awk_pipe_fini=
16452else
16453 ac_cs_awk_getline=false
16454 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16455 ac_cs_awk_read_file='
16456 print "|#_!!_#|"
16457 print "cat " F[key] " &&"
16458 '$ac_cs_awk_pipe_init
16459 # The final `:' finishes the AND list.
16460 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16461fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016462ac_cr=`echo X | tr X '\015'`
16463# On cygwin, bash can eat \r inside `` if the user requested igncr.
16464# But we know of no other shell where ac_cr would be empty at this
16465# point, so we can use a bashism as a fallback.
16466if test "x$ac_cr" = x; then
16467 eval ac_cr=\$\'\\r\'
16468fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016469ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16470if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016471 ac_cs_awk_cr='\\r'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016472else
16473 ac_cs_awk_cr=$ac_cr
16474fi
16475
Alexandre Julliard9797da42011-04-27 17:37:43 +020016476echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016477_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016478
Alexandre Julliardabf50482008-10-31 12:56:53 +010016479# Create commands to substitute file output variables.
16480{
16481 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Alexandre Julliard9797da42011-04-27 17:37:43 +020016482 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Alexandre Julliardabf50482008-10-31 12:56:53 +010016483 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16484 echo "_ACAWK" &&
16485 echo "_ACEOF"
16486} >conf$$files.sh &&
16487. ./conf$$files.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016488 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016489rm -f conf$$files.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016490
Alexandre Julliardabf50482008-10-31 12:56:53 +010016491{
16492 echo "cat >conf$$subs.awk <<_ACEOF" &&
16493 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16494 echo "_ACEOF"
16495} >conf$$subs.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016496 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16497ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016498ac_delim='%!_!# '
16499for ac_last_try in false false false false false :; do
Alexandre Julliardabf50482008-10-31 12:56:53 +010016500 . ./conf$$subs.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016501 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016502
Alexandre Julliardabf50482008-10-31 12:56:53 +010016503 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16504 if test $ac_delim_n = $ac_delim_num; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016505 break
16506 elif $ac_last_try; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016507 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016508 else
16509 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016510 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016511done
Alexandre Julliardabf50482008-10-31 12:56:53 +010016512rm -f conf$$subs.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016513
Alexandre Julliardabf50482008-10-31 12:56:53 +010016514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard9797da42011-04-27 17:37:43 +020016515cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016516_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016517sed -n '
16518h
16519s/^/S["/; s/!.*/"]=/
16520p
16521g
16522s/^[^!]*!//
16523:repl
16524t repl
16525s/'"$ac_delim"'$//
16526t delim
16527:nl
16528h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016529s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010016530t more1
16531s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16532p
16533n
16534b repl
16535:more1
16536s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16537p
16538g
16539s/.\{148\}//
16540t nl
16541:delim
16542h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016543s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010016544t more2
16545s/["\\]/\\&/g; s/^/"/; s/$/"/
16546p
16547b
16548:more2
16549s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16550p
16551g
16552s/.\{148\}//
16553t delim
16554' <conf$$subs.awk | sed '
16555/^[^""]/{
16556 N
16557 s/\n//
16558}
16559' >>$CONFIG_STATUS || ac_write_fail=1
16560rm -f conf$$subs.awk
16561cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16562_ACAWK
Alexandre Julliard9797da42011-04-27 17:37:43 +020016563cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Alexandre Julliardabf50482008-10-31 12:56:53 +010016564 for (key in S) S_is_set[key] = 1
16565 FS = ""
16566 \$ac_cs_awk_pipe_init
16567}
16568{
16569 line = $ 0
16570 nfields = split(line, field, "@")
16571 substed = 0
16572 len = length(field[1])
16573 for (i = 2; i < nfields; i++) {
16574 key = field[i]
16575 keylen = length(key)
16576 if (S_is_set[key]) {
16577 value = S[key]
16578 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16579 len += length(value) + length(field[++i])
16580 substed = 1
16581 } else
16582 len += 1 + keylen
16583 }
16584 if (nfields == 3 && !substed) {
16585 key = field[2]
16586 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16587 \$ac_cs_awk_read_file
16588 next
16589 }
16590 }
16591 print line
16592}
16593\$ac_cs_awk_pipe_fini
16594_ACAWK
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016595_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16597if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16598 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16599else
16600 cat
Alexandre Julliard9797da42011-04-27 17:37:43 +020016601fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016602 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016603_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016604
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016605# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16606# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016607# trailing colons and then remove the whole line if VPATH becomes empty
16608# (actually we leave an empty line to preserve line numbers).
16609if test "x$srcdir" = x.; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016610 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16611h
16612s///
16613s/^/:/
16614s/[ ]*$/:/
16615s/:\$(srcdir):/:/g
16616s/:\${srcdir}:/:/g
16617s/:@srcdir@:/:/g
16618s/^:*//
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016619s/:*$//
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016620x
16621s/\(=[ ]*\).*/\1/
16622G
16623s/\n//
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016624s/^[^=]*=[ ]*$//
16625}'
16626fi
16627
Alexandre Julliardabf50482008-10-31 12:56:53 +010016628cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016629fi # test -n "$CONFIG_FILES"
16630
Alexandre Julliardabf50482008-10-31 12:56:53 +010016631# Set up the scripts for CONFIG_HEADERS section.
16632# No need to generate them if there are no CONFIG_HEADERS.
16633# This happens for instance with `./config.status Makefile'.
16634if test -n "$CONFIG_HEADERS"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +020016635cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016636BEGIN {
16637_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016638
Alexandre Julliardabf50482008-10-31 12:56:53 +010016639# Transform confdefs.h into an awk script `defines.awk', embedded as
16640# here-document in config.status, that substitutes the proper values into
16641# config.h.in to produce config.h.
16642
16643# Create a delimiter string that does not exist in confdefs.h, to ease
16644# handling of long lines.
16645ac_delim='%!_!# '
16646for ac_last_try in false false :; do
Alexandre Julliard9797da42011-04-27 17:37:43 +020016647 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16648 if test -z "$ac_tt"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016649 break
16650 elif $ac_last_try; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016651 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016652 else
16653 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16654 fi
16655done
16656
16657# For the awk script, D is an array of macro values keyed by name,
16658# likewise P contains macro parameters if any. Preserve backslash
16659# newline sequences.
16660
16661ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16662sed -n '
16663s/.\{148\}/&'"$ac_delim"'/g
16664t rset
16665:rset
16666s/^[ ]*#[ ]*define[ ][ ]*/ /
16667t def
16668d
16669:def
16670s/\\$//
16671t bsnl
16672s/["\\]/\\&/g
16673s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16674D["\1"]=" \3"/p
16675s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16676d
16677:bsnl
16678s/["\\]/\\&/g
16679s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16680D["\1"]=" \3\\\\\\n"\\/p
16681t cont
16682s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16683t cont
16684d
16685:cont
16686n
16687s/.\{148\}/&'"$ac_delim"'/g
16688t clear
16689:clear
16690s/\\$//
16691t bsnlc
16692s/["\\]/\\&/g; s/^/"/; s/$/"/p
16693d
16694:bsnlc
16695s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16696b cont
16697' <confdefs.h | sed '
16698s/'"$ac_delim"'/"\\\
16699"/g' >>$CONFIG_STATUS || ac_write_fail=1
16700
16701cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16702 for (key in D) D_is_set[key] = 1
16703 FS = ""
16704}
16705/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16706 line = \$ 0
16707 split(line, arg, " ")
16708 if (arg[1] == "#") {
16709 defundef = arg[2]
16710 mac1 = arg[3]
16711 } else {
16712 defundef = substr(arg[1], 2)
16713 mac1 = arg[2]
16714 }
16715 split(mac1, mac2, "(") #)
16716 macro = mac2[1]
16717 prefix = substr(line, 1, index(line, defundef) - 1)
16718 if (D_is_set[macro]) {
16719 # Preserve the white space surrounding the "#".
16720 print prefix "define", macro P[macro] D[macro]
16721 next
16722 } else {
16723 # Replace #undef with comments. This is necessary, for example,
16724 # in the case of _POSIX_SOURCE, which is predefined and required
16725 # on some systems where configure will not decide to define it.
16726 if (defundef == "undef") {
16727 print "/*", prefix defundef, macro, "*/"
16728 next
16729 }
16730 }
16731}
16732{ print }
16733_ACAWK
16734_ACEOF
16735cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016736 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016737fi # test -n "$CONFIG_HEADERS"
16738
16739
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016740eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
Alexandre Julliardabf50482008-10-31 12:56:53 +010016741shift
16742for ac_tag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016743do
16744 case $ac_tag in
16745 :[FHLC]) ac_mode=$ac_tag; continue;;
16746 esac
16747 case $ac_mode$ac_tag in
16748 :[FHL]*:*);;
Alexandre Julliard9797da42011-04-27 17:37:43 +020016749 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016750 :[FH]-) ac_tag=-:-;;
16751 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16752 esac
16753 ac_save_IFS=$IFS
16754 IFS=:
16755 set x $ac_tag
16756 IFS=$ac_save_IFS
16757 shift
16758 ac_file=$1
16759 shift
16760
16761 case $ac_mode in
16762 :L) ac_source=$1;;
16763 :[FH])
16764 ac_file_inputs=
16765 for ac_f
16766 do
16767 case $ac_f in
Alexandre Julliard9797da42011-04-27 17:37:43 +020016768 -) ac_f="$ac_tmp/stdin";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016769 *) # Look for the file first in the build tree, then in the source tree
16770 # (if the path is not absolute). The absolute path cannot be DOS-style,
16771 # because $ac_f cannot contain `:'.
16772 test -f "$ac_f" ||
16773 case $ac_f in
16774 [\\/$]*) false;;
16775 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16776 esac ||
Alexandre Julliard9797da42011-04-27 17:37:43 +020016777 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016778 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +010016779 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016780 as_fn_append ac_file_inputs " '$ac_f'"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016781 done
16782
16783 # Let's still pretend it is `configure' which instantiates (i.e., don't
16784 # use $as_me), people would be surprised to read:
16785 # /* config.h. Generated by config.status. */
Alexandre Julliardabf50482008-10-31 12:56:53 +010016786 configure_input='Generated from '`
16787 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16788 `' by configure.'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016789 if test x"$ac_file" != x-; then
16790 configure_input="$ac_file. $configure_input"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016792$as_echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016793 fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016794 # Neutralize special characters interpreted by sed in replacement strings.
16795 case $configure_input in #(
16796 *\&* | *\|* | *\\* )
16797 ac_sed_conf_input=`$as_echo "$configure_input" |
16798 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16799 *) ac_sed_conf_input=$configure_input;;
16800 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016801
16802 case $ac_tag in
Alexandre Julliard9797da42011-04-27 17:37:43 +020016803 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16804 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016805 esac
16806 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016807 esac
16808
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016809 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016810$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016811 X"$ac_file" : 'X\(//\)[^/]' \| \
16812 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016813 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016814$as_echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016815 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16816 s//\1/
16817 q
16818 }
16819 /^X\(\/\/\)[^/].*/{
16820 s//\1/
16821 q
16822 }
16823 /^X\(\/\/\)$/{
16824 s//\1/
16825 q
16826 }
16827 /^X\(\/\).*/{
16828 s//\1/
16829 q
16830 }
16831 s/.*/./; q'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016832 as_dir="$ac_dir"; as_fn_mkdir_p
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016833 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016834
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016835case "$ac_dir" in
16836.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16837*)
Alexandre Julliardabf50482008-10-31 12:56:53 +010016838 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016839 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +010016840 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016841 case $ac_top_builddir_sub in
16842 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16843 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16844 esac ;;
16845esac
16846ac_abs_top_builddir=$ac_pwd
16847ac_abs_builddir=$ac_pwd$ac_dir_suffix
16848# for backward compatibility:
16849ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016850
16851case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016852 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016853 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016854 ac_top_srcdir=$ac_top_builddir_sub
16855 ac_abs_top_srcdir=$ac_pwd ;;
16856 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016857 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016858 ac_top_srcdir=$srcdir
16859 ac_abs_top_srcdir=$srcdir ;;
16860 *) # Relative name.
16861 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16862 ac_top_srcdir=$ac_top_build_prefix$srcdir
16863 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016864esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016865ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000016866
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016867
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016868 case $ac_mode in
16869 :F)
16870 #
16871 # CONFIG_FILE
16872 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016873
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016874 case $INSTALL in
16875 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016876 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000016877 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016878_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016879
Alexandre Julliardabf50482008-10-31 12:56:53 +010016880cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016881# If the template does not know about datarootdir, expand it.
16882# FIXME: This hack should be removed a few years after 2.60.
Jeremy White0ebeb532006-06-20 13:18:41 +020016883ac_datarootdir_hack=; ac_datarootdir_seen=
Alexandre Julliardabf50482008-10-31 12:56:53 +010016884ac_sed_dataroot='
16885/datarootdir/ {
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016886 p
16887 q
16888}
16889/@datadir@/p
16890/@docdir@/p
16891/@infodir@/p
16892/@localedir@/p
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016893/@mandir@/p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016894case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jeremy White0ebeb532006-06-20 13:18:41 +020016895*datarootdir*) ac_datarootdir_seen=yes;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016896*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016898$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016899_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016900cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016901 ac_datarootdir_hack='
16902 s&@datadir@&$datadir&g
16903 s&@docdir@&$docdir&g
16904 s&@infodir@&$infodir&g
16905 s&@localedir@&$localedir&g
16906 s&@mandir@&$mandir&g
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016907 s&\\\${datarootdir}&$datarootdir&g' ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016908esac
16909_ACEOF
16910
16911# Neutralize VPATH when `$srcdir' = `.'.
16912# Shell code in configure.ac might set extrasub.
16913# FIXME: do we really want to maintain this feature?
Alexandre Julliardabf50482008-10-31 12:56:53 +010016914cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16915ac_sed_extra="$ac_vpsub
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016916$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016917_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016918cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016919:t
16920/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardabf50482008-10-31 12:56:53 +010016921s|@configure_input@|$ac_sed_conf_input|;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016922s&@top_builddir@&$ac_top_builddir_sub&;t t
Alexandre Julliardabf50482008-10-31 12:56:53 +010016923s&@top_build_prefix@&$ac_top_build_prefix&;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016924s&@srcdir@&$ac_srcdir&;t t
16925s&@abs_srcdir@&$ac_abs_srcdir&;t t
16926s&@top_srcdir@&$ac_top_srcdir&;t t
16927s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16928s&@builddir@&$ac_builddir&;t t
16929s&@abs_builddir@&$ac_abs_builddir&;t t
16930s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16931s&@INSTALL@&$ac_INSTALL&;t t
16932$ac_datarootdir_hack
Alexandre Julliardabf50482008-10-31 12:56:53 +010016933"
16934eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16935if $ac_cs_awk_getline; then
Alexandre Julliard9797da42011-04-27 17:37:43 +020016936 $AWK -f "$ac_tmp/subs.awk"
Alexandre Julliardabf50482008-10-31 12:56:53 +010016937else
Alexandre Julliard9797da42011-04-27 17:37:43 +020016938 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16939fi \
16940 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016941
Jeremy White0ebeb532006-06-20 13:18:41 +020016942test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Alexandre Julliard9797da42011-04-27 17:37:43 +020016943 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16944 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16945 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016947which seems to be undefined. Please make sure it is defined" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016948$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016949which seems to be undefined. Please make sure it is defined" >&2;}
Jeremy White0ebeb532006-06-20 13:18:41 +020016950
Alexandre Julliard9797da42011-04-27 17:37:43 +020016951 rm -f "$ac_tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016952 case $ac_file in
Alexandre Julliard9797da42011-04-27 17:37:43 +020016953 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16954 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Alexandre Julliardabf50482008-10-31 12:56:53 +010016955 esac \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016957 ;;
16958 :H)
16959 #
16960 # CONFIG_HEADER
16961 #
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016962 if test x"$ac_file" != x-; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016963 {
16964 $as_echo "/* $configure_input */" \
Alexandre Julliard9797da42011-04-27 17:37:43 +020016965 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16966 } >"$ac_tmp/config.h" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016967 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliard9797da42011-04-27 17:37:43 +020016968 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016969 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016970$as_echo "$as_me: $ac_file is unchanged" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016971 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016972 rm -f "$ac_file"
Alexandre Julliard9797da42011-04-27 17:37:43 +020016973 mv "$ac_tmp/config.h" "$ac_file" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016975 fi
16976 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016977 $as_echo "/* $configure_input */" \
Alexandre Julliard9797da42011-04-27 17:37:43 +020016978 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016979 || as_fn_error $? "could not create -" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016980 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016981 ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016982 :L)
16983 #
16984 # CONFIG_LINK
16985 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016986
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016987 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16988 :
16989 else
16990 # Prefer the file from the source tree if names are identical.
16991 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16992 ac_source=$srcdir/$ac_source
16993 fi
16994
16995 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16996$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16997
16998 if test ! -r "$ac_source"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016999 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
Alexandre Julliard7d020c92010-02-03 13:12:12 +010017000 fi
17001 rm -f "$ac_file"
17002
17003 # Try a relative symlink, then a hard link, then a copy.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017004 case $ac_source in
Alexandre Julliard7d020c92010-02-03 13:12:12 +010017005 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
17006 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
17007 esac
17008 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
17009 ln "$ac_source" "$ac_file" 2>/dev/null ||
17010 cp -p "$ac_source" "$ac_file" ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017011 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
Alexandre Julliard7d020c92010-02-03 13:12:12 +010017012 fi
17013 ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017014 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017015$as_echo "$as_me: executing $ac_file commands" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017016 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017017 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017018
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017019
17020 case $ac_file$ac_mode in
Alexandre Julliardc4704c22006-09-22 09:33:00 +020017021 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
Huw Davies4cffb2d2011-04-01 15:27:48 +010017022 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
17023$as_echo "$as_me: creating dlls/gdi32/dibdrv" >&6;}; as_dir="dlls/gdi32/dibdrv"; as_fn_mkdir_p; } ;;
Alexandre Julliarda1c253e2010-02-11 20:26:35 +010017024 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
17025$as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
17026 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
17027$as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
17028 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
17029$as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
17030 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
17031$as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
17032 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
17033$as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
17034 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
17035$as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010017036 "Makefile":C) wine_fn_output_makefile Makefile ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020017037
17038 esac
17039done # for ac_tag
17040
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000017041
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017042as_fn_exit 0
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017043_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017044ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017045
Alexandre Julliardabf50482008-10-31 12:56:53 +010017046test $ac_write_fail = 0 ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017047 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017048
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017049
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017050# configure is writing to config.log, and then calls config.status.
17051# config.status does its own redirection, appending to config.log.
17052# Unfortunately, on DOS this fails, as config.log is still kept open
17053# by configure, so config.status won't be able to write to it; its
17054# output is simply discarded. So we exec the FD to /dev/null,
17055# effectively closing config.log, so it can be properly (re)opened and
17056# appended to by config.status. When coming back to configure, we
17057# need to make the FD available again.
17058if test "$no_create" != yes; then
17059 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017060 ac_config_status_args=
17061 test "$silent" = yes &&
17062 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017063 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000017064 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017065 exec 5>>config.log
17066 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17067 # would make configure fail if this is the last instruction.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020017068 $ac_cs_success || as_fn_exit 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000017069fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010017070if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017072$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17073fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017074
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017075
Alexandre Julliarde3bd1112006-09-21 11:14:38 +020017076if test "$no_create" = "yes"
17077then
17078 exit 0
17079fi
17080
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017081ac_save_IFS="$IFS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010017082if test "x$wine_notices != "x; then
17083 echo >&6
Rafał Mużyło4736c992008-10-20 21:43:21 +020017084 IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017085 for msg in $wine_notices; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020017086 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017087 if test -n "$msg"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017088 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017089$as_echo "$as_me: $msg" >&6;}
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017090 fi
17091 done
17092fi
Rafał Mużyło4736c992008-10-20 21:43:21 +020017093IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017094for msg in $wine_warnings; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020017095 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017096 if test -n "$msg"; then
17097 echo >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017099$as_echo "$as_me: WARNING: $msg" >&2;}
Detlef Riekenberge84a3822006-08-21 05:28:17 +020017100 fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017101done
17102IFS="$ac_save_IFS"
Francois Gouget99d026f2005-03-19 17:08:18 +000017103
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010017104echo "
Alexandre Julliard64362ac2010-02-23 13:33:52 +010017105$as_me: Finished. Do '${ac_make}' to compile Wine.
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010017106" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017107