blob: 4d5dcb3275d2a0109343961285635086328c20ad [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 Julliard8c00ee02011-08-05 19:24:22 +02003# Generated by GNU Autoconf 2.68 for Wine 1.3.26.
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 Julliard8c00ee02011-08-05 19:24:22 +0200563PACKAGE_VERSION='1.3.26'
564PACKAGE_STRING='Wine 1.3.26'
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 Julliard0e79c5c2011-01-04 11:16:50 +0100631LIBGETTEXTPO
Jacek Caban11ca05f2009-05-29 23:35:13 +0200632ZLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100633FREETYPEINCL
634FREETYPELIBS
635ft_devel
636LCMSLIBS
637RESOLVLIBS
638GPHOTO2INCL
639GPHOTO2LIBS
640gphoto2port_devel
641gphoto2_devel
642SANEINCL
643sane_devel
644GNUTLSINCL
645HALINCL
646XSLTINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100647XML2INCL
648XML2LIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +0100649X_EXTRA_LIBS
650X_LIBS
651X_PRE_LIBS
652X_CFLAGS
653XMKMF
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100654LIBPTHREAD
Alexandre Julliard1f254212010-01-23 20:26:49 +0100655CROSSTARGET
Alexandre Julliardabf50482008-10-31 12:56:53 +0100656CROSSCC
Alexandre Julliard7d2e7722010-07-26 12:13:47 +0200657CROSSTEST_DISABLE
Alexandre Julliardb5d824b2010-08-24 13:42:10 +0200658PRELINK
Alexandre Julliardabf50482008-10-31 12:56:53 +0100659CARBONLIB
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +0100660QUICKTIMELIB
Alexandre Julliardfac67412010-12-03 14:16:55 +0100661LIBOPENCL
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100662FRAMEWORK_OPENAL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100663COREAUDIO
Alexandre Julliard45db3482011-03-14 14:25:45 +0100664SECURITYLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100665DISKARBITRATIONLIB
666LDEXECFLAGS
Ken Thomases21137cd2011-01-05 07:25:23 -0600667APPLICATIONSERVICESLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100668IOKITLIB
669COREFOUNDATIONLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100670DLLWRAP
671DLLTOOL
672LDD
673LDRPATH_LOCAL
674LDRPATH_INSTALL
675IMPLIBEXT
676LIBEXT
677LDDLLFLAGS
678LDSHARED
679DLLFLAGS
680DLLEXT
Alexandre Julliard40664c02009-02-11 20:40:58 +0100681CPP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100682OPENGL_LIBS
683XLIB
Andrew Nguyen2eda9c72010-05-25 22:20:14 -0500684MAINTAINER_MODE
Alexandre Julliardabf50482008-10-31 12:56:53 +0100685ICOTOOL
Joel Holdsworth476a2be2010-04-05 11:15:03 +0100686CONVERT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100687RSVG
688PKG_CONFIG
689FONTFORGE
690LINTFLAGS
691LINT
692INSTALL_DATA
693INSTALL_SCRIPT
694INSTALL_PROGRAM
695LDCONFIG
696EGREP
697GREP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100698LN_S
Alexandre Julliardabf50482008-10-31 12:56:53 +0100699RANLIB
700ARFLAGS
701ac_ct_AR
702AR
Alexandre Julliardabf50482008-10-31 12:56:53 +0100703BISON
704FLEX
Alexandre Julliardabf50482008-10-31 12:56:53 +0100705TOOLSDIR
Alexandre Julliard90647772009-08-13 19:48:42 +0200706WOW64_DISABLE
Alexandre Julliard07f77c42009-01-15 21:17:51 +0100707TARGETFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100708CPPBIN
709ac_ct_CXX
710CXXFLAGS
711CXX
712OBJEXT
713EXEEXT
714ac_ct_CC
715CPPFLAGS
716LDFLAGS
717CFLAGS
718CC
719SET_MAKE
Alexandre Julliardabf50482008-10-31 12:56:53 +0100720host_os
721host_vendor
722host_cpu
723host
724build_os
725build_vendor
726build_cpu
727build
Alexandre Julliardabf50482008-10-31 12:56:53 +0100728target_alias
729host_alias
730build_alias
731LIBS
732ECHO_T
733ECHO_N
734ECHO_C
735DEFS
736mandir
737localedir
738libdir
739psdir
740pdfdir
741dvidir
742htmldir
743infodir
744docdir
745oldincludedir
746includedir
747localstatedir
748sharedstatedir
749sysconfdir
750datadir
751datarootdir
752libexecdir
753sbindir
754bindir
755program_transform_name
756prefix
757exec_prefix
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200758PACKAGE_URL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100759PACKAGE_BUGREPORT
760PACKAGE_STRING
761PACKAGE_VERSION
762PACKAGE_TARNAME
763PACKAGE_NAME
764PATH_SEPARATOR
765SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200766ac_subst_files='MAKE_RULES
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +0100767MAKE_TEST_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200768MAKE_DLL_RULES
769MAKE_IMPLIB_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200770MAKE_PROG_RULES'
Alexandre Julliardabf50482008-10-31 12:56:53 +0100771ac_user_opts='
772enable_option_checking
773enable_win16
774enable_win64
Alexandre Julliard35078f42008-11-21 10:16:12 +0100775enable_tests
Alexandre Julliardabf50482008-10-31 12:56:53 +0100776enable_maintainer_mode
777with_alsa
Alexandre Julliardabf50482008-10-31 12:56:53 +0100778with_capi
779with_cms
780with_coreaudio
781with_cups
782with_curses
Alexandre Julliardabf50482008-10-31 12:56:53 +0100783with_fontconfig
784with_freetype
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +0100785with_gettextpo
Alexandre Julliardabf50482008-10-31 12:56:53 +0100786with_gphoto
787with_glu
788with_gnutls
Alexandre Julliard6ce32e02009-08-19 15:53:04 +0200789with_gsm
Aric Stewart2914d652010-10-20 13:55:16 -0500790with_gstreamer
Alexandre Julliardabf50482008-10-31 12:56:53 +0100791with_hal
Alexandre Julliardabf50482008-10-31 12:56:53 +0100792with_jpeg
793with_ldap
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500794with_mpg123
Chris Robinson862965f2009-08-25 03:26:35 -0700795with_openal
Peter Urbanec65c84d72010-12-02 23:41:48 +1100796with_opencl
Alexandre Julliardabf50482008-10-31 12:56:53 +0100797with_opengl
798with_openssl
799with_oss
800with_png
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100801with_pthread
Alexandre Julliardabf50482008-10-31 12:56:53 +0100802with_sane
Vincent Povirk73cd5692010-03-08 17:07:29 -0600803with_tiff
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +0100804with_v4l
Alexandre Julliardabf50482008-10-31 12:56:53 +0100805with_xcomposite
806with_xcursor
807with_xinerama
808with_xinput
Alexandre Julliard77e05ce2011-04-13 18:51:50 +0200809with_xinput2
Alexandre Julliardabf50482008-10-31 12:56:53 +0100810with_xml
811with_xrandr
812with_xrender
813with_xshape
814with_xshm
815with_xslt
816with_xxf86vm
Alexandre Julliardba6a41a2011-02-18 13:07:27 +0100817with_zlib
Alexandre Julliardabf50482008-10-31 12:56:53 +0100818with_wine_tools
Alexandre Julliard39a75d32009-08-13 19:45:31 +0200819with_wine64
Eric Pouechbc56c4e2009-08-25 19:33:28 +0200820enable_largefile
Alexandre Julliardabf50482008-10-31 12:56:53 +0100821with_x
822'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200823 ac_precious_vars='build_alias
824host_alias
825target_alias
826CC
827CFLAGS
828LDFLAGS
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100829LIBS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200830CPPFLAGS
831CXX
832CXXFLAGS
833CCC
Alexandre Julliard40664c02009-02-11 20:40:58 +0100834CPP
835XMKMF'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200836
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000837
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000838# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000839ac_init_help=
840ac_init_version=false
Alexandre Julliardabf50482008-10-31 12:56:53 +0100841ac_unrecognized_opts=
842ac_unrecognized_sep=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000843# The variables have the same names as the options, with
844# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000845cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000846exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000847no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000848no_recursion=
849prefix=NONE
850program_prefix=NONE
851program_suffix=NONE
852program_transform_name=s,x,x,
853silent=
854site=
855srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000856verbose=
857x_includes=NONE
858x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000859
860# Installation directory options.
861# These are left unexpanded so users can "make install exec_prefix=/foo"
862# and all the variables that are supposed to be based on exec_prefix
863# by default will actually change.
864# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200865# (The list follows the same order as the GNU Coding Standards.)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000866bindir='${exec_prefix}/bin'
867sbindir='${exec_prefix}/sbin'
868libexecdir='${exec_prefix}/libexec'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200869datarootdir='${prefix}/share'
870datadir='${datarootdir}'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000871sysconfdir='${prefix}/etc'
872sharedstatedir='${prefix}/com'
873localstatedir='${prefix}/var'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000874includedir='${prefix}/include'
875oldincludedir='/usr/include'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200876docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
877infodir='${datarootdir}/info'
878htmldir='${docdir}'
879dvidir='${docdir}'
880pdfdir='${docdir}'
881psdir='${docdir}'
882libdir='${exec_prefix}/lib'
883localedir='${datarootdir}/locale'
884mandir='${datarootdir}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000885
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000886ac_prev=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200887ac_dashdash=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000888for ac_option
889do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000890 # If the previous option needs an argument, assign it.
891 if test -n "$ac_prev"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200892 eval $ac_prev=\$ac_option
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000893 ac_prev=
894 continue
895 fi
896
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200897 case $ac_option in
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200898 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
899 *=) ac_optarg= ;;
900 *) ac_optarg=yes ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200901 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000902
903 # Accept the important Cygnus configure options, so we can diagnose typos.
904
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200905 case $ac_dashdash$ac_option in
906 --)
907 ac_dashdash=yes ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000908
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000909 -bindir | --bindir | --bindi | --bind | --bin | --bi)
910 ac_prev=bindir ;;
911 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000912 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000913
914 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000915 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000916 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000917 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000918
919 -cache-file | --cache-file | --cache-fil | --cache-fi \
920 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
921 ac_prev=cache_file ;;
922 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
923 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000924 cache_file=$ac_optarg ;;
925
926 --config-cache | -C)
927 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000928
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200929 -datadir | --datadir | --datadi | --datad)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000930 ac_prev=datadir ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200931 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000932 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000933
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200934 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
935 | --dataroo | --dataro | --datar)
936 ac_prev=datarootdir ;;
937 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
938 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
939 datarootdir=$ac_optarg ;;
940
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000941 -disable-* | --disable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100942 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000943 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200945 as_fn_error $? "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100946 ac_useropt_orig=$ac_useropt
947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
948 case $ac_user_opts in
949 *"
950"enable_$ac_useropt"
951"*) ;;
952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
953 ac_unrecognized_sep=', ';;
954 esac
955 eval enable_$ac_useropt=no ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200956
957 -docdir | --docdir | --docdi | --doc | --do)
958 ac_prev=docdir ;;
959 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
960 docdir=$ac_optarg ;;
961
962 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
963 ac_prev=dvidir ;;
964 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
965 dvidir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000966
967 -enable-* | --enable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100968 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000969 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100970 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200971 as_fn_error $? "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100972 ac_useropt_orig=$ac_useropt
973 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
974 case $ac_user_opts in
975 *"
976"enable_$ac_useropt"
977"*) ;;
978 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
979 ac_unrecognized_sep=', ';;
980 esac
981 eval enable_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000982
983 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
984 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
985 | --exec | --exe | --ex)
986 ac_prev=exec_prefix ;;
987 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
988 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
989 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000990 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000991
992 -gas | --gas | --ga | --g)
993 # Obsolete; use --with-gas.
994 with_gas=yes ;;
995
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000996 -help | --help | --hel | --he | -h)
997 ac_init_help=long ;;
998 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
999 ac_init_help=recursive ;;
1000 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1001 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001002
1003 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001004 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001005 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001006 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001007
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001008 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1009 ac_prev=htmldir ;;
1010 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1011 | --ht=*)
1012 htmldir=$ac_optarg ;;
1013
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001014 -includedir | --includedir | --includedi | --included | --include \
1015 | --includ | --inclu | --incl | --inc)
1016 ac_prev=includedir ;;
1017 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1018 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001019 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001020
1021 -infodir | --infodir | --infodi | --infod | --info | --inf)
1022 ac_prev=infodir ;;
1023 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001024 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001025
1026 -libdir | --libdir | --libdi | --libd)
1027 ac_prev=libdir ;;
1028 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001029 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001030
1031 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1032 | --libexe | --libex | --libe)
1033 ac_prev=libexecdir ;;
1034 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1035 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001036 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001037
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001038 -localedir | --localedir | --localedi | --localed | --locale)
1039 ac_prev=localedir ;;
1040 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1041 localedir=$ac_optarg ;;
1042
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001043 -localstatedir | --localstatedir | --localstatedi | --localstated \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001044 | --localstate | --localstat | --localsta | --localst | --locals)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001045 ac_prev=localstatedir ;;
1046 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001047 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001048 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001049
1050 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1051 ac_prev=mandir ;;
1052 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001053 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001054
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001055 -nfp | --nfp | --nf)
1056 # Obsolete; use --without-fp.
1057 with_fp=no ;;
1058
1059 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001060 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001061 no_create=yes ;;
1062
1063 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1064 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1065 no_recursion=yes ;;
1066
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001067 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1068 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1069 | --oldin | --oldi | --old | --ol | --o)
1070 ac_prev=oldincludedir ;;
1071 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1072 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1073 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001074 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001075
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001076 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1077 ac_prev=prefix ;;
1078 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001079 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001080
1081 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1082 | --program-pre | --program-pr | --program-p)
1083 ac_prev=program_prefix ;;
1084 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1085 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001086 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001087
1088 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1089 | --program-suf | --program-su | --program-s)
1090 ac_prev=program_suffix ;;
1091 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1092 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001093 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001094
1095 -program-transform-name | --program-transform-name \
1096 | --program-transform-nam | --program-transform-na \
1097 | --program-transform-n | --program-transform- \
1098 | --program-transform | --program-transfor \
1099 | --program-transfo | --program-transf \
1100 | --program-trans | --program-tran \
1101 | --progr-tra | --program-tr | --program-t)
1102 ac_prev=program_transform_name ;;
1103 -program-transform-name=* | --program-transform-name=* \
1104 | --program-transform-nam=* | --program-transform-na=* \
1105 | --program-transform-n=* | --program-transform-=* \
1106 | --program-transform=* | --program-transfor=* \
1107 | --program-transfo=* | --program-transf=* \
1108 | --program-trans=* | --program-tran=* \
1109 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001110 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001111
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001112 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1113 ac_prev=pdfdir ;;
1114 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1115 pdfdir=$ac_optarg ;;
1116
1117 -psdir | --psdir | --psdi | --psd | --ps)
1118 ac_prev=psdir ;;
1119 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1120 psdir=$ac_optarg ;;
1121
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001122 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1123 | -silent | --silent | --silen | --sile | --sil)
1124 silent=yes ;;
1125
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001126 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1127 ac_prev=sbindir ;;
1128 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1129 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001130 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001131
1132 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1133 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1134 | --sharedst | --shareds | --shared | --share | --shar \
1135 | --sha | --sh)
1136 ac_prev=sharedstatedir ;;
1137 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1138 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1139 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1140 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001141 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001142
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001143 -site | --site | --sit)
1144 ac_prev=site ;;
1145 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001146 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001147
1148 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1149 ac_prev=srcdir ;;
1150 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001151 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001152
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001153 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1154 | --syscon | --sysco | --sysc | --sys | --sy)
1155 ac_prev=sysconfdir ;;
1156 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1157 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001158 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001159
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001160 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001161 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001162 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001163 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001164
1165 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1166 verbose=yes ;;
1167
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001168 -version | --version | --versio | --versi | --vers | -V)
1169 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001170
1171 -with-* | --with-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001172 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001173 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001175 as_fn_error $? "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1179 *"
1180"with_$ac_useropt"
1181"*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001186
1187 -without-* | --without-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001188 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001189 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001190 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001191 as_fn_error $? "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001192 ac_useropt_orig=$ac_useropt
1193 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1194 case $ac_user_opts in
1195 *"
1196"with_$ac_useropt"
1197"*) ;;
1198 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1199 ac_unrecognized_sep=', ';;
1200 esac
1201 eval with_$ac_useropt=no ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001202
1203 --x)
1204 # Obsolete; use --with-x.
1205 with_x=yes ;;
1206
1207 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1208 | --x-incl | --x-inc | --x-in | --x-i)
1209 ac_prev=x_includes ;;
1210 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1211 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001212 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001213
1214 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1215 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1216 ac_prev=x_libraries ;;
1217 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1218 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001219 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001220
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001221 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1222Try \`$0 --help' for more information"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001223 ;;
1224
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001225 *=*)
1226 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1227 # Reject names that are not valid shell variable names.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001228 case $ac_envvar in #(
1229 '' | [0-9]* | *[!_$as_cr_alnum]* )
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001230 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001231 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001232 eval $ac_envvar=\$ac_optarg
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001233 export $ac_envvar ;;
1234
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001235 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001236 # FIXME: should be removed in autoconf 3.0.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001237 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001238 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01001239 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Alexandre Julliard9797da42011-04-27 17:37:43 +02001240 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001241 ;;
1242
1243 esac
1244done
1245
1246if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001247 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001248 as_fn_error $? "missing argument to $ac_option"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001249fi
1250
Alexandre Julliardabf50482008-10-31 12:56:53 +01001251if test -n "$ac_unrecognized_opts"; then
1252 case $enable_option_checking in
1253 no) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001254 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +01001255 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1256 esac
1257fi
1258
1259# Check all directory arguments for consistency.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001260for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1261 datadir sysconfdir sharedstatedir localstatedir includedir \
1262 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1263 libdir localedir mandir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001264do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001265 eval ac_val=\$$ac_var
Alexandre Julliardabf50482008-10-31 12:56:53 +01001266 # Remove trailing slashes.
1267 case $ac_val in
1268 */ )
1269 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1270 eval $ac_var=\$ac_val;;
1271 esac
1272 # Be sure to have absolute directory names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001273 case $ac_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001274 [\\/$]* | ?:[\\/]* ) continue;;
1275 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001276 esac
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001277 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001278done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001279
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001280# There might be people who depend on the old broken behavior: `$host'
1281# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001282# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001283build=$build_alias
1284host=$host_alias
1285target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001286
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001287# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001288if test "x$host_alias" != x; then
1289 if test "x$build_alias" = x; then
1290 cross_compiling=maybe
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001291 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1292 If a cross compiler is detected then cross compile mode will be used" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001293 elif test "x$build_alias" != "x$host_alias"; then
1294 cross_compiling=yes
1295 fi
1296fi
1297
1298ac_tool_prefix=
1299test -n "$host_alias" && ac_tool_prefix=$host_alias-
1300
1301test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001302
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001303
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001304ac_pwd=`pwd` && test -n "$ac_pwd" &&
1305ac_ls_di=`ls -di .` &&
1306ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001307 as_fn_error $? "working directory cannot be determined"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001308test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001309 as_fn_error $? "pwd does not report name of working directory"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001310
1311
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001312# Find the source files, if location was not specified.
1313if test -z "$srcdir"; then
1314 ac_srcdir_defaulted=yes
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001315 # Try the directory containing this script, then the parent directory.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001316 ac_confdir=`$as_dirname -- "$as_myself" ||
1317$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1318 X"$as_myself" : 'X\(//\)[^/]' \| \
1319 X"$as_myself" : 'X\(//\)$' \| \
1320 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1321$as_echo X"$as_myself" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1323 s//\1/
1324 q
1325 }
1326 /^X\(\/\/\)[^/].*/{
1327 s//\1/
1328 q
1329 }
1330 /^X\(\/\/\)$/{
1331 s//\1/
1332 q
1333 }
1334 /^X\(\/\).*/{
1335 s//\1/
1336 q
1337 }
1338 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001339 srcdir=$ac_confdir
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001340 if test ! -r "$srcdir/$ac_unique_file"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001341 srcdir=..
1342 fi
1343else
1344 ac_srcdir_defaulted=no
1345fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001346if test ! -r "$srcdir/$ac_unique_file"; then
1347 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001348 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001349fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001350ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1351ac_abs_confdir=`(
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001352 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001353 pwd)`
1354# When building in place, set srcdir=.
1355if test "$ac_abs_confdir" = "$ac_pwd"; then
1356 srcdir=.
1357fi
1358# Remove unnecessary trailing slashes from srcdir.
1359# Double slashes in file names in object file debugging info
1360# mess up M-x gdb in Emacs.
1361case $srcdir in
1362*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1363esac
1364for ac_var in $ac_precious_vars; do
1365 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_env_${ac_var}_value=\$${ac_var}
1367 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1368 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1369done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001370
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001371#
1372# Report the --help message.
1373#
1374if test "$ac_init_help" = "long"; then
1375 # Omit some internal or obsolete options to make the list less imposing.
1376 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001377 cat <<_ACEOF
Alexandre Julliard8c00ee02011-08-05 19:24:22 +02001378\`configure' configures Wine 1.3.26 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001379
1380Usage: $0 [OPTION]... [VAR=VALUE]...
1381
1382To assign environment variables (e.g., CC, CFLAGS...), specify them as
1383VAR=VALUE. See below for descriptions of some of the useful variables.
1384
1385Defaults for the options are specified in brackets.
1386
1387Configuration:
1388 -h, --help display this help and exit
1389 --help=short display options specific to this package
1390 --help=recursive display the short help of all the included packages
1391 -V, --version display version information and exit
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001392 -q, --quiet, --silent do not print \`checking ...' messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001393 --cache-file=FILE cache test results in FILE [disabled]
1394 -C, --config-cache alias for \`--cache-file=config.cache'
1395 -n, --no-create do not create output files
1396 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1397
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001398Installation directories:
1399 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001400 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001401 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001402 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001403
1404By default, \`make install' will install all the files in
1405\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1406an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1407for instance \`--prefix=\$HOME'.
1408
1409For better control, use the options below.
1410
1411Fine tuning of the installation directories:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001412 --bindir=DIR user executables [EPREFIX/bin]
1413 --sbindir=DIR system admin executables [EPREFIX/sbin]
1414 --libexecdir=DIR program executables [EPREFIX/libexec]
1415 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1416 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1417 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1418 --libdir=DIR object code libraries [EPREFIX/lib]
1419 --includedir=DIR C header files [PREFIX/include]
1420 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1421 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1422 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1423 --infodir=DIR info documentation [DATAROOTDIR/info]
1424 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1425 --mandir=DIR man documentation [DATAROOTDIR/man]
1426 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1427 --htmldir=DIR html documentation [DOCDIR]
1428 --dvidir=DIR dvi documentation [DOCDIR]
1429 --pdfdir=DIR pdf documentation [DOCDIR]
1430 --psdir=DIR ps documentation [DOCDIR]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001431_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001432
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001433 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001434
1435X features:
1436 --x-includes=DIR X include files are in DIR
1437 --x-libraries=DIR X library files are in DIR
1438
1439System types:
1440 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001441 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001442_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001443fi
1444
1445if test -n "$ac_init_help"; then
1446 case $ac_init_help in
Alexandre Julliard8c00ee02011-08-05 19:24:22 +02001447 short | recursive ) echo "Configuration of Wine 1.3.26:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001448 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001449 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001450
1451Optional Features:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001452 --disable-option-checking ignore unrecognized --enable/--with options
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001453 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1454 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +00001455 --disable-win16 do not include Win16 support
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001456 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1457 binaries)
Alexandre Julliard35078f42008-11-21 10:16:12 +01001458 --disable-tests do not build the regression tests
Alexandre Julliard9d037222008-03-20 13:00:12 +01001459 --enable-maintainer-mode
1460 enable maintainer-specific build rules
Eric Pouechbc56c4e2009-08-25 19:33:28 +02001461 --disable-largefile omit support for large files
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001462
1463Optional Packages:
1464 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1465 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001466 --without-alsa do not use the Alsa sound support
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001467 --without-capi do not use CAPI (ISDN support)
1468 --without-cms do not use CMS (color management support)
1469 --without-coreaudio do not use the CoreAudio sound support
1470 --without-cups do not use CUPS
1471 --without-curses do not use (n)curses
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001472 --without-fontconfig do not use fontconfig
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02001473 --without-freetype do not use the FreeType library
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01001474 --without-gettextpo do not use the GetTextPO library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001475 --without-gphoto do not use gphoto (Digital Camera support)
Alexandre Julliardad798732008-05-01 13:29:02 +02001476 --without-glu do not use the GLU library
Henri Verbeet874c9ef2008-09-22 22:13:19 +02001477 --without-gnutls do not use GnuTLS (schannel support)
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02001478 --without-gsm do not use libgsm (GSM 06.10 codec support)
Aric Stewart2914d652010-10-20 13:55:16 -05001479 --without-gstreamer do not use GStreamer (codecs support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001480 --without-hal do not use HAL (dynamic device support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001481 --without-jpeg do not use JPEG
1482 --without-ldap do not use LDAP
Aric Stewartdb71d7c2009-08-19 09:37:48 -05001483 --without-mpg123 do not use the mpg123 library
Chris Robinson862965f2009-08-25 03:26:35 -07001484 --without-openal do not use OpenAL
Peter Urbanec65c84d72010-12-02 23:41:48 +11001485 --without-opencl do not use OpenCL
Eric Pouech53fa0d52004-02-05 01:27:38 +00001486 --without-opengl do not use OpenGL
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001487 --without-openssl do not use OpenSSL
1488 --without-oss do not use the OSS sound support
1489 --without-png do not use PNG
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01001490 --without-pthread do not use the pthread library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001491 --without-sane do not use SANE (scanner support)
Vincent Povirk73cd5692010-03-08 17:07:29 -06001492 --without-tiff do not use TIFF
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01001493 --without-v4l do not use v4l1 (v4l support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001494 --without-xcomposite do not use the Xcomposite extension
1495 --without-xcursor do not use the Xcursor extension
1496 --without-xinerama do not use Xinerama (multi-monitor support)
1497 --without-xinput do not use the Xinput extension
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02001498 --without-xinput2 do not use the Xinput 2 extension
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001499 --without-xml do not use XML
1500 --without-xrandr do not use Xrandr (resolution changes)
1501 --without-xrender do not use the Xrender extension
1502 --without-xshape do not use the Xshape extension
1503 --without-xshm do not use XShm (shared memory extension)
1504 --without-xslt do not use XSLT
Francois Gougeta49beb42008-06-26 14:02:17 +02001505 --without-xxf86vm do not use XFree video mode extension
Alexandre Julliardba6a41a2011-02-18 13:07:27 +01001506 --without-zlib do not use Zlib (data compression)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001507 --with-wine-tools=DIR use Wine tools from directory DIR
Alexandre Julliard39a75d32009-08-13 19:45:31 +02001508 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001509 --with-x use the X Window System
1510
1511Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +00001512 CC C compiler command
1513 CFLAGS C compiler flags
1514 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1515 nonstandard directory <lib dir>
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01001516 LIBS libraries to pass to the linker, e.g. -l<library>
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001517 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001518 you have headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00001519 CXX C++ compiler command
1520 CXXFLAGS C++ compiler flags
Eric Pouech53fa0d52004-02-05 01:27:38 +00001521 CPP C preprocessor
Alexandre Julliard40664c02009-02-11 20:40:58 +01001522 XMKMF Path to xmkmf, Makefile generator for X Window System
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001523
1524Use these variables to override the choices made by `configure' or to help
1525it to find libraries and programs with nonstandard names/locations.
1526
Alexandre Julliard875927f2004-01-02 01:55:29 +00001527Report bugs to <wine-devel@winehq.org>.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001528Wine home page: <http://www.winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001529_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001530ac_status=$?
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001531fi
1532
1533if test "$ac_init_help" = "recursive"; then
1534 # If there are subdirs, report their specific --help.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001535 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Alexandre Julliardabf50482008-10-31 12:56:53 +01001536 test -d "$ac_dir" ||
1537 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1538 continue
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001539 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001540
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001541case "$ac_dir" in
1542.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1543*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001545 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001547 case $ac_top_builddir_sub in
1548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550 esac ;;
1551esac
1552ac_abs_top_builddir=$ac_pwd
1553ac_abs_builddir=$ac_pwd$ac_dir_suffix
1554# for backward compatibility:
1555ac_top_builddir=$ac_top_build_prefix
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001556
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001557case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001558 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001559 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001560 ac_top_srcdir=$ac_top_builddir_sub
1561 ac_abs_top_srcdir=$ac_pwd ;;
1562 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001563 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001564 ac_top_srcdir=$srcdir
1565 ac_abs_top_srcdir=$srcdir ;;
1566 *) # Relative name.
1567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1568 ac_top_srcdir=$ac_top_build_prefix$srcdir
1569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001570esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001571ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +00001572
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001573 cd "$ac_dir" || { ac_status=$?; continue; }
1574 # Check for guested configure.
Jeremy White0ebeb532006-06-20 13:18:41 +02001575 if test -f "$ac_srcdir/configure.gnu"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001576 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001577 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1578 elif test -f "$ac_srcdir/configure"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001579 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001580 $SHELL "$ac_srcdir/configure" --help=recursive
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001581 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01001582 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001583 fi || ac_status=$?
1584 cd "$ac_pwd" || { ac_status=$?; break; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001585 done
1586fi
1587
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001588test -n "$ac_init_help" && exit $ac_status
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001589if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001590 cat <<\_ACEOF
Alexandre Julliard8c00ee02011-08-05 19:24:22 +02001591Wine configure 1.3.26
Alexandre Julliard9797da42011-04-27 17:37:43 +02001592generated by GNU Autoconf 2.68
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001593
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001594Copyright (C) 2010 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001595This configure script is free software; the Free Software Foundation
1596gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001597_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001598 exit
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001599fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001600
1601## ------------------------ ##
1602## Autoconf initialization. ##
1603## ------------------------ ##
1604
1605# ac_fn_c_try_compile LINENO
1606# --------------------------
1607# Try to compile conftest.$ac_ext, and return whether this succeeded.
1608ac_fn_c_try_compile ()
1609{
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 rm -f conftest.$ac_objext
1612 if { { ac_try="$ac_compile"
1613case "(($ac_try" in
1614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1615 *) ac_try_echo=$ac_try;;
1616esac
1617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1618$as_echo "$ac_try_echo"; } >&5
1619 (eval "$ac_compile") 2>conftest.err
1620 ac_status=$?
1621 if test -s conftest.err; then
1622 grep -v '^ *+' conftest.err >conftest.er1
1623 cat conftest.er1 >&5
1624 mv -f conftest.er1 conftest.err
1625 fi
1626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1627 test $ac_status = 0; } && {
1628 test -z "$ac_c_werror_flag" ||
1629 test ! -s conftest.err
1630 } && test -s conftest.$ac_objext; then :
1631 ac_retval=0
1632else
1633 $as_echo "$as_me: failed program was:" >&5
1634sed 's/^/| /' conftest.$ac_ext >&5
1635
1636 ac_retval=1
1637fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001638 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001639 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001640
1641} # ac_fn_c_try_compile
1642
1643# ac_fn_cxx_try_compile LINENO
1644# ----------------------------
1645# Try to compile conftest.$ac_ext, and return whether this succeeded.
1646ac_fn_cxx_try_compile ()
1647{
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 rm -f conftest.$ac_objext
1650 if { { ac_try="$ac_compile"
1651case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654esac
1655eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656$as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_compile") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1663 fi
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } && {
1666 test -z "$ac_cxx_werror_flag" ||
1667 test ! -s conftest.err
1668 } && test -s conftest.$ac_objext; then :
1669 ac_retval=0
1670else
1671 $as_echo "$as_me: failed program was:" >&5
1672sed 's/^/| /' conftest.$ac_ext >&5
1673
1674 ac_retval=1
1675fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001677 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001678
1679} # ac_fn_cxx_try_compile
1680
1681# ac_fn_c_try_link LINENO
1682# -----------------------
1683# Try to link conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_c_try_link ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext conftest$ac_exeext
1688 if { { ac_try="$ac_link"
1689case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest$ac_exeext && {
1707 test "$cross_compiling" = yes ||
1708 $as_test_x conftest$ac_exeext
1709 }; then :
1710 ac_retval=0
1711else
1712 $as_echo "$as_me: failed program was:" >&5
1713sed 's/^/| /' conftest.$ac_ext >&5
1714
1715 ac_retval=1
1716fi
1717 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1718 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1719 # interfere with the next link command; also delete a directory that is
1720 # left behind by Apple's compiler. We do this before executing the actions.
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Alexandre Julliard9797da42011-04-27 17:37:43 +02001722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001723 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001724
1725} # ac_fn_c_try_link
1726
1727# ac_fn_c_try_cpp LINENO
1728# ----------------------
1729# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1730ac_fn_c_try_cpp ()
1731{
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 if { { ac_try="$ac_cpp conftest.$ac_ext"
1734case "(($ac_try" in
1735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1736 *) ac_try_echo=$ac_try;;
1737esac
1738eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1739$as_echo "$ac_try_echo"; } >&5
1740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1741 ac_status=$?
1742 if test -s conftest.err; then
1743 grep -v '^ *+' conftest.err >conftest.er1
1744 cat conftest.er1 >&5
1745 mv -f conftest.er1 conftest.err
1746 fi
1747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001748 test $ac_status = 0; } > conftest.i && {
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001749 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1750 test ! -s conftest.err
1751 }; then :
1752 ac_retval=0
1753else
1754 $as_echo "$as_me: failed program was:" >&5
1755sed 's/^/| /' conftest.$ac_ext >&5
1756
1757 ac_retval=1
1758fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001760 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001761
1762} # ac_fn_c_try_cpp
1763
1764# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1765# -------------------------------------------------------
1766# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1767# the include files in INCLUDES and setting the cache variable VAR
1768# accordingly.
1769ac_fn_c_check_header_mongrel ()
1770{
1771 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Alexandre Julliard9797da42011-04-27 17:37:43 +02001772 if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001775if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001776 $as_echo_n "(cached) " >&6
1777fi
1778eval ac_res=\$$3
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1780$as_echo "$ac_res" >&6; }
1781else
1782 # Is the header compilable?
1783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1784$as_echo_n "checking $2 usability... " >&6; }
1785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1786/* end confdefs.h. */
1787$4
1788#include <$2>
1789_ACEOF
1790if ac_fn_c_try_compile "$LINENO"; then :
1791 ac_header_compiler=yes
1792else
1793 ac_header_compiler=no
1794fi
1795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1797$as_echo "$ac_header_compiler" >&6; }
1798
1799# Is the header present?
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1801$as_echo_n "checking $2 presence... " >&6; }
1802cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803/* end confdefs.h. */
1804#include <$2>
1805_ACEOF
1806if ac_fn_c_try_cpp "$LINENO"; then :
1807 ac_header_preproc=yes
1808else
1809 ac_header_preproc=no
1810fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001811rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1813$as_echo "$ac_header_preproc" >&6; }
1814
1815# So? What about this header?
1816case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1817 yes:no: )
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1819$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822 ;;
1823 no:yes:* )
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1825$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1827$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1829$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1831$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1833$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001834( $as_echo "## ------------------------------------ ##
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001835## Report this to wine-devel@winehq.org ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001836## ------------------------------------ ##"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001837 ) | sed "s/^/$as_me: WARNING: /" >&2
1838 ;;
1839esac
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001842if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001843 $as_echo_n "(cached) " >&6
1844else
1845 eval "$3=\$ac_header_compiler"
1846fi
1847eval ac_res=\$$3
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849$as_echo "$ac_res" >&6; }
1850fi
Alexandre Julliard9797da42011-04-27 17:37:43 +02001851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001852
1853} # ac_fn_c_check_header_mongrel
1854
1855# ac_fn_c_try_run LINENO
1856# ----------------------
1857# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1858# that executables *can* be run.
1859ac_fn_c_try_run ()
1860{
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 if { { ac_try="$ac_link"
1863case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_link") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1873 { { case "(($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_try") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; }; }; then :
1883 ac_retval=0
1884else
1885 $as_echo "$as_me: program exited with status $ac_status" >&5
1886 $as_echo "$as_me: failed program was:" >&5
1887sed 's/^/| /' conftest.$ac_ext >&5
1888
1889 ac_retval=$ac_status
1890fi
1891 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Alexandre Julliard9797da42011-04-27 17:37:43 +02001892 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001893 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001894
1895} # ac_fn_c_try_run
1896
1897# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1898# -------------------------------------------------------
1899# Tests whether HEADER exists and can be compiled using the include files in
1900# INCLUDES, setting the cache variable VAR accordingly.
1901ac_fn_c_check_header_compile ()
1902{
1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1905$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001906if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001907 $as_echo_n "(cached) " >&6
1908else
1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1910/* end confdefs.h. */
1911$4
1912#include <$2>
1913_ACEOF
1914if ac_fn_c_try_compile "$LINENO"; then :
1915 eval "$3=yes"
1916else
1917 eval "$3=no"
1918fi
1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001925
1926} # ac_fn_c_check_header_compile
1927
1928# ac_fn_c_check_func LINENO FUNC VAR
1929# ----------------------------------
1930# Tests whether FUNC exists, setting the cache variable VAR accordingly
1931ac_fn_c_check_func ()
1932{
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001936if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001937 $as_echo_n "(cached) " >&6
1938else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940/* end confdefs.h. */
1941/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1943#define $2 innocuous_$2
1944
1945/* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $2 (); below.
1947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1948 <limits.h> exists even on freestanding compilers. */
1949
1950#ifdef __STDC__
1951# include <limits.h>
1952#else
1953# include <assert.h>
1954#endif
1955
1956#undef $2
1957
1958/* Override any GCC internal prototype to avoid an error.
1959 Use char because int might match the return type of a GCC
1960 builtin and then its argument prototype would still apply. */
1961#ifdef __cplusplus
1962extern "C"
1963#endif
1964char $2 ();
1965/* The GNU C library defines this for functions which it implements
1966 to always fail with ENOSYS. Some functions are actually named
1967 something starting with __ and the normal name is an alias. */
1968#if defined __stub_$2 || defined __stub___$2
1969choke me
1970#endif
1971
1972int
1973main ()
1974{
1975return $2 ();
1976 ;
1977 return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_link "$LINENO"; then :
1981 eval "$3=yes"
1982else
1983 eval "$3=no"
1984fi
1985rm -f core conftest.err conftest.$ac_objext \
1986 conftest$ac_exeext conftest.$ac_ext
1987fi
1988eval ac_res=\$$3
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02001991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001992
1993} # ac_fn_c_check_func
1994
1995# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1996# ----------------------------------------------------
1997# Tries to find if the field MEMBER exists in type AGGR, after including
1998# INCLUDES, setting cache variable VAR accordingly.
1999ac_fn_c_check_member ()
2000{
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2003$as_echo_n "checking for $2.$3... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002004if eval \${$4+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002005 $as_echo_n "(cached) " >&6
2006else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008/* end confdefs.h. */
2009$5
2010int
2011main ()
2012{
2013static $2 ac_aggr;
2014if (ac_aggr.$3)
2015return 0;
2016 ;
2017 return 0;
2018}
2019_ACEOF
2020if ac_fn_c_try_compile "$LINENO"; then :
2021 eval "$4=yes"
2022else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h. */
2025$5
2026int
2027main ()
2028{
2029static $2 ac_aggr;
2030if (sizeof ac_aggr.$3)
2031return 0;
2032 ;
2033 return 0;
2034}
2035_ACEOF
2036if ac_fn_c_try_compile "$LINENO"; then :
2037 eval "$4=yes"
2038else
2039 eval "$4=no"
2040fi
2041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2042fi
2043rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2044fi
2045eval ac_res=\$$4
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2047$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002049
2050} # ac_fn_c_check_member
2051
2052# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2053# -------------------------------------------
2054# Tests whether TYPE exists after having included INCLUDES, setting cache
2055# variable VAR accordingly.
2056ac_fn_c_check_type ()
2057{
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060$as_echo_n "checking for $2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002061if eval \${$3+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002062 $as_echo_n "(cached) " >&6
2063else
2064 eval "$3=no"
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066/* end confdefs.h. */
2067$4
2068int
2069main ()
2070{
2071if (sizeof ($2))
2072 return 0;
2073 ;
2074 return 0;
2075}
2076_ACEOF
2077if ac_fn_c_try_compile "$LINENO"; then :
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079/* end confdefs.h. */
2080$4
2081int
2082main ()
2083{
2084if (sizeof (($2)))
2085 return 0;
2086 ;
2087 return 0;
2088}
2089_ACEOF
2090if ac_fn_c_try_compile "$LINENO"; then :
2091
2092else
2093 eval "$3=yes"
2094fi
2095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096fi
2097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098fi
2099eval ac_res=\$$3
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101$as_echo "$ac_res" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002103
2104} # ac_fn_c_check_type
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002105cat >config.log <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002106This file contains any messages produced by compilers while
2107running configure, to aid debugging if configure makes a mistake.
2108
Alexandre Julliard8c00ee02011-08-05 19:24:22 +02002109It was created by Wine $as_me 1.3.26, which was
Alexandre Julliard9797da42011-04-27 17:37:43 +02002110generated by GNU Autoconf 2.68. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002111
2112 $ $0 $@
2113
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002114_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002115exec 5>>config.log
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002116{
2117cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002118## --------- ##
2119## Platform. ##
2120## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002121
2122hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2123uname -m = `(uname -m) 2>/dev/null || echo unknown`
2124uname -r = `(uname -r) 2>/dev/null || echo unknown`
2125uname -s = `(uname -s) 2>/dev/null || echo unknown`
2126uname -v = `(uname -v) 2>/dev/null || echo unknown`
2127
2128/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2129/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2130
2131/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2132/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2133/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002134/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002135/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2136/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2137/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2138
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002139_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002140
2141as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2142for as_dir in $PATH
2143do
2144 IFS=$as_save_IFS
2145 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002146 $as_echo "PATH: $as_dir"
2147 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002148IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002149
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002150} >&5
2151
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002152cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002153
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002154
2155## ----------- ##
2156## Core tests. ##
2157## ----------- ##
2158
2159_ACEOF
2160
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002161
2162# Keep a trace of the command line.
2163# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002164# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002165# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002166# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002167ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002168ac_configure_args0=
2169ac_configure_args1=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002170ac_must_keep_next=false
2171for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002172do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002173 for ac_arg
2174 do
2175 case $ac_arg in
2176 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2178 | -silent | --silent | --silen | --sile | --sil)
2179 continue ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002180 *\'*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01002181 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002182 esac
2183 case $ac_pass in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002184 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002185 2)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002186 as_fn_append ac_configure_args1 " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002187 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00002188 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002189 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00002190 case $ac_arg in
2191 *=* | --config-cache | -C | -disable-* | --disable-* \
2192 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2193 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2194 | -with-* | --with-* | -without-* | --without-* | --x)
2195 case "$ac_configure_args0 " in
2196 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2197 esac
2198 ;;
2199 -* ) ac_must_keep_next=true ;;
2200 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002201 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002202 as_fn_append ac_configure_args " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002203 ;;
2204 esac
2205 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002206done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002207{ ac_configure_args0=; unset ac_configure_args0;}
2208{ ac_configure_args1=; unset ac_configure_args1;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002209
2210# When interrupted or exit'd, cleanup temporary files, and complete
2211# config.log. We remove comments because anyway the quotes in there
2212# would cause problems or look ugly.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002213# WARNING: Use '\'' to represent an apostrophe within the trap.
2214# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002215trap 'exit_status=$?
2216 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002217 {
2218 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002219
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002220 $as_echo "## ---------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002221## Cache variables. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002222## ---------------- ##"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002223 echo
2224 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002225(
2226 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2227 eval ac_val=\$$ac_var
2228 case $ac_val in #(
2229 *${as_nl}*)
2230 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002231 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002232$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002233 esac
2234 case $ac_var in #(
2235 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +01002236 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002237 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002238 esac ;;
2239 esac
2240 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002241 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002242 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2243 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002244 sed -n \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002245 "s/'\''/'\''\\\\'\'''\''/g;
2246 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2247 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002248 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002249 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002250 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002251 esac |
2252 sort
2253)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002254 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002255
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002256 $as_echo "## ----------------- ##
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002257## Output variables. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002258## ----------------- ##"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002259 echo
2260 for ac_var in $ac_subst_vars
2261 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002262 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002263 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002264 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002265 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002266 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002267 done | sort
2268 echo
2269
2270 if test -n "$ac_subst_files"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002271 $as_echo "## ------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002272## File substitutions. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002273## ------------------- ##"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002274 echo
2275 for ac_var in $ac_subst_files
2276 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002277 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002278 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002279 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002280 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002281 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002282 done | sort
2283 echo
2284 fi
2285
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002286 if test -s confdefs.h; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002287 $as_echo "## ----------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002288## confdefs.h. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002289## ----------- ##"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002290 echo
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002291 cat confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002292 echo
2293 fi
2294 test "$ac_signal" != 0 &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01002295 $as_echo "$as_me: caught signal $ac_signal"
2296 $as_echo "$as_me: exit $exit_status"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002297 } >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002300 exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002301' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002302for ac_signal in 1 2 13 15; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002304done
2305ac_signal=0
2306
2307# confdefs.h avoids OS command line length limits that DEFS can exceed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002308rm -f -r conftest* confdefs.h
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002309
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002310$as_echo "/* confdefs.h */" > confdefs.h
2311
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002312# Predefined preprocessor variables.
2313
2314cat >>confdefs.h <<_ACEOF
2315#define PACKAGE_NAME "$PACKAGE_NAME"
2316_ACEOF
2317
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002318cat >>confdefs.h <<_ACEOF
2319#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2320_ACEOF
2321
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002322cat >>confdefs.h <<_ACEOF
2323#define PACKAGE_VERSION "$PACKAGE_VERSION"
2324_ACEOF
2325
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002326cat >>confdefs.h <<_ACEOF
2327#define PACKAGE_STRING "$PACKAGE_STRING"
2328_ACEOF
2329
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002330cat >>confdefs.h <<_ACEOF
2331#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2332_ACEOF
2333
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002334cat >>confdefs.h <<_ACEOF
2335#define PACKAGE_URL "$PACKAGE_URL"
2336_ACEOF
2337
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002338
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002339# Let the site file select an alternate cache file if it wants to.
Alexandre Julliardabf50482008-10-31 12:56:53 +01002340# Prefer an explicitly selected file to automatically selected ones.
2341ac_site_file1=NONE
2342ac_site_file2=NONE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002343if test -n "$CONFIG_SITE"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002344 # We do not want a PATH search for config.site.
2345 case $CONFIG_SITE in #((
2346 -*) ac_site_file1=./$CONFIG_SITE;;
2347 */*) ac_site_file1=$CONFIG_SITE;;
2348 *) ac_site_file1=./$CONFIG_SITE;;
2349 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002350elif test "x$prefix" != xNONE; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002351 ac_site_file1=$prefix/share/config.site
2352 ac_site_file2=$prefix/etc/config.site
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002353else
Alexandre Julliardabf50482008-10-31 12:56:53 +01002354 ac_site_file1=$ac_default_prefix/share/config.site
2355 ac_site_file2=$ac_default_prefix/etc/config.site
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002356fi
Alexandre Julliardabf50482008-10-31 12:56:53 +01002357for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002358do
Alexandre Julliardabf50482008-10-31 12:56:53 +01002359 test "x$ac_site_file" = xNONE && continue
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002360 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002361 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002362$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002363 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002364 . "$ac_site_file" \
2365 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2367as_fn_error $? "failed to load site script $ac_site_file
Alexandre Julliard9797da42011-04-27 17:37:43 +02002368See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002369 fi
2370done
2371
2372if test -r "$cache_file"; then
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002373 # Some versions of bash will fail to source /dev/null (special files
2374 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2375 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002376 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002377$as_echo "$as_me: loading cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002378 case $cache_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02002379 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2380 *) . "./$cache_file";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002381 esac
2382 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002383else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002384 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002385$as_echo "$as_me: creating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002386 >$cache_file
2387fi
2388
2389# Check that the precious variables saved in the cache have kept the same
2390# value.
2391ac_cache_corrupted=false
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002392for ac_var in $ac_precious_vars; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002393 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2394 eval ac_new_set=\$ac_env_${ac_var}_set
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002395 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2396 eval ac_new_val=\$ac_env_${ac_var}_value
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002397 case $ac_old_set,$ac_new_set in
2398 set,)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002399 { $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 +01002400$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 +00002401 ac_cache_corrupted=: ;;
2402 ,set)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002403 { $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 +01002404$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002405 ac_cache_corrupted=: ;;
2406 ,);;
2407 *)
2408 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002409 # differences in whitespace do not lead to failure.
2410 ac_old_val_w=`echo x $ac_old_val`
2411 ac_new_val_w=`echo x $ac_new_val`
2412 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002414$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2415 ac_cache_corrupted=:
2416 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002417 { $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 +01002418$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2419 eval $ac_var=\$ac_old_val
2420 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002421 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002422$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002423 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002424$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002425 fi;;
2426 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002427 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002428 if test "$ac_new_set" = set; then
2429 case $ac_new_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002430 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002431 *) ac_arg=$ac_var=$ac_new_val ;;
2432 esac
2433 case " $ac_configure_args " in
2434 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002435 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002436 esac
2437 fi
2438done
2439if $ac_cache_corrupted; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002440 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002441$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002442 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002443$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002444 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002445fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002446## -------------------- ##
2447## Main body of script. ##
2448## -------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002449
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002450ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002451ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2454ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002455
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002456
2457
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002458ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00002459
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002460ac_aux_dir=
Jeremy White0ebeb532006-06-20 13:18:41 +02002461for ac_dir in tools "$srcdir"/tools; do
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002462 if test -f "$ac_dir/install-sh"; then
2463 ac_aux_dir=$ac_dir
2464 ac_install_sh="$ac_aux_dir/install-sh -c"
2465 break
2466 elif test -f "$ac_dir/install.sh"; then
2467 ac_aux_dir=$ac_dir
2468 ac_install_sh="$ac_aux_dir/install.sh -c"
2469 break
2470 elif test -f "$ac_dir/shtool"; then
2471 ac_aux_dir=$ac_dir
2472 ac_install_sh="$ac_aux_dir/shtool install -c"
2473 break
2474 fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002475done
2476if test -z "$ac_aux_dir"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002477 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002478fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002479
2480# These three variables are undocumented and unsupported,
2481# and are intended to be withdrawn in a future Autoconf release.
2482# They can cause serious problems if a builder's source tree is in a directory
2483# whose full name contains unusual characters.
2484ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2485ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2486ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2487
Howard Abrams13277481999-07-10 13:16:29 +00002488
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002489
2490
Alexandre Julliardd59227e2010-02-20 12:36:04 +01002491
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002492# Check whether --enable-win16 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002493if test "${enable_win16+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002494 enableval=$enable_win16;
2495fi
Alexandre Julliardc728efc2002-10-02 02:34:09 +00002496
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002497# Check whether --enable-win64 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002498if test "${enable_win64+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002499 enableval=$enable_win64;
2500fi
Alexandre Julliardb8074992002-11-21 21:51:24 +00002501
Alexandre Julliard35078f42008-11-21 10:16:12 +01002502# Check whether --enable-tests was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002503if test "${enable_tests+set}" = set; then :
Alexandre Julliard35078f42008-11-21 10:16:12 +01002504 enableval=$enable_tests;
2505fi
2506
Alexandre Julliard9d037222008-03-20 13:00:12 +01002507# Check whether --enable-maintainer-mode was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002508if test "${enable_maintainer_mode+set}" = set; then :
Alexandre Julliard9d037222008-03-20 13:00:12 +01002509 enableval=$enable_maintainer_mode;
Alexandre Julliard9d037222008-03-20 13:00:12 +01002510fi
2511
Alexandre Julliardb8074992002-11-21 21:51:24 +00002512
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002513
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002514# Check whether --with-alsa was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002515if test "${with_alsa+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002516 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2517fi
2518
2519
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002520# Check whether --with-capi was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002521if test "${with_capi+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002522 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2523fi
2524
2525
2526# Check whether --with-cms was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002527if test "${with_cms+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002528 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2529fi
2530
2531
2532# Check whether --with-coreaudio was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002533if test "${with_coreaudio+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002534 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2535fi
2536
2537
2538# Check whether --with-cups was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002539if test "${with_cups+set}" = set; then :
Francois Gouget289ea332008-07-24 16:09:07 +02002540 withval=$with_cups;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002541fi
2542
2543
2544# Check whether --with-curses was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002545if test "${with_curses+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002546 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2547fi
2548
2549
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002550# Check whether --with-fontconfig was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002551if test "${with_fontconfig+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002552 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2553fi
2554
2555
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002556# Check whether --with-freetype was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002557if test "${with_freetype+set}" = set; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002558 withval=$with_freetype;
2559fi
2560
2561
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01002562# Check whether --with-gettextpo was given.
2563if test "${with_gettextpo+set}" = set; then :
2564 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2565fi
2566
2567
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002568# Check whether --with-gphoto was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002569if test "${with_gphoto+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002570 withval=$with_gphoto;
2571fi
2572
2573
Alexandre Julliardad798732008-05-01 13:29:02 +02002574# Check whether --with-glu was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002575if test "${with_glu+set}" = set; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02002576 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2577fi
2578
2579
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002580# Check whether --with-gnutls was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002581if test "${with_gnutls+set}" = set; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002582 withval=$with_gnutls;
2583fi
2584
2585
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02002586# Check whether --with-gsm was given.
2587if test "${with_gsm+set}" = set; then :
2588 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 +02002589fi
2590
2591
Aric Stewart2914d652010-10-20 13:55:16 -05002592# Check whether --with-gstreamer was given.
2593if test "${with_gstreamer+set}" = set; then :
2594 withval=$with_gstreamer;
2595fi
2596
2597
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002598# Check whether --with-hal was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002599if test "${with_hal+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002600 withval=$with_hal;
2601fi
2602
2603
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002604# Check whether --with-jpeg was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002605if test "${with_jpeg+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002606 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2607fi
2608
2609
2610# Check whether --with-ldap was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002611if test "${with_ldap+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002612 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2613fi
2614
2615
Aric Stewartdb71d7c2009-08-19 09:37:48 -05002616# Check whether --with-mpg123 was given.
2617if test "${with_mpg123+set}" = set; then :
2618 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2619fi
2620
2621
Chris Robinson862965f2009-08-25 03:26:35 -07002622# Check whether --with-openal was given.
2623if test "${with_openal+set}" = set; then :
Ken Thomases0b08f192009-09-09 22:23:35 -05002624 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 -07002625fi
2626
2627
Peter Urbanec65c84d72010-12-02 23:41:48 +11002628# Check whether --with-opencl was given.
2629if test "${with_opencl+set}" = set; then :
Adam Martinson2eb2f712010-12-28 12:46:09 -06002630 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 +11002631fi
2632
2633
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002634# Check whether --with-opengl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002635if test "${with_opengl+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002636 withval=$with_opengl;
2637fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002638
Alexandre Julliardf90efa91998-06-14 15:24:15 +00002639
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002640# Check whether --with-openssl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002641if test "${with_openssl+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002642 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2643fi
2644
2645
2646# Check whether --with-oss was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002647if test "${with_oss+set}" = set; then :
Alexandre Julliardf60a0f52011-05-02 20:06:49 +02002648 withval=$with_oss;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002649fi
2650
2651
2652# Check whether --with-png was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002653if test "${with_png+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002654 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2655fi
2656
2657
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002658# Check whether --with-pthread was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002659if test "${with_pthread+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002660 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2661fi
2662
2663
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002664# Check whether --with-sane was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002665if test "${with_sane+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002666 withval=$with_sane;
2667fi
2668
2669
Vincent Povirk73cd5692010-03-08 17:07:29 -06002670# Check whether --with-tiff was given.
2671if test "${with_tiff+set}" = set; then :
2672 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2673fi
2674
2675
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01002676# Check whether --with-v4l was given.
2677if test "${with_v4l+set}" = set; then :
2678 withval=$with_v4l;
2679fi
2680
2681
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002682# Check whether --with-xcomposite was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002683if test "${with_xcomposite+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002684 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2685fi
2686
2687
2688# Check whether --with-xcursor was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002689if test "${with_xcursor+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002690 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2691fi
2692
2693
2694# Check whether --with-xinerama was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002695if test "${with_xinerama+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002696 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2697fi
2698
2699
2700# Check whether --with-xinput was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002701if test "${with_xinput+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002702 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2703fi
2704
2705
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02002706# Check whether --with-xinput2 was given.
2707if test "${with_xinput2+set}" = set; then :
2708 withval=$with_xinput2; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput2_h=no; fi
2709fi
2710
2711
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002712# Check whether --with-xml was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002713if test "${with_xml+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002714 withval=$with_xml;
2715fi
2716
2717
2718# Check whether --with-xrandr was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002719if test "${with_xrandr+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002720 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2721fi
2722
2723
2724# Check whether --with-xrender was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002725if test "${with_xrender+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002726 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2727fi
2728
2729
2730# Check whether --with-xshape was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002731if test "${with_xshape+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002732 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2733fi
2734
2735
2736# Check whether --with-xshm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002737if test "${with_xshm+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002738 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2739fi
2740
2741
2742# Check whether --with-xslt was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002743if test "${with_xslt+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002744 withval=$with_xslt;
2745fi
2746
2747
Francois Gougeta49beb42008-06-26 14:02:17 +02002748# Check whether --with-xxf86vm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002749if test "${with_xxf86vm+set}" = set; then :
André Hentschel7b285a42009-09-19 19:08:09 +02002750 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 +01002751fi
2752
2753
Alexandre Julliardba6a41a2011-02-18 13:07:27 +01002754# Check whether --with-zlib was given.
2755if test "${with_zlib+set}" = set; then :
2756 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2757fi
2758
2759
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002760
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002761# Check whether --with-wine-tools was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002762if test "${with_wine_tools+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002763 withval=$with_wine_tools;
2764fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002765
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002766
Alexandre Julliard39a75d32009-08-13 19:45:31 +02002767# Check whether --with-wine64 was given.
2768if test "${with_wine64+set}" = set; then :
2769 withval=$with_wine64;
2770fi
2771
2772
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002773# Make sure we can run config.sub.
Jeremy White0ebeb532006-06-20 13:18:41 +02002774$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002775 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00002776
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002778$as_echo_n "checking build system type... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002779if ${ac_cv_build+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002780 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002781else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002782 ac_build_alias=$build_alias
2783test "x$ac_build_alias" = x &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002784 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002785test "x$ac_build_alias" = x &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002786 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Jeremy White0ebeb532006-06-20 13:18:41 +02002787ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002788 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002789
2790fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002792$as_echo "$ac_cv_build" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002793case $ac_cv_build in
2794*-*-*) ;;
Alexandre Julliard9797da42011-04-27 17:37:43 +02002795*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002796esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002797build=$ac_cv_build
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002798ac_save_IFS=$IFS; IFS='-'
2799set x $ac_cv_build
2800shift
2801build_cpu=$1
2802build_vendor=$2
2803shift; shift
2804# Remember, the first character of IFS is used to create $*,
2805# except with old shells:
2806build_os=$*
2807IFS=$ac_save_IFS
2808case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002809
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002810
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002812$as_echo_n "checking host system type... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002813if ${ac_cv_host+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002814 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002815else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002816 if test "x$host_alias" = x; then
2817 ac_cv_host=$ac_cv_build
2818else
Jeremy White0ebeb532006-06-20 13:18:41 +02002819 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002820 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002821fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002822
2823fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002825$as_echo "$ac_cv_host" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002826case $ac_cv_host in
2827*-*-*) ;;
Alexandre Julliard9797da42011-04-27 17:37:43 +02002828*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002829esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002830host=$ac_cv_host
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002831ac_save_IFS=$IFS; IFS='-'
2832set x $ac_cv_host
2833shift
2834host_cpu=$1
2835host_vendor=$2
2836shift; shift
2837# Remember, the first character of IFS is used to create $*,
2838# except with old shells:
2839host_os=$*
2840IFS=$ac_save_IFS
2841case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002842
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002843
Alexandre Julliard71440f32005-05-19 14:28:17 +00002844
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002845case "$srcdir" in
2846 .) ;;
2847 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002848 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 +02002849You need to run 'make distclean' in the source tree first." "$LINENO" 5
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002850 fi ;;
2851esac
2852
Alexandre Julliard71440f32005-05-19 14:28:17 +00002853
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002855$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2856set x ${MAKE-make}
2857ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Alexandre Julliard9797da42011-04-27 17:37:43 +02002858if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002859 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002860else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002861 cat >conftest.make <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002862SHELL = /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002863all:
Jeremy White0ebeb532006-06-20 13:18:41 +02002864 @echo '@@@%%%=$(MAKE)=@@@%%%'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002865_ACEOF
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002866# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02002867case `${MAKE-make} -f conftest.make 2>/dev/null` in
2868 *@@@%%%=?*=@@@%%%*)
2869 eval ac_cv_prog_make_${ac_make}_set=yes;;
2870 *)
2871 eval ac_cv_prog_make_${ac_make}_set=no;;
2872esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002873rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002874fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002875if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002877$as_echo "yes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002878 SET_MAKE=
2879else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002881$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002882 SET_MAKE="MAKE=${MAKE-make}"
2883fi
2884
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002885ac_ext=c
2886ac_cpp='$CPP $CPPFLAGS'
2887ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889ac_compiler_gnu=$ac_cv_c_compiler_gnu
2890if test -n "$ac_tool_prefix"; then
2891 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2892set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002894$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002895if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002896 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002897else
2898 if test -n "$CC"; then
2899 ac_cv_prog_CC="$CC" # Let the user override the test.
2900else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902for as_dir in $PATH
2903do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002906 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002907 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 +00002908 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002910 break 2
2911 fi
2912done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002913 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002914IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002915
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002916fi
2917fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002918CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002919if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002921$as_echo "$CC" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002922else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002924$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002925fi
2926
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002927
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002928fi
2929if test -z "$ac_cv_prog_CC"; then
2930 ac_ct_CC=$CC
2931 # Extract the first word of "gcc", so it can be a program name with args.
2932set dummy gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002934$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002935if ${ac_cv_prog_ac_ct_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002936 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002937else
2938 if test -n "$ac_ct_CC"; then
2939 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2940else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2942for as_dir in $PATH
2943do
2944 IFS=$as_save_IFS
2945 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002946 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002947 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 +00002948 ac_cv_prog_ac_ct_CC="gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002950 break 2
2951 fi
2952done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002953 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002954IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002955
2956fi
2957fi
2958ac_ct_CC=$ac_cv_prog_ac_ct_CC
2959if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002961$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002962else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002964$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002965fi
2966
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002967 if test "x$ac_ct_CC" = x; then
2968 CC=""
2969 else
2970 case $cross_compiling:$ac_tool_warned in
2971yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002972{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002973$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002974ac_tool_warned=yes ;;
2975esac
2976 CC=$ac_ct_CC
2977 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002978else
2979 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002980fi
2981
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002982if test -z "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002983 if test -n "$ac_tool_prefix"; then
2984 # 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 +00002985set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002987$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02002988if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002989 $as_echo_n "(cached) " >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002990else
2991 if test -n "$CC"; then
2992 ac_cv_prog_CC="$CC" # Let the user override the test.
2993else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2995for as_dir in $PATH
2996do
2997 IFS=$as_save_IFS
2998 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002999 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003000 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 +00003001 ac_cv_prog_CC="${ac_tool_prefix}cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003003 break 2
3004 fi
3005done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003006 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003007IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003008
3009fi
3010fi
3011CC=$ac_cv_prog_CC
3012if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003014$as_echo "$CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003015else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003017$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003018fi
3019
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003020
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003021 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003022fi
3023if test -z "$CC"; then
3024 # Extract the first word of "cc", so it can be a program name with args.
3025set dummy cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003027$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003028if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003029 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003030else
3031 if test -n "$CC"; then
3032 ac_cv_prog_CC="$CC" # Let the user override the test.
3033else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003034 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003035as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036for as_dir in $PATH
3037do
3038 IFS=$as_save_IFS
3039 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003040 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003041 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 +00003042 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3043 ac_prog_rejected=yes
3044 continue
3045 fi
3046 ac_cv_prog_CC="cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003048 break 2
3049 fi
3050done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003051 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003052IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003053
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003054if test $ac_prog_rejected = yes; then
3055 # We found a bogon in the path, so make sure we never use it.
3056 set dummy $ac_cv_prog_CC
3057 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003058 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003059 # We chose a different compiler from the bogus one.
3060 # However, it has the same basename, so the bogon will be chosen
3061 # first if we set CC to just the basename; use the full file name.
3062 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003063 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003064 fi
3065fi
3066fi
3067fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003068CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003069if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003071$as_echo "$CC" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003072else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003074$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003075fi
3076
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003077
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003078fi
3079if test -z "$CC"; then
3080 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003081 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003082 do
3083 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3084set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003086$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003087if ${ac_cv_prog_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003088 $as_echo_n "(cached) " >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00003089else
3090 if test -n "$CC"; then
3091 ac_cv_prog_CC="$CC" # Let the user override the test.
3092else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094for as_dir in $PATH
3095do
3096 IFS=$as_save_IFS
3097 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003098 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003099 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 +00003100 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003102 break 2
3103 fi
3104done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003105 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003106IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003107
Eric Pouech18ad24a2000-01-16 22:16:33 +00003108fi
3109fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003110CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00003111if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003113$as_echo "$CC" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003114else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003116$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003117fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003118
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003119
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003120 test -n "$CC" && break
3121 done
3122fi
3123if test -z "$CC"; then
3124 ac_ct_CC=$CC
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003125 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003126do
3127 # Extract the first word of "$ac_prog", so it can be a program name with args.
3128set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003130$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003131if ${ac_cv_prog_ac_ct_CC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003132 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003133else
3134 if test -n "$ac_ct_CC"; then
3135 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3136else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138for as_dir in $PATH
3139do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003142 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003143 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 +00003144 ac_cv_prog_ac_ct_CC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003146 break 2
3147 fi
3148done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003149 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003150IFS=$as_save_IFS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003151
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003152fi
3153fi
3154ac_ct_CC=$ac_cv_prog_ac_ct_CC
3155if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003157$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003158else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003160$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003161fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003162
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003163
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003164 test -n "$ac_ct_CC" && break
3165done
Eric Pouech18ad24a2000-01-16 22:16:33 +00003166
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003167 if test "x$ac_ct_CC" = x; then
3168 CC=""
3169 else
3170 case $cross_compiling:$ac_tool_warned in
3171yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003172{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003173$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003174ac_tool_warned=yes ;;
3175esac
3176 CC=$ac_ct_CC
3177 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003178fi
3179
3180fi
3181
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003182
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003183test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003184$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003185as_fn_error $? "no acceptable C compiler found in \$PATH
Alexandre Julliard9797da42011-04-27 17:37:43 +02003186See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003187
3188# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003189$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003190set X $ac_compile
3191ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003192for ac_option in --version -v -V -qversion; do
3193 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003194case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003198eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199$as_echo "$ac_try_echo"; } >&5
3200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003201 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003202 if test -s conftest.err; then
3203 sed '10a\
3204... rest of stderr output deleted ...
3205 10q' conftest.err >conftest.er1
3206 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003207 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003208 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003209 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3210 test $ac_status = 0; }
3211done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003212
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003214/* end confdefs.h. */
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003215
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003216int
3217main ()
3218{
3219
3220 ;
3221 return 0;
3222}
3223_ACEOF
3224ac_clean_files_save=$ac_clean_files
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003225ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003226# Try to create an executable without -o first, disregard a.out.
3227# It will help us diagnose broken compilers, and finding out an intuition
3228# of exeext.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3230$as_echo_n "checking whether the C compiler works... " >&6; }
Alexandre Julliardabf50482008-10-31 12:56:53 +01003231ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3232
3233# The possible output files:
3234ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3235
Jeremy White0ebeb532006-06-20 13:18:41 +02003236ac_rmfiles=
3237for ac_file in $ac_files
3238do
3239 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242 esac
3243done
3244rm -f $ac_rmfiles
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003245
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003246if { { ac_try="$ac_link_default"
Jeremy White0ebeb532006-06-20 13:18:41 +02003247case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3252$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003253 (eval "$ac_link_default") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003254 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3256 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003257 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3258# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3259# in a Makefile. We should not override ac_cv_exeext if it was cached,
3260# so that the user can short-circuit this test for compilers unknown to
3261# Autoconf.
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003262for ac_file in $ac_files ''
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003263do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003264 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003265 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jeremy White0ebeb532006-06-20 13:18:41 +02003267 ;;
3268 [ab].out )
3269 # We found the default executable, but exeext='' is most
3270 # certainly right.
3271 break;;
3272 *.* )
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003273 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jeremy White0ebeb532006-06-20 13:18:41 +02003274 then :; else
3275 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3276 fi
3277 # We set ac_cv_exeext here because the later test for it is not
3278 # safe: cross compilers may not add the suffix if given an `-o'
3279 # argument, so we may need to know it at that point already.
3280 # Even if this section looks crufty: it has the advantage of
3281 # actually working.
3282 break;;
3283 * )
3284 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003285 esac
3286done
Jeremy White0ebeb532006-06-20 13:18:41 +02003287test "$ac_cv_exeext" = no && ac_cv_exeext=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003288
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003289else
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003290 ac_file=''
3291fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003292if test -z "$ac_file"; then :
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3294$as_echo "no" >&6; }
3295$as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003296sed 's/^/| /' conftest.$ac_ext >&5
3297
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003298{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003299$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003300as_fn_error 77 "C compiler cannot create executables
Alexandre Julliard9797da42011-04-27 17:37:43 +02003301See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003302else
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3304$as_echo "yes" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003305fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3307$as_echo_n "checking for C compiler default output file name... " >&6; }
3308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3309$as_echo "$ac_file" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003310ac_exeext=$ac_cv_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02003311
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003312rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jeremy White0ebeb532006-06-20 13:18:41 +02003313ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003315$as_echo_n "checking for suffix of executables... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003316if { { ac_try="$ac_link"
Jeremy White0ebeb532006-06-20 13:18:41 +02003317case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003321eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3322$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003323 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003324 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3326 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003327 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3328# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3329# work properly (i.e., refer to `conftest.exe'), while it won't with
3330# `rm'.
3331for ac_file in conftest.exe conftest conftest.*; do
3332 test -f "$ac_file" || continue
3333 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003334 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003335 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3336 break;;
3337 * ) break;;
3338 esac
3339done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003340else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003342$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003343as_fn_error $? "cannot compute suffix of executables: cannot compile and link
Alexandre Julliard9797da42011-04-27 17:37:43 +02003344See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003345fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003346rm -f conftest conftest$ac_cv_exeext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003348$as_echo "$ac_cv_exeext" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003349
3350rm -f conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003351EXEEXT=$ac_cv_exeext
3352ac_exeext=$EXEEXT
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3354/* end confdefs.h. */
3355#include <stdio.h>
3356int
3357main ()
3358{
3359FILE *f = fopen ("conftest.out", "w");
3360 return ferror (f) || fclose (f) != 0;
3361
3362 ;
3363 return 0;
3364}
3365_ACEOF
3366ac_clean_files="$ac_clean_files conftest.out"
3367# Check that the compiler produces executables we can run. If not, either
3368# the compiler is broken, or we cross compile.
3369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3370$as_echo_n "checking whether we are cross compiling... " >&6; }
3371if test "$cross_compiling" != yes; then
3372 { { ac_try="$ac_link"
3373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
3379 (eval "$ac_link") 2>&5
3380 ac_status=$?
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }
3383 if { ac_try='./conftest$ac_cv_exeext'
3384 { { case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387esac
3388eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389$as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; }; then
3394 cross_compiling=no
3395 else
3396 if test "$cross_compiling" = maybe; then
3397 cross_compiling=yes
3398 else
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003401as_fn_error $? "cannot run C compiled programs.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003402If you meant to cross compile, use \`--host'.
Alexandre Julliard9797da42011-04-27 17:37:43 +02003403See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003404 fi
3405 fi
3406fi
3407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3408$as_echo "$cross_compiling" >&6; }
3409
3410rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3411ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003413$as_echo_n "checking for suffix of object files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003414if ${ac_cv_objext+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003415 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003416else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jeremy White0ebeb532006-06-20 13:18:41 +02003418/* end confdefs.h. */
3419
3420int
3421main ()
3422{
3423
3424 ;
3425 return 0;
3426}
3427_ACEOF
3428rm -f conftest.o conftest.obj
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003429if { { ac_try="$ac_compile"
Jeremy White0ebeb532006-06-20 13:18:41 +02003430case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003434eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003436 (eval "$ac_compile") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003437 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003440 for ac_file in conftest.o conftest.obj conftest.*; do
3441 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003442 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3445 break;;
3446 esac
3447done
3448else
Alexandre Julliardabf50482008-10-31 12:56:53 +01003449 $as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003450sed 's/^/| /' conftest.$ac_ext >&5
3451
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003452{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003453$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003454as_fn_error $? "cannot compute suffix of object files: cannot compile
Alexandre Julliard9797da42011-04-27 17:37:43 +02003455See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003456fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003457rm -f conftest.$ac_cv_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003458fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003460$as_echo "$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003461OBJEXT=$ac_cv_objext
3462ac_objext=$OBJEXT
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003464$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003465if ${ac_cv_c_compiler_gnu+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003466 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003467else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003469/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003470
3471int
3472main ()
3473{
3474#ifndef __GNUC__
3475 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003476#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003477
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003478 ;
3479 return 0;
3480}
3481_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003482if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003483 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00003484else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003485 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00003486fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003488ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00003489
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003490fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003492$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3493if test $ac_compiler_gnu = yes; then
3494 GCC=yes
3495else
3496 GCC=
3497fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003498ac_test_CFLAGS=${CFLAGS+set}
3499ac_save_CFLAGS=$CFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003501$as_echo_n "checking whether $CC accepts -g... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003502if ${ac_cv_prog_cc_g+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003503 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003504else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003505 ac_save_c_werror_flag=$ac_c_werror_flag
3506 ac_c_werror_flag=yes
3507 ac_cv_prog_cc_g=no
3508 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003510/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003511
3512int
3513main ()
3514{
3515
3516 ;
3517 return 0;
3518}
3519_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003520if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003521 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003522else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003523 CFLAGS=""
3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003525/* end confdefs.h. */
3526
3527int
3528main ()
3529{
3530
3531 ;
3532 return 0;
3533}
3534_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003535if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003536
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003537else
3538 ac_c_werror_flag=$ac_save_c_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003539 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003541/* end confdefs.h. */
3542
3543int
3544main ()
3545{
3546
3547 ;
3548 return 0;
3549}
3550_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003551if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003552 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003553fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003555fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003556rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003557fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003558rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003559 ac_c_werror_flag=$ac_save_c_werror_flag
3560fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003562$as_echo "$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003563if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003564 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003565elif test $ac_cv_prog_cc_g = yes; then
3566 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003567 CFLAGS="-g -O2"
3568 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003569 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003570 fi
3571else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003572 if test "$GCC" = yes; then
3573 CFLAGS="-O2"
3574 else
3575 CFLAGS=
3576 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003577fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003579$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003580if ${ac_cv_prog_cc_c89+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003581 $as_echo_n "(cached) " >&6
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003582else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003583 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003584ac_save_CC=$CC
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003585cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003586/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003587#include <stdarg.h>
3588#include <stdio.h>
3589#include <sys/types.h>
3590#include <sys/stat.h>
3591/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3592struct buf { int x; };
3593FILE * (*rcsopen) (struct buf *, struct stat *, int);
3594static char *e (p, i)
3595 char **p;
3596 int i;
3597{
3598 return p[i];
3599}
3600static char *f (char * (*g) (char **, int), char **p, ...)
3601{
3602 char *s;
3603 va_list v;
3604 va_start (v,p);
3605 s = g (p, va_arg (v,int));
3606 va_end (v);
3607 return s;
3608}
Alexandre Julliard875927f2004-01-02 01:55:29 +00003609
3610/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3611 function prototypes and stuff, but not '\xHH' hex character constants.
3612 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003613 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00003614 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3615 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003616 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003617int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3618
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02003619/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3620 inside strings and character constants. */
3621#define FOO(x) 'x'
3622int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3623
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003624int test (int i, double x);
3625struct s1 {int (*f) (int a);};
3626struct s2 {int (*f) (double a);};
3627int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3628int argc;
3629char **argv;
3630int
3631main ()
3632{
3633return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3634 ;
3635 return 0;
3636}
3637_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003638for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3639 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003640do
3641 CC="$ac_save_CC $ac_arg"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003642 if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003643 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003644fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003645rm -f core conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003646 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003647done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003648rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003649CC=$ac_save_CC
3650
3651fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003652# AC_CACHE_VAL
3653case "x$ac_cv_prog_cc_c89" in
3654 x)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003656$as_echo "none needed" >&6; } ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003657 xno)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003659$as_echo "unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003660 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003661 CC="$CC $ac_cv_prog_cc_c89"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003663$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003664esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003665if test "x$ac_cv_prog_cc_c89" != xno; then :
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003666
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003667fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003668
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003669ac_ext=c
3670ac_cpp='$CPP $CPPFLAGS'
3671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3673ac_compiler_gnu=$ac_cv_c_compiler_gnu
3674
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003675ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003676ac_cpp='$CXXCPP $CPPFLAGS'
3677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003680if test -z "$CXX"; then
3681 if test -n "$CCC"; then
3682 CXX=$CCC
3683 else
3684 if test -n "$ac_tool_prefix"; then
3685 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 +00003686 do
3687 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3688set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003690$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003691if ${ac_cv_prog_CXX+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003692 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003693else
3694 if test -n "$CXX"; then
3695 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3696else
3697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698for as_dir in $PATH
3699do
3700 IFS=$as_save_IFS
3701 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003702 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003703 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 +00003704 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003706 break 2
3707 fi
3708done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003709 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003710IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003711
3712fi
3713fi
3714CXX=$ac_cv_prog_CXX
3715if test -n "$CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003717$as_echo "$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003718else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003720$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003721fi
3722
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003723
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003724 test -n "$CXX" && break
3725 done
3726fi
3727if test -z "$CXX"; then
3728 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003729 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 +00003730do
3731 # Extract the first word of "$ac_prog", so it can be a program name with args.
3732set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003734$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003735if ${ac_cv_prog_ac_ct_CXX+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003736 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003737else
3738 if test -n "$ac_ct_CXX"; then
3739 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3740else
3741as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742for as_dir in $PATH
3743do
3744 IFS=$as_save_IFS
3745 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003746 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003747 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 +00003748 ac_cv_prog_ac_ct_CXX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003750 break 2
3751 fi
3752done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003753 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003754IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003755
3756fi
3757fi
3758ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3759if test -n "$ac_ct_CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003761$as_echo "$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003762else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003764$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003765fi
3766
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003767
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003768 test -n "$ac_ct_CXX" && break
3769done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003770
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003771 if test "x$ac_ct_CXX" = x; then
3772 CXX="g++"
3773 else
3774 case $cross_compiling:$ac_tool_warned in
3775yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003778ac_tool_warned=yes ;;
3779esac
3780 CXX=$ac_ct_CXX
3781 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003782fi
3783
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003784 fi
3785fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003786# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003787$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003788set X $ac_compile
3789ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003790for ac_option in --version -v -V -qversion; do
3791 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003792case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3797$as_echo "$ac_try_echo"; } >&5
3798 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003799 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003800 if test -s conftest.err; then
3801 sed '10a\
3802... rest of stderr output deleted ...
3803 10q' conftest.err >conftest.er1
3804 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003805 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003806 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3808 test $ac_status = 0; }
3809done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003810
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003812$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003813if ${ac_cv_cxx_compiler_gnu+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003814 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003815else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003817/* end confdefs.h. */
3818
3819int
3820main ()
3821{
3822#ifndef __GNUC__
3823 choke me
3824#endif
3825
3826 ;
3827 return 0;
3828}
3829_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003830if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003831 ac_compiler_gnu=yes
3832else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003833 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003834fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003836ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3837
3838fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003840$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3841if test $ac_compiler_gnu = yes; then
3842 GXX=yes
3843else
3844 GXX=
3845fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003846ac_test_CXXFLAGS=${CXXFLAGS+set}
3847ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003849$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003850if ${ac_cv_prog_cxx_g+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003851 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003852else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003853 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3854 ac_cxx_werror_flag=yes
3855 ac_cv_prog_cxx_g=no
3856 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003858/* end confdefs.h. */
3859
3860int
3861main ()
3862{
3863
3864 ;
3865 return 0;
3866}
3867_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003868if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003869 ac_cv_prog_cxx_g=yes
3870else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003871 CXXFLAGS=""
3872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003873/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003874
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003875int
3876main ()
3877{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003878
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003879 ;
3880 return 0;
3881}
3882_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003883if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003884
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003885else
3886 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003887 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003889/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003890
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003891int
3892main ()
3893{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003894
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003895 ;
3896 return 0;
3897}
3898_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003899if ac_fn_cxx_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003900 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003901fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003903fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003904rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003905fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003907 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3908fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003910$as_echo "$ac_cv_prog_cxx_g" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003911if test "$ac_test_CXXFLAGS" = set; then
3912 CXXFLAGS=$ac_save_CXXFLAGS
3913elif test $ac_cv_prog_cxx_g = yes; then
3914 if test "$GXX" = yes; then
3915 CXXFLAGS="-g -O2"
3916 else
3917 CXXFLAGS="-g"
3918 fi
3919else
3920 if test "$GXX" = yes; then
3921 CXXFLAGS="-O2"
3922 else
3923 CXXFLAGS=
3924 fi
3925fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003926ac_ext=c
3927ac_cpp='$CPP $CPPFLAGS'
3928ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3929ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3930ac_compiler_gnu=$ac_cv_c_compiler_gnu
3931
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003932if test -n "$ac_tool_prefix"; then
3933 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3934set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003936$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003937if ${ac_cv_prog_CPPBIN+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003938 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003939else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003940 if test -n "$CPPBIN"; then
3941 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003942else
3943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3944for as_dir in $PATH
3945do
3946 IFS=$as_save_IFS
3947 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003948 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003949 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 +00003950 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003952 break 2
3953 fi
3954done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003955 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003956IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003957
3958fi
3959fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003960CPPBIN=$ac_cv_prog_CPPBIN
3961if test -n "$CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003963$as_echo "$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003964else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003966$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003967fi
3968
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003969
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003970fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003971if test -z "$ac_cv_prog_CPPBIN"; then
3972 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003973 # Extract the first word of "cpp", so it can be a program name with args.
3974set dummy cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003976$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02003977if ${ac_cv_prog_ac_ct_CPPBIN+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003978 $as_echo_n "(cached) " >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003979else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003980 if test -n "$ac_ct_CPPBIN"; then
3981 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003982else
3983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3984for as_dir in $PATH
3985do
3986 IFS=$as_save_IFS
3987 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003988 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003989 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 +00003990 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003992 break 2
3993 fi
3994done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003995 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003996IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003997
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003998fi
3999fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004000ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4001if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004003$as_echo "$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004004else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004006$as_echo "no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004007fi
4008
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004009 if test "x$ac_ct_CPPBIN" = x; then
4010 CPPBIN="cpp"
4011 else
4012 case $cross_compiling:$ac_tool_warned in
4013yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004016ac_tool_warned=yes ;;
4017esac
4018 CPPBIN=$ac_ct_CPPBIN
4019 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004020else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004021 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004022fi
4023
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004024
Alexandre Julliard1aea4ef2009-08-27 13:35:46 +02004025cat >>confdefs.h <<_ACEOF
4026#define EXEEXT "$ac_exeext"
4027_ACEOF
4028
4029
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004030case $host in
Ken Thomases42664332009-05-01 22:59:52 -05004031 *-darwin*)
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004032 if test "x$enable_win64" = "xyes"
Ken Thomases42664332009-05-01 22:59:52 -05004033 then
4034 CC="$CC -m64"
4035 CXX="$CXX -m64"
4036 LD="${LD:-ld} -arch x86_64"
4037 AS="${AS:-as} -arch x86_64"
4038 host_cpu="x86_64"
4039 notice_platform="64-bit "
4040 TARGETFLAGS="-m64"
4041
4042 else
4043 CC="$CC -m32"
4044 CXX="$CXX -m32"
4045 LD="${LD:-ld} -arch i386"
4046 AS="${AS:-as} -arch i386"
4047 host_cpu="i386"
4048 notice_platform="32-bit "
4049 TARGETFLAGS="-m32"
4050
4051 enable_win16=${enable_win16:-yes}
4052 fi
4053 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004054 x86_64*)
Alexandre Julliard6b4ed0f2009-01-12 19:29:43 +01004055 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004056 then
4057 CC="$CC -m32"
4058 CXX="$CXX -m32"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004060$as_echo_n "checking whether $CC works... " >&6; }
4061
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004063/* end confdefs.h. */
4064
4065int
4066main ()
4067{
4068
4069 ;
4070 return 0;
4071}
4072_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004073if ac_fn_c_try_link "$LINENO"; then :
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004075$as_echo "yes" >&6; }
4076else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004078$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004079 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 +01004080fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004081rm -f core conftest.err conftest.$ac_objext \
4082 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004083 LD="${LD:-ld} -m elf_i386"
4084 AS="${AS:-as} --32"
4085 host_cpu="i386"
4086 notice_platform="32-bit "
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004087 TARGETFLAGS="-m32"
4088
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004089 enable_win16=${enable_win16:-yes}
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004090 else
Alexandre Julliard8812d242009-06-14 11:19:54 +02004091 if test "x${GCC}" = "xyes"
4092 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004094$as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard8812d242009-06-14 11:19:54 +02004096/* end confdefs.h. */
4097#include <stdarg.h>
4098int
4099main ()
4100{
4101void func(__builtin_ms_va_list *args);
4102 ;
4103 return 0;
4104}
4105_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004106if ac_fn_c_try_compile "$LINENO"; then :
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004108$as_echo "yes" >&6; }
4109else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004111$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004112 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004113fi
Alexandre Julliard8812d242009-06-14 11:19:54 +02004114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4115 fi
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004116 TARGETFLAGS="-m64"
4117
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004118 fi
4119 ;;
Alexandre Julliard391fce62009-04-02 12:59:52 +02004120 *-mingw32*|*-cygwin*)
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004121 enable_win16=${enable_win16:-no}
Alexandre Goujonac0a38c2010-03-01 21:39:40 +01004122 CFLAGS="$CFLAGS -D_WIN32"
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004123 ;;
4124 i[3456789]86*)
4125 enable_win16=${enable_win16:-yes}
4126 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004127esac
4128
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004129enable_win16=${enable_win16:-no}
Alexandre Julliard4422d222011-05-10 13:26:28 +02004130enable_win64=${enable_win64:-no}
Alexandre Julliard776820e2009-02-23 17:46:33 +01004131
Alexandre Julliard95081552010-02-09 19:08:17 +01004132enable_winetest=${enable_winetest:-$enable_tests}
4133
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004134if test -n "$with_wine64"
4135then
4136 if test "x$enable_win64" = "xyes"
4137 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004138 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004139--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4140 fi
Alexandre Julliard90647772009-08-13 19:48:42 +02004141 WOW64_DISABLE=\#
4142
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004143 enable_fonts=${enable_fonts:-no}
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004144 enable_server=${enable_server:-no}
4145 enable_tools=${enable_tools:-no}
Alexandre Julliardb3265322010-04-21 12:28:22 +02004146elif test "x$enable_win64" = "xyes"
4147then
4148 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004149fi
4150
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004152$as_echo_n "checking for the directory containing the Wine tools... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004153if ${wine_cv_toolsdir+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004154 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004155else
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004156 wine_cv_toolsdir="$with_wine_tools"
4157 if test -z "$with_wine_tools"; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004158 if test "$cross_compiling" = "yes"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004159 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004160 elif test -n "$with_wine64"; then
4161 wine_cv_toolsdir="$with_wine64"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004162 fi
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004163 fi
4164 if test -z "$wine_cv_toolsdir"; then
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004165 wine_cv_toolsdir="\$(top_builddir)"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004166 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4167 case "$wine_cv_toolsdir" in
4168 /*) ;;
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004169 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004170 esac
4171 else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004172 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004173 fi
4174fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004176$as_echo "$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004177TOOLSDIR=$wine_cv_toolsdir
4178
Alexandre Julliard4d135d92009-02-16 13:08:44 +01004179if test -n "$host_alias" -a "$host_alias" != "$build_alias"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004180then
Alexandre Julliard0fea4a52009-02-12 10:28:23 +01004181 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004182
4183fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004184
Alexandre Julliard40916272007-03-08 13:19:50 +01004185for ac_prog in flex
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004186do
4187 # Extract the first word of "$ac_prog", so it can be a program name with args.
4188set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004190$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004191if ${ac_cv_prog_FLEX+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004192 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004193else
Alexandre Julliard40916272007-03-08 13:19:50 +01004194 if test -n "$FLEX"; then
4195 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004196else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004197as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4198for as_dir in $PATH
4199do
4200 IFS=$as_save_IFS
4201 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004202 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004203 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 +01004204 ac_cv_prog_FLEX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004206 break 2
4207 fi
4208done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004209 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004210IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004211
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004212fi
4213fi
Alexandre Julliard40916272007-03-08 13:19:50 +01004214FLEX=$ac_cv_prog_FLEX
4215if test -n "$FLEX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004217$as_echo "$FLEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004218else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004220$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004221fi
4222
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004223
Alexandre Julliard40916272007-03-08 13:19:50 +01004224 test -n "$FLEX" && break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004225done
Alexandre Julliard40916272007-03-08 13:19:50 +01004226test -n "$FLEX" || FLEX="none"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004227
Alexandre Julliard40916272007-03-08 13:19:50 +01004228if test "$FLEX" = "none"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004229then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004230 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004231fi
Michael Stefaniucce307332009-12-29 18:07:02 +01004232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4233$as_echo_n "checking whether flex is recent enough... " >&6; }
4234cat >conftest.l <<EOF
4235%top{
4236#include "prediluvian.h"
4237}
4238%%
4239EOF
Alexandre Julliard27816c72010-07-28 11:04:46 +02004240if $FLEX -t conftest.l >/dev/null 2>&5
Michael Stefaniucce307332009-12-29 18:07:02 +01004241then
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4243$as_echo "yes" >&6; }
4244else
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4246$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004247 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 +01004248fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004249
Mike McCormackc068f672004-03-16 03:11:39 +00004250for ac_prog in bison
4251do
4252 # Extract the first word of "$ac_prog", so it can be a program name with args.
4253set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004255$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004256if ${ac_cv_prog_BISON+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004257 $as_echo_n "(cached) " >&6
Mike McCormackc068f672004-03-16 03:11:39 +00004258else
4259 if test -n "$BISON"; then
4260 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4261else
4262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4263for as_dir in $PATH
4264do
4265 IFS=$as_save_IFS
4266 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004267 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004268 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 +00004269 ac_cv_prog_BISON="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackc068f672004-03-16 03:11:39 +00004271 break 2
4272 fi
4273done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004274 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004275IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00004276
4277fi
4278fi
4279BISON=$ac_cv_prog_BISON
4280if test -n "$BISON"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004282$as_echo "$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004283else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004285$as_echo "no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004286fi
4287
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004288
Mike McCormackc068f672004-03-16 03:11:39 +00004289 test -n "$BISON" && break
4290done
4291test -n "$BISON" || BISON="none"
4292
4293if test "$BISON" = "none"
4294then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004295 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
Mike McCormackc068f672004-03-16 03:11:39 +00004296fi
4297
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004298if test -n "$ac_tool_prefix"; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004299 for ac_prog in ar gar
4300 do
4301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4302set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004304$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004305if ${ac_cv_prog_AR+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004306 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004307else
4308 if test -n "$AR"; then
4309 ac_cv_prog_AR="$AR" # Let the user override the test.
4310else
4311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4312for as_dir in $PATH
4313do
4314 IFS=$as_save_IFS
4315 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004316 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004317 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 +02004318 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004320 break 2
4321 fi
4322done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004323 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004324IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004325
4326fi
4327fi
4328AR=$ac_cv_prog_AR
4329if test -n "$AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004331$as_echo "$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004332else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004334$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004335fi
4336
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004337
Francois Gouget86bd0462008-06-26 14:05:57 +02004338 test -n "$AR" && break
4339 done
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004340fi
Francois Gouget86bd0462008-06-26 14:05:57 +02004341if test -z "$AR"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004342 ac_ct_AR=$AR
Francois Gouget86bd0462008-06-26 14:05:57 +02004343 for ac_prog in ar gar
4344do
4345 # Extract the first word of "$ac_prog", so it can be a program name with args.
4346set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004348$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004349if ${ac_cv_prog_ac_ct_AR+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004350 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004351else
4352 if test -n "$ac_ct_AR"; then
4353 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4354else
4355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4356for as_dir in $PATH
4357do
4358 IFS=$as_save_IFS
4359 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004360 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004361 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 +02004362 ac_cv_prog_ac_ct_AR="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004364 break 2
4365 fi
4366done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004367 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004368IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004369
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004370fi
4371fi
4372ac_ct_AR=$ac_cv_prog_ac_ct_AR
4373if test -n "$ac_ct_AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004375$as_echo "$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004376else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004378$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004379fi
4380
Francois Gouget86bd0462008-06-26 14:05:57 +02004381
4382 test -n "$ac_ct_AR" && break
4383done
4384
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004385 if test "x$ac_ct_AR" = x; then
4386 AR="ar"
4387 else
4388 case $cross_compiling:$ac_tool_warned in
4389yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004392ac_tool_warned=yes ;;
4393esac
4394 AR=$ac_ct_AR
4395 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004396fi
4397
Rob Shearman0c694d72008-03-04 15:53:41 +00004398ARFLAGS=rc
4399
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004400if test -n "$ac_tool_prefix"; then
4401 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4402set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004404$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004405if ${ac_cv_prog_RANLIB+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004406 $as_echo_n "(cached) " >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004407else
4408 if test -n "$RANLIB"; then
4409 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4410else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412for as_dir in $PATH
4413do
4414 IFS=$as_save_IFS
4415 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004416 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004417 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 +00004418 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004420 break 2
4421 fi
4422done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004423 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004424IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004425
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004426fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004427fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004428RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004429if test -n "$RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004431$as_echo "$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004432else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004434$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004435fi
4436
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004437
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004438fi
4439if test -z "$ac_cv_prog_RANLIB"; then
4440 ac_ct_RANLIB=$RANLIB
4441 # Extract the first word of "ranlib", so it can be a program name with args.
4442set dummy ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004444$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004445if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004446 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004447else
4448 if test -n "$ac_ct_RANLIB"; then
4449 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4450else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4452for as_dir in $PATH
4453do
4454 IFS=$as_save_IFS
4455 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004456 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004457 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 +00004458 ac_cv_prog_ac_ct_RANLIB="ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004460 break 2
4461 fi
4462done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004463 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004464IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004465
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004466fi
4467fi
4468ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4469if test -n "$ac_ct_RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004471$as_echo "$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004472else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004474$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004475fi
4476
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004477 if test "x$ac_ct_RANLIB" = x; then
4478 RANLIB=":"
4479 else
4480 case $cross_compiling:$ac_tool_warned in
4481yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004484ac_tool_warned=yes ;;
4485esac
4486 RANLIB=$ac_ct_RANLIB
4487 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004488else
4489 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004490fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004491
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004493$as_echo_n "checking whether ln -s works... " >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004494LN_S=$as_ln_s
4495if test "$LN_S" = "ln -s"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004497$as_echo "yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004498else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004500$as_echo "no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004501fi
4502
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004504$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004505if ${ac_cv_path_GREP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004506 $as_echo_n "(cached) " >&6
Alexandre Julliardc6264912004-08-16 20:09:37 +00004507else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004508 if test -z "$GREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004509 ac_path_GREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004510 # Loop through the user's path and test for each of PROGNAME-LIST
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004512for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4513do
4514 IFS=$as_save_IFS
4515 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004516 for ac_prog in grep ggrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004517 for ac_exec_ext in '' $ac_executable_extensions; do
4518 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4519 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4520# Check for GNU ac_path_GREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004521 # Check for GNU $ac_path_GREP
4522case `"$ac_path_GREP" --version 2>&1` in
4523*GNU*)
4524 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4525*)
4526 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004527 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004528 while :
4529 do
4530 cat "conftest.in" "conftest.in" >"conftest.tmp"
4531 mv "conftest.tmp" "conftest.in"
4532 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004533 $as_echo 'GREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004534 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4535 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004536 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004537 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4538 # Best one so far, save it but keep looking for a better one
4539 ac_cv_path_GREP="$ac_path_GREP"
4540 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00004541 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004542 # 10*(2^10) chars as input seems more than enough
4543 test $ac_count -gt 10 && break
4544 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004545 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004546esac
4547
Alexandre Julliardabf50482008-10-31 12:56:53 +01004548 $ac_path_GREP_found && break 3
4549 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004550 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004551 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004552IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004553 if test -z "$ac_cv_path_GREP"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004554 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 +01004555 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004556else
4557 ac_cv_path_GREP=$GREP
4558fi
4559
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004560fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004562$as_echo "$ac_cv_path_GREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004563 GREP="$ac_cv_path_GREP"
4564
4565
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004567$as_echo_n "checking for egrep... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004568if ${ac_cv_path_EGREP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004569 $as_echo_n "(cached) " >&6
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004570else
4571 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4572 then ac_cv_path_EGREP="$GREP -E"
4573 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004574 if test -z "$EGREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004575 ac_path_EGREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004576 # Loop through the user's path and test for each of PROGNAME-LIST
4577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004578for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4579do
4580 IFS=$as_save_IFS
4581 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004582 for ac_prog in egrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004583 for ac_exec_ext in '' $ac_executable_extensions; do
4584 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4585 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4586# Check for GNU ac_path_EGREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004587 # Check for GNU $ac_path_EGREP
4588case `"$ac_path_EGREP" --version 2>&1` in
4589*GNU*)
4590 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4591*)
4592 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004593 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004594 while :
4595 do
4596 cat "conftest.in" "conftest.in" >"conftest.tmp"
4597 mv "conftest.tmp" "conftest.in"
4598 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004599 $as_echo 'EGREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004600 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4601 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004602 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004603 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4604 # Best one so far, save it but keep looking for a better one
4605 ac_cv_path_EGREP="$ac_path_EGREP"
4606 ac_path_EGREP_max=$ac_count
4607 fi
4608 # 10*(2^10) chars as input seems more than enough
4609 test $ac_count -gt 10 && break
4610 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004611 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004612esac
4613
Alexandre Julliardabf50482008-10-31 12:56:53 +01004614 $ac_path_EGREP_found && break 3
4615 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004616 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004617 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004618IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004619 if test -z "$ac_cv_path_EGREP"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004620 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 +01004621 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004622else
4623 ac_cv_path_EGREP=$EGREP
4624fi
4625
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004626 fi
4627fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004629$as_echo "$ac_cv_path_EGREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004630 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00004631
4632
James Juranffe6b761999-06-12 08:21:57 +00004633# Extract the first word of "ldconfig", so it can be a program name with args.
4634set dummy ldconfig; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004636$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004637if ${ac_cv_path_LDCONFIG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004638 $as_echo_n "(cached) " >&6
James Juranffe6b761999-06-12 08:21:57 +00004639else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004640 case $LDCONFIG in
4641 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004642 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4643 ;;
4644 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004646for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004647do
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004650 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004651 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 +00004652 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004654 break 2
4655 fi
4656done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004657 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004658IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004659
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004660 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004661 ;;
4662esac
4663fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004664LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00004665if test -n "$LDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004667$as_echo "$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004668else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004670$as_echo "no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004671fi
4672
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004673
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004674# Find a good install program. We prefer a C program (faster),
4675# so one script is as good as another. But avoid the broken or
4676# incompatible versions:
4677# SysV /etc/install, /usr/sbin/install
4678# SunOS /usr/etc/install
4679# IRIX /sbin/install
4680# AIX /bin/install
4681# AmigaOS /C/install, which installs bootblocks on floppy discs
4682# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4683# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4684# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00004685# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004686# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardabf50482008-10-31 12:56:53 +01004687# Reject install programs that cannot install multiple files.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004689$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004690if test -z "$INSTALL"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +02004691if ${ac_cv_path_install+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004692 $as_echo_n "(cached) " >&6
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004693else
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4695for as_dir in $PATH
4696do
4697 IFS=$as_save_IFS
4698 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004699 # Account for people who put trailing slashes in PATH elements.
4700case $as_dir/ in #((
4701 ./ | .// | /[cC]/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004702 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004703 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004704 /usr/ucb/* ) ;;
4705 *)
4706 # OSF1 and SCO ODT 3.0 have their own names for install.
4707 # Don't use installbsd from OSF since it installs stuff as root
4708 # by default.
4709 for ac_prog in ginstall scoinst install; do
4710 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004711 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 +00004712 if test $ac_prog = install &&
4713 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4714 # AIX install. It has an incompatible calling convention.
4715 :
4716 elif test $ac_prog = install &&
4717 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4718 # program-specific install script used by HP pwplus--don't use.
4719 :
4720 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004721 rm -rf conftest.one conftest.two conftest.dir
4722 echo one > conftest.one
4723 echo two > conftest.two
4724 mkdir conftest.dir
4725 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4726 test -s conftest.one && test -s conftest.two &&
4727 test -s conftest.dir/conftest.one &&
4728 test -s conftest.dir/conftest.two
4729 then
4730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4731 break 3
4732 fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004733 fi
4734 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004735 done
4736 done
4737 ;;
4738esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01004739
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004740 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004741IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004742
Alexandre Julliardabf50482008-10-31 12:56:53 +01004743rm -rf conftest.one conftest.two conftest.dir
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004744
4745fi
4746 if test "${ac_cv_path_install+set}" = set; then
4747 INSTALL=$ac_cv_path_install
4748 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004749 # As a last resort, use the slow shell script. Don't cache a
4750 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004751 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004752 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004753 INSTALL=$ac_install_sh
4754 fi
4755fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004757$as_echo "$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004758
4759# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4760# It thinks the first close brace ends the variable substitution.
4761test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4762
4763test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4764
4765test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4766
4767case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00004768 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004769 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004770esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004771
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004772for ac_prog in lclint lint
4773do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004774 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004775set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004777$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004778if ${ac_cv_prog_LINT+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004779 $as_echo_n "(cached) " >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004780else
4781 if test -n "$LINT"; then
4782 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4783else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785for as_dir in $PATH
4786do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004789 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004790 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 +00004791 ac_cv_prog_LINT="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004793 break 2
4794 fi
4795done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004796 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004797IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004798
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004799fi
4800fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004801LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004802if test -n "$LINT"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004804$as_echo "$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004805else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004807$as_echo "no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004808fi
4809
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004810
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004811 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004812done
4813
4814if test "$LINT" = "lint"
4815then
4816 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4817 fi
4818
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004819
4820
Huw Davies00acb5f2004-08-17 22:33:14 +00004821for ac_prog in fontforge
4822do
4823 # Extract the first word of "$ac_prog", so it can be a program name with args.
4824set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004825{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004826$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004827if ${ac_cv_prog_FONTFORGE+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004828 $as_echo_n "(cached) " >&6
Huw Davies00acb5f2004-08-17 22:33:14 +00004829else
4830 if test -n "$FONTFORGE"; then
4831 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4832else
4833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834for as_dir in $PATH
4835do
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004838 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004839 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 +00004840 ac_cv_prog_FONTFORGE="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Huw Davies00acb5f2004-08-17 22:33:14 +00004842 break 2
4843 fi
4844done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004845 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004846IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00004847
4848fi
4849fi
4850FONTFORGE=$ac_cv_prog_FONTFORGE
4851if test -n "$FONTFORGE"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004853$as_echo "$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004854else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004856$as_echo "no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004857fi
4858
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004859
Huw Davies00acb5f2004-08-17 22:33:14 +00004860 test -n "$FONTFORGE" && break
4861done
4862test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00004863
Mike McCormack90c75bd2005-08-08 18:36:53 +00004864for ac_prog in pkg-config
4865do
4866 # Extract the first word of "$ac_prog", so it can be a program name with args.
4867set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004869$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004870if ${ac_cv_prog_PKG_CONFIG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004871 $as_echo_n "(cached) " >&6
Mike McCormack90c75bd2005-08-08 18:36:53 +00004872else
4873 if test -n "$PKG_CONFIG"; then
4874 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4875else
4876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4877for as_dir in $PATH
4878do
4879 IFS=$as_save_IFS
4880 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004881 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004882 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 +00004883 ac_cv_prog_PKG_CONFIG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormack90c75bd2005-08-08 18:36:53 +00004885 break 2
4886 fi
4887done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004888 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004889IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00004890
4891fi
4892fi
4893PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4894if test -n "$PKG_CONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004896$as_echo "$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004897else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004899$as_echo "no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004900fi
4901
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004902
Mike McCormack90c75bd2005-08-08 18:36:53 +00004903 test -n "$PKG_CONFIG" && break
4904done
4905test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4906
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004907for ac_prog in rsvg
4908do
4909 # Extract the first word of "$ac_prog", so it can be a program name with args.
4910set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004912$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004913if ${ac_cv_prog_RSVG+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004914 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004915else
4916 if test -n "$RSVG"; then
4917 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4918else
4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004924 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 ac_cv_prog_RSVG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004928 break 2
4929 fi
4930done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004931 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004932IFS=$as_save_IFS
4933
4934fi
4935fi
4936RSVG=$ac_cv_prog_RSVG
4937if test -n "$RSVG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004939$as_echo "$RSVG" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004940else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004942$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004943fi
4944
4945
4946 test -n "$RSVG" && break
4947done
4948test -n "$RSVG" || RSVG="false"
4949
Joel Holdsworth476a2be2010-04-05 11:15:03 +01004950for ac_prog in convert
4951do
4952 # Extract the first word of "$ac_prog", so it can be a program name with args.
4953set dummy $ac_prog; ac_word=$2
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4955$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004956if ${ac_cv_prog_CONVERT+:} false; then :
Joel Holdsworth476a2be2010-04-05 11:15:03 +01004957 $as_echo_n "(cached) " >&6
4958else
4959 if test -n "$CONVERT"; then
4960 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
4961else
4962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4963for as_dir in $PATH
4964do
4965 IFS=$as_save_IFS
4966 test -z "$as_dir" && as_dir=.
4967 for ac_exec_ext in '' $ac_executable_extensions; do
4968 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4969 ac_cv_prog_CONVERT="$ac_prog"
4970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4971 break 2
4972 fi
4973done
4974 done
4975IFS=$as_save_IFS
4976
4977fi
4978fi
4979CONVERT=$ac_cv_prog_CONVERT
4980if test -n "$CONVERT"; then
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
4982$as_echo "$CONVERT" >&6; }
4983else
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4985$as_echo "no" >&6; }
4986fi
4987
4988
4989 test -n "$CONVERT" && break
4990done
4991test -n "$CONVERT" || CONVERT="false"
4992
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004993for ac_prog in icotool
4994do
4995 # Extract the first word of "$ac_prog", so it can be a program name with args.
4996set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004998$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02004999if ${ac_cv_prog_ICOTOOL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005000 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005001else
5002 if test -n "$ICOTOOL"; then
5003 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5004else
5005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006for as_dir in $PATH
5007do
5008 IFS=$as_save_IFS
5009 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005010 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5012 ac_cv_prog_ICOTOOL="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005014 break 2
5015 fi
5016done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005017 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005018IFS=$as_save_IFS
5019
5020fi
5021fi
5022ICOTOOL=$ac_cv_prog_ICOTOOL
5023if test -n "$ICOTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005025$as_echo "$ICOTOOL" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005026else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005028$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005029fi
5030
5031
5032 test -n "$ICOTOOL" && break
5033done
5034test -n "$ICOTOOL" || ICOTOOL="false"
5035
5036
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005037if test "x$enable_maintainer_mode" != "xyes"
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005038then
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005039 MAINTAINER_MODE=\#
5040
5041else
Alexandre Julliard9797da42011-04-27 17:37:43 +02005042 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5; fi
5043 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 +01005044
5045 if test "$CONVERT" = false
5046 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005047 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005048 else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5050$as_echo_n "checking for recent enough imagemagick... " >&6; }
5051 convert_version=`convert --version | head -n1`
5052 if test "x$convert_version" != "x"
5053 then
5054 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5055 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5056 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5057 then
5058 CONVERT=false
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005059 fi
5060 fi
5061 if test "$CONVERT" = false
5062 then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5064$as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005065 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 +01005066 else
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5068$as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5069 fi
5070 fi
Joel Holdsworth425f1382010-04-05 11:14:47 +01005071
5072 if test "$ICOTOOL" = false
5073 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005074 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworth425f1382010-04-05 11:14:47 +01005075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5077$as_echo_n "checking for recent enough icotool... " >&6; }
5078 icotool_version=`icotool --version | head -n1`
5079 if test "x$icotool_version" != "x"
5080 then
Joel Holdsworth9571f782010-05-16 23:07:33 +01005081 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5082 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
Joel Holdsworth425f1382010-04-05 11:14:47 +01005083 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5084 then
5085 ICOTOOL=false
5086 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5087 fi
5088 fi
5089 if test "$ICOTOOL" = false
5090 then
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5092$as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005093 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 +01005094 else
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5096$as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5097 fi
5098 fi
5099
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005100fi
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005101
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005102
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005104$as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005105if ${ac_cv_lib_i386_i386_set_ldt+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005106 $as_echo_n "(cached) " >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005107else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005108 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005109LIBS="-li386 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005111/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005112
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005113/* Override any GCC internal prototype to avoid an error.
5114 Use char because int might match the return type of a GCC
5115 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005116#ifdef __cplusplus
5117extern "C"
5118#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005119char i386_set_ldt ();
5120int
5121main ()
5122{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005123return i386_set_ldt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005124 ;
5125 return 0;
5126}
5127_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005128if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005129 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005130else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005131 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005132fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005133rm -f core conftest.err conftest.$ac_objext \
5134 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005135LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005136fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005138$as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005139if test "x$ac_cv_lib_i386_i386_set_ldt" = xyes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005140 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005141#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005142_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005143
5144 LIBS="-li386 $LIBS"
5145
Alexandre Julliard02e90081998-01-04 17:49:09 +00005146fi
5147
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005149$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005150if ${ac_cv_lib_ossaudio__oss_ioctl+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005151 $as_echo_n "(cached) " >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005152else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005153 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005154LIBS="-lossaudio $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005155cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005156/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005157
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005158/* Override any GCC internal prototype to avoid an error.
5159 Use char because int might match the return type of a GCC
5160 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005161#ifdef __cplusplus
5162extern "C"
5163#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005164char _oss_ioctl ();
5165int
5166main ()
5167{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005168return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005169 ;
5170 return 0;
5171}
5172_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005173if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005174 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005175else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005176 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005177fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005178rm -f core conftest.err conftest.$ac_objext \
5179 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005180LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005181fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005183$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005184if test "x$ac_cv_lib_ossaudio__oss_ioctl" = xyes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005185 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005186#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005187_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005188
5189 LIBS="-lossaudio $LIBS"
5190
Todd Vierlingecc76691998-12-15 17:49:02 +00005191fi
5192
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005193
Alexandre Julliard82776022005-08-08 11:17:25 +00005194XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005195
Huw Daviese82dfab2004-08-04 19:10:26 +00005196OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005197
Rein Klazes7ff12562004-11-09 20:16:35 +00005198
Alexandre Julliard82776022005-08-08 11:17:25 +00005199
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005200# Check whether --enable-largefile was given.
5201if test "${enable_largefile+set}" = set; then :
5202 enableval=$enable_largefile;
5203fi
5204
5205if test "$enable_largefile" != no; then
5206
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5208$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005209if ${ac_cv_sys_largefile_CC+:} false; then :
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005210 $as_echo_n "(cached) " >&6
5211else
5212 ac_cv_sys_largefile_CC=no
5213 if test "$GCC" != yes; then
5214 ac_save_CC=$CC
5215 while :; do
5216 # IRIX 6.2 and later do not support large files by default,
5217 # so use the C compiler's -n32 option if that helps.
5218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5219/* end confdefs.h. */
5220#include <sys/types.h>
5221 /* Check that off_t can represent 2**63 - 1 correctly.
5222 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5223 since some C++ compilers masquerading as C compilers
5224 incorrectly reject 9223372036854775807. */
5225#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5226 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5227 && LARGE_OFF_T % 2147483647 == 1)
5228 ? 1 : -1];
5229int
5230main ()
5231{
5232
5233 ;
5234 return 0;
5235}
5236_ACEOF
5237 if ac_fn_c_try_compile "$LINENO"; then :
5238 break
5239fi
5240rm -f core conftest.err conftest.$ac_objext
5241 CC="$CC -n32"
5242 if ac_fn_c_try_compile "$LINENO"; then :
5243 ac_cv_sys_largefile_CC=' -n32'; break
5244fi
5245rm -f core conftest.err conftest.$ac_objext
5246 break
5247 done
5248 CC=$ac_save_CC
5249 rm -f conftest.$ac_ext
5250 fi
5251fi
5252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5253$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5254 if test "$ac_cv_sys_largefile_CC" != no; then
5255 CC=$CC$ac_cv_sys_largefile_CC
5256 fi
5257
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5259$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005260if ${ac_cv_sys_file_offset_bits+:} false; then :
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005261 $as_echo_n "(cached) " >&6
5262else
5263 while :; do
5264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5265/* end confdefs.h. */
5266#include <sys/types.h>
5267 /* Check that off_t can represent 2**63 - 1 correctly.
5268 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5269 since some C++ compilers masquerading as C compilers
5270 incorrectly reject 9223372036854775807. */
5271#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5272 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5273 && LARGE_OFF_T % 2147483647 == 1)
5274 ? 1 : -1];
5275int
5276main ()
5277{
5278
5279 ;
5280 return 0;
5281}
5282_ACEOF
5283if ac_fn_c_try_compile "$LINENO"; then :
5284 ac_cv_sys_file_offset_bits=no; break
5285fi
5286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288/* end confdefs.h. */
5289#define _FILE_OFFSET_BITS 64
5290#include <sys/types.h>
5291 /* Check that off_t can represent 2**63 - 1 correctly.
5292 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5293 since some C++ compilers masquerading as C compilers
5294 incorrectly reject 9223372036854775807. */
5295#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5296 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5297 && LARGE_OFF_T % 2147483647 == 1)
5298 ? 1 : -1];
5299int
5300main ()
5301{
5302
5303 ;
5304 return 0;
5305}
5306_ACEOF
5307if ac_fn_c_try_compile "$LINENO"; then :
5308 ac_cv_sys_file_offset_bits=64; break
5309fi
5310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5311 ac_cv_sys_file_offset_bits=unknown
5312 break
5313done
5314fi
5315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5316$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5317case $ac_cv_sys_file_offset_bits in #(
5318 no | unknown) ;;
5319 *)
5320cat >>confdefs.h <<_ACEOF
5321#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5322_ACEOF
5323;;
5324esac
5325rm -rf conftest*
5326 if test $ac_cv_sys_file_offset_bits = unknown; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5328$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005329if ${ac_cv_sys_large_files+:} false; then :
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005330 $as_echo_n "(cached) " >&6
5331else
5332 while :; do
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334/* end confdefs.h. */
5335#include <sys/types.h>
5336 /* Check that off_t can represent 2**63 - 1 correctly.
5337 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5338 since some C++ compilers masquerading as C compilers
5339 incorrectly reject 9223372036854775807. */
5340#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5341 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5342 && LARGE_OFF_T % 2147483647 == 1)
5343 ? 1 : -1];
5344int
5345main ()
5346{
5347
5348 ;
5349 return 0;
5350}
5351_ACEOF
5352if ac_fn_c_try_compile "$LINENO"; then :
5353 ac_cv_sys_large_files=no; break
5354fi
5355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5357/* end confdefs.h. */
5358#define _LARGE_FILES 1
5359#include <sys/types.h>
5360 /* Check that off_t can represent 2**63 - 1 correctly.
5361 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5362 since some C++ compilers masquerading as C compilers
5363 incorrectly reject 9223372036854775807. */
5364#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5365 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5366 && LARGE_OFF_T % 2147483647 == 1)
5367 ? 1 : -1];
5368int
5369main ()
5370{
5371
5372 ;
5373 return 0;
5374}
5375_ACEOF
5376if ac_fn_c_try_compile "$LINENO"; then :
5377 ac_cv_sys_large_files=1; break
5378fi
5379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5380 ac_cv_sys_large_files=unknown
5381 break
5382done
5383fi
5384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5385$as_echo "$ac_cv_sys_large_files" >&6; }
5386case $ac_cv_sys_large_files in #(
5387 no | unknown) ;;
5388 *)
5389cat >>confdefs.h <<_ACEOF
5390#define _LARGE_FILES $ac_cv_sys_large_files
5391_ACEOF
5392;;
5393esac
5394rm -rf conftest*
5395 fi
5396fi
5397
5398
Alexandre Julliard40664c02009-02-11 20:40:58 +01005399ac_ext=c
5400ac_cpp='$CPP $CPPFLAGS'
5401ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005405$as_echo_n "checking how to run the C preprocessor... " >&6; }
5406# On Suns, sometimes $CPP names a directory.
5407if test -n "$CPP" && test -d "$CPP"; then
5408 CPP=
5409fi
5410if test -z "$CPP"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +02005411 if ${ac_cv_prog_CPP+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005412 $as_echo_n "(cached) " >&6
5413else
5414 # Double quotes because CPP needs to be expanded
5415 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5416 do
5417 ac_preproc_ok=false
5418for ac_c_preproc_warn_flag in '' yes
5419do
5420 # Use a header file that comes with gcc, so configuring glibc
5421 # with a fresh cross-compiler works.
5422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5423 # <limits.h> exists even on freestanding compilers.
5424 # On the NeXT, cc -E runs the code through the compiler's parser,
5425 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005427/* end confdefs.h. */
5428#ifdef __STDC__
5429# include <limits.h>
5430#else
5431# include <assert.h>
5432#endif
5433 Syntax error
5434_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005435if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005436
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005437else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005438 # Broken: fails on valid input.
5439continue
5440fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005441rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005442
5443 # OK, works on sane cases. Now check whether nonexistent headers
5444 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005446/* end confdefs.h. */
5447#include <ac_nonexistent.h>
5448_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005449if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005450 # Broken: success on invalid input.
5451continue
5452else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005453 # Passes both tests.
5454ac_preproc_ok=:
5455break
5456fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005457rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005458
5459done
5460# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005461rm -f conftest.i conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005462if $ac_preproc_ok; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005463 break
5464fi
5465
5466 done
5467 ac_cv_prog_CPP=$CPP
5468
5469fi
5470 CPP=$ac_cv_prog_CPP
5471else
5472 ac_cv_prog_CPP=$CPP
5473fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005475$as_echo "$CPP" >&6; }
5476ac_preproc_ok=false
5477for ac_c_preproc_warn_flag in '' yes
5478do
5479 # Use a header file that comes with gcc, so configuring glibc
5480 # with a fresh cross-compiler works.
5481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5482 # <limits.h> exists even on freestanding compilers.
5483 # On the NeXT, cc -E runs the code through the compiler's parser,
5484 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005486/* end confdefs.h. */
5487#ifdef __STDC__
5488# include <limits.h>
5489#else
5490# include <assert.h>
5491#endif
5492 Syntax error
5493_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005494if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005495
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005496else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005497 # Broken: fails on valid input.
5498continue
5499fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005500rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005501
5502 # OK, works on sane cases. Now check whether nonexistent headers
5503 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005505/* end confdefs.h. */
5506#include <ac_nonexistent.h>
5507_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005508if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005509 # Broken: success on invalid input.
5510continue
5511else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005512 # Passes both tests.
5513ac_preproc_ok=:
5514break
5515fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005516rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005517
5518done
5519# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005520rm -f conftest.i conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005521if $ac_preproc_ok; then :
5522
Alexandre Julliard40664c02009-02-11 20:40:58 +01005523else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005525$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005526as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
Alexandre Julliard9797da42011-04-27 17:37:43 +02005527See \`config.log' for more details" "$LINENO" 5; }
Alexandre Julliard40664c02009-02-11 20:40:58 +01005528fi
5529
5530ac_ext=c
5531ac_cpp='$CPP $CPPFLAGS'
5532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5534ac_compiler_gnu=$ac_cv_c_compiler_gnu
5535
5536
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005538$as_echo_n "checking for ANSI C header files... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005539if ${ac_cv_header_stdc+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005540 $as_echo_n "(cached) " >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005541else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005543/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005544#include <stdlib.h>
5545#include <stdarg.h>
5546#include <string.h>
5547#include <float.h>
5548
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005549int
5550main ()
5551{
5552
5553 ;
5554 return 0;
5555}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005556_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005557if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005558 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005559else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005560 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005561fi
Jeremy White0ebeb532006-06-20 13:18:41 +02005562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005563
5564if test $ac_cv_header_stdc = yes; then
5565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005567/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005568#include <string.h>
5569
5570_ACEOF
5571if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005572 $EGREP "memchr" >/dev/null 2>&1; then :
5573
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005574else
5575 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005576fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005577rm -f conftest*
5578
5579fi
5580
5581if test $ac_cv_header_stdc = yes; then
5582 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005584/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005585#include <stdlib.h>
5586
5587_ACEOF
5588if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005589 $EGREP "free" >/dev/null 2>&1; then :
5590
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005591else
5592 ac_cv_header_stdc=no
5593fi
5594rm -f conftest*
5595
5596fi
5597
5598if test $ac_cv_header_stdc = yes; then
5599 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005600 if test "$cross_compiling" = yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005601 :
5602else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005604/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005605#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005606#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005607#if ((' ' & 0x0FF) == 0x020)
5608# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5609# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5610#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005611# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005612 (('a' <= (c) && (c) <= 'i') \
5613 || ('j' <= (c) && (c) <= 'r') \
5614 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005615# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5616#endif
5617
5618#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5619int
5620main ()
5621{
5622 int i;
5623 for (i = 0; i < 256; i++)
5624 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00005625 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005626 return 2;
5627 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005628}
5629_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005630if ac_fn_c_try_run "$LINENO"; then :
5631
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005632else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005633 ac_cv_header_stdc=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005634fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005635rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5636 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005637fi
5638
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005639fi
5640fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005642$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005643if test $ac_cv_header_stdc = yes; then
5644
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005645$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005646
5647fi
5648
5649# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005650for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005651 inttypes.h stdint.h unistd.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005652do :
5653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5654ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5655"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005656if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005657 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005658#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005659_ACEOF
5660
5661fi
5662
5663done
5664
5665
Rein Klazes7ff12562004-11-09 20:16:35 +00005666for ac_header in \
Chris Robinson862965f2009-08-25 03:26:35 -07005667 AL/al.h \
Ken Thomases21137cd2011-01-05 07:25:23 -06005668 ApplicationServices/ApplicationServices.h \
Aric Stewart4430ab42010-03-17 10:58:32 -05005669 AudioToolbox/AudioConverter.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005670 AudioUnit/AudioUnit.h \
Charles Davis459d9422011-01-29 16:45:53 -07005671 AudioUnit/AudioComponent.h \
Adam Martinson2eb2f712010-12-28 12:46:09 -06005672 CL/cl.h \
Pierre d'Herbemont08884512006-10-24 15:26:33 +02005673 Carbon/Carbon.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005674 CoreAudio/CoreAudio.h \
Alexandre Julliard66f45a52006-11-06 13:33:16 +01005675 DiskArbitration/DiskArbitration.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00005676 IOKit/IOKitLib.h \
Aric Stewart225a4942009-03-10 14:59:20 -05005677 IOKit/hid/IOHIDLib.h \
Ken Thomases0b08f192009-09-09 22:23:35 -05005678 OpenAL/al.h \
Peter Urbanec65c84d72010-12-02 23:41:48 +11005679 OpenCL/opencl.h \
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +01005680 QuickTime/ImageCompression.h \
Ken Thomases25ed6872011-03-13 18:58:44 -05005681 Security/Security.h \
Eric Durbin020b0ef2008-06-24 22:45:51 -05005682 alias.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005683 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005684 arpa/inet.h \
5685 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00005686 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005687 capi20.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005688 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005689 direct.h \
Rob Shearman87175c62008-10-03 12:55:21 +01005690 dirent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005691 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005692 elf.h \
5693 float.h \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +02005694 fnmatch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005695 fontconfig/fontconfig.h \
5696 getopt.h \
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01005697 gettext-po.h \
Alexandre Julliard46678dc2008-12-09 17:09:42 +01005698 grp.h \
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +02005699 gsm.h \
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +02005700 gsm/gsm.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005701 ieeefp.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005702 inet/mib2.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005703 io.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005704 jpeglib.h \
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +01005705 kstat.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005706 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005707 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005708 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005709 ldap.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005710 link.h \
5711 linux/cdrom.h \
5712 linux/compiler.h \
5713 linux/hdreg.h \
5714 linux/input.h \
5715 linux/ioctl.h \
5716 linux/joystick.h \
5717 linux/major.h \
5718 linux/param.h \
5719 linux/serial.h \
Francois Gougetda1a3522008-12-28 10:35:02 +01005720 linux/types.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005721 linux/ucdrom.h \
Ken Thomasesd35c0e82009-03-11 09:05:53 -05005722 mach-o/nlist.h \
Austin English95740b32010-10-08 00:33:52 -07005723 mach-o/loader.h \
Alexandre Julliard150b5dc2006-12-29 20:02:02 +01005724 mach/mach.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005725 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005726 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005727 machine/limits.h \
Austin English40b3d2e2010-05-23 21:18:17 -05005728 machine/sysarch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005729 mntent.h \
Aric Stewartdb71d7c2009-08-19 09:37:48 -05005730 mpg123.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005731 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005732 netdb.h \
5733 netinet/in.h \
5734 netinet/in_systm.h \
5735 netinet/tcp.h \
5736 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01005737 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005738 openssl/ssl.h \
Alexandre Julliard00302152007-07-02 19:54:00 +02005739 png.h \
Steven Edwards57279182005-03-04 12:38:36 +00005740 poll.h \
Albert Lee01b972d2009-11-20 18:35:26 -05005741 port.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005742 process.h \
5743 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005744 pwd.h \
5745 regex.h \
5746 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005747 scsi/scsi.h \
5748 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005749 scsi/sg.h \
Austin English2d7ccb32009-06-13 18:01:24 -05005750 stdbool.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005751 stdint.h \
5752 strings.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005753 stropts.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005754 sys/asoundlib.h \
Charles Davis4e44e152011-01-18 13:09:44 -07005755 sys/attr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005756 sys/cdio.h \
5757 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005758 sys/epoll.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005759 sys/errno.h \
Alexandre Julliardc8278922006-08-04 22:11:00 +02005760 sys/event.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005761 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005762 sys/filio.h \
Alexandre Julliard61a70362009-06-26 15:45:03 +02005763 sys/inotify.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005764 sys/ioctl.h \
5765 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00005766 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005767 sys/link.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005768 sys/mman.h \
5769 sys/modem.h \
5770 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01005771 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005772 sys/param.h \
5773 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02005774 sys/prctl.h \
Austin English94021a12009-01-20 17:42:53 -06005775 sys/protosw.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005776 sys/ptrace.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09005777 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005778 sys/scsiio.h \
5779 sys/shm.h \
5780 sys/signal.h \
5781 sys/socket.h \
Mark Adams25696352007-07-10 23:39:21 -04005782 sys/socketvar.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005783 sys/sockio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005784 sys/statvfs.h \
5785 sys/strtio.h \
5786 sys/syscall.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005787 sys/tihdr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005788 sys/time.h \
Austin English8b195912009-01-21 21:59:11 -06005789 sys/timeout.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005790 sys/times.h \
5791 sys/uio.h \
5792 sys/un.h \
Alexandre Julliard66eb4bd2008-12-09 19:33:06 +01005793 sys/utsname.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005794 sys/vm86.h \
5795 sys/wait.h \
5796 syscall.h \
5797 termios.h \
Vincent Povirk73cd5692010-03-08 17:07:29 -06005798 tiffio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005799 unistd.h \
5800 utime.h \
John Reiser0a2c94e2008-07-24 13:31:53 -07005801 valgrind/memcheck.h \
Jacek Caban11ca05f2009-05-29 23:35:13 +02005802 valgrind/valgrind.h \
5803 zlib.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005804
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005805do :
5806 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5807ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005808if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005809 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005810#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Rein Klazes7ff12562004-11-09 20:16:35 +00005811_ACEOF
5812
5813fi
5814
5815done
5816
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005818$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02005819if ${ac_cv_header_stat_broken+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005820 $as_echo_n "(cached) " >&6
Rein Klazes7ff12562004-11-09 20:16:35 +00005821else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005823/* end confdefs.h. */
5824#include <sys/types.h>
5825#include <sys/stat.h>
5826
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005827#if defined S_ISBLK && defined S_IFDIR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005828extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005829#endif
5830
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005831#if defined S_ISBLK && defined S_IFCHR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005832extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005833#endif
5834
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005835#if defined S_ISLNK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005836extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005837#endif
5838
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005839#if defined S_ISSOCK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005840extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005841#endif
5842
5843_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005844if ac_fn_c_try_compile "$LINENO"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005845 ac_cv_header_stat_broken=no
Phil Krylovf0ca5862006-11-05 23:03:46 +03005846else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005847 ac_cv_header_stat_broken=yes
Phil Krylovf0ca5862006-11-05 23:03:46 +03005848fi
Phil Krylovf0ca5862006-11-05 23:03:46 +03005849rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005850fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005852$as_echo "$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00005853if test $ac_cv_header_stat_broken = yes; then
5854
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005855$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005856
5857fi
5858
5859
5860
Austin English51094be2008-12-27 14:53:53 -06005861for 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 +02005862do :
5863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5864ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005865 #ifdef HAVE_SYS_PARAM_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005866 # include <sys/param.h>
5867 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005868"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005869if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005870 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005871#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005872_ACEOF
5873
5874fi
5875
5876done
5877
5878
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005879for ac_header in \
5880 netinet/ip.h \
5881 net/if.h \
5882 net/if_arp.h \
5883 net/if_dl.h \
5884 net/if_types.h \
5885 net/route.h \
5886 netinet/if_ether.h \
Austin English337067a2009-01-22 10:44:06 -06005887 netinet/if_inarp.h \
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005888 netinet/in_pcb.h \
5889 netinet/ip_icmp.h \
5890 netinet/ip_var.h \
5891 netinet/udp.h \
5892 netipx/ipx.h \
5893
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005894do :
5895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5896ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005897 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005898 # include <sys/socket.h>
5899 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005900 #ifdef HAVE_SYS_SOCKETVAR_H
Ken Thomasesa609fee2007-10-19 16:18:17 -05005901 # include <sys/socketvar.h>
5902 #endif
Austin Englishbb3f2582009-01-26 23:34:42 -06005903 #ifdef HAVE_NET_ROUTE_H
5904 # include <net/route.h>
5905 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005906 #ifdef HAVE_NETINET_IN_H
Ken Thomasesffd78b12007-10-19 16:18:27 -05005907 # include <netinet/in.h>
5908 #endif
Austin English03173932009-01-23 13:29:42 -06005909 #ifdef HAVE_NETINET_IN_SYSTM_H
5910 # include <netinet/in_systm.h>
5911 #endif
Alexandre Julliardd7e846c2009-01-30 14:01:12 +01005912 #ifdef HAVE_NET_IF_H
5913 # include <net/if.h>
5914 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005915 #ifdef HAVE_NETINET_IP_H
5916 # include <netinet/ip.h>
5917 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005918"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005919if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005920 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005922_ACEOF
5923
5924fi
5925
5926done
5927
Mark Adams25696352007-07-10 23:39:21 -04005928
Austin English03173932009-01-23 13:29:42 -06005929for 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 +02005930do :
5931 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5932ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Eric Durbin020b0ef2008-06-24 22:45:51 -05005933 #ifdef HAVE_ALIAS_H
5934 # include <alias.h>
5935 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005936 #ifdef HAVE_SYS_SOCKET_H
Mark Adams25696352007-07-10 23:39:21 -04005937 # include <sys/socket.h>
5938 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005939 #ifdef HAVE_SYS_SOCKETVAR_H
Mark Adams25696352007-07-10 23:39:21 -04005940 # include <sys/socketvar.h>
5941 #endif
Austin English53d3c462009-01-26 23:47:49 -06005942 #ifdef HAVE_SYS_TIMEOUT_H
5943 # include <sys/timeout.h>
5944 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005945 #ifdef HAVE_NETINET_IN_H
Mark Adams25696352007-07-10 23:39:21 -04005946 # include <netinet/in.h>
5947 #endif
Austin English03173932009-01-23 13:29:42 -06005948 #ifdef HAVE_NETINET_IN_SYSTM_H
5949 # include <netinet/in_systm.h>
5950 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005951 #ifdef HAVE_NETINET_IP_H
5952 # include <netinet/ip.h>
5953 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05005954 #ifdef HAVE_NETINET_IP_VAR_H
5955 # include <netinet/ip_var.h>
5956 #endif
Eric Durbin020b0ef2008-06-24 22:45:51 -05005957 #ifdef HAVE_NETINET_IP_ICMP_H
5958 # include <netinet/ip_icmp.h>
5959 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05005960 #ifdef HAVE_NETINET_UDP_H
5961 # include <netinet/udp.h>
5962 #endif
Mark Adams25696352007-07-10 23:39:21 -04005963 #ifdef HAVE_NETINET_TCP_H
5964 # include <netinet/tcp.h>
5965 #endif
Austin English03173932009-01-23 13:29:42 -06005966 #ifdef HAVE_NETINET_TCP_TIMER_H
5967 #include <netinet/tcp_timer.h>
5968 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005969"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005970if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mark Adams25696352007-07-10 23:39:21 -04005971 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005972#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mark Adams25696352007-07-10 23:39:21 -04005973_ACEOF
5974
5975fi
5976
5977done
5978
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005979
Juan Lang0ce420d2009-08-12 09:14:16 -07005980for ac_header in linux/ipx.h linux/irda.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005981do :
Juan Lang0ce420d2009-08-12 09:14:16 -07005982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5983ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gougetfaf05df2006-08-07 21:52:36 +02005984 #ifdef HAVE_ASM_TYPES_H
5985 # include <asm/types.h>
5986 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005987 #ifdef HAVE_SYS_SOCKET_H
Francois Gougetfaf05df2006-08-07 21:52:36 +02005988 # include <sys/socket.h>
5989 #endif
Francois Gougetda1a3522008-12-28 10:35:02 +01005990 #ifdef HAVE_LINUX_TYPES_H
5991 # include <linux/types.h>
5992 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005993"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005994if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Francois Gougetfaf05df2006-08-07 21:52:36 +02005995 cat >>confdefs.h <<_ACEOF
Juan Lang0ce420d2009-08-12 09:14:16 -07005996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Francois Gougetfaf05df2006-08-07 21:52:36 +02005997_ACEOF
5998
5999fi
6000
6001done
6002
6003
Austin English2d7ccb32009-06-13 18:01:24 -05006004for ac_header in mach-o/dyld_images.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006005do :
6006 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 -05006007 # include <stdbool.h>
6008 #endif
6009 #ifdef HAVE_STDINT_H
6010 # include <stdint.h>
6011 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006012"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006013if test "x$ac_cv_header_mach_o_dyld_images_h" = xyes; then :
Austin English2d7ccb32009-06-13 18:01:24 -05006014 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006015#define HAVE_MACH_O_DYLD_IMAGES_H 1
Austin English2d7ccb32009-06-13 18:01:24 -05006016_ACEOF
6017
6018fi
6019
6020done
6021
6022
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006023for ac_header in resolv.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006024do :
6025 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 +01006026 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006027 # include <sys/socket.h>
6028 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006029 #ifdef HAVE_NETINET_IN_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006030 # include <netinet/in.h>
6031 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006032 #ifdef HAVE_ARPA_NAMESER_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006033 # include <arpa/nameser.h>
6034 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006035"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006036if test "x$ac_cv_header_resolv_h" = xyes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006037 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006038#define HAVE_RESOLV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006039_ACEOF
6040
6041fi
6042
6043done
6044
6045
Juan Lange3c0e302010-03-11 18:36:46 -08006046for ac_header in ifaddrs.h
6047do :
6048 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6049"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006050if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
Juan Lange3c0e302010-03-11 18:36:46 -08006051 cat >>confdefs.h <<_ACEOF
6052#define HAVE_IFADDRS_H 1
6053_ACEOF
6054
6055fi
6056
6057done
6058
6059
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006060for ac_header in ucontext.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006061do :
6062 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6063"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006064if test "x$ac_cv_header_ucontext_h" = xyes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006065 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006066#define HAVE_UCONTEXT_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006067_ACEOF
6068
6069fi
6070
6071done
6072
6073
Tijl Coosemans60833da2007-08-08 00:25:24 +02006074for ac_header in sys/thr.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006075do :
6076 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 +01006077#ifdef HAVE_UCONTEXT_H
Tijl Coosemans60833da2007-08-08 00:25:24 +02006078#include <ucontext.h>
6079#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006080"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006081if test "x$ac_cv_header_sys_thr_h" = xyes; then :
Tijl Coosemans60833da2007-08-08 00:25:24 +02006082 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006083#define HAVE_SYS_THR_H 1
Tijl Coosemans60833da2007-08-08 00:25:24 +02006084_ACEOF
6085
6086fi
6087
6088done
6089
6090
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006091for ac_header in pthread_np.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006092do :
6093 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 +02006094#include <pthread.h>
6095#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006096"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006097if test "x$ac_cv_header_pthread_np_h" = xyes; then :
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006098 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006099#define HAVE_PTHREAD_NP_H 1
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006100_ACEOF
6101
6102fi
6103
6104done
6105
6106
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006107for ac_header in linux/videodev.h linux/videodev2.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006108do :
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006109 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6110ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_SYS_TIME_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006111#include <sys/time.h>
6112#endif
6113#include <sys/types.h>
6114#ifdef HAVE_ASM_TYPES_H
6115#include <asm/types.h>
6116#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006117"
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006118if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006119 cat >>confdefs.h <<_ACEOF
Rafał Mużyło898d8ab2011-07-14 21:38:14 +02006120#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006121_ACEOF
6122
6123fi
6124
6125done
6126
6127
Alexandre Julliardb079add2006-02-24 11:46:17 +01006128for ac_header in linux/capi.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006129do :
6130 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6131"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006132if test "x$ac_cv_header_linux_capi_h" = xyes; then :
Alexandre Julliardb079add2006-02-24 11:46:17 +01006133 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006134#define HAVE_LINUX_CAPI_H 1
Alexandre Julliardb079add2006-02-24 11:46:17 +01006135_ACEOF
6136
6137fi
6138
6139done
6140
6141
6142
Alexandre Julliarda3097622007-07-02 17:27:48 +02006143DLLEXT=""
6144
6145DLLFLAGS="-D_REENTRANT"
6146
6147LDSHARED=""
6148
6149LDDLLFLAGS=""
6150
6151LIBEXT="so"
6152
6153IMPLIBEXT="def"
6154
6155LDRPATH_INSTALL=""
6156
6157LDRPATH_LOCAL=""
6158
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006159STATIC_IMPLIBEXT="def.a"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006160# Extract the first word of "ldd", so it can be a program name with args.
6161set dummy ldd; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006163$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006164if ${ac_cv_path_LDD+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006165 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006166else
6167 case $LDD in
6168 [\\/]* | ?:[\\/]*)
6169 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6170 ;;
6171 *)
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173as_dummy="/sbin:/usr/sbin:$PATH"
6174for as_dir in $as_dummy
6175do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006178 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6180 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006182 break 2
6183 fi
6184done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006185 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006186IFS=$as_save_IFS
6187
6188 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6189 ;;
6190esac
6191fi
6192LDD=$ac_cv_path_LDD
6193if test -n "$LDD"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006195$as_echo "$LDD" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006196else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006198$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006199fi
6200
6201
6202
6203case $host_os in
6204 cygwin*|mingw32*)
6205 if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6207set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006209$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006210if ${ac_cv_prog_DLLTOOL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006211 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006212else
6213 if test -n "$DLLTOOL"; then
6214 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6215else
6216as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6217for as_dir in $PATH
6218do
6219 IFS=$as_save_IFS
6220 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006221 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006225 break 2
6226 fi
6227done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006228 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006229IFS=$as_save_IFS
6230
6231fi
6232fi
6233DLLTOOL=$ac_cv_prog_DLLTOOL
6234if test -n "$DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006236$as_echo "$DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006237else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006239$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006240fi
6241
6242
6243fi
6244if test -z "$ac_cv_prog_DLLTOOL"; then
6245 ac_ct_DLLTOOL=$DLLTOOL
6246 # Extract the first word of "dlltool", so it can be a program name with args.
6247set dummy dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006249$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006250if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006251 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006252else
6253 if test -n "$ac_ct_DLLTOOL"; then
6254 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6255else
6256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6257for as_dir in $PATH
6258do
6259 IFS=$as_save_IFS
6260 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006261 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006265 break 2
6266 fi
6267done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006268 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006269IFS=$as_save_IFS
6270
6271fi
6272fi
6273ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6274if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006276$as_echo "$ac_ct_DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006277else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006279$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006280fi
6281
6282 if test "x$ac_ct_DLLTOOL" = x; then
6283 DLLTOOL="false"
6284 else
6285 case $cross_compiling:$ac_tool_warned in
6286yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006287{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006288$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006289ac_tool_warned=yes ;;
6290esac
6291 DLLTOOL=$ac_ct_DLLTOOL
6292 fi
6293else
6294 DLLTOOL="$ac_cv_prog_DLLTOOL"
6295fi
6296
6297 if test -n "$ac_tool_prefix"; then
6298 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6299set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006301$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006302if ${ac_cv_prog_DLLWRAP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006303 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006304else
6305 if test -n "$DLLWRAP"; then
6306 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6307else
6308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006313 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6315 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006317 break 2
6318 fi
6319done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006320 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006321IFS=$as_save_IFS
6322
6323fi
6324fi
6325DLLWRAP=$ac_cv_prog_DLLWRAP
6326if test -n "$DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006328$as_echo "$DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006329else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006331$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006332fi
6333
6334
6335fi
6336if test -z "$ac_cv_prog_DLLWRAP"; then
6337 ac_ct_DLLWRAP=$DLLWRAP
6338 # Extract the first word of "dllwrap", so it can be a program name with args.
6339set dummy dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006341$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006342if ${ac_cv_prog_ac_ct_DLLWRAP+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006343 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006344else
6345 if test -n "$ac_ct_DLLWRAP"; then
6346 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6347else
6348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6349for as_dir in $PATH
6350do
6351 IFS=$as_save_IFS
6352 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006353 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006357 break 2
6358 fi
6359done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006360 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006361IFS=$as_save_IFS
6362
6363fi
6364fi
6365ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6366if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006368$as_echo "$ac_ct_DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006369else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006371$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006372fi
6373
6374 if test "x$ac_ct_DLLWRAP" = x; then
6375 DLLWRAP="false"
6376 else
6377 case $cross_compiling:$ac_tool_warned in
6378yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006379{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006380$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006381ac_tool_warned=yes ;;
6382esac
6383 DLLWRAP=$ac_ct_DLLWRAP
6384 fi
6385else
6386 DLLWRAP="$ac_cv_prog_DLLWRAP"
6387fi
6388
Alexandre Julliarda3097622007-07-02 17:27:48 +02006389 if test "$DLLWRAP" = "false"; then
6390 LIBEXT="a"
6391 else
6392 LIBEXT="dll"
6393 fi
6394 IMPLIBEXT="a"
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006395 STATIC_IMPLIBEXT="a"
Alexandre Julliardec1ebfb2008-09-04 12:29:07 +02006396 enable_iphlpapi=${enable_iphlpapi:-no}
6397 enable_kernel32=${enable_kernel32:-no}
6398 enable_msvcrt=${enable_msvcrt:-no}
6399 enable_ntdll=${enable_ntdll:-no}
6400 enable_ws2_32=${enable_ws2_32:-no}
6401 enable_loader=${enable_loader:-no}
6402 enable_server=${enable_server:-no}
Alexandre Julliard40664c02009-02-11 20:40:58 +01006403 with_x=${with_x:-no}
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01006404 with_pthread=${with_pthread:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006405 ;;
6406 darwin*|macosx*)
6407 DLLEXT=".so"
6408 LIBEXT="dylib"
6409 DLLFLAGS="$DLLFLAGS -fPIC"
6410 LDDLLFLAGS="-bundle -multiply_defined suppress"
6411 LIBWINE_LDFLAGS="-multiply_defined suppress"
6412 LDSHARED="\$(CC) -dynamiclib"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006413 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 +01006414 COREFOUNDATIONLIB="-framework CoreFoundation"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006415
6416 IOKITLIB="-framework IOKit -framework CoreFoundation"
6417
Ken Thomases21137cd2011-01-05 07:25:23 -06006418 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6419
Camillo Lugaresi0b5dcba2011-08-02 04:31:53 +02006420 case $host_os in
6421 darwin11*)
6422 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-macosx_version_min,10.6,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6423 ;;
6424 *)
6425 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00001000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
6426 ;;
6427 esac
Alexandre Julliarda3097622007-07-02 17:27:48 +02006428 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6429 then
6430 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6431
6432 fi
Alexandre Julliard45db3482011-03-14 14:25:45 +01006433 if test "$ac_cv_header_Security_Security_h" = "yes"
6434 then
6435 SECURITYLIB="-framework Security -framework CoreFoundation"
6436
6437 with_gnutls=${with_gnutls:-no}
6438 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006439 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6440 then
Charles Davis459d9422011-01-29 16:45:53 -07006441 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6442 then
6443 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006444
Charles Davis459d9422011-01-29 16:45:53 -07006445 else
6446 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6447
6448 fi
Charles Davisb149d7b2011-01-29 16:45:54 -07006449 ac_save_LIBS="$LIBS"
6450 LIBS="$LIBS $COREAUDIO"
6451 for ac_func in AUGraphAddNode
6452do :
6453 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006454if test "x$ac_cv_func_AUGraphAddNode" = xyes; then :
Charles Davisb149d7b2011-01-29 16:45:54 -07006455 cat >>confdefs.h <<_ACEOF
6456#define HAVE_AUGRAPHADDNODE 1
6457_ACEOF
6458
6459fi
6460done
6461
6462 LIBS="$ac_save_LIBS"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006463 fi
Ken Thomases0b08f192009-09-09 22:23:35 -05006464 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6465 then
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006466 FRAMEWORK_OPENAL="-framework OpenAL"
Ken Thomases0b08f192009-09-09 22:23:35 -05006467
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006468
6469cat >>confdefs.h <<_ACEOF
6470#define HAVE_OPENAL 1
6471_ACEOF
6472
6473 ac_cv_lib_openal=yes
Ken Thomases0b08f192009-09-09 22:23:35 -05006474 fi
Alexandre Julliardfac67412010-12-03 14:16:55 +01006475 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6476 then
6477 LIBOPENCL="-framework OpenCL"
6478
6479 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6480 fi
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006481 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6482 then
6483 ac_save_LIBS="$LIBS"
6484 LIBS="$LIBS $IOKITLIB"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006485 for ac_func in IOHIDManagerCreate
6486do :
6487 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
Alexandre Julliard9797da42011-04-27 17:37:43 +02006488if test "x$ac_cv_func_IOHIDManagerCreate" = xyes; then :
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006489 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006490#define HAVE_IOHIDMANAGERCREATE 1
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006491_ACEOF
6492
6493fi
6494done
6495
6496 LIBS="$ac_save_LIBS"
6497 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006498 case $host_cpu in
6499 *powerpc*)
6500 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6501 esac
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +01006502 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6503 then
6504 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6505
6506 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6507 else
6508 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6509 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006510 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6511 then
6512 CARBONLIB="-framework Carbon"
6513
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02006514 enable_winequartz_drv=${enable_winequartz_drv:-yes}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006515 fi
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006516 if test "x$enable_win16" = "xyes"
6517 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006519$as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006520 if test "$cross_compiling" = yes; then :
6521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006522$as_echo "cross-compiling, assuming yes" >&6; }
6523else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006525/* end confdefs.h. */
6526asm(".text\n"
6527 "bad:\tnop;nop\n"
6528 "good:\tnop;nop\n\t"
6529 ".globl _testfunc\n"
6530 "_testfunc:\tcallw good");
6531 extern void testfunc();
6532int
6533main ()
6534{
6535unsigned short *p = (unsigned short *)testfunc;
6536 return p[0] != 0xe866 || p[1] != 0xfffa
6537 ;
6538 return 0;
6539}
6540_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006541if ac_fn_c_try_run "$LINENO"; then :
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006543$as_echo "yes" >&6; }
6544else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006546$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006547 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 +02006548fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006549rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6550 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006551fi
6552
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006553 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006554 ;;
6555 *)
6556 DLLFLAGS="$DLLFLAGS -fPIC"
6557 DLLEXT=".so"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006558 { $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 +01006559$as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006560if ${ac_cv_c_dll_gnuelf+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006561 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006562else
6563 ac_wine_try_cflags_saved=$CFLAGS
6564CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6566/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006567void myfunc() {}
6568_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006569if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006570 ac_cv_c_dll_gnuelf="yes"
6571else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006572 ac_cv_c_dll_gnuelf="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006573fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006574rm -f core conftest.err conftest.$ac_objext \
6575 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006576CFLAGS=$ac_wine_try_cflags_saved
6577fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006579$as_echo "$ac_cv_c_dll_gnuelf" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006580 if test "$ac_cv_c_dll_gnuelf" = "yes"
6581 then
6582 LDSHARED="\$(CC) -shared"
6583 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006584 { $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 +01006585$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006586if ${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006587 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006588else
6589 ac_wine_try_cflags_saved=$CFLAGS
6590CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006592/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006593int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006594_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006595if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006596 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6597else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006598 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006599fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006600rm -f core conftest.err conftest.$ac_objext \
6601 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006602CFLAGS=$ac_wine_try_cflags_saved
6603fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006604{ $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 +01006605$as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006606if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006607 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6608else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006609 { $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 +01006610$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006611if ${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006612 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006613else
6614 ac_wine_try_cflags_saved=$CFLAGS
6615CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006616cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006617/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006618int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006619_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006620if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006621 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6622else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006623 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006624fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006625rm -f core conftest.err conftest.$ac_objext \
6626 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006627CFLAGS=$ac_wine_try_cflags_saved
6628fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006629{ $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 +01006630$as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006631if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006632 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6633fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006634fi
6635
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006636 { $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 +01006637$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006638if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006639 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006640else
6641 ac_wine_try_cflags_saved=$CFLAGS
6642CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006643cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006644/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006645int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006646_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006647if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006648 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6649else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006650 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006651fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006652rm -f core conftest.err conftest.$ac_objext \
6653 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006654CFLAGS=$ac_wine_try_cflags_saved
6655fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006656{ $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 +01006657$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006658if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006659 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6660fi
6661
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006662 { $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 +01006663$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 +02006664if ${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006665 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006666else
6667 ac_wine_try_cflags_saved=$CFLAGS
6668CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006670/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006671int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006672_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006673if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006674 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6675else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006676 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006677fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006678rm -f core conftest.err conftest.$ac_objext \
6679 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006680CFLAGS=$ac_wine_try_cflags_saved
6681fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006682{ $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 +01006683$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 +02006684if 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 +02006685 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6686fi
6687
Alexandre Julliarda3097622007-07-02 17:27:48 +02006688 echo '{ global: *; };' >conftest.map
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006689 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6690{ $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 +01006691$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006692if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006693 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006694else
6695 ac_wine_try_cflags_saved=$CFLAGS
6696CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006698/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006699int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006700_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006701if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006702 eval "$as_ac_var=yes"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006703else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006704 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006705fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006706rm -f core conftest.err conftest.$ac_objext \
6707 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006708CFLAGS=$ac_wine_try_cflags_saved
6709fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006710eval ac_res=\$$as_ac_var
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6712$as_echo "$ac_res" >&6; }
6713if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006714 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6715fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006716 rm -f conftest.map
6717
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006719$as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006720if ${ac_cv_cflags__fPIC__Wl___export_dynamic+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006721 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006722else
6723 ac_wine_try_cflags_saved=$CFLAGS
6724CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006726/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006727int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006728_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006729if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006730 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6731else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006732 ac_cv_cflags__fPIC__Wl___export_dynamic=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006733fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006734rm -f core conftest.err conftest.$ac_objext \
6735 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006736CFLAGS=$ac_wine_try_cflags_saved
6737fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006739$as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006740if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006741 LDEXECFLAGS="-Wl,--export-dynamic"
6742
6743fi
6744
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006745 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6746{ $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 +01006747$as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006748if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006749 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006750else
6751 ac_wine_try_cflags_saved=$CFLAGS
6752CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006754/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006755int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006756_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006757if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006758 eval "$as_ac_var=yes"
6759else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006760 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006761fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006762rm -f core conftest.err conftest.$ac_objext \
6763 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006764CFLAGS=$ac_wine_try_cflags_saved
6765fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006766eval ac_res=\$$as_ac_var
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006768$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006769if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006770 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006771 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006772else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006773 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6774{ $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 +01006775$as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006776if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006777 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006778else
6779 ac_wine_try_cflags_saved=$CFLAGS
6780CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006782/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006783int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006784_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006785if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006786 eval "$as_ac_var=yes"
6787else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006788 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006789fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006790rm -f core conftest.err conftest.$ac_objext \
6791 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006792CFLAGS=$ac_wine_try_cflags_saved
6793fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006794eval ac_res=\$$as_ac_var
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006796$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006797if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006798 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006799 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006800fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006801fi
6802
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006804$as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006805if ${ac_cv_cflags__Wl___enable_new_dtags+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006806 $as_echo_n "(cached) " >&6
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006807else
6808 ac_wine_try_cflags_saved=$CFLAGS
6809CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006810cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006811/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006812int main(int argc, char **argv) { return 0; }
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006813_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006814if ac_fn_c_try_link "$LINENO"; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006815 ac_cv_cflags__Wl___enable_new_dtags=yes
6816else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006817 ac_cv_cflags__Wl___enable_new_dtags=no
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006818fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006819rm -f core conftest.err conftest.$ac_objext \
6820 conftest$ac_exeext conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006821CFLAGS=$ac_wine_try_cflags_saved
6822fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006824$as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006825if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006826 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6827fi
6828
Alexandre Julliarda3097622007-07-02 17:27:48 +02006829 case $host_cpu in
6830 *i[3456789]86* | x86_64)
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006831 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6832{ $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 +01006833$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006834if eval \${$as_ac_var+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006835 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006836else
6837 ac_wine_try_cflags_saved=$CFLAGS
6838CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006840/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006841int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006842_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006843if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006844 eval "$as_ac_var=yes"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006845else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006846 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006847fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006848rm -f core conftest.err conftest.$ac_objext \
6849 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006850CFLAGS=$ac_wine_try_cflags_saved
6851fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006852eval ac_res=\$$as_ac_var
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6854$as_echo "$ac_res" >&6; }
6855if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Francois Gouget5f694dd2010-11-26 16:18:32 +01006856 case $host_os in
Robert Millan535a55e2011-08-23 20:39:45 +02006857 freebsd* | kfreebsd*-gnu) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
Francois Gouget5f694dd2010-11-26 16:18:32 +01006858 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6859 esac
6860
Alexandre Julliarda3097622007-07-02 17:27:48 +02006861fi
Alexandre Julliardb5d824b2010-08-24 13:42:10 +02006862 # Extract the first word of "prelink", so it can be a program name with args.
6863set dummy prelink; ac_word=$2
6864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006866if ${ac_cv_path_PRELINK+:} false; then :
Alexandre Julliardb5d824b2010-08-24 13:42:10 +02006867 $as_echo_n "(cached) " >&6
6868else
6869 case $PRELINK in
6870 [\\/]* | ?:[\\/]*)
6871 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6872 ;;
6873 *)
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6875for as_dir in /sbin /usr/sbin $PATH
6876do
6877 IFS=$as_save_IFS
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 break 2
6884 fi
6885done
6886 done
6887IFS=$as_save_IFS
6888
6889 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6890 ;;
6891esac
6892fi
6893PRELINK=$ac_cv_path_PRELINK
6894if test -n "$PRELINK"; then
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6896$as_echo "$PRELINK" >&6; }
6897else
6898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6899$as_echo "no" >&6; }
6900fi
6901
6902
6903 if test "x$PRELINK" = xfalse
6904 then
6905 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6906 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006907 ;;
6908 esac
6909
6910 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006912$as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006913if ${ac_cv_c_dll_unixware+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006914 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006915else
6916 ac_wine_try_cflags_saved=$CFLAGS
6917CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6919/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006920void myfunc() {}
6921_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006922if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006923 ac_cv_c_dll_unixware="yes"
6924else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006925 ac_cv_c_dll_unixware="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006926fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006927rm -f core conftest.err conftest.$ac_objext \
6928 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006929CFLAGS=$ac_wine_try_cflags_saved
6930fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006932$as_echo "$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006933 if test "$ac_cv_c_dll_unixware" = "yes"
6934 then
6935 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6936 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6937
6938 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006940$as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02006941if ${ac_cv_c_dll_hpux+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006942 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006943else
6944 ac_wine_try_cflags_saved=$CFLAGS
6945CFLAGS="$CFLAGS -shared"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006946cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006948void myfunc() {}
6949_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006950if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006951 ac_cv_c_dll_hpux="yes"
6952else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006953 ac_cv_c_dll_hpux="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006954fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006955rm -f core conftest.err conftest.$ac_objext \
6956 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006957CFLAGS=$ac_wine_try_cflags_saved
6958fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006960$as_echo "$ac_cv_c_dll_hpux" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006961 if test "$ac_cv_c_dll_hpux" = "yes"
6962 then
6963 LIBEXT="sl"
6964 DLLEXT=".sl"
6965 LDDLLFLAGS="-shared -fPIC"
6966 LDSHARED="\$(CC) -shared"
6967 fi
6968 fi
6969 fi
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006970 ;;
6971esac
Alexandre Julliarda3097622007-07-02 17:27:48 +02006972
Aric Stewarteefe6f62010-12-03 07:33:08 -06006973enable_wineqtdecoder=${enable_wineqtdecoder:-no}
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006974enable_winequartz_drv=${enable_winequartz_drv:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006975
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006976if test "$LIBEXT" = "a"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006977 as_fn_error $? "could not find a way to build shared libraries.
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006978It is currently not possible to build Wine without shared library
6979(.so) support to allow transparent switch between .so and .dll files.
6980If you are using Linux, you will need a newer binutils.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006981" "$LINENO" 5
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006982fi
6983
Alexandre Julliard7d2e7722010-07-26 12:13:47 +02006984CROSSTEST_DISABLE=\#
6985
6986if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006987then
Alexandre Julliarda91fb212009-12-07 15:36:09 +01006988 case "$host_cpu" in
6989 i[3456789]86*)
Jacek Caban0b6bfad2010-12-21 18:08:38 +01006990 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 +01006991 x86_64)
Vincent Povirkd2103752010-10-11 15:55:40 -05006992 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 +01006993 *)
6994 ac_prefix_list="" ;;
6995esac
6996for ac_prog in $ac_prefix_list
Alexandre Julliarda3097622007-07-02 17:27:48 +02006997do
6998 # Extract the first word of "$ac_prog", so it can be a program name with args.
6999set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007001$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007002if ${ac_cv_prog_CROSSCC+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007003 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007004else
7005 if test -n "$CROSSCC"; then
7006 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7007else
7008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009for as_dir in $PATH
7010do
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007013 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02007014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7015 ac_cv_prog_CROSSCC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02007017 break 2
7018 fi
7019done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007020 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02007021IFS=$as_save_IFS
7022
7023fi
7024fi
7025CROSSCC=$ac_cv_prog_CROSSCC
7026if test -n "$CROSSCC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007028$as_echo "$CROSSCC" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007029else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007031$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007032fi
7033
7034
7035 test -n "$CROSSCC" && break
7036done
7037test -n "$CROSSCC" || CROSSCC="false"
7038
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007039 if test "$CROSSCC" != "false"
7040 then
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007041 ac_save_CC="$CC"
7042 CC="$CROSSCC"
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7044$as_echo_n "checking whether $CROSSCC works... " >&6; }
7045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7046/* end confdefs.h. */
Alexandre Julliarda2d88ab2009-05-30 17:08:06 +02007047
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007048int
7049main ()
7050{
7051
7052 ;
7053 return 0;
7054}
7055_ACEOF
7056if ac_fn_c_try_compile "$LINENO"; then :
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7058$as_echo "yes" >&6; }
7059 set x $CROSSCC
7060 shift
7061 target=""
7062 while test $# -ge 1
7063 do
7064 case "$1" in
7065 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7066 esac
7067 shift
7068 done
7069 if test -n "$target"
7070 then
7071 CROSSTEST_DISABLE=""
7072 CROSSTARGET="$target"
7073
7074 fi
7075else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077$as_echo "no" >&6; }
7078fi
7079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7080 CC="$ac_save_CC"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007081 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007082fi
7083
7084
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007085if test "$ac_cv_header_pthread_h" = "yes"
7086then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007088$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007089if ${ac_cv_lib_pthread_pthread_create+:} false; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007090 $as_echo_n "(cached) " >&6
7091else
7092 ac_check_lib_save_LIBS=$LIBS
7093LIBS="-lpthread $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007094cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007095/* end confdefs.h. */
7096
7097/* Override any GCC internal prototype to avoid an error.
7098 Use char because int might match the return type of a GCC
7099 builtin and then its argument prototype would still apply. */
7100#ifdef __cplusplus
7101extern "C"
7102#endif
7103char pthread_create ();
7104int
7105main ()
7106{
7107return pthread_create ();
7108 ;
7109 return 0;
7110}
7111_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007112if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007113 ac_cv_lib_pthread_pthread_create=yes
7114else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007115 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007116fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007117rm -f core conftest.err conftest.$ac_objext \
7118 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007119LIBS=$ac_check_lib_save_LIBS
7120fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007122$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007123if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007124 LIBPTHREAD="-lpthread"
7125
7126fi
7127
7128fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007129if test "x$LIBPTHREAD" = "x"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007130 case "x$with_pthread" in
7131 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007132 *) as_fn_error $? "pthread ${notice_platform}development files not found.
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007133Wine cannot support threads without libpthread.
Alexandre Julliard9797da42011-04-27 17:37:43 +02007134Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007135esac
7136fi
7137
7138
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007140$as_echo_n "checking for X... " >&6; }
7141
7142
7143# Check whether --with-x was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007144if test "${with_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007145 withval=$with_x;
7146fi
7147
7148# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7149if test "x$with_x" = xno; then
7150 # The user explicitly disabled X.
7151 have_x=disabled
7152else
7153 case $x_includes,$x_libraries in #(
Alexandre Julliard9797da42011-04-27 17:37:43 +02007154 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7155 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007156 $as_echo_n "(cached) " >&6
7157else
7158 # One or both of the vars are not set, and there is no cached value.
7159ac_x_includes=no ac_x_libraries=no
7160rm -f -r conftest.dir
7161if mkdir conftest.dir; then
7162 cd conftest.dir
7163 cat >Imakefile <<'_ACEOF'
7164incroot:
7165 @echo incroot='${INCROOT}'
7166usrlibdir:
7167 @echo usrlibdir='${USRLIBDIR}'
7168libdir:
7169 @echo libdir='${LIBDIR}'
7170_ACEOF
7171 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007172 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Alexandre Julliard40664c02009-02-11 20:40:58 +01007173 for ac_var in incroot usrlibdir libdir; do
7174 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7175 done
7176 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7177 for ac_extension in a so sl dylib la dll; do
7178 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7179 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7180 ac_im_usrlibdir=$ac_im_libdir; break
7181 fi
7182 done
7183 # Screen out bogus values from the imake configuration. They are
7184 # bogus both because they are the default anyway, and because
7185 # using them would break gcc on systems where it needs fixed includes.
7186 case $ac_im_incroot in
7187 /usr/include) ac_x_includes= ;;
7188 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7189 esac
7190 case $ac_im_usrlibdir in
7191 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7192 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7193 esac
7194 fi
7195 cd ..
7196 rm -f -r conftest.dir
7197fi
7198
7199# Standard set of common directories for X headers.
7200# Check X11 before X11Rn because it is often a symlink to the current release.
7201ac_x_header_dirs='
7202/usr/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007203/usr/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007204/usr/X11R6/include
7205/usr/X11R5/include
7206/usr/X11R4/include
7207
7208/usr/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007209/usr/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007210/usr/include/X11R6
7211/usr/include/X11R5
7212/usr/include/X11R4
7213
7214/usr/local/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007215/usr/local/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007216/usr/local/X11R6/include
7217/usr/local/X11R5/include
7218/usr/local/X11R4/include
7219
7220/usr/local/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007221/usr/local/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007222/usr/local/include/X11R6
7223/usr/local/include/X11R5
7224/usr/local/include/X11R4
7225
7226/usr/X386/include
7227/usr/x386/include
7228/usr/XFree86/include/X11
7229
7230/usr/include
7231/usr/local/include
7232/usr/unsupported/include
7233/usr/athena/include
7234/usr/local/x11r5/include
7235/usr/lpp/Xamples/include
7236
7237/usr/openwin/include
7238/usr/openwin/share/include'
7239
7240if test "$ac_x_includes" = no; then
7241 # Guess where to find include files, by looking for Xlib.h.
7242 # First, try using that file with no special directory specified.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007244/* end confdefs.h. */
7245#include <X11/Xlib.h>
7246_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007247if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007248 # We can compile using X headers with no special include directory.
7249ac_x_includes=
7250else
Alexandre Julliard40664c02009-02-11 20:40:58 +01007251 for ac_dir in $ac_x_header_dirs; do
7252 if test -r "$ac_dir/X11/Xlib.h"; then
7253 ac_x_includes=$ac_dir
7254 break
7255 fi
7256done
7257fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007258rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007259fi # $ac_x_includes = no
7260
7261if test "$ac_x_libraries" = no; then
7262 # Check for the libraries.
7263 # See if we find them without any special options.
7264 # Don't add to $LIBS permanently.
7265 ac_save_LIBS=$LIBS
7266 LIBS="-lX11 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007268/* end confdefs.h. */
7269#include <X11/Xlib.h>
7270int
7271main ()
7272{
7273XrmInitialize ()
7274 ;
7275 return 0;
7276}
7277_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007278if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007279 LIBS=$ac_save_LIBS
7280# We can link X programs with no special library path.
7281ac_x_libraries=
7282else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007283 LIBS=$ac_save_LIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +01007284for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7285do
7286 # Don't even attempt the hair of trying to link an X program!
7287 for ac_extension in a so sl dylib la dll; do
7288 if test -r "$ac_dir/libX11.$ac_extension"; then
7289 ac_x_libraries=$ac_dir
7290 break 2
7291 fi
7292 done
7293done
7294fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007295rm -f core conftest.err conftest.$ac_objext \
7296 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007297fi # $ac_x_libraries = no
7298
7299case $ac_x_includes,$ac_x_libraries in #(
7300 no,* | *,no | *\'*)
7301 # Didn't find X, or a directory has "'" in its name.
7302 ac_cv_have_x="have_x=no";; #(
7303 *)
7304 # Record where we found X for the cache.
7305 ac_cv_have_x="have_x=yes\
7306 ac_x_includes='$ac_x_includes'\
7307 ac_x_libraries='$ac_x_libraries'"
7308esac
7309fi
7310;; #(
7311 *) have_x=yes;;
7312 esac
7313 eval "$ac_cv_have_x"
7314fi # $with_x != no
7315
7316if test "$have_x" != yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007318$as_echo "$have_x" >&6; }
7319 no_x=yes
7320else
7321 # If each of the values was on the command line, it overrides each guess.
7322 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7323 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7324 # Update the cache value to reflect the command line values.
7325 ac_cv_have_x="have_x=yes\
7326 ac_x_includes='$x_includes'\
7327 ac_x_libraries='$x_libraries'"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007329$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7330fi
7331
7332if test "$no_x" = yes; then
7333 # Not all programs may use this symbol, but it does not hurt to define it.
7334
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007335$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
Alexandre Julliard40664c02009-02-11 20:40:58 +01007336
7337 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7338else
7339 if test -n "$x_includes"; then
7340 X_CFLAGS="$X_CFLAGS -I$x_includes"
7341 fi
7342
7343 # It would also be nice to do this for all -L options, not just this one.
7344 if test -n "$x_libraries"; then
7345 X_LIBS="$X_LIBS -L$x_libraries"
7346 # For Solaris; some versions of Sun CC require a space after -R and
7347 # others require no space. Words are not sufficient . . . .
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007349$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7350 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7351 ac_xsave_c_werror_flag=$ac_c_werror_flag
7352 ac_c_werror_flag=yes
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007354/* end confdefs.h. */
7355
7356int
7357main ()
7358{
7359
7360 ;
7361 return 0;
7362}
7363_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007364if ac_fn_c_try_link "$LINENO"; then :
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007366$as_echo "no" >&6; }
7367 X_LIBS="$X_LIBS -R$x_libraries"
7368else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007369 LIBS="$ac_xsave_LIBS -R $x_libraries"
7370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007371/* end confdefs.h. */
7372
7373int
7374main ()
7375{
7376
7377 ;
7378 return 0;
7379}
7380_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007381if ac_fn_c_try_link "$LINENO"; then :
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007383$as_echo "yes" >&6; }
7384 X_LIBS="$X_LIBS -R $x_libraries"
7385else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007387$as_echo "neither works" >&6; }
7388fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007389rm -f core conftest.err conftest.$ac_objext \
7390 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007391fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007392rm -f core conftest.err conftest.$ac_objext \
7393 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007394 ac_c_werror_flag=$ac_xsave_c_werror_flag
7395 LIBS=$ac_xsave_LIBS
7396 fi
7397
7398 # Check for system-dependent libraries X programs must link with.
7399 # Do this before checking for the system-independent R6 libraries
7400 # (-lICE), since we may need -lsocket or whatever for X linking.
7401
7402 if test "$ISC" = yes; then
7403 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7404 else
7405 # Martyn Johnson says this is needed for Ultrix, if the X
7406 # libraries were built with DECnet support. And Karl Berry says
7407 # the Alpha needs dnet_stub (dnet does not exist).
7408 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007410/* end confdefs.h. */
7411
7412/* Override any GCC internal prototype to avoid an error.
7413 Use char because int might match the return type of a GCC
7414 builtin and then its argument prototype would still apply. */
7415#ifdef __cplusplus
7416extern "C"
7417#endif
7418char XOpenDisplay ();
7419int
7420main ()
7421{
7422return XOpenDisplay ();
7423 ;
7424 return 0;
7425}
7426_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007427if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007428
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007429else
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007431$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007432if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007433 $as_echo_n "(cached) " >&6
7434else
7435 ac_check_lib_save_LIBS=$LIBS
7436LIBS="-ldnet $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007438/* end confdefs.h. */
7439
7440/* Override any GCC internal prototype to avoid an error.
7441 Use char because int might match the return type of a GCC
7442 builtin and then its argument prototype would still apply. */
7443#ifdef __cplusplus
7444extern "C"
7445#endif
7446char dnet_ntoa ();
7447int
7448main ()
7449{
7450return dnet_ntoa ();
7451 ;
7452 return 0;
7453}
7454_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007455if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007456 ac_cv_lib_dnet_dnet_ntoa=yes
7457else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007458 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007459fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007460rm -f core conftest.err conftest.$ac_objext \
7461 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007462LIBS=$ac_check_lib_save_LIBS
7463fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007465$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007466if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007467 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7468fi
7469
7470 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007472$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007473if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007474 $as_echo_n "(cached) " >&6
7475else
7476 ac_check_lib_save_LIBS=$LIBS
7477LIBS="-ldnet_stub $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007478cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007479/* end confdefs.h. */
7480
7481/* Override any GCC internal prototype to avoid an error.
7482 Use char because int might match the return type of a GCC
7483 builtin and then its argument prototype would still apply. */
7484#ifdef __cplusplus
7485extern "C"
7486#endif
7487char dnet_ntoa ();
7488int
7489main ()
7490{
7491return dnet_ntoa ();
7492 ;
7493 return 0;
7494}
7495_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007496if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007497 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7498else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007499 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007500fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007501rm -f core conftest.err conftest.$ac_objext \
7502 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007503LIBS=$ac_check_lib_save_LIBS
7504fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007506$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007507if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007508 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7509fi
7510
7511 fi
7512fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007513rm -f core conftest.err conftest.$ac_objext \
7514 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007515 LIBS="$ac_xsave_LIBS"
7516
7517 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7518 # to get the SysV transport functions.
7519 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7520 # needs -lnsl.
7521 # The nsl library prevents programs from opening the X display
7522 # on Irix 5.2, according to T.E. Dickey.
7523 # The functions gethostbyname, getservbyname, and inet_addr are
7524 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007525 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007526if test "x$ac_cv_func_gethostbyname" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007527
Alexandre Julliard40664c02009-02-11 20:40:58 +01007528fi
7529
Alexandre Julliard40664c02009-02-11 20:40:58 +01007530 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007532$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007533if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007534 $as_echo_n "(cached) " >&6
7535else
7536 ac_check_lib_save_LIBS=$LIBS
7537LIBS="-lnsl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007539/* end confdefs.h. */
7540
7541/* Override any GCC internal prototype to avoid an error.
7542 Use char because int might match the return type of a GCC
7543 builtin and then its argument prototype would still apply. */
7544#ifdef __cplusplus
7545extern "C"
7546#endif
7547char gethostbyname ();
7548int
7549main ()
7550{
7551return gethostbyname ();
7552 ;
7553 return 0;
7554}
7555_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007556if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007557 ac_cv_lib_nsl_gethostbyname=yes
7558else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007559 ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007560fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007561rm -f core conftest.err conftest.$ac_objext \
7562 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007563LIBS=$ac_check_lib_save_LIBS
7564fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007566$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007567if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007568 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7569fi
7570
7571 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007573$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007574if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007575 $as_echo_n "(cached) " >&6
7576else
7577 ac_check_lib_save_LIBS=$LIBS
7578LIBS="-lbsd $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007580/* end confdefs.h. */
7581
7582/* Override any GCC internal prototype to avoid an error.
7583 Use char because int might match the return type of a GCC
7584 builtin and then its argument prototype would still apply. */
7585#ifdef __cplusplus
7586extern "C"
7587#endif
7588char gethostbyname ();
7589int
7590main ()
7591{
7592return gethostbyname ();
7593 ;
7594 return 0;
7595}
7596_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007597if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007598 ac_cv_lib_bsd_gethostbyname=yes
7599else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007600 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007601fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007602rm -f core conftest.err conftest.$ac_objext \
7603 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007604LIBS=$ac_check_lib_save_LIBS
7605fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007607$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007608if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007609 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7610fi
7611
7612 fi
7613 fi
7614
7615 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7616 # socket/setsockopt and other routines are undefined under SCO ODT
7617 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7618 # on later versions), says Simon Leinen: it contains gethostby*
7619 # variants that don't use the name server (or something). -lsocket
7620 # must be given before -lnsl if both are needed. We assume that
7621 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007622 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007623if test "x$ac_cv_func_connect" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007624
Alexandre Julliard40664c02009-02-11 20:40:58 +01007625fi
7626
Alexandre Julliard40664c02009-02-11 20:40:58 +01007627 if test $ac_cv_func_connect = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007629$as_echo_n "checking for connect in -lsocket... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007630if ${ac_cv_lib_socket_connect+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007631 $as_echo_n "(cached) " >&6
7632else
7633 ac_check_lib_save_LIBS=$LIBS
7634LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007636/* end confdefs.h. */
7637
7638/* Override any GCC internal prototype to avoid an error.
7639 Use char because int might match the return type of a GCC
7640 builtin and then its argument prototype would still apply. */
7641#ifdef __cplusplus
7642extern "C"
7643#endif
7644char connect ();
7645int
7646main ()
7647{
7648return connect ();
7649 ;
7650 return 0;
7651}
7652_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007653if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007654 ac_cv_lib_socket_connect=yes
7655else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007656 ac_cv_lib_socket_connect=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007657fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007658rm -f core conftest.err conftest.$ac_objext \
7659 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007660LIBS=$ac_check_lib_save_LIBS
7661fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007663$as_echo "$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007664if test "x$ac_cv_lib_socket_connect" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007665 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7666fi
7667
7668 fi
7669
7670 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007671 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007672if test "x$ac_cv_func_remove" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007673
Alexandre Julliard40664c02009-02-11 20:40:58 +01007674fi
7675
Alexandre Julliard40664c02009-02-11 20:40:58 +01007676 if test $ac_cv_func_remove = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007678$as_echo_n "checking for remove in -lposix... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007679if ${ac_cv_lib_posix_remove+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007680 $as_echo_n "(cached) " >&6
7681else
7682 ac_check_lib_save_LIBS=$LIBS
7683LIBS="-lposix $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007685/* end confdefs.h. */
7686
7687/* Override any GCC internal prototype to avoid an error.
7688 Use char because int might match the return type of a GCC
7689 builtin and then its argument prototype would still apply. */
7690#ifdef __cplusplus
7691extern "C"
7692#endif
7693char remove ();
7694int
7695main ()
7696{
7697return remove ();
7698 ;
7699 return 0;
7700}
7701_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007702if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007703 ac_cv_lib_posix_remove=yes
7704else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007705 ac_cv_lib_posix_remove=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007706fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007707rm -f core conftest.err conftest.$ac_objext \
7708 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007709LIBS=$ac_check_lib_save_LIBS
7710fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007712$as_echo "$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007713if test "x$ac_cv_lib_posix_remove" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007714 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7715fi
7716
7717 fi
7718
7719 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007720 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
Alexandre Julliard9797da42011-04-27 17:37:43 +02007721if test "x$ac_cv_func_shmat" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007722
Alexandre Julliard40664c02009-02-11 20:40:58 +01007723fi
7724
Alexandre Julliard40664c02009-02-11 20:40:58 +01007725 if test $ac_cv_func_shmat = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007727$as_echo_n "checking for shmat in -lipc... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007728if ${ac_cv_lib_ipc_shmat+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007729 $as_echo_n "(cached) " >&6
7730else
7731 ac_check_lib_save_LIBS=$LIBS
7732LIBS="-lipc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007734/* end confdefs.h. */
7735
7736/* Override any GCC internal prototype to avoid an error.
7737 Use char because int might match the return type of a GCC
7738 builtin and then its argument prototype would still apply. */
7739#ifdef __cplusplus
7740extern "C"
7741#endif
7742char shmat ();
7743int
7744main ()
7745{
7746return shmat ();
7747 ;
7748 return 0;
7749}
7750_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007751if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007752 ac_cv_lib_ipc_shmat=yes
7753else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007754 ac_cv_lib_ipc_shmat=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007755fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007756rm -f core conftest.err conftest.$ac_objext \
7757 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007758LIBS=$ac_check_lib_save_LIBS
7759fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007761$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007762if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007763 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7764fi
7765
7766 fi
7767 fi
7768
7769 # Check for libraries that X11R6 Xt/Xaw programs need.
7770 ac_save_LDFLAGS=$LDFLAGS
7771 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7772 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7773 # check for ICE first), but we must link in the order -lSM -lICE or
7774 # we get undefined symbols. So assume we have SM if we have ICE.
7775 # These have to be linked with before -lX11, unlike the other
7776 # libraries we check for below, so use a different variable.
7777 # John Interrante, Karl Berry
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007779$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007780if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007781 $as_echo_n "(cached) " >&6
7782else
7783 ac_check_lib_save_LIBS=$LIBS
7784LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007786/* end confdefs.h. */
7787
7788/* Override any GCC internal prototype to avoid an error.
7789 Use char because int might match the return type of a GCC
7790 builtin and then its argument prototype would still apply. */
7791#ifdef __cplusplus
7792extern "C"
7793#endif
7794char IceConnectionNumber ();
7795int
7796main ()
7797{
7798return IceConnectionNumber ();
7799 ;
7800 return 0;
7801}
7802_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007803if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007804 ac_cv_lib_ICE_IceConnectionNumber=yes
7805else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007806 ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007807fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007808rm -f core conftest.err conftest.$ac_objext \
7809 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007810LIBS=$ac_check_lib_save_LIBS
7811fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007813$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007814if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007815 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7816fi
7817
7818 LDFLAGS=$ac_save_LDFLAGS
7819
7820fi
7821
7822
Rein Klazes7ff12562004-11-09 20:16:35 +00007823if test "$have_x" = "yes"
7824then
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007825 XLIB="-lX11"
Rein Klazes7ff12562004-11-09 20:16:35 +00007826 ac_save_CPPFLAGS="$CPPFLAGS"
7827 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7828
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007830$as_echo_n "checking for -lX11... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007831if ${ac_cv_lib_soname_X11+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007832 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007833else
7834 ac_check_soname_save_LIBS=$LIBS
7835LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007837/* end confdefs.h. */
7838
7839/* Override any GCC internal prototype to avoid an error.
7840 Use char because int might match the return type of a GCC
7841 builtin and then its argument prototype would still apply. */
7842#ifdef __cplusplus
7843extern "C"
7844#endif
7845char XCreateWindow ();
7846int
7847main ()
7848{
7849return XCreateWindow ();
7850 ;
7851 return 0;
7852}
7853_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007854if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007855 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007856 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 +02007857 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'` ;;
7858 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7859 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007860fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007861rm -f core conftest.err conftest.$ac_objext \
7862 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007863 LIBS=$ac_check_soname_save_LIBS
7864fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007865if test "x$ac_cv_lib_soname_X11" = "x"; then :
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007867$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007868
7869else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007871$as_echo "$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007872
7873cat >>confdefs.h <<_ACEOF
7874#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7875_ACEOF
7876
7877
7878fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007880$as_echo_n "checking for -lXext... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007881if ${ac_cv_lib_soname_Xext+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007882 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007883else
7884 ac_check_soname_save_LIBS=$LIBS
7885LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007887/* end confdefs.h. */
7888
7889/* Override any GCC internal prototype to avoid an error.
7890 Use char because int might match the return type of a GCC
7891 builtin and then its argument prototype would still apply. */
7892#ifdef __cplusplus
7893extern "C"
7894#endif
7895char XextCreateExtension ();
7896int
7897main ()
7898{
7899return XextCreateExtension ();
7900 ;
7901 return 0;
7902}
7903_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007904if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007905 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007906 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 +02007907 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'` ;;
7908 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7909 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007910fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007911rm -f core conftest.err conftest.$ac_objext \
7912 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007913 LIBS=$ac_check_soname_save_LIBS
7914fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007915if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007917$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007918
7919else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007921$as_echo "$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007922
7923cat >>confdefs.h <<_ACEOF
7924#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7925_ACEOF
7926
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007927 XLIB="-lXext $XLIB"
Alexandre Julliarda8518542007-07-09 22:43:45 +02007928fi
7929
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007930 for ac_header in X11/Xlib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007931 X11/XKBlib.h \
7932 X11/Xutil.h \
Andrew Riedi23e2cb12007-03-22 12:06:19 -07007933 X11/Xcursor/Xcursor.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007934 X11/extensions/shape.h \
7935 X11/extensions/XInput.h \
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02007936 X11/extensions/XInput2.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007937 X11/extensions/XShm.h \
Chris Robinson42584652007-09-22 18:19:08 -07007938 X11/extensions/Xcomposite.h \
Alexandre Julliard7d00b052006-10-23 13:46:34 +02007939 X11/extensions/Xinerama.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007940 X11/extensions/Xrandr.h \
7941 X11/extensions/Xrender.h \
André Hentschel7b285a42009-09-19 19:08:09 +02007942 X11/extensions/xf86vmode.h \
7943 X11/extensions/xf86vmproto.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007944do :
7945 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7946ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
Alexandre Julliard73482142005-08-03 19:21:04 +00007947# include <X11/Xlib.h>
7948#endif
7949#ifdef HAVE_X11_XUTIL_H
7950# include <X11/Xutil.h>
7951#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007952"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007953if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007954 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01007955#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007956_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00007957
7958fi
7959
7960done
7961
7962
7963 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7964 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007966$as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02007967if ${ac_cv_lib_X11_XkbQueryExtension+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007968 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007969else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007970 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007971LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007972cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007973/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007974
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007975/* Override any GCC internal prototype to avoid an error.
7976 Use char because int might match the return type of a GCC
7977 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007978#ifdef __cplusplus
7979extern "C"
7980#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007981char XkbQueryExtension ();
7982int
7983main ()
7984{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007985return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007986 ;
7987 return 0;
7988}
7989_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007990if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007991 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00007992else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007993 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00007994fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007995rm -f core conftest.err conftest.$ac_objext \
7996 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007997LIBS=$ac_check_lib_save_LIBS
7998fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007999{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008000$as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008001if test "x$ac_cv_lib_X11_XkbQueryExtension" = xyes; then :
Patrik Stridvall24110281999-02-04 10:09:54 +00008002
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008003$as_echo "#define HAVE_XKB 1" >>confdefs.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008004
Patrik Stridvall24110281999-02-04 10:09:54 +00008005fi
8006
Alexandre Julliard255b4862003-10-15 04:09:55 +00008007 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008008
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008009 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8010 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008012$as_echo_n "checking for -lXcursor... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008013if ${ac_cv_lib_soname_Xcursor+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008014 $as_echo_n "(cached) " >&6
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008015else
8016 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008017LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008019/* end confdefs.h. */
8020
8021/* Override any GCC internal prototype to avoid an error.
8022 Use char because int might match the return type of a GCC
8023 builtin and then its argument prototype would still apply. */
8024#ifdef __cplusplus
8025extern "C"
8026#endif
8027char XcursorImageLoadCursor ();
8028int
8029main ()
8030{
8031return XcursorImageLoadCursor ();
8032 ;
8033 return 0;
8034}
8035_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008036if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008037 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008038 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 +02008039 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'` ;;
8040 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8041 esac
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008042fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008043rm -f core conftest.err conftest.$ac_objext \
8044 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008045 LIBS=$ac_check_soname_save_LIBS
8046fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008047if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008049$as_echo "not found" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008050
8051else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008053$as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008054
8055cat >>confdefs.h <<_ACEOF
8056#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8057_ACEOF
8058
8059
8060fi
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008061 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008062 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008063 case "x$with_xcursor" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008064 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 +01008065 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008066 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008067This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008068esac
8069fi
8070
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008071 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8072 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008074$as_echo_n "checking for -lXi... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008075if ${ac_cv_lib_soname_Xi+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008076 $as_echo_n "(cached) " >&6
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008077else
8078 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008079LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008081/* end confdefs.h. */
8082
8083/* Override any GCC internal prototype to avoid an error.
8084 Use char because int might match the return type of a GCC
8085 builtin and then its argument prototype would still apply. */
8086#ifdef __cplusplus
8087extern "C"
8088#endif
8089char XOpenDevice ();
8090int
8091main ()
8092{
8093return XOpenDevice ();
8094 ;
8095 return 0;
8096}
8097_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008098if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008099 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008100 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 +02008101 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'` ;;
8102 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8103 esac
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008104fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008105rm -f core conftest.err conftest.$ac_objext \
8106 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008107 LIBS=$ac_check_soname_save_LIBS
8108fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008109if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008111$as_echo "not found" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008112
8113else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008115$as_echo "$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008116
8117cat >>confdefs.h <<_ACEOF
8118#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8119_ACEOF
8120
8121
8122fi
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008123 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008124 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008125 case "x$with_xinput" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008126 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 +01008127 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008128 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008129This is an error since --with-xinput was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008130esac
8131fi
8132
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02008133 if test "x$ac_cv_lib_soname_Xi" != x
8134 then
8135 if test "$ac_cv_header_X11_extensions_XInput2_h" != "yes"; then :
8136 case "x$with_xinput2" in
8137 x) as_fn_append wine_notices "|XInput2 headers not found, the XInput 2 extension won't be supported." ;;
8138 xno) ;;
8139 *) as_fn_error $? "XInput2 headers not found, the XInput 2 extension won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008140This is an error since --with-xinput2 was requested." "$LINENO" 5 ;;
Alexandre Julliard77e05ce2011-04-13 18:51:50 +02008141esac
8142fi
8143 fi
8144
Alexandre Julliard255b4862003-10-15 04:09:55 +00008145 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8146 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008148$as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008149if ${ac_cv_lib_Xext_XShmQueryExtension+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008150 $as_echo_n "(cached) " >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00008151else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008152 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008153LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008155/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008156
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008157/* Override any GCC internal prototype to avoid an error.
8158 Use char because int might match the return type of a GCC
8159 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008160#ifdef __cplusplus
8161extern "C"
8162#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008163char XShmQueryExtension ();
8164int
8165main ()
8166{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008167return XShmQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008168 ;
8169 return 0;
8170}
8171_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008172if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008173 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00008174else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008175 ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00008176fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008177rm -f core conftest.err conftest.$ac_objext \
8178 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008179LIBS=$ac_check_lib_save_LIBS
8180fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008182$as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008183if test "x$ac_cv_lib_Xext_XShmQueryExtension" = xyes; then :
Francois Jacques5b6879c2000-07-28 23:04:54 +00008184
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008185$as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00008186
Francois Jacques5b6879c2000-07-28 23:04:54 +00008187fi
8188
Alexandre Julliard255b4862003-10-15 04:09:55 +00008189 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008190 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008191 case "x$with_xshm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008192 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 +01008193 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008194 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008195This is an error since --with-xshm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008196esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008197fi
8198
Alexandre Julliard255b4862003-10-15 04:09:55 +00008199 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8200 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008202$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008203if ${ac_cv_lib_Xext_XShapeQueryExtension+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008204 $as_echo_n "(cached) " >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00008205else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008206 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008207LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008208cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008209/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008210
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008211/* Override any GCC internal prototype to avoid an error.
8212 Use char because int might match the return type of a GCC
8213 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008214#ifdef __cplusplus
8215extern "C"
8216#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008217char XShapeQueryExtension ();
8218int
8219main ()
8220{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008221return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008222 ;
8223 return 0;
8224}
8225_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008226if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008227 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00008228else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008229 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00008230fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008231rm -f core conftest.err conftest.$ac_objext \
8232 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008233LIBS=$ac_check_lib_save_LIBS
8234fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008236$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008237if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = xyes; then :
Ove Kaavenc90fb252001-01-02 22:39:14 +00008238
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008239$as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00008240
Ove Kaavenc90fb252001-01-02 22:39:14 +00008241fi
8242
Alexandre Julliard255b4862003-10-15 04:09:55 +00008243 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008244 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008245 case "x$with_xshape" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008246 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 +01008247 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008248 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008249This is an error since --with-xshape was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008250esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008251fi
8252
André Hentschel7b285a42009-09-19 19:08:09 +02008253 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 +00008254 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008256$as_echo_n "checking for -lXxf86vm... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008257if ${ac_cv_lib_soname_Xxf86vm+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008258 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008259else
Francois Gougeta49beb42008-06-26 14:02:17 +02008260 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008261LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008263/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008264
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008265/* Override any GCC internal prototype to avoid an error.
8266 Use char because int might match the return type of a GCC
8267 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008268#ifdef __cplusplus
8269extern "C"
8270#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008271char XF86VidModeQueryExtension ();
8272int
8273main ()
8274{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008275return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008276 ;
8277 return 0;
8278}
8279_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008280if ac_fn_c_try_link "$LINENO"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008281 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008282 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 +02008283 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'` ;;
8284 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8285 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008286fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008287rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
Francois Gougeta49beb42008-06-26 14:02:17 +02008289 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008290fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008291if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008293$as_echo "not found" >&6; }
Patrik Stridvall24110281999-02-04 10:09:54 +00008294
Francois Gougeta49beb42008-06-26 14:02:17 +02008295else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008297$as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
Francois Gougeta49beb42008-06-26 14:02:17 +02008298
8299cat >>confdefs.h <<_ACEOF
8300#define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008301_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008302
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008303
Patrik Stridvall24110281999-02-04 10:09:54 +00008304fi
Alexandre Julliard255b4862003-10-15 04:09:55 +00008305 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008306 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008307 case "x$with_xxf86vm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008308 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 +01008309 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008310 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008311This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008312esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008313fi
8314
Alexandre Julliarda8518542007-07-09 22:43:45 +02008315 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 +02008316 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008318$as_echo_n "checking for -lXrender... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008319if ${ac_cv_lib_soname_Xrender+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008320 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008321else
8322 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008323LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008325/* end confdefs.h. */
8326
8327/* Override any GCC internal prototype to avoid an error.
8328 Use char because int might match the return type of a GCC
8329 builtin and then its argument prototype would still apply. */
8330#ifdef __cplusplus
8331extern "C"
8332#endif
8333char XRenderQueryExtension ();
8334int
8335main ()
8336{
8337return XRenderQueryExtension ();
8338 ;
8339 return 0;
8340}
8341_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008342if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008343 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008344 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 +02008345 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'` ;;
8346 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8347 esac
Alexandre Julliard629639e2007-07-04 12:47:57 +02008348fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008349rm -f core conftest.err conftest.$ac_objext \
8350 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008351 LIBS=$ac_check_soname_save_LIBS
8352fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008353if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008355$as_echo "not found" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008356
8357else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008359$as_echo "$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008360
8361cat >>confdefs.h <<_ACEOF
8362#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8363_ACEOF
8364
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008366$as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008367if ${ac_cv_lib_Xrender_XRenderSetPictureTransform+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008368 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008369else
8370 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008371LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008373/* end confdefs.h. */
8374
8375/* Override any GCC internal prototype to avoid an error.
8376 Use char because int might match the return type of a GCC
8377 builtin and then its argument prototype would still apply. */
8378#ifdef __cplusplus
8379extern "C"
8380#endif
8381char XRenderSetPictureTransform ();
8382int
8383main ()
8384{
8385return XRenderSetPictureTransform ();
8386 ;
8387 return 0;
8388}
8389_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008390if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008391 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8392else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008393 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Alexandre Julliard629639e2007-07-04 12:47:57 +02008394fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008395rm -f core conftest.err conftest.$ac_objext \
8396 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008397LIBS=$ac_check_lib_save_LIBS
8398fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008400$as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008401if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = xyes; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008402
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008403$as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
Alexandre Julliard629639e2007-07-04 12:47:57 +02008404
8405fi
8406
8407fi
8408
Alexandre Julliard629639e2007-07-04 12:47:57 +02008409 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008410 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008411 case "x$with_xrender" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008412 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 +01008413 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008414 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008415This is an error since --with-xrender was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008416esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008417fi
8418
Alexandre Julliard629639e2007-07-04 12:47:57 +02008419 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 +00008420 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008422/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008423#include <X11/Xlib.h>
8424#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008425int
8426main ()
8427{
Mike McCormackc7c9f932004-04-07 03:57:35 +00008428static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008429 ;
8430 return 0;
8431}
8432_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008433if ac_fn_c_try_compile "$LINENO"; then :
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008435$as_echo_n "checking for -lXrandr... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008436if ${ac_cv_lib_soname_Xrandr+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008437 $as_echo_n "(cached) " >&6
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008438else
8439 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008440LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008442/* end confdefs.h. */
8443
8444/* Override any GCC internal prototype to avoid an error.
8445 Use char because int might match the return type of a GCC
8446 builtin and then its argument prototype would still apply. */
8447#ifdef __cplusplus
8448extern "C"
8449#endif
8450char XRRQueryExtension ();
8451int
8452main ()
8453{
8454return XRRQueryExtension ();
8455 ;
8456 return 0;
8457}
8458_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008459if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008460 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008461 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 +02008462 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'` ;;
8463 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8464 esac
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008465fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008466rm -f core conftest.err conftest.$ac_objext \
8467 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008468 LIBS=$ac_check_soname_save_LIBS
8469fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008470if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008472$as_echo "not found" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008473
8474else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008476$as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008477
8478cat >>confdefs.h <<_ACEOF
8479#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8480_ACEOF
8481
8482
8483fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008484fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00008486 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008487 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008488 case "x$with_xrandr" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008489 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 +01008490 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008491 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008492This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008493esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008494fi
8495
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008496 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8497 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008499/* end confdefs.h. */
8500#include <X11/Xlib.h>
8501#include <X11/extensions/Xinerama.h>
8502int
8503main ()
8504{
8505static typeof(XineramaQueryScreens) * func;
8506 ;
8507 return 0;
8508}
8509_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008510if ac_fn_c_try_compile "$LINENO"; then :
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008512$as_echo_n "checking for -lXinerama... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008513if ${ac_cv_lib_soname_Xinerama+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008514 $as_echo_n "(cached) " >&6
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008515else
8516 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008517LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008519/* end confdefs.h. */
8520
8521/* Override any GCC internal prototype to avoid an error.
8522 Use char because int might match the return type of a GCC
8523 builtin and then its argument prototype would still apply. */
8524#ifdef __cplusplus
8525extern "C"
8526#endif
8527char XineramaQueryScreens ();
8528int
8529main ()
8530{
8531return XineramaQueryScreens ();
8532 ;
8533 return 0;
8534}
8535_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008536if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008537 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008538 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 +02008539 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'` ;;
8540 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8541 esac
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008542fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008543rm -f core conftest.err conftest.$ac_objext \
8544 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008545 LIBS=$ac_check_soname_save_LIBS
8546fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008547if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008549$as_echo "not found" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008550
8551else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008553$as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008554
8555cat >>confdefs.h <<_ACEOF
8556#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8557_ACEOF
8558
8559
8560fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008561fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8563 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008564 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008565 case "x$with_xinerama" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008566 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 +01008567 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008568 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008569This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008570esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008571fi
8572
Chris Robinson42584652007-09-22 18:19:08 -07008573 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8574 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008576$as_echo_n "checking for -lXcomposite... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008577if ${ac_cv_lib_soname_Xcomposite+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008578 $as_echo_n "(cached) " >&6
Chris Robinson42584652007-09-22 18:19:08 -07008579else
8580 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008581LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008583/* end confdefs.h. */
8584
8585/* Override any GCC internal prototype to avoid an error.
8586 Use char because int might match the return type of a GCC
8587 builtin and then its argument prototype would still apply. */
8588#ifdef __cplusplus
8589extern "C"
8590#endif
8591char XCompositeRedirectWindow ();
8592int
8593main ()
8594{
8595return XCompositeRedirectWindow ();
8596 ;
8597 return 0;
8598}
8599_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008600if ac_fn_c_try_link "$LINENO"; then :
Chris Robinson42584652007-09-22 18:19:08 -07008601 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008602 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 -07008603 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'` ;;
8604 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8605 esac
Chris Robinson42584652007-09-22 18:19:08 -07008606fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008607rm -f core conftest.err conftest.$ac_objext \
8608 conftest$ac_exeext conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008609 LIBS=$ac_check_soname_save_LIBS
8610fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008611if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008613$as_echo "not found" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008614
8615else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008617$as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008618
8619cat >>confdefs.h <<_ACEOF
8620#define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8621_ACEOF
8622
8623
8624fi
Chris Robinson42584652007-09-22 18:19:08 -07008625 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008626 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008627 case "x$with_xcomposite" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008628 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 +01008629 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008630 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008631This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008632esac
Chris Robinson42584652007-09-22 18:19:08 -07008633fi
8634
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008635 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 +09008636#include <X11/Xlib.h>
8637#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008638"
Alexandre Julliard9797da42011-04-27 17:37:43 +02008639if test "x$ac_cv_member_XICCallback_callback" = xyes; then :
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008640
8641cat >>confdefs.h <<_ACEOF
8642#define HAVE_XICCALLBACK_CALLBACK 1
8643_ACEOF
8644
8645
8646fi
Alexandre Julliarda8575a82011-04-12 21:16:15 +02008647ac_fn_c_check_member "$LINENO" "XEvent" "xcookie" "ac_cv_member_XEvent_xcookie" "#ifdef HAVE_X11_XLIB_H
8648#include <X11/Xlib.h>
8649#endif
8650"
Alexandre Julliard9797da42011-04-27 17:37:43 +02008651if test "x$ac_cv_member_XEvent_xcookie" = xyes; then :
Alexandre Julliarda8575a82011-04-12 21:16:15 +02008652
8653cat >>confdefs.h <<_ACEOF
8654#define HAVE_XEVENT_XCOOKIE 1
8655_ACEOF
8656
8657
8658fi
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008659
8660
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008661
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008662 opengl_msg=""
8663 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008664 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008665 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8666do :
8667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8668ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
Alexandre Julliard73482142005-08-03 19:21:04 +00008669# include <GL/glx.h>
8670#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008671"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008672if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008673 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01008674#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008675_ACEOF
8676
8677fi
8678
8679done
8680
Alexandre Julliard73482142005-08-03 19:21:04 +00008681 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8682 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008684$as_echo_n "checking for up-to-date OpenGL version... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008685if ${wine_cv_opengl_header_version_OK+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008686 $as_echo_n "(cached) " >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008687else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008689/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008690#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008691int
8692main ()
8693{
Lionel Ulmer5c085701999-02-28 19:48:53 +00008694GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008695 ;
8696 return 0;
8697}
8698_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008699if ac_fn_c_try_compile "$LINENO"; then :
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008700 wine_cv_opengl_header_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008701else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008702 wine_cv_opengl_header_version_OK="no"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008703fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008705fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008707$as_echo "$wine_cv_opengl_header_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008708
Alexandre Julliardcc6a08c2006-08-24 14:34:22 +02008709 if test "$wine_cv_opengl_header_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008710 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008712$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008713if ${ac_cv_lib_soname_GL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008714 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008715else
Alexandre Julliard31353e12007-07-04 12:44:12 +02008716 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008717LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008719/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008720
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008721/* Override any GCC internal prototype to avoid an error.
8722 Use char because int might match the return type of a GCC
8723 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008724#ifdef __cplusplus
8725extern "C"
8726#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008727char glXCreateContext ();
8728int
8729main ()
8730{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008731return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008732 ;
8733 return 0;
8734}
8735_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008736if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard31353e12007-07-04 12:44:12 +02008737 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008738 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 +02008739 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'` ;;
8740 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8741 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008742fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008743rm -f core conftest.err conftest.$ac_objext \
8744 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard31353e12007-07-04 12:44:12 +02008745 LIBS=$ac_check_soname_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008746fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008747if test "x$ac_cv_lib_soname_GL" = "x"; then :
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008749$as_echo "not found" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008751$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008752if ${ac_cv_lib_soname_GL+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008753 $as_echo_n "(cached) " >&6
Francois Gougetd701ee22007-12-18 10:17:20 +01008754else
8755 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008756LIBS="-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 +02008757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008758/* end confdefs.h. */
8759
8760/* Override any GCC internal prototype to avoid an error.
8761 Use char because int might match the return type of a GCC
8762 builtin and then its argument prototype would still apply. */
8763#ifdef __cplusplus
8764extern "C"
8765#endif
8766char glXCreateContext ();
8767int
8768main ()
8769{
8770return glXCreateContext ();
8771 ;
8772 return 0;
8773}
8774_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008775if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetd701ee22007-12-18 10:17:20 +01008776 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008777 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 +01008778 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'` ;;
8779 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8780 esac
Francois Gougetd701ee22007-12-18 10:17:20 +01008781fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008782rm -f core conftest.err conftest.$ac_objext \
8783 conftest$ac_exeext conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008784 LIBS=$ac_check_soname_save_LIBS
8785fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008786if test "x$ac_cv_lib_soname_GL" = "x"; then :
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008788$as_echo "not found" >&6; }
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008789 if test -f /usr/X11R6/lib/libGL.a
Francois Gougetd701ee22007-12-18 10:17:20 +01008790 then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008791 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008792This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
Francois Gougetd701ee22007-12-18 10:17:20 +01008793 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008794 opengl_msg="No OpenGL library found on this system."
Francois Gougetd701ee22007-12-18 10:17:20 +01008795 fi
8796else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008798$as_echo "$ac_cv_lib_soname_GL" >&6; }
Francois Gougetd701ee22007-12-18 10:17:20 +01008799
8800cat >>confdefs.h <<_ACEOF
8801#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8802_ACEOF
8803
8804 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 +01008805
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008806$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Francois Gougetd701ee22007-12-18 10:17:20 +01008807
8808fi
Alexandre Julliard31353e12007-07-04 12:44:12 +02008809else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008811$as_echo "$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard31353e12007-07-04 12:44:12 +02008812
8813cat >>confdefs.h <<_ACEOF
8814#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8815_ACEOF
8816
8817 OPENGL_LIBS="-lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008818
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008819$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008820
Alexandre Julliardc84c4782006-09-22 09:36:12 +02008821fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008822 if test "$ac_cv_header_GL_glu_h" = "yes"
8823 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008825$as_echo_n "checking for -lGLU... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008826if ${ac_cv_lib_soname_GLU+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008827 $as_echo_n "(cached) " >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008828else
Alexandre Julliardad798732008-05-01 13:29:02 +02008829 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008830LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008832/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008833
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008834/* Override any GCC internal prototype to avoid an error.
8835 Use char because int might match the return type of a GCC
8836 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008837#ifdef __cplusplus
8838extern "C"
8839#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008840char gluLookAt ();
8841int
8842main ()
8843{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008844return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008845 ;
8846 return 0;
8847}
8848_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008849if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008850 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008851 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 +02008852 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'` ;;
8853 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8854 esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008855fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008856rm -f core conftest.err conftest.$ac_objext \
8857 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardad798732008-05-01 13:29:02 +02008858 LIBS=$ac_check_soname_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008859fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008860if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008862$as_echo "not found" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008863
Alexandre Julliardad798732008-05-01 13:29:02 +02008864else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008866$as_echo "$ac_cv_lib_soname_GLU" >&6; }
Alexandre Julliardad798732008-05-01 13:29:02 +02008867
8868cat >>confdefs.h <<_ACEOF
8869#define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8870_ACEOF
8871
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02008872
Alexandre Julliardad798732008-05-01 13:29:02 +02008873fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008874 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008875 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008876 case "x$with_glu" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008877 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 +02008878 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008879 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008880This is an error since --with-glu was requested." "$LINENO" 5 ;;
Alexandre Julliardad798732008-05-01 13:29:02 +02008881esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008882fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008883 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008884 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008885 fi
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008886 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008887 opengl_msg="OpenGL development headers not found."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008888 fi
Alexandre Julliard8e9504d2008-09-24 13:11:11 +02008889 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8890 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8891 else
8892 enable_opengl32=${enable_opengl32:-no}
8893 enable_glu32=${enable_glu32:-no}
Patrik Stridvall24110281999-02-04 10:09:54 +00008894 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008895 if test -n "$opengl_msg"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008896 case "x$with_opengl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008897 x) as_fn_append wine_warnings "|$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008898OpenGL and Direct3D won't be supported." ;;
8899 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008900 *) as_fn_error $? "$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008901OpenGL and Direct3D won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008902This is an error since --with-opengl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008903esac
8904fi
8905
Ove Kaaven1eb593c1999-02-14 09:34:46 +00008906 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00008907else
8908 XLIB=""
8909 X_CFLAGS=""
8910 X_LIBS=""
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02008911 enable_winex11_drv=${enable_winex11_drv:-no}
8912 enable_opengl32=${enable_opengl32:-no}
8913 enable_glu32=${enable_glu32:-no}
Patrik Stridvallea584721998-11-01 16:22:07 +00008914fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008915if test "x$XLIB" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008916 case "x$with_x" in
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008917 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008918 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
Gerald Pfeifer5805d8b2010-09-19 21:10:13 +02008919without X support, which probably isn't what you want. You will need
8920to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008921Use the --without-x option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008922esac
8923fi
8924
Adam Martinson2eb2f712010-12-28 12:46:09 -06008925if test "$ac_cv_header_CL_cl_h" = "yes"
Peter Urbanec65c84d72010-12-02 23:41:48 +11008926then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
8928$as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008929if ${ac_cv_lib_OpenCL_clGetPlatformInfo+:} false; then :
Peter Urbanec65c84d72010-12-02 23:41:48 +11008930 $as_echo_n "(cached) " >&6
8931else
8932 ac_check_lib_save_LIBS=$LIBS
8933LIBS="-lOpenCL $LIBS"
8934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8935/* end confdefs.h. */
8936
8937/* Override any GCC internal prototype to avoid an error.
8938 Use char because int might match the return type of a GCC
8939 builtin and then its argument prototype would still apply. */
8940#ifdef __cplusplus
8941extern "C"
8942#endif
8943char clGetPlatformInfo ();
8944int
8945main ()
8946{
8947return clGetPlatformInfo ();
8948 ;
8949 return 0;
8950}
8951_ACEOF
8952if ac_fn_c_try_link "$LINENO"; then :
8953 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
8954else
8955 ac_cv_lib_OpenCL_clGetPlatformInfo=no
8956fi
8957rm -f core conftest.err conftest.$ac_objext \
8958 conftest$ac_exeext conftest.$ac_ext
8959LIBS=$ac_check_lib_save_LIBS
8960fi
8961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
8962$as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02008963if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = xyes; then :
Peter Urbanec65c84d72010-12-02 23:41:48 +11008964 LIBOPENCL="-lOpenCL"
8965
8966fi
8967
8968fi
8969if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
8970 case "x$with_opencl" in
8971 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
8972 xno) ;;
8973 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02008974This is an error since --with-opencl was requested." "$LINENO" 5 ;;
Peter Urbanec65c84d72010-12-02 23:41:48 +11008975esac
8976fi
8977test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
8978
Alexandre Julliard902da691995-11-05 14:39:02 +00008979
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00008980XML2LIBS=""
8981
8982XML2INCL=""
8983
Mike McCormackf3719a82005-09-03 09:39:38 +00008984XSLTINCL=""
8985
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008986if test "x$with_xml" != "xno"
Mike McCormack90c75bd2005-08-08 18:36:53 +00008987then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008988 ac_save_CPPFLAGS="$CPPFLAGS"
8989 if test "$PKG_CONFIG" != "false"
8990 then
8991 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
8992 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
8993 else
8994 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
8995 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
8996 fi
8997 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06008998 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008999do :
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009000 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9001ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9002if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009003 cat >>confdefs.h <<_ACEOF
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009004#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009005_ACEOF
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009006
9007fi
9008
9009done
9010
9011 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"
9012 then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009014$as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009015if ${ac_cv_lib_xml2_xmlParseMemory+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009016 $as_echo_n "(cached) " >&6
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009017else
9018 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +00009019LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009020cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009021/* end confdefs.h. */
9022
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009023/* Override any GCC internal prototype to avoid an error.
9024 Use char because int might match the return type of a GCC
9025 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009026#ifdef __cplusplus
9027extern "C"
9028#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +00009029char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009030int
9031main ()
9032{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009033return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009034 ;
9035 return 0;
9036}
9037_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009038if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack90c75bd2005-08-08 18:36:53 +00009039 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009040else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009041 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009042fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009043rm -f core conftest.err conftest.$ac_objext \
9044 conftest$ac_exeext conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009045LIBS=$ac_check_lib_save_LIBS
9046fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009048$as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009049if test "x$ac_cv_lib_xml2_xmlParseMemory" = xyes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009050
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009051$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009052
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009053 XML2LIBS="$ac_xml_libs"
9054 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009055fi
9056
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009058$as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009059if ${ac_cv_lib_xml2_xmlReadMemory+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009060 $as_echo_n "(cached) " >&6
Mike McCormack70adb8f2005-08-12 10:35:17 +00009061else
9062 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009063LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009064cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009065/* end confdefs.h. */
9066
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009067/* Override any GCC internal prototype to avoid an error.
9068 Use char because int might match the return type of a GCC
9069 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +00009070#ifdef __cplusplus
9071extern "C"
9072#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +00009073char xmlReadMemory ();
9074int
9075main ()
9076{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009077return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +00009078 ;
9079 return 0;
9080}
9081_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009082if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009083 ac_cv_lib_xml2_xmlReadMemory=yes
9084else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009085 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +00009086fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009087rm -f core conftest.err conftest.$ac_objext \
9088 conftest$ac_exeext conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009089LIBS=$ac_check_lib_save_LIBS
9090fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009092$as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009093if test "x$ac_cv_lib_xml2_xmlReadMemory" = xyes; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009094
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009095$as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
Mike McCormack70adb8f2005-08-12 10:35:17 +00009096
9097fi
9098
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009100$as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009101if ${ac_cv_lib_xml2_xmlNewDocPI+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009102 $as_echo_n "(cached) " >&6
Lei Zhang6a530ab2006-11-29 15:59:03 -08009103else
9104 ac_check_lib_save_LIBS=$LIBS
9105LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009106cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009107/* end confdefs.h. */
9108
9109/* Override any GCC internal prototype to avoid an error.
9110 Use char because int might match the return type of a GCC
9111 builtin and then its argument prototype would still apply. */
9112#ifdef __cplusplus
9113extern "C"
9114#endif
9115char xmlNewDocPI ();
9116int
9117main ()
9118{
9119return xmlNewDocPI ();
9120 ;
9121 return 0;
9122}
9123_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009124if ac_fn_c_try_link "$LINENO"; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009125 ac_cv_lib_xml2_xmlNewDocPI=yes
9126else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009127 ac_cv_lib_xml2_xmlNewDocPI=no
Lei Zhang6a530ab2006-11-29 15:59:03 -08009128fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009129rm -f core conftest.err conftest.$ac_objext \
9130 conftest$ac_exeext conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009131LIBS=$ac_check_lib_save_LIBS
9132fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009134$as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009135if test "x$ac_cv_lib_xml2_xmlNewDocPI" = xyes; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009136
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009137$as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
Lei Zhang6a530ab2006-11-29 15:59:03 -08009138
9139fi
9140
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
Adam Martinson6ee22312010-11-22 20:54:54 -06009142$as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009143if ${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+:} false; then :
Adam Martinson6ee22312010-11-22 20:54:54 -06009144 $as_echo_n "(cached) " >&6
9145else
9146 ac_check_lib_save_LIBS=$LIBS
9147LIBS="-lxml2 $ac_xml_libs $LIBS"
9148cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9149/* end confdefs.h. */
9150
9151/* Override any GCC internal prototype to avoid an error.
9152 Use char because int might match the return type of a GCC
9153 builtin and then its argument prototype would still apply. */
9154#ifdef __cplusplus
9155extern "C"
9156#endif
9157char xmlSchemaSetParserStructuredErrors ();
9158int
9159main ()
9160{
9161return xmlSchemaSetParserStructuredErrors ();
9162 ;
9163 return 0;
9164}
9165_ACEOF
9166if ac_fn_c_try_link "$LINENO"; then :
9167 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9168else
9169 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9170fi
9171rm -f core conftest.err conftest.$ac_objext \
9172 conftest$ac_exeext conftest.$ac_ext
9173LIBS=$ac_check_lib_save_LIBS
9174fi
9175{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9176$as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009177if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = xyes; then :
Adam Martinson6ee22312010-11-22 20:54:54 -06009178
9179$as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9180
9181fi
9182
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009184$as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009185if ${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+:} false; then :
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009186 $as_echo_n "(cached) " >&6
9187else
9188 ac_check_lib_save_LIBS=$LIBS
9189LIBS="-lxml2 $ac_xml_libs $LIBS"
9190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191/* end confdefs.h. */
9192
9193/* Override any GCC internal prototype to avoid an error.
9194 Use char because int might match the return type of a GCC
9195 builtin and then its argument prototype would still apply. */
9196#ifdef __cplusplus
9197extern "C"
9198#endif
9199char xmlSchemaSetValidStructuredErrors ();
9200int
9201main ()
9202{
9203return xmlSchemaSetValidStructuredErrors ();
9204 ;
9205 return 0;
9206}
9207_ACEOF
9208if ac_fn_c_try_link "$LINENO"; then :
9209 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9210else
9211 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9212fi
9213rm -f core conftest.err conftest.$ac_objext \
9214 conftest$ac_exeext conftest.$ac_ext
9215LIBS=$ac_check_lib_save_LIBS
9216fi
9217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9218$as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009219if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = xyes; then :
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009220
9221$as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9222
9223fi
9224
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
Adam Martinson82f73c82010-11-11 15:16:24 -06009226$as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009227if ${ac_cv_lib_xml2_xmlFirstElementChild+:} false; then :
Adam Martinson82f73c82010-11-11 15:16:24 -06009228 $as_echo_n "(cached) " >&6
9229else
9230 ac_check_lib_save_LIBS=$LIBS
9231LIBS="-lxml2 $ac_xml_libs $LIBS"
9232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9233/* end confdefs.h. */
9234
9235/* Override any GCC internal prototype to avoid an error.
9236 Use char because int might match the return type of a GCC
9237 builtin and then its argument prototype would still apply. */
9238#ifdef __cplusplus
9239extern "C"
9240#endif
9241char xmlFirstElementChild ();
9242int
9243main ()
9244{
9245return xmlFirstElementChild ();
9246 ;
9247 return 0;
9248}
9249_ACEOF
9250if ac_fn_c_try_link "$LINENO"; then :
9251 ac_cv_lib_xml2_xmlFirstElementChild=yes
9252else
9253 ac_cv_lib_xml2_xmlFirstElementChild=no
9254fi
9255rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
9257LIBS=$ac_check_lib_save_LIBS
9258fi
9259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9260$as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009261if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = xyes; then :
Adam Martinson82f73c82010-11-11 15:16:24 -06009262
9263$as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9264
9265fi
9266
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009267 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
Adam Martinson9408b492010-11-02 17:20:08 -05009268"
Alexandre Julliard9797da42011-04-27 17:37:43 +02009269if test "x$ac_cv_type_xmlDocProperties" = xyes; then :
Adam Martinson9408b492010-11-02 17:20:08 -05009270
9271$as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9272
9273fi
9274
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009275 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009276 CPPFLAGS="$ac_save_CPPFLAGS"
9277fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009278if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009279 case "x$with_xml" in
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009280 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 +01009281 xno) ;;
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009282 *) 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 +02009283This is an error since --with-xml was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009284esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009285fi
9286
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009287if test "x$with_xslt" != "xno"
Emmanuel Maillard2a98b402007-06-22 02:58:39 +02009288then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009289 if test "$PKG_CONFIG" != "false"
9290 then
9291 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9292 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9293 else
9294 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9295 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9296 fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009297 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009298 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009299 for ac_header in libxslt/pattern.h libxslt/transform.h
9300do :
9301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9302ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
Vincent Bérond7f64242005-09-15 09:39:09 +00009303# include <libxslt/pattern.h>
9304#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009305"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009306if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mike McCormackf3719a82005-09-03 09:39:38 +00009307 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009308#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackf3719a82005-09-03 09:39:38 +00009309_ACEOF
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009310
9311fi
9312
9313done
9314
9315 CPPFLAGS="$ac_save_CPPFLAGS"
9316 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9317 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009319$as_echo_n "checking for -lxslt... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009320if ${ac_cv_lib_soname_xslt+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009321 $as_echo_n "(cached) " >&6
Mike McCormackf3719a82005-09-03 09:39:38 +00009322else
Francois Gouget3d384f12008-11-17 19:29:32 +01009323 ac_check_soname_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009324LIBS="-lxslt $ac_xslt_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +00009326/* end confdefs.h. */
9327
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009328/* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +00009331#ifdef __cplusplus
9332extern "C"
9333#endif
Mike McCormackf3719a82005-09-03 09:39:38 +00009334char xsltCompilePattern ();
9335int
9336main ()
9337{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009338return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +00009339 ;
9340 return 0;
9341}
9342_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009343if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget3d384f12008-11-17 19:29:32 +01009344 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009345 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 +01009346 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'` ;;
9347 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9348 esac
Mike McCormackf3719a82005-09-03 09:39:38 +00009349fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009350rm -f core conftest.err conftest.$ac_objext \
9351 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3d384f12008-11-17 19:29:32 +01009352 LIBS=$ac_check_soname_save_LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009353fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009354if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009356$as_echo "not found" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +00009357
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009358else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009360$as_echo "$ac_cv_lib_soname_xslt" >&6; }
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009361
Francois Gouget3d384f12008-11-17 19:29:32 +01009362cat >>confdefs.h <<_ACEOF
9363#define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009364_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +00009365
Francois Gouget3d384f12008-11-17 19:29:32 +01009366 XSLTINCL="$ac_xslt_cflags"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009367fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009368 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009369fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009370if test "x$ac_cv_lib_soname_xslt" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009371 case "x$with_xslt" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009372 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 +01009373 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009374 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009375This is an error since --with-xslt was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009376esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009377fi
9378
Alexandre Julliard00068982006-04-18 16:47:53 +02009379HALINCL=""
9380
Francois Gouget295a0cd2009-01-09 20:22:22 +01009381if test "x$with_hal" != "xno"
Alexandre Julliard00068982006-04-18 16:47:53 +02009382then
9383 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009384 if test "$PKG_CONFIG" != "false"
9385 then
9386 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9387 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9388 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9389 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009390 for ac_header in dbus/dbus.h hal/libhal.h
9391do :
9392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9393ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009394if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliard00068982006-04-18 16:47:53 +02009395 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009396#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliard00068982006-04-18 16:47:53 +02009397_ACEOF
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009398
9399fi
9400
9401done
9402
9403 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9404 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009406$as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009407if ${ac_cv_lib_dbus_1_dbus_connection_close+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009408 $as_echo_n "(cached) " >&6
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009409else
9410 ac_check_lib_save_LIBS=$LIBS
9411LIBS="-ldbus-1 $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009413/* end confdefs.h. */
9414
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009415/* Override any GCC internal prototype to avoid an error.
9416 Use char because int might match the return type of a GCC
9417 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009418#ifdef __cplusplus
9419extern "C"
9420#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009421char dbus_connection_close ();
9422int
9423main ()
9424{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009425return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009426 ;
9427 return 0;
9428}
9429_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009430if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009431 ac_cv_lib_dbus_1_dbus_connection_close=yes
9432else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009433 ac_cv_lib_dbus_1_dbus_connection_close=no
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009434fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009435rm -f core conftest.err conftest.$ac_objext \
9436 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009437LIBS=$ac_check_lib_save_LIBS
9438fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009440$as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009441if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009443$as_echo_n "checking for -lhal... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009444if ${ac_cv_lib_soname_hal+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009445 $as_echo_n "(cached) " >&6
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009446else
9447 ac_check_soname_save_LIBS=$LIBS
9448LIBS="-lhal $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009450/* end confdefs.h. */
Alexandre Julliard00068982006-04-18 16:47:53 +02009451
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009452/* Override any GCC internal prototype to avoid an error.
9453 Use char because int might match the return type of a GCC
9454 builtin and then its argument prototype would still apply. */
9455#ifdef __cplusplus
9456extern "C"
9457#endif
9458char libhal_ctx_new ();
9459int
9460main ()
9461{
9462return libhal_ctx_new ();
9463 ;
9464 return 0;
9465}
9466_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009467if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009468 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009469 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 +02009470 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'` ;;
9471 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9472 esac
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009473fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009474rm -f core conftest.err conftest.$ac_objext \
9475 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009476 LIBS=$ac_check_soname_save_LIBS
9477fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009478if test "x$ac_cv_lib_soname_hal" = "x"; then :
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009480$as_echo "not found" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009481
9482else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009484$as_echo "$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009485
9486cat >>confdefs.h <<_ACEOF
9487#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
Alexandre Julliard00068982006-04-18 16:47:53 +02009488_ACEOF
9489
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009490 HALINCL="$ac_hal_cflags"
Alexandre Julliard00068982006-04-18 16:47:53 +02009491fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009492fi
9493
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009494 fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009495 CPPFLAGS="$ac_save_CPPFLAGS"
9496fi
Alexandre Julliardd8062732010-04-26 06:57:49 -05009497if 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 +01009498 case "x$with_hal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009499 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 +01009500 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009501 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009502This is an error since --with-hal was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009503esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009504fi
9505
Francois Gouget295a0cd2009-01-09 20:22:22 +01009506if test "x$with_gnutls" != "xno"
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009507then
9508 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009509 if test "$PKG_CONFIG" != "false"
9510 then
9511 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9512 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9513 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9514 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009515 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 +02009516if test "x$ac_cv_header_gnutls_gnutls_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gouget3aae9542008-10-24 11:24:58 +02009518/* end confdefs.h. */
9519#include <gnutls/gnutls.h>
9520int
9521main ()
9522{
Henri Verbeet8c4a2972008-12-30 09:45:20 +01009523typeof(gnutls_mac_get_key_size) *pfunc;
Francois Gouget3aae9542008-10-24 11:24:58 +02009524 ;
9525 return 0;
9526}
9527_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009528if ac_fn_c_try_compile "$LINENO"; then :
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009530$as_echo_n "checking for -lgnutls... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009531if ${ac_cv_lib_soname_gnutls+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009532 $as_echo_n "(cached) " >&6
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009533else
9534 ac_check_soname_save_LIBS=$LIBS
9535LIBS="-lgnutls $ac_gnutls_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009537/* end confdefs.h. */
9538
9539/* Override any GCC internal prototype to avoid an error.
9540 Use char because int might match the return type of a GCC
9541 builtin and then its argument prototype would still apply. */
9542#ifdef __cplusplus
9543extern "C"
9544#endif
9545char gnutls_global_init ();
9546int
9547main ()
9548{
9549return gnutls_global_init ();
9550 ;
9551 return 0;
9552}
9553_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009554if ac_fn_c_try_link "$LINENO"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009555 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009556 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 +02009557 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'` ;;
9558 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9559 esac
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009560fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009561rm -f core conftest.err conftest.$ac_objext \
9562 conftest$ac_exeext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009563 LIBS=$ac_check_soname_save_LIBS
9564fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009565if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009567$as_echo "not found" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009568
9569else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009571$as_echo "$ac_cv_lib_soname_gnutls" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009572
9573cat >>confdefs.h <<_ACEOF
9574#define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9575_ACEOF
9576
9577 GNUTLSINCL="$ac_gnutls_cflags"
9578
9579fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009580fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009581rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009582fi
9583
9584
9585 CPPFLAGS="$ac_save_CPPFLAGS"
9586fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009587if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009588 case "x$with_gnutls" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009589 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009590 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009591 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009592This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009593esac
9594fi
9595
Alexandre Julliard48957682001-12-26 23:08:31 +00009596CURSESLIBS=""
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009597if test "$ac_cv_header_ncurses_h" = "yes"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00009598then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009600$as_echo_n "checking for -lncurses... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009601if ${ac_cv_lib_soname_ncurses+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009602 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009603else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009604 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009605LIBS="-lncurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009607/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009608
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009609/* Override any GCC internal prototype to avoid an error.
9610 Use char because int might match the return type of a GCC
9611 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009612#ifdef __cplusplus
9613extern "C"
9614#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009615char waddch ();
9616int
9617main ()
9618{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009619return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009620 ;
9621 return 0;
9622}
9623_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009624if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009625 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009626 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 +02009627 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'` ;;
9628 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9629 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009630fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009631rm -f core conftest.err conftest.$ac_objext \
9632 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009633 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009634fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009635if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009637$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009638
9639else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009641$as_echo "$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009642
9643cat >>confdefs.h <<_ACEOF
9644#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9645_ACEOF
9646
9647 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009648fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009649elif test "$ac_cv_header_curses_h" = "yes"
9650then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009652$as_echo_n "checking for -lcurses... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009653if ${ac_cv_lib_soname_curses+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009654 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009655else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009656 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009657LIBS="-lcurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009659/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009660
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009661/* Override any GCC internal prototype to avoid an error.
9662 Use char because int might match the return type of a GCC
9663 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009664#ifdef __cplusplus
9665extern "C"
9666#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009667char waddch ();
9668int
9669main ()
9670{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009671return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009672 ;
9673 return 0;
9674}
9675_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009676if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009677 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009678 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 +02009679 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'` ;;
9680 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9681 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009682fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009683rm -f core conftest.err conftest.$ac_objext \
9684 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009685 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009686fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009687if test "x$ac_cv_lib_soname_curses" = "x"; then :
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009689$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009690
9691else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009693$as_echo "$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009694
9695cat >>confdefs.h <<_ACEOF
9696#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9697_ACEOF
9698
9699 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009700fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009701fi
9702ac_save_LIBS="$LIBS"
9703LIBS="$LIBS $CURSESLIBS"
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009704for ac_func in mousemask
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009705do :
9706 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
Alexandre Julliard9797da42011-04-27 17:37:43 +02009707if test "x$ac_cv_func_mousemask" = xyes; then :
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009708 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009709#define HAVE_MOUSEMASK 1
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009710_ACEOF
9711
9712fi
9713done
9714
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009715LIBS="$ac_save_LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009716if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009717 case "x$with_curses" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009718 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 +01009719 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009720 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009721This is an error since --with-curses was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009722esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009723fi
9724
Francois Gouget3fe5d802009-01-14 14:16:06 +01009725if test "x$with_sane" != "xno"
9726then
9727 ac_save_CPPFLAGS="$CPPFLAGS"
9728 # Extract the first word of "sane-config", so it can be a program name with args.
Shi Quan He6b0720f2002-03-21 02:58:39 +00009729set dummy sane-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009731$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009732if ${ac_cv_prog_sane_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009733 $as_echo_n "(cached) " >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009734else
9735 if test -n "$sane_devel"; then
9736 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9737else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9739for as_dir in $PATH
9740do
9741 IFS=$as_save_IFS
9742 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009743 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009744 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 +00009745 ac_cv_prog_sane_devel="sane-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009747 break 2
9748 fi
9749done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009750 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009751IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +00009752
9753 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9754fi
9755fi
9756sane_devel=$ac_cv_prog_sane_devel
9757if test -n "$sane_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009759$as_echo "$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009760else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009762$as_echo "no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009763fi
9764
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009765
Francois Gouget3fe5d802009-01-14 14:16:06 +01009766 if test "$sane_devel" != "no"
9767 then
9768 ac_sane_incl="`$sane_devel --cflags`"
9769 ac_sane_libs="`$sane_devel --ldflags`"
9770 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9771 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009772 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 +02009773if test "x$ac_cv_header_sane_sane_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009775$as_echo_n "checking for -lsane... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009776if ${ac_cv_lib_soname_sane+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009777 $as_echo_n "(cached) " >&6
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009778else
9779 ac_check_soname_save_LIBS=$LIBS
Francois Gougeta9d7bab2008-07-20 22:41:41 +02009780LIBS="-lsane $ac_sane_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009782/* end confdefs.h. */
9783
9784/* Override any GCC internal prototype to avoid an error.
9785 Use char because int might match the return type of a GCC
9786 builtin and then its argument prototype would still apply. */
9787#ifdef __cplusplus
9788extern "C"
9789#endif
9790char sane_init ();
9791int
9792main ()
9793{
9794return sane_init ();
9795 ;
9796 return 0;
9797}
9798_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009799if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009800 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009801 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 +02009802 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'` ;;
9803 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9804 esac
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009805fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009806rm -f core conftest.err conftest.$ac_objext \
9807 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009808 LIBS=$ac_check_soname_save_LIBS
9809fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009810if test "x$ac_cv_lib_soname_sane" = "x"; then :
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009812$as_echo "not found" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009813
9814else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009816$as_echo "$ac_cv_lib_soname_sane" >&6; }
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009817
9818cat >>confdefs.h <<_ACEOF
9819#define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9820_ACEOF
9821
9822 SANEINCL="$ac_sane_incl"
9823
9824fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009825fi
9826
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009827
Shi Quan He6b0720f2002-03-21 02:58:39 +00009828 CPPFLAGS="$ac_save_CPPFLAGS"
9829fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009830if test "x$ac_cv_lib_soname_sane" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009831 case "x$with_sane" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009832 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 +01009833 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009834 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009835This is an error since --with-sane was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009836esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009837fi
9838
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009839if test "x$with_v4l" != "xno"
9840then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9842$as_echo_n "checking for -lv4l1... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009843if ${ac_cv_lib_soname_v4l1+:} false; then :
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009844 $as_echo_n "(cached) " >&6
9845else
9846 ac_check_soname_save_LIBS=$LIBS
9847LIBS="-lv4l1 $LIBS"
9848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9849/* end confdefs.h. */
9850
9851/* Override any GCC internal prototype to avoid an error.
9852 Use char because int might match the return type of a GCC
9853 builtin and then its argument prototype would still apply. */
9854#ifdef __cplusplus
9855extern "C"
9856#endif
9857char v4l1_open ();
9858int
9859main ()
9860{
9861return v4l1_open ();
9862 ;
9863 return 0;
9864}
9865_ACEOF
9866if ac_fn_c_try_link "$LINENO"; then :
9867 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009868 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 +01009869 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'` ;;
9870 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9871 esac
9872fi
9873rm -f core conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875 LIBS=$ac_check_soname_save_LIBS
9876fi
9877if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9879$as_echo "not found" >&6; }
9880
9881else
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9883$as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9884
9885cat >>confdefs.h <<_ACEOF
9886#define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9887_ACEOF
9888
9889
9890fi
9891fi
9892if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9893 case "x$with_v4l" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009894 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009895 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009896 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
Alexandre Julliard9797da42011-04-27 17:37:43 +02009897This is an error since --with-v4l was requested." "$LINENO" 5 ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009898esac
9899fi
9900
Francois Gouget3fe5d802009-01-14 14:16:06 +01009901if test "x$with_gphoto" != "xno"
9902then
9903 ac_save_CPPFLAGS="$CPPFLAGS"
9904 # Extract the first word of "gphoto2-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009905set dummy gphoto2-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009907$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009908if ${ac_cv_prog_gphoto2_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009909 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009910else
9911 if test -n "$gphoto2_devel"; then
9912 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9913else
9914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9915for as_dir in $PATH
9916do
9917 IFS=$as_save_IFS
9918 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009919 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009920 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 +02009921 ac_cv_prog_gphoto2_devel="gphoto2-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009923 break 2
9924 fi
9925done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009926 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009927IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009928
9929 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9930fi
9931fi
9932gphoto2_devel=$ac_cv_prog_gphoto2_devel
9933if test -n "$gphoto2_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009935$as_echo "$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009936else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009938$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009939fi
9940
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009941
Francois Gouget3fe5d802009-01-14 14:16:06 +01009942 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009943set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009945$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009946if ${ac_cv_prog_gphoto2port_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009947 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009948else
9949 if test -n "$gphoto2port_devel"; then
9950 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9951else
9952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9953for as_dir in $PATH
9954do
9955 IFS=$as_save_IFS
9956 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009957 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009958 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 +02009959 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009961 break 2
9962 fi
9963done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009964 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009965IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009966
9967 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9968fi
9969fi
9970gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9971if test -n "$gphoto2port_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009973$as_echo "$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009974else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009976$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009977fi
9978
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009979
Francois Gouget3fe5d802009-01-14 14:16:06 +01009980 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9981 then
9982 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9983 ac_gphoto2_libs=""
9984 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9985 do
9986 case "$i" in
9987 -L/usr/lib|-L/usr/lib64) ;;
9988 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9989 esac
9990 done
9991 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9992 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +09009993 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009994 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 +02009995if test "x$ac_cv_header_gphoto2_camera_h" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009997$as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +02009998if ${ac_cv_lib_gphoto2_gp_camera_new+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009999 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010000else
10001 ac_check_lib_save_LIBS=$LIBS
Francois Gouget4bc03fe2008-07-21 17:10:45 +020010002LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010004/* end confdefs.h. */
10005
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010006/* Override any GCC internal prototype to avoid an error.
10007 Use char because int might match the return type of a GCC
10008 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010009#ifdef __cplusplus
10010extern "C"
10011#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010012char gp_camera_new ();
10013int
10014main ()
10015{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010016return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010017 ;
10018 return 0;
10019}
10020_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010021if ac_fn_c_try_link "$LINENO"; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010022 ac_cv_lib_gphoto2_gp_camera_new=yes
10023else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010024 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010025fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010026rm -f core conftest.err conftest.$ac_objext \
10027 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010028LIBS=$ac_check_lib_save_LIBS
10029fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010031$as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010032if test "x$ac_cv_lib_gphoto2_gp_camera_new" = xyes; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010033
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010034$as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010035
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010036 GPHOTO2LIBS="$ac_gphoto2_libs"
10037
10038 GPHOTO2INCL="$ac_gphoto2_incl"
10039
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010040fi
10041
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010042fi
10043
10044
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010045 CPPFLAGS="$ac_save_CPPFLAGS"
10046fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010047if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010048 case "x$with_gphoto" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010049 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 +010010050 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010051 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010052This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010053esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010054fi
10055
10056
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010057if test "$ac_cv_header_resolv_h" = "yes"
10058then
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010059 ac_save_LIBS="$LIBS"
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010060 for lib in '' -lresolv
10061 do
10062 LIBS="$lib $ac_save_LIBS"
10063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010064/* end confdefs.h. */
Rob Shearmanba349212009-01-02 12:12:06 +000010065#ifdef HAVE_NETINET_IN_H
10066#include <netinet/in.h>
10067#endif
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010068#include <resolv.h>
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010069int
10070main ()
10071{
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010072res_query("foo",ns_c_in,0,0,0);
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010073 ;
10074 return 0;
10075}
10076_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010077if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010078
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010079$as_echo "#define HAVE_RESOLV 1" >>confdefs.h
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010080
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010081 RESOLVLIBS="$lib"
10082
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010083fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010084rm -f core conftest.err conftest.$ac_objext \
10085 conftest$ac_exeext conftest.$ac_ext
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010086 if test "${RESOLVLIBS+set}" = set; then
10087 break
10088 fi
10089 done
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010090 LIBS="$ac_save_LIBS"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010091fi
10092
Hans Leidekkerd3447022005-07-15 10:09:43 +000010093LCMSLIBS=""
10094
10095if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10096then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010098$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010099if ${ac_cv_lib_lcms_cmsOpenProfileFromFile+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010100 $as_echo_n "(cached) " >&6
Hans Leidekkerd3447022005-07-15 10:09:43 +000010101else
10102 ac_check_lib_save_LIBS=$LIBS
10103LIBS="-llcms $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010105/* end confdefs.h. */
10106
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010107/* Override any GCC internal prototype to avoid an error.
10108 Use char because int might match the return type of a GCC
10109 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +000010110#ifdef __cplusplus
10111extern "C"
10112#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +000010113char cmsOpenProfileFromFile ();
10114int
10115main ()
10116{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010117return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000010118 ;
10119 return 0;
10120}
10121_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010122if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010123 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10124else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010125 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000010126fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010127rm -f core conftest.err conftest.$ac_objext \
10128 conftest$ac_exeext conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010129LIBS=$ac_check_lib_save_LIBS
10130fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010132$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010133if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = xyes; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010134
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010135$as_echo "#define HAVE_LCMS 1" >>confdefs.h
Hans Leidekkerd3447022005-07-15 10:09:43 +000010136
10137 LCMSLIBS="-llcms"
10138fi
10139
10140fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010141if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010142 case "x$with_cms" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010143 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 +010010144 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010145 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010146This is an error since --with-cms was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010147esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010148fi
10149
Francois Gouget3fe5d802009-01-14 14:16:06 +010010150if test "x$with_freetype" != "xno"
10151then
10152 for ac_prog in freetype-config freetype2-config
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010153do
10154 # Extract the first word of "$ac_prog", so it can be a program name with args.
10155set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010157$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010158if ${ac_cv_prog_ft_devel+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010159 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010160else
10161 if test -n "$ft_devel"; then
10162 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10163else
10164as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10165for as_dir in $PATH
10166do
10167 IFS=$as_save_IFS
10168 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010169 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010170 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 +020010171 ac_cv_prog_ft_devel="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010173 break 2
10174 fi
10175done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010176 done
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010177IFS=$as_save_IFS
10178
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010179fi
10180fi
10181ft_devel=$ac_cv_prog_ft_devel
10182if test -n "$ft_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010184$as_echo "$ft_devel" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010185else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010187$as_echo "no" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010188fi
10189
10190
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010191 test -n "$ft_devel" && break
10192done
Francois Gouget3fe5d802009-01-14 14:16:06 +010010193test -n "$ft_devel" || ft_devel="no"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010194
Francois Gouget3fe5d802009-01-14 14:16:06 +010010195 if test "$ft_devel" != "no"
10196 then
10197 ac_freetype_incl=`$ft_devel --cflags`
10198 ac_freetype_libs=`$ft_devel --libs`
10199 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010200 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010202$as_echo_n "checking for -lfreetype... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010203if ${ac_cv_lib_soname_freetype+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010204 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010205else
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010206 ac_check_soname_save_LIBS=$LIBS
10207LIBS="-lfreetype $ac_freetype_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010209/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010210
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010211/* Override any GCC internal prototype to avoid an error.
10212 Use char because int might match the return type of a GCC
10213 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010214#ifdef __cplusplus
10215extern "C"
10216#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010217char FT_Init_FreeType ();
10218int
10219main ()
10220{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010221return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010222 ;
10223 return 0;
10224}
10225_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010226if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010227 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010228 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 +020010229 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'` ;;
10230 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10231 esac
Ian Pilcher563598d2001-05-16 20:56:05 +000010232fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010233rm -f core conftest.err conftest.$ac_objext \
10234 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010235 LIBS=$ac_check_soname_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010236fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010237if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010239$as_echo "not found" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010240 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010241else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010243$as_echo "$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010244
10245cat >>confdefs.h <<_ACEOF
10246#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10247_ACEOF
10248
10249 ft_lib=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010250fi
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010251 if test "$ft_lib" = "yes"
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010252 then
Ian Pilcher40432fe2001-06-06 21:05:23 +000010253 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010254 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010255 for ac_header in ft2build.h \
Rein Klazese617a9c2003-11-19 02:18:13 +000010256 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010257 freetype/ftglyph.h \
Dmitry Timoshkovb0d15902007-09-20 19:10:31 +090010258 freetype/fttypes.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010259 freetype/tttables.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010260 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010261 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010262 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010263 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010010264 freetype/ftmodapi.h \
ByeongSik Jeon028617b2008-12-10 23:50:44 +090010265 freetype/ftlcdfil.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010266 freetype/internal/sfnt.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010267do :
10268 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10269ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
Francois Gouget9e67edf2008-03-06 12:34:48 +010010270 # include <ft2build.h>
Rein Klazes9c269172003-11-20 04:17:33 +000010271 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010272"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010273if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010274 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010275#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010276_ACEOF
10277
10278fi
10279
Ian Pilcher40432fe2001-06-06 21:05:23 +000010280done
10281
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010283/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010284#include <ft2build.h>
10285 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010286_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010287if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010288
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010289$as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
Alexandre Julliard18d75732002-01-29 03:02:50 +000010290
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010291 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010292else
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010293 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010294fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010295rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010296 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10297"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010298if test "x$ac_cv_type_FT_TrueTypeEngineType" = xyes; then :
Huw Daviesd8a6c272006-02-22 12:24:25 +000010299
10300cat >>confdefs.h <<_ACEOF
10301#define HAVE_FT_TRUETYPEENGINETYPE 1
10302_ACEOF
10303
10304
10305fi
10306
Huw Davies35bca772006-04-12 12:14:27 +010010307 ac_save_CFLAGS="$CFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010308 CFLAGS="$CFLAGS $ac_freetype_libs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010309 for ac_func in FT_Load_Sfnt_Table
10310do :
10311 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
Alexandre Julliard9797da42011-04-27 17:37:43 +020010312if test "x$ac_cv_func_FT_Load_Sfnt_Table" = xyes; then :
Huw Davies35bca772006-04-12 12:14:27 +010010313 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010314#define HAVE_FT_LOAD_SFNT_TABLE 1
Huw Davies35bca772006-04-12 12:14:27 +010010315_ACEOF
10316
10317fi
10318done
10319
10320 CFLAGS="$ac_save_CFLAGS"
Ian Pilcher40432fe2001-06-06 21:05:23 +000010321 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010322 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010323 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010324
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010325$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010326
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010327 FREETYPELIBS="$ac_freetype_libs"
10328
10329 FREETYPEINCL="$ac_freetype_incl"
10330
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010331 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010332 fi
10333fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010334if test "x$FREETYPELIBS" = "x"; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010335 case "x$with_freetype" in
10336 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010337 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010338Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010339esac
Huw Davies00acb5f2004-08-17 22:33:14 +000010340fi
Alexandre Julliard6de0af12008-08-25 14:41:03 +020010341test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010342
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010343{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010344$as_echo_n "checking for parport header/ppdev.h... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010345if ${ac_cv_c_ppdev+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010346 $as_echo_n "(cached) " >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010347else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010349/* end confdefs.h. */
Yann Droneauddd33ee92010-03-08 14:46:46 +010010350#ifdef HAVE_SYS_IOCTL_H
10351# include <sys/ioctl.h>
10352#endif
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010353#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010354int
10355main ()
10356{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010357ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010358 ;
10359 return 0;
10360}
10361_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010362if ac_fn_c_try_compile "$LINENO"; then :
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010363 ac_cv_c_ppdev="yes"
10364else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010365 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010366fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010367rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010368fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010370$as_echo "$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010371if test "$ac_cv_c_ppdev" = "yes"
10372then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010373
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010374$as_echo "#define HAVE_PPDEV 1" >>confdefs.h
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010375
10376fi
10377
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010378ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010379LIBS="$LIBS $LIBPTHREAD"
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010380for ac_func in \
Tijl Coosemansfc8172f2006-08-05 23:31:07 +020010381 pthread_attr_get_np \
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010382 pthread_getattr_np \
10383 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010384 pthread_get_stacksize_np
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010385do :
10386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10387ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010388if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Alexandre Julliard821ab862003-11-12 22:44:56 +000010389 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010390#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010391_ACEOF
10392
10393fi
10394done
10395
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010396LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010397
Jacek Caban11ca05f2009-05-29 23:35:13 +020010398if test "$ac_cv_header_zlib_h" = "yes"
10399then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010401$as_echo_n "checking for inflate in -lz... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010402if ${ac_cv_lib_z_inflate+:} false; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010403 $as_echo_n "(cached) " >&6
10404else
10405 ac_check_lib_save_LIBS=$LIBS
10406LIBS="-lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010408/* end confdefs.h. */
10409
10410/* Override any GCC internal prototype to avoid an error.
10411 Use char because int might match the return type of a GCC
10412 builtin and then its argument prototype would still apply. */
10413#ifdef __cplusplus
10414extern "C"
10415#endif
10416char inflate ();
10417int
10418main ()
10419{
10420return inflate ();
10421 ;
10422 return 0;
10423}
10424_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010425if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010426 ac_cv_lib_z_inflate=yes
10427else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010428 ac_cv_lib_z_inflate=no
Jacek Caban11ca05f2009-05-29 23:35:13 +020010429fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010430rm -f core conftest.err conftest.$ac_objext \
10431 conftest$ac_exeext conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010432LIBS=$ac_check_lib_save_LIBS
10433fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010435$as_echo "$ac_cv_lib_z_inflate" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010436if test "x$ac_cv_lib_z_inflate" = xyes; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010437
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010438$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
Jacek Caban11ca05f2009-05-29 23:35:13 +020010439
10440 ZLIB="-lz"
10441
10442fi
10443
10444fi
Alexandre Julliardba6a41a2011-02-18 13:07:27 +010010445if test "x$ZLIB" = "x"; then :
10446 case "x$with_zlib" in
10447 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10448 xno) ;;
10449 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010450This is an error since --with-zlib was requested." "$LINENO" 5 ;;
Alexandre Julliardba6a41a2011-02-18 13:07:27 +010010451esac
10452fi
Jacek Caban11ca05f2009-05-29 23:35:13 +020010453
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010454if test "x$enable_tools" != xno
10455then
10456 if test "$ac_cv_header_gettext_po_h" = "yes"
10457 then
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10459$as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010460if ${ac_cv_lib_gettextpo_po_message_msgctxt+:} false; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010461 $as_echo_n "(cached) " >&6
10462else
10463 ac_check_lib_save_LIBS=$LIBS
10464LIBS="-lgettextpo $LIBS"
10465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466/* end confdefs.h. */
10467
10468/* Override any GCC internal prototype to avoid an error.
10469 Use char because int might match the return type of a GCC
10470 builtin and then its argument prototype would still apply. */
10471#ifdef __cplusplus
10472extern "C"
10473#endif
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010474char po_message_msgctxt ();
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010475int
10476main ()
10477{
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010478return po_message_msgctxt ();
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010479 ;
10480 return 0;
10481}
10482_ACEOF
10483if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010484 ac_cv_lib_gettextpo_po_message_msgctxt=yes
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010485else
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010486 ac_cv_lib_gettextpo_po_message_msgctxt=no
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010487fi
10488rm -f core conftest.err conftest.$ac_objext \
10489 conftest$ac_exeext conftest.$ac_ext
10490LIBS=$ac_check_lib_save_LIBS
10491fi
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10493$as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010494if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = xyes; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010495
10496$as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10497
10498 LIBGETTEXTPO="-lgettextpo"
10499
10500fi
10501
10502 fi
10503 if test "x$LIBGETTEXTPO" = "x"; then :
10504 case "x$with_gettextpo" in
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010505 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 +010010506 xno) ;;
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010507 *) 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 +020010508This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010509esac
10510fi
10511fi
10512
Aric Stewart2914d652010-10-20 13:55:16 -050010513if test "x$with_gstreamer" != "xno"
10514then
10515 ac_save_CPPFLAGS="$CPPFLAGS"
10516 if test "$PKG_CONFIG" != "false"; then
10517 ac_gst_incl=""
10518 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10519 do
10520 case "$i" in
10521 -I*) ac_gst_incl="$ac_gst_incl $i";;
10522 esac
10523 done
10524 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10525 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
Andrew Nguyende417972010-10-29 00:26:04 -050010526 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 +020010527if test "x$ac_cv_header_gst_gstpad_h" = xyes; then :
Andrew Nguyende417972010-10-29 00:26:04 -050010528 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 +020010529if test "x$ac_cv_header_gst_app_gstappsink_h" = xyes; then :
Octavian Voicub113af12011-08-03 01:38:43 +030010530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit" >&5
10531$as_echo_n "checking whether gint64 defined by gst/app/gstappsink.h is indeed 64-bit... " >&6; }
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10533/* end confdefs.h. */
10534#include <gst/app/gstappsink.h>
10535int
10536main ()
10537{
10538int a[sizeof(gint64) > 4 ? 1 : -1]
10539 ;
10540 return 0;
10541}
10542_ACEOF
10543if ac_fn_c_try_compile "$LINENO"; then :
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10545$as_echo "yes" >&6; }
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
Andrew Nguyende417972010-10-29 00:26:04 -050010547$as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010548if ${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+:} false; then :
Andrew Nguyende417972010-10-29 00:26:04 -050010549 $as_echo_n "(cached) " >&6
10550else
10551 ac_check_lib_save_LIBS=$LIBS
10552LIBS="-lgstreamer-0.10 $LIBS"
10553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10554/* end confdefs.h. */
10555
10556/* Override any GCC internal prototype to avoid an error.
10557 Use char because int might match the return type of a GCC
10558 builtin and then its argument prototype would still apply. */
10559#ifdef __cplusplus
10560extern "C"
10561#endif
10562char gst_pad_get_caps_reffed ();
10563int
10564main ()
10565{
10566return gst_pad_get_caps_reffed ();
10567 ;
10568 return 0;
10569}
10570_ACEOF
10571if ac_fn_c_try_link "$LINENO"; then :
10572 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10573else
10574 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10575fi
10576rm -f core conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
10578LIBS=$ac_check_lib_save_LIBS
10579fi
10580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10581$as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010582if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = xyes; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10584$as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010585if ${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+:} false; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010586 $as_echo_n "(cached) " >&6
10587else
10588 ac_check_lib_save_LIBS=$LIBS
10589LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10591/* end confdefs.h. */
10592
10593/* Override any GCC internal prototype to avoid an error.
10594 Use char because int might match the return type of a GCC
10595 builtin and then its argument prototype would still apply. */
10596#ifdef __cplusplus
10597extern "C"
10598#endif
10599char gst_app_buffer_new ();
10600int
10601main ()
10602{
10603return gst_app_buffer_new ();
10604 ;
10605 return 0;
10606}
10607_ACEOF
10608if ac_fn_c_try_link "$LINENO"; then :
10609 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10610else
10611 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10612fi
10613rm -f core conftest.err conftest.$ac_objext \
10614 conftest$ac_exeext conftest.$ac_ext
10615LIBS=$ac_check_lib_save_LIBS
10616fi
10617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10618$as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010619if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010620 GSTREAMER_LIBS="$ac_gst_libs"
10621
Octavian Voicub113af12011-08-03 01:38:43 +030010622 GSTREAMER_INCL="$ac_gst_incl"
Aric Stewart2914d652010-10-20 13:55:16 -050010623
10624fi
10625
10626fi
10627
Octavian Voicub113af12011-08-03 01:38:43 +030010628else
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10630$as_echo "no" >&6; }
10631fi
10632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Andrew Nguyende417972010-10-29 00:26:04 -050010633fi
10634
10635
10636fi
10637
Aric Stewart2914d652010-10-20 13:55:16 -050010638
10639 fi
10640 CPPFLAGS="$ac_save_CPPFLAGS"
10641fi
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +010010642if 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 -050010643 case "x$with_gstreamer" in
Detlef Riekenberg654bb4a2010-12-12 22:48:56 +010010644 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 -050010645 xno) ;;
Detlef Riekenberg654bb4a2010-12-12 22:48:56 +010010646 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
Alexandre Julliard9797da42011-04-27 17:37:43 +020010647This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
Aric Stewart2914d652010-10-20 13:55:16 -050010648esac
10649fi
10650test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10651
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010652ALSALIBS=""
10653
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010654if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010655then
Austin Englishaeb78cb2011-01-12 01:43:46 -080010656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10657$as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010658if ${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010659 $as_echo_n "(cached) " >&6
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010660else
10661 ac_check_lib_save_LIBS=$LIBS
10662LIBS="-lasound $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010663cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010664/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010665
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010666/* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010669#ifdef __cplusplus
10670extern "C"
10671#endif
Austin Englishaeb78cb2011-01-12 01:43:46 -080010672char snd_pcm_hw_params_get_access_mask ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010673int
10674main ()
10675{
Austin Englishaeb78cb2011-01-12 01:43:46 -080010676return snd_pcm_hw_params_get_access_mask ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010677 ;
10678 return 0;
10679}
10680_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010681if ac_fn_c_try_link "$LINENO"; then :
Austin Englishaeb78cb2011-01-12 01:43:46 -080010682 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010683else
Austin Englishaeb78cb2011-01-12 01:43:46 -080010684 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010685fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010686rm -f core conftest.err conftest.$ac_objext \
10687 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010688LIBS=$ac_check_lib_save_LIBS
10689fi
Austin Englishaeb78cb2011-01-12 01:43:46 -080010690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10691$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010692if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Vincent Béron151015f2005-01-10 13:26:33 +000010694/* end confdefs.h. */
10695#ifdef HAVE_ALSA_ASOUNDLIB_H
10696#include <alsa/asoundlib.h>
10697#elif defined(HAVE_SYS_ASOUNDLIB_H)
10698#include <sys/asoundlib.h>
10699#endif
10700int
10701main ()
10702{
Austin English8521ebe2011-06-13 21:26:40 -070010703snd_pcm_hw_params_get_access_mask(NULL, NULL)
Vincent Béron151015f2005-01-10 13:26:33 +000010704 ;
10705 return 0;
10706}
10707_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010708if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard255cc212011-03-28 22:07:26 +020010709 ALSALIBS="-lasound"
Vincent Béron151015f2005-01-10 13:26:33 +000010710fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010712fi
10713
10714fi
10715
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010716if test "x$with_oss" != xno
Andrew Eikumbe332322011-04-27 09:12:36 -050010717then
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010718 ac_save_CPPFLAGS="$CPPFLAGS"
10719 if test -f /etc/oss.conf
10720 then
10721 . /etc/oss.conf
10722 fi
10723 ac_oss_incl="-I${OSSLIBDIR:-/usr/lib/oss}/include"
10724 CPPFLAGS="$CPPFLAGS $ac_oss_incl"
10725 ac_fn_c_check_header_mongrel "$LINENO" "sys/soundcard.h" "ac_cv_header_sys_soundcard_h" "$ac_includes_default"
10726if test "x$ac_cv_header_sys_soundcard_h" = xyes; then :
10727 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 -050010728"
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010729if test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes; then :
Andrew Eikumbe332322011-04-27 09:12:36 -050010730
10731cat >>confdefs.h <<_ACEOF
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010732#define HAVE_OSS_SYSINFO_NUMAUDIOENGINES 1
Andrew Eikumbe332322011-04-27 09:12:36 -050010733_ACEOF
10734
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010735OSS4INCL="$ac_oss_incl"
Andrew Eikumbe332322011-04-27 09:12:36 -050010736
10737fi
10738
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020010739fi
10740
10741
10742 CPPFLAGS="$ac_save_CPPFLAGS"
10743 if test "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes
Andrew Eikumbe332322011-04-27 09:12:36 -050010744 then
10745 as_fn_append wine_notices "|OSS sound system found but too old (OSSv4 needed), OSS won't be supported."
10746 fi
10747fi
10748
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010749
Alexandre Julliard73482142005-08-03 19:21:04 +000010750if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10751then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010753$as_echo_n "checking for -lcapi20... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010754if ${ac_cv_lib_soname_capi20+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010755 $as_echo_n "(cached) " >&6
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010756else
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010757 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010758LIBS="-lcapi20 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010760/* end confdefs.h. */
10761
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010762/* Override any GCC internal prototype to avoid an error.
10763 Use char because int might match the return type of a GCC
10764 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010765#ifdef __cplusplus
10766extern "C"
10767#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010768char capi20_register ();
10769int
10770main ()
10771{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010772return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010773 ;
10774 return 0;
10775}
10776_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010777if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010778 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010779 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 +020010780 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'` ;;
10781 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10782 esac
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010783fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010784rm -f core conftest.err conftest.$ac_objext \
10785 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010786 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010787fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010788if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010790$as_echo "not found" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010791
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010792else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010794$as_echo "$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010795
10796cat >>confdefs.h <<_ACEOF
10797#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010798_ACEOF
10799
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010800
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010801fi
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010802fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010803if test "x$ac_cv_lib_soname_capi20" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010804 case "x$with_capi" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010805 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 +010010806 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010807 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010808This is an error since --with-capi was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010809esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010810fi
10811
Francois Gouget289ea332008-07-24 16:09:07 +020010812CUPSINCL=""
10813
10814if test "x$with_cups" != "xno"
Alexandre Julliard702d3552007-07-02 17:30:44 +020010815then
Francois Gouget289ea332008-07-24 16:09:07 +020010816 ac_save_CPPFLAGS="$CPPFLAGS"
10817 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
Alexandre Julliarda991a562008-07-28 12:04:46 +020010818 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
Francois Gouget289ea332008-07-24 16:09:07 +020010819 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010820 for ac_header in cups/cups.h
10821do :
10822 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 +020010823if test "x$ac_cv_header_cups_cups_h" = xyes; then :
Francois Gouget289ea332008-07-24 16:09:07 +020010824 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010825#define HAVE_CUPS_CUPS_H 1
Francois Gouget289ea332008-07-24 16:09:07 +020010826_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010828$as_echo_n "checking for -lcups... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010829if ${ac_cv_lib_soname_cups+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010830 $as_echo_n "(cached) " >&6
Alexandre Julliard702d3552007-07-02 17:30:44 +020010831else
10832 ac_check_soname_save_LIBS=$LIBS
Francois Gouget289ea332008-07-24 16:09:07 +020010833LIBS="-lcups $ac_cups_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020010835/* end confdefs.h. */
10836
10837/* Override any GCC internal prototype to avoid an error.
10838 Use char because int might match the return type of a GCC
10839 builtin and then its argument prototype would still apply. */
10840#ifdef __cplusplus
10841extern "C"
10842#endif
10843char cupsGetDefault ();
10844int
10845main ()
10846{
10847return cupsGetDefault ();
10848 ;
10849 return 0;
10850}
10851_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010852if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard702d3552007-07-02 17:30:44 +020010853 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010854 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 +020010855 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'` ;;
10856 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10857 esac
Alexandre Julliard702d3552007-07-02 17:30:44 +020010858fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010859rm -f core conftest.err conftest.$ac_objext \
10860 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020010861 LIBS=$ac_check_soname_save_LIBS
10862fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010863if test "x$ac_cv_lib_soname_cups" = "x"; then :
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010865$as_echo "not found" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020010866
10867else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010869$as_echo "$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020010870
10871cat >>confdefs.h <<_ACEOF
10872#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10873_ACEOF
10874
Francois Gouget289ea332008-07-24 16:09:07 +020010875 CUPSINCL="$ac_cups_cflags"
10876fi
Alexandre Julliard702d3552007-07-02 17:30:44 +020010877fi
10878
Francois Gouget289ea332008-07-24 16:09:07 +020010879done
10880
10881 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliard702d3552007-07-02 17:30:44 +020010882fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010883if test "x$ac_cv_lib_soname_cups" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010884 case "x$with_cups" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010885 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 +010010886 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010887 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020010888This is an error since --with-cups was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010889esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010890fi
10891
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010892if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10893then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010895$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010896if ${ac_cv_lib_soname_fontconfig+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010897 $as_echo_n "(cached) " >&6
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010898else
10899 ac_check_soname_save_LIBS=$LIBS
10900LIBS="-lfontconfig $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010902/* end confdefs.h. */
10903
10904/* Override any GCC internal prototype to avoid an error.
10905 Use char because int might match the return type of a GCC
10906 builtin and then its argument prototype would still apply. */
10907#ifdef __cplusplus
10908extern "C"
10909#endif
10910char FcInit ();
10911int
10912main ()
10913{
10914return FcInit ();
10915 ;
10916 return 0;
10917}
10918_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010919if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010920 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010921 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 +020010922 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'` ;;
10923 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10924 esac
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010925fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010926rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010928 LIBS=$ac_check_soname_save_LIBS
10929fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010930if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010932$as_echo "not found" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010933
10934else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010936$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010937
10938cat >>confdefs.h <<_ACEOF
10939#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10940_ACEOF
10941
10942
10943fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010944elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
Alexandre Julliard5c076732007-10-17 17:04:01 +020010945then
10946 ac_save_CPPFLAGS="$CPPFLAGS"
10947 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10948 $as_unset ac_cv_header_fontconfig_fontconfig_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010949 for ac_header in fontconfig/fontconfig.h
10950do :
10951 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 +020010952if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020010953 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010954#define HAVE_FONTCONFIG_FONTCONFIG_H 1
Alexandre Julliard5c076732007-10-17 17:04:01 +020010955_ACEOF
10956
10957fi
10958
10959done
10960
10961 CPPFLAGS="$ac_save_CPPFLAGS"
10962 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10963 then
10964 FONTCONFIGINCL="$X_CFLAGS"
10965
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010967$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020010968if ${ac_cv_lib_soname_fontconfig+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010969 $as_echo_n "(cached) " >&6
Alexandre Julliard5c076732007-10-17 17:04:01 +020010970else
10971 ac_check_soname_save_LIBS=$LIBS
10972LIBS="-lfontconfig $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020010974/* end confdefs.h. */
10975
10976/* Override any GCC internal prototype to avoid an error.
10977 Use char because int might match the return type of a GCC
10978 builtin and then its argument prototype would still apply. */
10979#ifdef __cplusplus
10980extern "C"
10981#endif
10982char FcInit ();
10983int
10984main ()
10985{
10986return FcInit ();
10987 ;
10988 return 0;
10989}
10990_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010991if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020010992 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010993 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 +020010994 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'` ;;
10995 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10996 esac
Alexandre Julliard5c076732007-10-17 17:04:01 +020010997fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010998rm -f core conftest.err conftest.$ac_objext \
10999 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020011000 LIBS=$ac_check_soname_save_LIBS
11001fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011002if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011004$as_echo "not found" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020011005
11006else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011008$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020011009
11010cat >>confdefs.h <<_ACEOF
11011#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11012_ACEOF
11013
11014
11015fi
Alexandre Julliard5c076732007-10-17 17:04:01 +020011016 fi
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011017fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011018if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011019 case "x$with_fontconfig" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011020 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 +010011021 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011022 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011023This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011024esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011025fi
11026
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011027if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11028then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011030$as_echo_n "checking for -lssl... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011031if ${ac_cv_lib_soname_ssl+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011032 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011033else
11034 ac_check_soname_save_LIBS=$LIBS
11035LIBS="-lssl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011037/* end confdefs.h. */
11038
11039/* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11042#ifdef __cplusplus
11043extern "C"
11044#endif
11045char SSL_library_init ();
11046int
11047main ()
11048{
11049return SSL_library_init ();
11050 ;
11051 return 0;
11052}
11053_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011054if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011055 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011056 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 +020011057 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'` ;;
11058 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11059 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011060fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011061rm -f core conftest.err conftest.$ac_objext \
11062 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011063 LIBS=$ac_check_soname_save_LIBS
11064fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011065if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011067$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011068
11069else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011071$as_echo "$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011072
11073cat >>confdefs.h <<_ACEOF
11074#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11075_ACEOF
11076
11077
11078fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011080$as_echo_n "checking for -lcrypto... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011081if ${ac_cv_lib_soname_crypto+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011082 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011083else
11084 ac_check_soname_save_LIBS=$LIBS
11085LIBS="-lcrypto $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011087/* end confdefs.h. */
11088
11089/* Override any GCC internal prototype to avoid an error.
11090 Use char because int might match the return type of a GCC
11091 builtin and then its argument prototype would still apply. */
11092#ifdef __cplusplus
11093extern "C"
11094#endif
11095char BIO_new_socket ();
11096int
11097main ()
11098{
11099return BIO_new_socket ();
11100 ;
11101 return 0;
11102}
11103_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011104if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011105 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011106 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 +020011107 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'` ;;
11108 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11109 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011110fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011111rm -f core conftest.err conftest.$ac_objext \
11112 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011113 LIBS=$ac_check_soname_save_LIBS
11114fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011115if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011117$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011118
11119else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011121$as_echo "$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011122
11123cat >>confdefs.h <<_ACEOF
11124#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11125_ACEOF
11126
11127
11128fi
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011129fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011130if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011131 case "x$with_openssl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011132 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 +010011133 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011134 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011135This is an error since --with-openssl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011136esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011137fi
11138
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +020011139if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011140then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011142$as_echo_n "checking for -lgsm... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011143if ${ac_cv_lib_soname_gsm+:} false; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011144 $as_echo_n "(cached) " >&6
11145else
11146 ac_check_soname_save_LIBS=$LIBS
11147LIBS="-lgsm $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011149/* end confdefs.h. */
11150
11151/* Override any GCC internal prototype to avoid an error.
11152 Use char because int might match the return type of a GCC
11153 builtin and then its argument prototype would still apply. */
11154#ifdef __cplusplus
11155extern "C"
11156#endif
11157char gsm_create ();
11158int
11159main ()
11160{
11161return gsm_create ();
11162 ;
11163 return 0;
11164}
11165_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011166if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011167 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011168 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 +020011169 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'` ;;
11170 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11171 esac
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011172fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011173rm -f core conftest.err conftest.$ac_objext \
11174 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011175 LIBS=$ac_check_soname_save_LIBS
11176fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011177if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011179$as_echo "not found" >&6; }
11180
11181else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011183$as_echo "$ac_cv_lib_soname_gsm" >&6; }
11184
11185cat >>confdefs.h <<_ACEOF
11186#define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11187_ACEOF
11188
11189
11190fi
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011191fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011192if test "x$ac_cv_lib_soname_gsm" = "x"; then :
Alexandre Julliard6ce32e02009-08-19 15:53:04 +020011193 case "x$with_gsm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011194 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 +020011195 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011196 *) 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 +020011197This is an error since --with-gsm was requested." "$LINENO" 5 ;;
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011198esac
11199fi
11200
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011201if test "$ac_cv_header_jpeglib_h" = "yes"
11202then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011204$as_echo_n "checking for -ljpeg... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011205if ${ac_cv_lib_soname_jpeg+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011206 $as_echo_n "(cached) " >&6
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011207else
11208 ac_check_soname_save_LIBS=$LIBS
11209LIBS="-ljpeg $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011211/* end confdefs.h. */
11212
11213/* Override any GCC internal prototype to avoid an error.
11214 Use char because int might match the return type of a GCC
11215 builtin and then its argument prototype would still apply. */
11216#ifdef __cplusplus
11217extern "C"
11218#endif
11219char jpeg_start_decompress ();
11220int
11221main ()
11222{
11223return jpeg_start_decompress ();
11224 ;
11225 return 0;
11226}
11227_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011228if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011229 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011230 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 +020011231 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'` ;;
11232 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11233 esac
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011234fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011235rm -f core conftest.err conftest.$ac_objext \
11236 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011237 LIBS=$ac_check_soname_save_LIBS
11238fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011239if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011241$as_echo "not found" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011242
11243else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011245$as_echo "$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011246
11247cat >>confdefs.h <<_ACEOF
11248#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11249_ACEOF
11250
11251
11252fi
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011253fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011254if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011255 case "x$with_jpeg" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011256 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 +010011257 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011258 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011259This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011260esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011261fi
11262
Alexandre Julliard00302152007-07-02 19:54:00 +020011263if test "$ac_cv_header_png_h" = "yes"
11264then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011266$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011267if ${ac_cv_lib_soname_png+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011268 $as_echo_n "(cached) " >&6
Alexandre Julliard00302152007-07-02 19:54:00 +020011269else
11270 ac_check_soname_save_LIBS=$LIBS
Austin Englishfe8879e2008-12-28 19:10:19 -060011271LIBS="-lpng -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011273/* end confdefs.h. */
11274
11275/* Override any GCC internal prototype to avoid an error.
11276 Use char because int might match the return type of a GCC
11277 builtin and then its argument prototype would still apply. */
11278#ifdef __cplusplus
11279extern "C"
11280#endif
11281char png_create_read_struct ();
11282int
11283main ()
11284{
11285return png_create_read_struct ();
11286 ;
11287 return 0;
11288}
11289_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011290if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard00302152007-07-02 19:54:00 +020011291 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011292 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 +020011293 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'` ;;
11294 *) 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'` ;;
11295 esac
Alexandre Julliard00302152007-07-02 19:54:00 +020011296fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011297rm -f core conftest.err conftest.$ac_objext \
11298 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011299 LIBS=$ac_check_soname_save_LIBS
11300fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011301if test "x$ac_cv_lib_soname_png" = "x"; then :
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011303$as_echo "not found" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011304
11305else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011307$as_echo "$ac_cv_lib_soname_png" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011308
11309cat >>confdefs.h <<_ACEOF
11310#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11311_ACEOF
11312
11313
11314fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11316$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011317if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011318 $as_echo_n "(cached) " >&6
11319else
11320 ac_check_lib_save_LIBS=$LIBS
11321LIBS="-lpng -lm -lz $LIBS"
11322cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323/* end confdefs.h. */
11324
11325/* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11328#ifdef __cplusplus
11329extern "C"
11330#endif
11331char png_set_expand_gray_1_2_4_to_8 ();
11332int
11333main ()
11334{
11335return png_set_expand_gray_1_2_4_to_8 ();
11336 ;
11337 return 0;
11338}
11339_ACEOF
11340if ac_fn_c_try_link "$LINENO"; then :
11341 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11342else
11343 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11344fi
11345rm -f core conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347LIBS=$ac_check_lib_save_LIBS
11348fi
11349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11350$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011351if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011352
11353$as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11354
11355
11356fi
11357
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011358elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11359then
11360 ac_save_CPPFLAGS="$CPPFLAGS"
11361 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11362 $as_unset ac_cv_header_png_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011363 for ac_header in png.h
11364do :
11365 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020011366if test "x$ac_cv_header_png_h" = xyes; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011367 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011368#define HAVE_PNG_H 1
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011369_ACEOF
11370
11371fi
11372
11373done
11374
11375 CPPFLAGS="$ac_save_CPPFLAGS"
11376 if test "$ac_cv_header_png_h" = "yes"
11377 then
11378 PNGINCL="$X_CFLAGS"
11379
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011381$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011382if ${ac_cv_lib_soname_png+:} false; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011383 $as_echo_n "(cached) " >&6
11384else
11385 ac_check_soname_save_LIBS=$LIBS
11386LIBS="-lpng $X_LIBS -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011388/* end confdefs.h. */
11389
11390/* Override any GCC internal prototype to avoid an error.
11391 Use char because int might match the return type of a GCC
11392 builtin and then its argument prototype would still apply. */
11393#ifdef __cplusplus
11394extern "C"
11395#endif
11396char png_create_read_struct ();
11397int
11398main ()
11399{
11400return png_create_read_struct ();
11401 ;
11402 return 0;
11403}
11404_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011405if ac_fn_c_try_link "$LINENO"; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011406 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011407 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 +020011408 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'` ;;
11409 *) 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'` ;;
11410 esac
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011411fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011412rm -f core conftest.err conftest.$ac_objext \
11413 conftest$ac_exeext conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011414 LIBS=$ac_check_soname_save_LIBS
11415fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011416if test "x$ac_cv_lib_soname_png" = "x"; then :
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011418$as_echo "not found" >&6; }
11419
11420else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011421 { $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 +020011422$as_echo "$ac_cv_lib_soname_png" >&6; }
11423
11424cat >>confdefs.h <<_ACEOF
11425#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11426_ACEOF
11427
11428
11429fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11431$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011432if ${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+:} false; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011433 $as_echo_n "(cached) " >&6
11434else
11435 ac_check_lib_save_LIBS=$LIBS
11436LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438/* end confdefs.h. */
11439
11440/* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11443#ifdef __cplusplus
11444extern "C"
11445#endif
11446char png_set_expand_gray_1_2_4_to_8 ();
11447int
11448main ()
11449{
11450return png_set_expand_gray_1_2_4_to_8 ();
11451 ;
11452 return 0;
11453}
11454_ACEOF
11455if ac_fn_c_try_link "$LINENO"; then :
11456 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11457else
11458 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11459fi
11460rm -f core conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11462LIBS=$ac_check_lib_save_LIBS
11463fi
11464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11465$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011466if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = xyes; then :
Marcus Meissner615e0e62010-02-27 23:13:21 +010011467 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11468
11469fi
11470
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011471 fi
Alexandre Julliard00302152007-07-02 19:54:00 +020011472fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011473if test "x$ac_cv_lib_soname_png" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011474 case "x$with_png" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011475 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 +010011476 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011477 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011478This is an error since --with-png was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011479esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011480fi
11481
Vincent Povirk73cd5692010-03-08 17:07:29 -060011482if test "$ac_cv_header_tiffio_h" = "yes"
11483then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11485$as_echo_n "checking for -ltiff... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011486if ${ac_cv_lib_soname_tiff+:} false; then :
Vincent Povirk73cd5692010-03-08 17:07:29 -060011487 $as_echo_n "(cached) " >&6
11488else
11489 ac_check_soname_save_LIBS=$LIBS
11490LIBS="-ltiff $LIBS"
11491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11492/* end confdefs.h. */
11493
11494/* Override any GCC internal prototype to avoid an error.
11495 Use char because int might match the return type of a GCC
11496 builtin and then its argument prototype would still apply. */
11497#ifdef __cplusplus
11498extern "C"
11499#endif
11500char TIFFClientOpen ();
11501int
11502main ()
11503{
11504return TIFFClientOpen ();
11505 ;
11506 return 0;
11507}
11508_ACEOF
11509if ac_fn_c_try_link "$LINENO"; then :
11510 case "$LIBEXT" in
11511 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11512 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'` ;;
11513 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11514 esac
11515fi
11516rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
11518 LIBS=$ac_check_soname_save_LIBS
11519fi
11520if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11522$as_echo "not found" >&6; }
11523
11524else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11526$as_echo "$ac_cv_lib_soname_tiff" >&6; }
11527
11528cat >>confdefs.h <<_ACEOF
11529#define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11530_ACEOF
11531
11532
11533fi
11534fi
11535if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11536 case "x$with_tiff" in
11537 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11538 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011539 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020011540This is an error since --with-tiff was requested." "$LINENO" 5 ;;
Vincent Povirk73cd5692010-03-08 17:07:29 -060011541esac
11542fi
11543
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011544if test "$ac_cv_header_mpg123_h" = "yes"
11545then
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11547$as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011548if ${ac_cv_lib_mpg123_mpg123_feed+:} false; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011549 $as_echo_n "(cached) " >&6
11550else
11551 ac_check_lib_save_LIBS=$LIBS
11552LIBS="-lmpg123 $LIBS"
11553cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11554/* end confdefs.h. */
11555
11556/* Override any GCC internal prototype to avoid an error.
11557 Use char because int might match the return type of a GCC
11558 builtin and then its argument prototype would still apply. */
11559#ifdef __cplusplus
11560extern "C"
11561#endif
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011562char mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011563int
11564main ()
11565{
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011566return mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011567 ;
11568 return 0;
11569}
11570_ACEOF
11571if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011572 ac_cv_lib_mpg123_mpg123_feed=yes
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011573else
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011574 ac_cv_lib_mpg123_mpg123_feed=no
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011575fi
11576rm -f core conftest.err conftest.$ac_objext \
11577 conftest$ac_exeext conftest.$ac_ext
11578LIBS=$ac_check_lib_save_LIBS
11579fi
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11581$as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011582if test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011583 LIBMPG123="-lmpg123"
11584
11585fi
11586
11587fi
Aric Stewart4430ab42010-03-17 10:58:32 -050011588if 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 -050011589 case "x$with_mpg123" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011590 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 -050011591 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011592 *) 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 +020011593This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011594esac
11595fi
Kristofer Henrikssonc58eff62010-05-24 15:04:42 -040011596test "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 -050011597
Chris Robinson862965f2009-08-25 03:26:35 -070011598if test "$ac_cv_header_AL_al_h" = "yes"
11599then
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11601$as_echo_n "checking for -lopenal... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011602if ${ac_cv_lib_soname_openal+:} false; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011603 $as_echo_n "(cached) " >&6
11604else
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011605 ac_check_soname_save_LIBS=$LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011606LIBS="-lopenal $LIBS"
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson862965f2009-08-25 03:26:35 -070011608/* end confdefs.h. */
11609
11610/* Override any GCC internal prototype to avoid an error.
11611 Use char because int might match the return type of a GCC
11612 builtin and then its argument prototype would still apply. */
11613#ifdef __cplusplus
11614extern "C"
11615#endif
11616char alGetSource3i ();
11617int
11618main ()
11619{
11620return alGetSource3i ();
11621 ;
11622 return 0;
11623}
11624_ACEOF
11625if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011626 case "$LIBEXT" in
11627 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11628 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'` ;;
11629 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11630 esac
Chris Robinson862965f2009-08-25 03:26:35 -070011631fi
11632rm -f core conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011634 LIBS=$ac_check_soname_save_LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011635fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011636if test "x$ac_cv_lib_soname_openal" = "x"; then :
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11638$as_echo "not found" >&6; }
11639
11640else
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11642$as_echo "$ac_cv_lib_soname_openal" >&6; }
11643
11644cat >>confdefs.h <<_ACEOF
11645#define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11646_ACEOF
11647
11648 LIBOPENAL="-lopenal"
11649
11650 ac_cv_lib_openal=yes
11651
11652cat >>confdefs.h <<_ACEOF
11653#define HAVE_OPENAL 1
11654_ACEOF
Chris Robinson862965f2009-08-25 03:26:35 -070011655
11656fi
Chris Robinson862965f2009-08-25 03:26:35 -070011657fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011658if test "x$ac_cv_lib_openal" != xyes; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011659 case "x$with_openal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011660 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 -070011661 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011662 *) 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 +020011663This is an error since --with-openal was requested." "$LINENO" 5 ;;
Chris Robinson862965f2009-08-25 03:26:35 -070011664esac
11665fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011666test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
Chris Robinson862965f2009-08-25 03:26:35 -070011667
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011668if test "$ac_cv_header_kstat_h" = "yes"
11669then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011671$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011672if ${ac_cv_lib_kstat_kstat_open+:} false; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011673 $as_echo_n "(cached) " >&6
11674else
11675 ac_check_lib_save_LIBS=$LIBS
11676LIBS="-lkstat $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011678/* end confdefs.h. */
11679
11680/* Override any GCC internal prototype to avoid an error.
11681 Use char because int might match the return type of a GCC
11682 builtin and then its argument prototype would still apply. */
11683#ifdef __cplusplus
11684extern "C"
11685#endif
11686char kstat_open ();
11687int
11688main ()
11689{
11690return kstat_open ();
11691 ;
11692 return 0;
11693}
11694_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011695if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011696 ac_cv_lib_kstat_kstat_open=yes
11697else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011698 ac_cv_lib_kstat_kstat_open=no
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011699fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011700rm -f core conftest.err conftest.$ac_objext \
11701 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011702LIBS=$ac_check_lib_save_LIBS
11703fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011705$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011706if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011707
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011708$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011709
11710 LIBKSTAT="-lkstat"
11711
11712fi
11713
11714fi
11715
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011717$as_echo_n "checking for -lodbc... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011718if ${ac_cv_lib_soname_odbc+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011719 $as_echo_n "(cached) " >&6
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011720else
11721 ac_check_soname_save_LIBS=$LIBS
11722LIBS="-lodbc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011724/* end confdefs.h. */
11725
11726/* Override any GCC internal prototype to avoid an error.
11727 Use char because int might match the return type of a GCC
11728 builtin and then its argument prototype would still apply. */
11729#ifdef __cplusplus
11730extern "C"
11731#endif
11732char SQLConnect ();
11733int
11734main ()
11735{
11736return SQLConnect ();
11737 ;
11738 return 0;
11739}
11740_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011741if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011742 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011743 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 +010011744 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'` ;;
11745 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11746 esac
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011747fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011748rm -f core conftest.err conftest.$ac_objext \
11749 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011750 LIBS=$ac_check_soname_save_LIBS
11751fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011752if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011754$as_echo "not found" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011755 cat >>confdefs.h <<_ACEOF
11756#define SONAME_LIBODBC "libodbc.$LIBEXT"
11757_ACEOF
11758
11759else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011761$as_echo "$ac_cv_lib_soname_odbc" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011762
11763cat >>confdefs.h <<_ACEOF
11764#define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11765_ACEOF
11766
11767
11768fi
11769
Alexandre Julliard98cb21f2011-03-17 11:42:17 +010011770test -n "$ALSALIBS" || enable_winealsa_drv=${enable_winealsa_drv:-no}
11771test -n "$COREAUDIO" || enable_winecoreaudio_drv=${enable_winecoreaudio_drv:-no}
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020011772test "x$ac_cv_member_oss_sysinfo_numaudioengines" = xyes || enable_wineoss_drv=${enable_wineoss_drv:-no}
Alexandre Julliard98cb21f2011-03-17 11:42:17 +010011773test "$ac_cv_header_linux_joystick_h" = "yes" || enable_winejoystick_drv=${enable_winejoystick_drv:-no}
11774
Austin Englisheb17b8c2011-07-23 23:05:04 -050011775if test "x$ALSALIBS$COREAUDIO" = "x" -a \
Alexandre Julliardf60a0f52011-05-02 20:06:49 +020011776 "x$ac_cv_member_oss_sysinfo_numaudioengines" != xyes -a \
Andrew Eikum55f9ac82011-07-13 14:20:47 -050011777 "x$with_alsa$with_coreaudio$with_oss" != xnonono
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011778then
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011779 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
Alexandre Julliardf9dec942007-07-10 15:14:15 +020011780fi
11781
11782
Alexandre Julliardfc094232003-04-14 21:46:41 +000011783EXTRACFLAGS=""
11784
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011785if test "x${GCC}" = "xyes"
11786then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000011787 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000011788
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011790$as_echo_n "checking for gcc strength-reduce bug... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011791if ${ac_cv_c_gcc_strength_bug+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011792 $as_echo_n "(cached) " >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011793else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011794 if test "$cross_compiling" = yes; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011795 ac_cv_c_gcc_strength_bug="yes"
11796else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011798/* end confdefs.h. */
Alexandre Julliardad356de2007-06-08 20:23:16 +020011799int L[4] = {0,1,2,3};
11800int
11801main ()
11802{
11803static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011804 unsigned int B = 3;
11805 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000011806 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000011807 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11808 L[i] = 4;
Alexandre Julliard95251a72009-02-16 12:46:58 +010011809 return (Array[1] != -2 || L[2] != 3)
Alexandre Julliardad356de2007-06-08 20:23:16 +020011810 ;
11811 return 0;
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011812}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011813_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011814if ac_fn_c_try_run "$LINENO"; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011815 ac_cv_c_gcc_strength_bug="no"
11816else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011817 ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011818fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011819rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11820 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011821fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011822
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011823fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011825$as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011826 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11827 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011828 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011829 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000011830
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011832$as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011833if ${ac_cv_cflags__fno_builtin+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011834 $as_echo_n "(cached) " >&6
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011835else
11836 ac_wine_try_cflags_saved=$CFLAGS
11837CFLAGS="$CFLAGS -fno-builtin"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011839/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011840int main(int argc, char **argv) { return 0; }
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011841_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011842if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011843 ac_cv_cflags__fno_builtin=yes
11844else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011845 ac_cv_cflags__fno_builtin=no
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011846fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011847rm -f core conftest.err conftest.$ac_objext \
11848 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011849CFLAGS=$ac_wine_try_cflags_saved
11850fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011852$as_echo "$ac_cv_cflags__fno_builtin" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011853if test $ac_cv_cflags__fno_builtin = yes; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011854 BUILTINFLAG="-fno-builtin"
11855
11856fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011858$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011859if ${ac_cv_cflags__fno_strict_aliasing+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011860 $as_echo_n "(cached) " >&6
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011861else
11862 ac_wine_try_cflags_saved=$CFLAGS
11863CFLAGS="$CFLAGS -fno-strict-aliasing"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011864cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011865/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011866int main(int argc, char **argv) { return 0; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011867_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011868if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011869 ac_cv_cflags__fno_strict_aliasing=yes
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011870else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011871 ac_cv_cflags__fno_strict_aliasing=no
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011872fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011873rm -f core conftest.err conftest.$ac_objext \
11874 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011875CFLAGS=$ac_wine_try_cflags_saved
11876fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011878$as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011879if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011880 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11881fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011883$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011884if ${ac_cv_cflags__Wdeclaration_after_statement+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011885 $as_echo_n "(cached) " >&6
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011886else
11887 ac_wine_try_cflags_saved=$CFLAGS
11888CFLAGS="$CFLAGS -Wdeclaration-after-statement"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011890/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011891int main(int argc, char **argv) { return 0; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011892_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011893if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011894 ac_cv_cflags__Wdeclaration_after_statement=yes
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011895else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011896 ac_cv_cflags__Wdeclaration_after_statement=no
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011897fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011898rm -f core conftest.err conftest.$ac_objext \
11899 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011900CFLAGS=$ac_wine_try_cflags_saved
11901fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011903$as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011904if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011905 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11906fi
Gerald Pfeifer8213f542011-05-08 02:53:23 +020011907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wempty-body" >&5
11908$as_echo_n "checking whether the compiler supports -Wempty-body... " >&6; }
11909if ${ac_cv_cflags__Wempty_body+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911else
11912 ac_wine_try_cflags_saved=$CFLAGS
11913CFLAGS="$CFLAGS -Wempty-body"
11914cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11915/* end confdefs.h. */
11916int main(int argc, char **argv) { return 0; }
11917_ACEOF
11918if ac_fn_c_try_link "$LINENO"; then :
11919 ac_cv_cflags__Wempty_body=yes
11920else
11921 ac_cv_cflags__Wempty_body=no
11922fi
11923rm -f core conftest.err conftest.$ac_objext \
11924 conftest$ac_exeext conftest.$ac_ext
11925CFLAGS=$ac_wine_try_cflags_saved
11926fi
11927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wempty_body" >&5
11928$as_echo "$ac_cv_cflags__Wempty_body" >&6; }
11929if test $ac_cv_cflags__Wempty_body = yes; then :
11930 EXTRACFLAGS="$EXTRACFLAGS -Wempty-body"
11931fi
Alexandre Julliard295806f2009-10-07 13:46:06 +020011932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11933$as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011934if ${ac_cv_cflags__Wstrict_prototypes+:} false; then :
Alexandre Julliard295806f2009-10-07 13:46:06 +020011935 $as_echo_n "(cached) " >&6
11936else
11937 ac_wine_try_cflags_saved=$CFLAGS
11938CFLAGS="$CFLAGS -Wstrict-prototypes"
11939cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11940/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011941int main(int argc, char **argv) { return 0; }
Alexandre Julliard295806f2009-10-07 13:46:06 +020011942_ACEOF
11943if ac_fn_c_try_link "$LINENO"; then :
11944 ac_cv_cflags__Wstrict_prototypes=yes
11945else
11946 ac_cv_cflags__Wstrict_prototypes=no
11947fi
11948rm -f core conftest.err conftest.$ac_objext \
11949 conftest$ac_exeext conftest.$ac_ext
11950CFLAGS=$ac_wine_try_cflags_saved
11951fi
11952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11953$as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11954if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11955 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11956fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011958$as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011959if ${ac_cv_cflags__Wtype_limits+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011960 $as_echo_n "(cached) " >&6
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011961else
11962 ac_wine_try_cflags_saved=$CFLAGS
11963CFLAGS="$CFLAGS -Wtype-limits"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011964cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011965/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011966int main(int argc, char **argv) { return 0; }
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011967_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011968if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011969 ac_cv_cflags__Wtype_limits=yes
11970else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011971 ac_cv_cflags__Wtype_limits=no
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011972fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011973rm -f core conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011975CFLAGS=$ac_wine_try_cflags_saved
11976fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011978$as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011979if test $ac_cv_cflags__Wtype_limits = yes; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011980 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
11981fi
Gerald Pfeifer3ec82c52011-04-10 20:38:52 +020011982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wunused-but-set-parameter" >&5
11983$as_echo_n "checking whether the compiler supports -Wunused-but-set-parameter... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020011984if ${ac_cv_cflags__Wunused_but_set_parameter+:} false; then :
Gerald Pfeifer3ec82c52011-04-10 20:38:52 +020011985 $as_echo_n "(cached) " >&6
11986else
11987 ac_wine_try_cflags_saved=$CFLAGS
11988CFLAGS="$CFLAGS -Wunused-but-set-parameter"
11989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11990/* end confdefs.h. */
11991int main(int argc, char **argv) { return 0; }
11992_ACEOF
11993if ac_fn_c_try_link "$LINENO"; then :
11994 ac_cv_cflags__Wunused_but_set_parameter=yes
11995else
11996 ac_cv_cflags__Wunused_but_set_parameter=no
11997fi
11998rm -f core conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
12000CFLAGS=$ac_wine_try_cflags_saved
12001fi
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wunused_but_set_parameter" >&5
12003$as_echo "$ac_cv_cflags__Wunused_but_set_parameter" >&6; }
12004if test $ac_cv_cflags__Wunused_but_set_parameter = yes; then :
12005 EXTRACFLAGS="$EXTRACFLAGS -Wunused-but-set-parameter"
12006fi
Gerald Pfeifereae58292010-01-02 15:13:43 +010012007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12008$as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012009if ${ac_cv_cflags__Wwrite_strings+:} false; then :
Gerald Pfeifereae58292010-01-02 15:13:43 +010012010 $as_echo_n "(cached) " >&6
12011else
12012 ac_wine_try_cflags_saved=$CFLAGS
12013CFLAGS="$CFLAGS -Wwrite-strings"
12014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12015/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012016int main(int argc, char **argv) { return 0; }
Gerald Pfeifereae58292010-01-02 15:13:43 +010012017_ACEOF
12018if ac_fn_c_try_link "$LINENO"; then :
12019 ac_cv_cflags__Wwrite_strings=yes
12020else
12021 ac_cv_cflags__Wwrite_strings=no
12022fi
12023rm -f core conftest.err conftest.$ac_objext \
12024 conftest$ac_exeext conftest.$ac_ext
12025CFLAGS=$ac_wine_try_cflags_saved
12026fi
12027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12028$as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12029if test $ac_cv_cflags__Wwrite_strings = yes; then :
12030 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12031fi
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012032
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012033 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012034 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12036$as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012037if ${ac_cv_c_string_h_warnings+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012038 $as_echo_n "(cached) " >&6
Mike McCormackc509bc42003-02-25 04:01:58 +000012039else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012041/* end confdefs.h. */
12042#include <string.h>
12043int
12044main ()
12045{
12046
12047 ;
12048 return 0;
12049}
12050_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012051if ac_fn_c_try_compile "$LINENO"; then :
Mike McCormackc509bc42003-02-25 04:01:58 +000012052 ac_cv_c_string_h_warnings=no
12053else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012054 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000012055fi
Jeremy White0ebeb532006-06-20 13:18:41 +020012056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012057fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012059$as_echo "$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012060 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012061 if test "$ac_cv_c_string_h_warnings" = "no"
12062 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012063 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000012064 fi
Alexandre Julliard12753c52009-10-02 14:39:49 +020012065
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012066 saved_CFLAGS="$CFLAGS"
12067 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12069$as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012070if ${ac_cv_c_logicalop_noisy+:} false; then :
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012071 $as_echo_n "(cached) " >&6
12072else
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074/* end confdefs.h. */
12075#include <string.h>
12076int
12077main ()
12078{
12079char*f(const char *h,char n) {return strchr(h,n);}
12080 ;
12081 return 0;
12082}
12083_ACEOF
12084if ac_fn_c_try_compile "$LINENO"; then :
12085 ac_cv_c_logicalop_noisy=no
12086else
12087 ac_cv_c_logicalop_noisy=yes
12088fi
12089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12090fi
12091{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12092$as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12093 CFLAGS="$saved_CFLAGS"
12094 if test "$ac_cv_c_logicalop_noisy" = "no"
12095 then
12096 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12097 fi
12098
Andrew Nguyen2eda9c72010-05-25 22:20:14 -050012099 if test "x$enable_maintainer_mode" = "xyes"
Alexandre Julliard12753c52009-10-02 14:39:49 +020012100 then
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12102$as_echo_n "checking whether the compiler supports -Werror... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012103if ${ac_cv_cflags__Werror+:} false; then :
Alexandre Julliard12753c52009-10-02 14:39:49 +020012104 $as_echo_n "(cached) " >&6
12105else
12106 ac_wine_try_cflags_saved=$CFLAGS
12107CFLAGS="$CFLAGS -Werror"
12108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12109/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012110int main(int argc, char **argv) { return 0; }
Alexandre Julliard12753c52009-10-02 14:39:49 +020012111_ACEOF
12112if ac_fn_c_try_link "$LINENO"; then :
12113 ac_cv_cflags__Werror=yes
12114else
12115 ac_cv_cflags__Werror=no
12116fi
12117rm -f core conftest.err conftest.$ac_objext \
12118 conftest$ac_exeext conftest.$ac_ext
12119CFLAGS=$ac_wine_try_cflags_saved
12120fi
12121{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12122$as_echo "$ac_cv_cflags__Werror" >&6; }
12123if test $ac_cv_cflags__Werror = yes; then :
12124 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12125fi
12126 fi
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020012127
12128 saved_CFLAGS="$CFLAGS"
12129 CFLAGS="$CFLAGS -Werror"
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12131$as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012132if ${ac_cv_have_ms_hook_prologue+:} false; then :
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020012133 $as_echo_n "(cached) " >&6
12134else
12135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12136/* end confdefs.h. */
12137int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12138int
12139main ()
12140{
12141
12142 ;
12143 return 0;
12144}
12145_ACEOF
12146if ac_fn_c_try_compile "$LINENO"; then :
12147 ac_cv_have_ms_hook_prologue="yes"
12148else
12149 ac_cv_have_ms_hook_prologue="no"
12150fi
12151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12152fi
12153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12154$as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12155 CFLAGS="$saved_CFLAGS"
12156 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12157 then
12158
12159$as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12160
12161 else
12162 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12163
12164 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012165fi
12166
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012167
Alexandre Julliard105793b2010-10-22 17:13:57 +020012168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12169$as_echo_n "checking for the need to disable Fortify... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012170if ${ac_cv_c_fortify_enabled+:} false; then :
Alexandre Julliard105793b2010-10-22 17:13:57 +020012171 $as_echo_n "(cached) " >&6
12172else
12173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12174/* end confdefs.h. */
12175#include <string.h>
12176int
12177main ()
12178{
12179#if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12180#error Fortify enabled
12181#endif
12182 ;
12183 return 0;
12184}
12185_ACEOF
12186if ac_fn_c_try_compile "$LINENO"; then :
12187 ac_cv_c_fortify_enabled=no
12188else
12189 ac_cv_c_fortify_enabled=yes
12190fi
12191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12192fi
12193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12194$as_echo "$ac_cv_c_fortify_enabled" >&6; }
12195if test "$ac_cv_c_fortify_enabled" = yes
12196then
Alexandre Julliardb10fb862010-10-29 14:25:01 +020012197 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
Alexandre Julliard105793b2010-10-22 17:13:57 +020012198fi
12199
12200
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012202$as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012203if ${ac_cv_c_extern_prefix+:} false; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012204 $as_echo_n "(cached) " >&6
12205else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012207/* end confdefs.h. */
12208extern int ac_test;
12209int
12210main ()
12211{
12212asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12213 ;
12214 return 0;
12215}
12216_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012217if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012218 ac_cv_c_extern_prefix="yes"
12219else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012220 ac_cv_c_extern_prefix="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012221fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012222rm -f core conftest.err conftest.$ac_objext \
12223 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012224fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012226$as_echo "$ac_cv_c_extern_prefix" >&6; }
12227
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012228case $host_cpu in
12229 *i[3456789]86*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012231$as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012232if ${ac_cv_c_stdcall_suffix+:} false; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012233 $as_echo_n "(cached) " >&6
12234else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012236/* end confdefs.h. */
12237#ifndef _MSC_VER
12238#define __stdcall __attribute__((__stdcall__))
12239#endif
12240int __stdcall ac_test(int i) { return i; }
12241int
12242main ()
12243{
12244asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12245 ;
12246 return 0;
12247}
12248_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012249if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012250 ac_cv_c_stdcall_suffix="yes"
12251else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012252 ac_cv_c_stdcall_suffix="no"
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012253fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012254rm -f core conftest.err conftest.$ac_objext \
12255 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012256fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012258$as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12259 *) ac_cv_c_stdcall_suffix="no" ;;
12260esac
12261
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012262
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012263if test "$ac_cv_c_extern_prefix" = "yes"
12264then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012265 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012266
12267 asm_name_prefix="_"
12268else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012269 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012270
12271 asm_name_prefix=""
12272fi
12273
12274
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012275if test "$ac_cv_c_stdcall_suffix" = "yes"
12276then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012277 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012278
12279else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012280 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012281
12282fi
12283
12284
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012286$as_echo_n "checking how to define a function in assembly code... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012287if ${ac_cv_asm_func_def+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012288 $as_echo_n "(cached) " >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012289else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012291/* end confdefs.h. */
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012292
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012293int
12294main ()
12295{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012296asm("\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 +000012297 ;
12298 return 0;
12299}
12300_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012301if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012302 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012303else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012305/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012306
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012307int
12308main ()
12309{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012310asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012311 ;
12312 return 0;
12313}
12314_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012315if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012316 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012317else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012319/* end confdefs.h. */
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012320
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012321int
12322main ()
12323{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012324asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012325 ;
12326 return 0;
12327}
12328_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012329if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012330 ac_cv_asm_func_def=".type 2"
12331else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012332 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012333fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012334rm -f core conftest.err conftest.$ac_objext \
12335 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012336fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012337rm -f core conftest.err conftest.$ac_objext \
12338 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012339fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012340rm -f core conftest.err conftest.$ac_objext \
12341 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012342fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012344$as_echo "$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012345
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012346
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012347case "$ac_cv_asm_func_def" in
12348 ".def")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012349 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012350
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012351 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012352 ".type @function")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012353 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012354
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012355 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012356 ".type 2")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012357 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012358
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012359 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012360 *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012361 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012362
12363 asm_func_header="" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012364esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012365
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012367$as_echo_n "checking whether asm() works outside of functions... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012368if ${ac_cv_c_asm_outside_funcs+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012369 $as_echo_n "(cached) " >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012370else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012372/* end confdefs.h. */
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012373asm(".text\n\t.long 0");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012374int
12375main ()
12376{
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012377
12378 ;
12379 return 0;
12380}
12381_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012382if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012383 ac_cv_c_asm_outside_funcs="yes"
12384else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012385 ac_cv_c_asm_outside_funcs="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012386fi
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012387rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012390$as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12391
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012393$as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012394if ${ac_cv_c_dot_previous+:} false; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012395 $as_echo_n "(cached) " >&6
12396else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012398/* end confdefs.h. */
12399
12400int
12401main ()
12402{
12403asm(".text\nac_test:\t.long 0\n\t.previous");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012404 ;
12405 return 0;
12406}
12407_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012408if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012409 ac_cv_c_dot_previous="yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012410else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012411 ac_cv_c_dot_previous="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012412fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012413rm -f core conftest.err conftest.$ac_objext \
12414 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012415fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012417$as_echo "$ac_cv_c_dot_previous" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012418
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012420$as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012421if ${ac_cv_c_cfi_support+:} false; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012422 $as_echo_n "(cached) " >&6
12423else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012425/* end confdefs.h. */
12426asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12427int
12428main ()
12429{
12430
12431 ;
12432 return 0;
12433}
12434_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012435if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012436 ac_cv_c_cfi_support="yes"
12437else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012438 ac_cv_c_cfi_support="no"
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012439fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012440rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12441fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012443$as_echo "$ac_cv_c_cfi_support" >&6; }
12444
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012445asm_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 +020012446asm_func_trailer=""
12447if test "$ac_cv_c_dot_previous" = "yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012448then
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012449 asm_func_trailer="\\n\\t.previous"
12450fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012451if test "$ac_cv_c_cfi_support" = "yes"
12452then
12453 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12454 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012455
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012456$as_echo "#define __ASM_CFI(str) str" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012457
Alexandre Julliard6c142382010-04-11 12:47:30 +020012458 UNWINDFLAGS=-fasynchronous-unwind-tables
12459
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012460else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012461 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012462
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012463fi
12464
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012465asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12466
12467
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012468if test "$ac_cv_c_asm_outside_funcs" = "yes"
12469then
12470 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012471#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 +000012472_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012473
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012474else
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012475 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012476#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 +000012477_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012478
12479fi
12480
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012481$as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012482
12483
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012484$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 +020012485
12486
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012487
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012488LDPATH=""
12489
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012490case $build_os in
12491 cygwin*|mingw32*)
Alexandre Julliardb860c4a2009-09-01 22:36:13 +020012492 TOOLSEXT=".exe"
12493
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012494 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012495 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000012496 darwin*|macosx*)
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012497 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012498 *)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012499 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012500 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012501esac
12502
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012503case $host_os in
12504 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000012505 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012506
Alexandre Julliardbd9852c2010-09-19 12:40:12 +020012507 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012508
12509 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000012510esac
12511
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012512MAIN_BINARY="wine"
12513
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020012514test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012515
Alexandre Julliard0a086202010-12-16 16:54:15 +010012516case $host_os in
12517 linux*)
12518 case $host_cpu in
12519 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12520 ;;
12521 x86_64*) EXTRA_BINARIES="wine64-preloader"
Tijl Coosemans9f5c69c2007-08-24 15:46:36 +020012522 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010012523 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000012524 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012525esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012526
12527
Alexandre Julliard95251a72009-02-16 12:46:58 +010012528ac_save_CFLAGS="$CFLAGS"
12529CFLAGS="$CFLAGS $BUILTINFLAG"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012530for ac_func in \
Stefan Dösingera7741522011-05-24 21:05:28 +020012531 _finite \
12532 _isnan \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012533 _pclose \
12534 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012535 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000012536 _spawnvp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012537 _strdup \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012538 _stricmp \
12539 _strnicmp \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012540 _strtoi64 \
12541 _strtoui64 \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012542 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010012543 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012544 chsize \
Alexandre Julliarde533e972006-08-15 12:11:30 +020012545 dlopen \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000012546 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000012547 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012548 finite \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +020012549 fnmatch \
Hans Leidekkerbed38422004-10-14 03:08:57 +000012550 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012551 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000012552 fstatfs \
12553 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012554 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000012555 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000012556 futimesat \
Charles Davis4e44e152011-01-18 13:09:44 -070012557 getattrlist \
Alexandre Julliarda9f214c2006-11-13 15:42:48 +010012558 getdirentries \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000012559 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012560 getpagesize \
Alexandre Julliard142dab82002-07-01 18:17:30 +000012561 getpwuid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000012562 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000012563 getuid \
Alexandre Julliardc8278922006-08-04 22:11:00 +020012564 kqueue \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000012565 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012566 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000012567 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012568 pclose \
Alexandre Julliard6f68b772009-07-01 12:13:34 +020012569 pipe2 \
Alexandre Julliard10892602006-08-15 11:41:59 +020012570 poll \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012571 popen \
Albert Lee01b972d2009-11-20 18:35:26 -050012572 port_create \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020012573 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012574 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000012575 pwrite \
Rob Shearman87175c62008-10-03 12:55:21 +010012576 readdir \
Alexandre Julliarde2930742004-01-08 05:07:05 +000012577 readlink \
Jeremy White08c0f692004-10-09 02:26:29 +000012578 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012579 select \
Gerald Pfeifer39f67272008-01-20 21:23:08 +010012580 setproctitle \
Paul Millardf10b7d2006-07-16 15:06:28 +010012581 setrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012582 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012583 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000012584 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012585 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000012586 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012587 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000012588 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012589 strcasecmp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012590 strdup \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012591 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012592 strncasecmp \
Louis Lenders6c04a182006-12-17 17:56:50 +000012593 strtold \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012594 strtoll \
12595 strtoull \
Alexandre Julliard0fbd5562008-12-22 10:47:16 +010012596 symlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012597 tcgetattr \
Tijl Coosemans0c4f1522007-08-23 14:12:37 +020012598 thr_kill2 \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012599 timegm \
12600 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012601 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012602 wait4 \
12603 waitpid \
12604
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012605do :
12606 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12607ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020012608if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012609 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012610#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012611_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012612
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012613fi
12614done
12615
Alexandre Julliard95251a72009-02-16 12:46:58 +010012616CFLAGS="$ac_save_CFLAGS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012617
Alexandre Julliarde533e972006-08-15 12:11:30 +020012618if test "$ac_cv_func_dlopen" = no
12619then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012621$as_echo_n "checking for dlopen in -ldl... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012622if ${ac_cv_lib_dl_dlopen+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012623 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012624else
12625 ac_check_lib_save_LIBS=$LIBS
12626LIBS="-ldl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012628/* end confdefs.h. */
12629
12630/* Override any GCC internal prototype to avoid an error.
12631 Use char because int might match the return type of a GCC
12632 builtin and then its argument prototype would still apply. */
12633#ifdef __cplusplus
12634extern "C"
12635#endif
12636char dlopen ();
12637int
12638main ()
12639{
12640return dlopen ();
12641 ;
12642 return 0;
12643}
12644_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012645if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012646 ac_cv_lib_dl_dlopen=yes
12647else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012648 ac_cv_lib_dl_dlopen=no
Alexandre Julliarde533e972006-08-15 12:11:30 +020012649fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012650rm -f core conftest.err conftest.$ac_objext \
12651 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012652LIBS=$ac_check_lib_save_LIBS
12653fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012655$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012656if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012657 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
Alexandre Julliarde533e972006-08-15 12:11:30 +020012658 LIBDL="-ldl"
12659
12660fi
12661
12662fi
12663ac_wine_check_funcs_save_LIBS="$LIBS"
12664LIBS="$LIBS $LIBDL"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012665for ac_func in dladdr
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012666do :
12667 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
Alexandre Julliard9797da42011-04-27 17:37:43 +020012668if test "x$ac_cv_func_dladdr" = xyes; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012669 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012670#define HAVE_DLADDR 1
Alexandre Julliarde533e972006-08-15 12:11:30 +020012671_ACEOF
12672
12673fi
12674done
12675
12676LIBS="$ac_wine_check_funcs_save_LIBS"
12677
Alexandre Julliard10892602006-08-15 11:41:59 +020012678if test "$ac_cv_func_poll" = no
12679then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012681$as_echo_n "checking for poll in -lpoll... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012682if ${ac_cv_lib_poll_poll+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012683 $as_echo_n "(cached) " >&6
Alexandre Julliard10892602006-08-15 11:41:59 +020012684else
12685 ac_check_lib_save_LIBS=$LIBS
12686LIBS="-lpoll $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012688/* end confdefs.h. */
12689
12690/* Override any GCC internal prototype to avoid an error.
12691 Use char because int might match the return type of a GCC
12692 builtin and then its argument prototype would still apply. */
12693#ifdef __cplusplus
12694extern "C"
12695#endif
12696char poll ();
12697int
12698main ()
12699{
12700return poll ();
12701 ;
12702 return 0;
12703}
12704_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012705if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard10892602006-08-15 11:41:59 +020012706 ac_cv_lib_poll_poll=yes
12707else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012708 ac_cv_lib_poll_poll=no
Alexandre Julliard10892602006-08-15 11:41:59 +020012709fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012710rm -f core conftest.err conftest.$ac_objext \
12711 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012712LIBS=$ac_check_lib_save_LIBS
12713fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012715$as_echo "$ac_cv_lib_poll_poll" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012716if test "x$ac_cv_lib_poll_poll" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012717 $as_echo "#define HAVE_POLL 1" >>confdefs.h
Alexandre Julliard10892602006-08-15 11:41:59 +020012718 LIBPOLL="-lpoll"
12719
12720fi
12721
12722fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012723
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012725$as_echo_n "checking for library containing gethostbyname... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012726if ${ac_cv_search_gethostbyname+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012727 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012728else
Alexandre Julliard28710412007-04-23 16:31:58 +020012729 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012731/* end confdefs.h. */
12732
12733/* Override any GCC internal prototype to avoid an error.
12734 Use char because int might match the return type of a GCC
12735 builtin and then its argument prototype would still apply. */
12736#ifdef __cplusplus
12737extern "C"
12738#endif
12739char gethostbyname ();
12740int
12741main ()
12742{
12743return gethostbyname ();
12744 ;
12745 return 0;
12746}
12747_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012748for ac_lib in '' nsl; do
12749 if test -z "$ac_lib"; then
12750 ac_res="none required"
12751 else
12752 ac_res=-l$ac_lib
12753 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12754 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012755 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012756 ac_cv_search_gethostbyname=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012757fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012758rm -f core conftest.err conftest.$ac_objext \
12759 conftest$ac_exeext
Alexandre Julliard9797da42011-04-27 17:37:43 +020012760 if ${ac_cv_search_gethostbyname+:} false; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012761 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012762fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012763done
Alexandre Julliard9797da42011-04-27 17:37:43 +020012764if ${ac_cv_search_gethostbyname+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012765
Alexandre Julliard28710412007-04-23 16:31:58 +020012766else
12767 ac_cv_search_gethostbyname=no
12768fi
12769rm conftest.$ac_ext
12770LIBS=$ac_func_search_save_LIBS
12771fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012773$as_echo "$ac_cv_search_gethostbyname" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012774ac_res=$ac_cv_search_gethostbyname
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012775if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012776 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012777
12778fi
12779
Alexandre Julliarde533e972006-08-15 12:11:30 +020012780
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012782$as_echo_n "checking for library containing connect... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012783if ${ac_cv_search_connect+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012784 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012785else
Alexandre Julliard28710412007-04-23 16:31:58 +020012786 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012788/* end confdefs.h. */
12789
12790/* Override any GCC internal prototype to avoid an error.
12791 Use char because int might match the return type of a GCC
12792 builtin and then its argument prototype would still apply. */
12793#ifdef __cplusplus
12794extern "C"
12795#endif
12796char connect ();
12797int
12798main ()
12799{
12800return connect ();
12801 ;
12802 return 0;
12803}
12804_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012805for ac_lib in '' socket; do
12806 if test -z "$ac_lib"; then
12807 ac_res="none required"
12808 else
12809 ac_res=-l$ac_lib
12810 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12811 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012812 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012813 ac_cv_search_connect=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012814fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012815rm -f core conftest.err conftest.$ac_objext \
12816 conftest$ac_exeext
Alexandre Julliard9797da42011-04-27 17:37:43 +020012817 if ${ac_cv_search_connect+:} false; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012818 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012819fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012820done
Alexandre Julliard9797da42011-04-27 17:37:43 +020012821if ${ac_cv_search_connect+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012822
Alexandre Julliard28710412007-04-23 16:31:58 +020012823else
12824 ac_cv_search_connect=no
12825fi
12826rm conftest.$ac_ext
12827LIBS=$ac_func_search_save_LIBS
12828fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012830$as_echo "$ac_cv_search_connect" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012831ac_res=$ac_cv_search_connect
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012832if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012833 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012834
12835fi
12836
Alexandre Julliarde533e972006-08-15 12:11:30 +020012837
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012839$as_echo_n "checking for library containing inet_aton... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012840if ${ac_cv_search_inet_aton+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012841 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012842else
Alexandre Julliard28710412007-04-23 16:31:58 +020012843 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012845/* end confdefs.h. */
12846
12847/* Override any GCC internal prototype to avoid an error.
12848 Use char because int might match the return type of a GCC
12849 builtin and then its argument prototype would still apply. */
12850#ifdef __cplusplus
12851extern "C"
12852#endif
12853char inet_aton ();
12854int
12855main ()
12856{
12857return inet_aton ();
12858 ;
12859 return 0;
12860}
12861_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012862for ac_lib in '' resolv; do
12863 if test -z "$ac_lib"; then
12864 ac_res="none required"
12865 else
12866 ac_res=-l$ac_lib
12867 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12868 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012869 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012870 ac_cv_search_inet_aton=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012871fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012872rm -f core conftest.err conftest.$ac_objext \
12873 conftest$ac_exeext
Alexandre Julliard9797da42011-04-27 17:37:43 +020012874 if ${ac_cv_search_inet_aton+:} false; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012875 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012876fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012877done
Alexandre Julliard9797da42011-04-27 17:37:43 +020012878if ${ac_cv_search_inet_aton+:} false; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012879
Alexandre Julliard28710412007-04-23 16:31:58 +020012880else
12881 ac_cv_search_inet_aton=no
12882fi
12883rm conftest.$ac_ext
12884LIBS=$ac_func_search_save_LIBS
12885fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012887$as_echo "$ac_cv_search_inet_aton" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012888ac_res=$ac_cv_search_inet_aton
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012889if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012890 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012891
12892fi
12893
Alexandre Julliarde533e972006-08-15 12:11:30 +020012894
Ben Taylor41c59962007-04-23 13:41:42 +000012895for ac_func in \
12896 getaddrinfo \
12897 getnameinfo \
12898 getnetbyname \
12899 getprotobyname \
12900 getprotobynumber \
12901 getservbyport \
12902 inet_network \
Austin English06566912009-03-28 00:13:09 -050012903 inet_ntop \
12904 inet_pton \
Ben Taylor41c59962007-04-23 13:41:42 +000012905 sendmsg \
Alexandre Julliard98bec052009-03-26 11:07:28 +010012906 socketpair \
Ben Taylor41c59962007-04-23 13:41:42 +000012907
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012908do :
12909 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12910ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020012911if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Ben Taylor41c59962007-04-23 13:41:42 +000012912 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012913#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Ben Taylor41c59962007-04-23 13:41:42 +000012914_ACEOF
12915
12916fi
12917done
12918
12919
Francois Gougetbcba2702008-07-10 12:36:06 +020012920LDAPLIBS=""
12921
12922if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12923then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012924 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12925"
Alexandre Julliard9797da42011-04-27 17:37:43 +020012926if test "x$ac_cv_type_LDAPSortKey" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012928$as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012929if ${ac_cv_lib_ldap_r_ldap_initialize+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012930 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020012931else
12932 ac_check_lib_save_LIBS=$LIBS
12933LIBS="-lldap_r $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012935/* end confdefs.h. */
12936
12937/* Override any GCC internal prototype to avoid an error.
12938 Use char because int might match the return type of a GCC
12939 builtin and then its argument prototype would still apply. */
12940#ifdef __cplusplus
12941extern "C"
12942#endif
12943char ldap_initialize ();
12944int
12945main ()
12946{
12947return ldap_initialize ();
12948 ;
12949 return 0;
12950}
12951_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012952if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012953 ac_cv_lib_ldap_r_ldap_initialize=yes
12954else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012955 ac_cv_lib_ldap_r_ldap_initialize=no
Francois Gougetbcba2702008-07-10 12:36:06 +020012956fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012957rm -f core conftest.err conftest.$ac_objext \
12958 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012959LIBS=$ac_check_lib_save_LIBS
12960fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012962$as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012963if test "x$ac_cv_lib_ldap_r_ldap_initialize" = xyes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012965$as_echo_n "checking for ber_init in -llber... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020012966if ${ac_cv_lib_lber_ber_init+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012967 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020012968else
12969 ac_check_lib_save_LIBS=$LIBS
12970LIBS="-llber $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012972/* end confdefs.h. */
12973
12974/* Override any GCC internal prototype to avoid an error.
12975 Use char because int might match the return type of a GCC
12976 builtin and then its argument prototype would still apply. */
12977#ifdef __cplusplus
12978extern "C"
12979#endif
12980char ber_init ();
12981int
12982main ()
12983{
12984return ber_init ();
12985 ;
12986 return 0;
12987}
12988_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012989if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012990 ac_cv_lib_lber_ber_init=yes
12991else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012992 ac_cv_lib_lber_ber_init=no
Francois Gougetbcba2702008-07-10 12:36:06 +020012993fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012994rm -f core conftest.err conftest.$ac_objext \
12995 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012996LIBS=$ac_check_lib_save_LIBS
12997fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012999$as_echo "$ac_cv_lib_lber_ber_init" >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013000if test "x$ac_cv_lib_lber_ber_init" = xyes; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013001
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013002$as_echo "#define HAVE_LDAP 1" >>confdefs.h
Francois Gougetbcba2702008-07-10 12:36:06 +020013003
13004 LDAPLIBS="-lldap_r -llber"
13005fi
13006
13007fi
13008
13009fi
13010
13011 ac_wine_check_funcs_save_LIBS="$LIBS"
13012LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Francois Gougetbcba2702008-07-10 12:36:06 +020013013for ac_func in \
13014 ldap_count_references \
13015 ldap_first_reference \
13016 ldap_next_reference \
13017 ldap_parse_reference \
13018 ldap_parse_sort_control \
13019 ldap_parse_sortresponse_control \
13020 ldap_parse_vlv_control \
13021 ldap_parse_vlvresponse_control
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013022do :
13023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13024ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013025if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013026 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010013027#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Francois Gougetbcba2702008-07-10 12:36:06 +020013028_ACEOF
13029
13030fi
13031done
13032
13033LIBS="$ac_wine_check_funcs_save_LIBS"
13034fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013035if test "x$LDAPLIBS" = "x"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013036 case "x$with_ldap" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010013037 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 +020013038 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013039 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
Alexandre Julliard9797da42011-04-27 17:37:43 +020013040This is an error since --with-ldap was requested." "$LINENO" 5 ;;
Francois Gougetbcba2702008-07-10 12:36:06 +020013041esac
13042fi
13043
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010013045$as_echo_n "checking whether mkdir takes only one argument... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013046if ${wine_cv_one_arg_mkdir+:} false; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010013047 $as_echo_n "(cached) " >&6
13048else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard921e6622008-12-22 10:39:11 +010013050/* end confdefs.h. */
13051#include <sys/stat.h>
13052int
13053main ()
13054{
13055mkdir("foo");
13056 ;
13057 return 0;
13058}
13059_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013060if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010013061 wine_cv_one_arg_mkdir=yes
13062else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013063 wine_cv_one_arg_mkdir=no
Alexandre Julliard921e6622008-12-22 10:39:11 +010013064fi
Alexandre Julliard921e6622008-12-22 10:39:11 +010013065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13066fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010013068$as_echo "$wine_cv_one_arg_mkdir" >&6; }
13069if test "$wine_cv_one_arg_mkdir" = "yes"
13070then
13071
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013072$as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
Alexandre Julliard921e6622008-12-22 10:39:11 +010013073
13074fi
13075
Andrew Nguyen2f22a502011-02-22 07:10:22 -060013076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13077$as_echo_n "checking for sched_setaffinity... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013078if ${wine_cv_have_sched_setaffinity+:} false; then :
Andrew Nguyen2f22a502011-02-22 07:10:22 -060013079 $as_echo_n "(cached) " >&6
13080else
13081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13082/* end confdefs.h. */
13083#define _GNU_SOURCE
13084#include <sched.h>
13085int
13086main ()
13087{
13088sched_setaffinity(0, 0, 0);
13089 ;
13090 return 0;
13091}
13092_ACEOF
13093if ac_fn_c_try_link "$LINENO"; then :
13094 wine_cv_have_sched_setaffinity=yes
13095else
13096 wine_cv_have_sched_setaffinity=no
13097fi
13098rm -f core conftest.err conftest.$ac_objext \
13099 conftest$ac_exeext conftest.$ac_ext
13100fi
13101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13102$as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13103if test "$wine_cv_have_sched_setaffinity" = "yes"
13104then
13105
13106$as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13107
13108fi
13109
Ben Taylor41c59962007-04-23 13:41:42 +000013110
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013112$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013113if ${ac_cv_c_const+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013114 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013115else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013117/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013118
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013119int
13120main ()
13121{
13122/* FIXME: Include the comments suggested by Paul. */
13123#ifndef __cplusplus
13124 /* Ultrix mips cc rejects this. */
13125 typedef int charset[2];
Phil Krylovf0ca5862006-11-05 23:03:46 +030013126 const charset cs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013127 /* SunOS 4.1.1 cc rejects this. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030013128 char const *const *pcpcc;
13129 char **ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013130 /* NEC SVR4.0.2 mips cc rejects this. */
13131 struct point {int x, y;};
13132 static struct point const zero = {0,0};
13133 /* AIX XL C 1.02.0.0 rejects this.
13134 It does not let you subtract one const X* pointer from another in
13135 an arm of an if-expression whose if-part is not a constant
13136 expression */
13137 const char *g = "string";
Phil Krylovf0ca5862006-11-05 23:03:46 +030013138 pcpcc = &g + (g ? g-g : 0);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013139 /* HPUX 7.0 cc rejects these. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030013140 ++pcpcc;
13141 ppc = (char**) pcpcc;
13142 pcpcc = (char const *const *) ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013143 { /* SCO 3.2v4 cc rejects this. */
13144 char *t;
13145 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013146
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013147 *t++ = 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013148 if (s) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013149 }
13150 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13151 int x[] = {25, 17};
13152 const int *foo = &x[0];
13153 ++foo;
13154 }
13155 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13156 typedef const int *iptr;
13157 iptr p = 0;
13158 ++p;
13159 }
13160 { /* AIX XL C 1.02.0.0 rejects this saying
13161 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13162 struct s { int j; const int *ap[3]; };
13163 struct s *b; b->j = 5;
13164 }
13165 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13166 const int foo = 10;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013167 if (!foo) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013168 }
Phil Krylovf0ca5862006-11-05 23:03:46 +030013169 return !cs[0] && !zero.x;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013170#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013171
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013172 ;
13173 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013174}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013175_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013176if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013177 ac_cv_c_const=yes
13178else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013179 ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013180fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013182fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013184$as_echo "$ac_cv_c_const" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013185if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013186
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013187$as_echo "#define const /**/" >>confdefs.h
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013188
13189fi
13190
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013192$as_echo_n "checking for inline... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013193if ${ac_cv_c_inline+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013194 $as_echo_n "(cached) " >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013195else
13196 ac_cv_c_inline=no
13197for ac_kw in inline __inline__ __inline; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013199/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013200#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013201typedef int foo_t;
13202static $ac_kw foo_t static_foo () {return 0; }
13203$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013204#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013205
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013206_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013207if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013208 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013209fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013211 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013212done
13213
13214fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013216$as_echo "$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000013217
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013218case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013219 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000013220 *)
13221 case $ac_cv_c_inline in
13222 no) ac_val=;;
13223 *) ac_val=$ac_cv_c_inline;;
13224 esac
13225 cat >>confdefs.h <<_ACEOF
13226#ifndef __cplusplus
13227#define inline $ac_val
13228#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013229_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000013230 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013231esac
13232
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013233ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013234if test "x$ac_cv_type_mode_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013235
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013236cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013237#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013238_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013239
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013240
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013241fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013242ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013243if test "x$ac_cv_type_off_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013244
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013245cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013246#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013247_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013248
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013249
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013250fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013251ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013252if test "x$ac_cv_type_pid_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013253
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013254cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013255#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013256_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013257
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013258
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013259fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013260ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013261if test "x$ac_cv_type_size_t" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013262
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013263cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013264#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013265_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013266
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013267
13268fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013269ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013270if test "x$ac_cv_type_ssize_t" = xyes; then :
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013271
13272cat >>confdefs.h <<_ACEOF
13273#define HAVE_SSIZE_T 1
13274_ACEOF
13275
13276
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013277fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013278ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013279if test "x$ac_cv_type_long_long" = xyes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013280
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013281cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013282#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013283_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013284
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013285
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013286fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013287ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013288if test "x$ac_cv_type_fsblkcnt_t" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013289
13290cat >>confdefs.h <<_ACEOF
13291#define HAVE_FSBLKCNT_T 1
13292_ACEOF
13293
13294
13295fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013296ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013297if test "x$ac_cv_type_fsfilcnt_t" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013298
13299cat >>confdefs.h <<_ACEOF
13300#define HAVE_FSFILCNT_T 1
13301_ACEOF
13302
13303
13304fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013305
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013306ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
Alexandre Julliardabf50482008-10-31 12:56:53 +010013307#include <signal.h>
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013308"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013309if test "x$ac_cv_type_sigset_t" = xyes; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013310
13311cat >>confdefs.h <<_ACEOF
13312#define HAVE_SIGSET_T 1
13313_ACEOF
13314
13315
13316fi
13317
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013318ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13319"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013320if test "x$ac_cv_type_request_sense" = xyes; then :
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000013321
13322cat >>confdefs.h <<_ACEOF
13323#define HAVE_REQUEST_SENSE 1
13324_ACEOF
13325
13326
13327fi
13328
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013329
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013330ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
Austin English68f2db22009-01-29 08:28:37 -060013331#ifdef HAVE_SYS_SOCKET_H
13332#include <sys/socket.h>
13333#endif
13334#ifdef HAVE_SYS_SOCKETVAR_H
13335#include <sys/socketvar.h>
13336#endif
13337#ifdef HAVE_NET_ROUTE_H
13338#include <net/route.h>
13339#endif
13340#ifdef HAVE_NETINET_IN_H
13341#include <netinet/in.h>
13342#endif
13343#ifdef HAVE_NETINET_IN_SYSTM_H
13344#include <netinet/in_systm.h>
13345#endif
13346#ifdef HAVE_NETINET_IP_H
13347#include <netinet/ip.h>
13348#endif
13349#ifdef HAVE_NETINET_IN_PCB_H
13350#include <netinet/in_pcb.h>
13351#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013352"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013353if test "x$ac_cv_type_struct_xinpgen" = xyes; then :
Austin English68f2db22009-01-29 08:28:37 -060013354
13355cat >>confdefs.h <<_ACEOF
13356#define HAVE_STRUCT_XINPGEN 1
13357_ACEOF
13358
13359
13360fi
13361
13362
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013363ac_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 +000013364#include <linux/input.h>
13365#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013366"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013367if test "x$ac_cv_member_struct_ff_effect_direction" = xyes; then :
Daniel Remenake491e8f2005-07-29 14:18:58 +000013368
13369cat >>confdefs.h <<_ACEOF
13370#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13371_ACEOF
13372
13373
13374fi
13375
13376
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013378$as_echo_n "checking for sigaddset... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013379if ${wine_cv_have_sigaddset+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013380 $as_echo_n "(cached) " >&6
Paul Millar10a6c562004-12-07 17:19:54 +000013381else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013383/* end confdefs.h. */
13384#include <signal.h>
13385int
13386main ()
13387{
13388sigset_t set; sigaddset(&set,SIGTERM);
13389 ;
13390 return 0;
13391}
13392_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013393if ac_fn_c_try_link "$LINENO"; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013394 wine_cv_have_sigaddset=yes
13395else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013396 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000013397fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013398rm -f core conftest.err conftest.$ac_objext \
13399 conftest$ac_exeext conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013400fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013402$as_echo "$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000013403if test "$wine_cv_have_sigaddset" = "yes"
13404then
13405
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013406$as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
Paul Millar10a6c562004-12-07 17:19:54 +000013407
13408fi
13409
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013410
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013411{ $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 +010013412$as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013413if ${wine_cv_linux_gethostbyname_r_6+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013414 $as_echo_n "(cached) " >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013415else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013417/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000013418#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013419int
13420main ()
13421{
Rein Klazesff7a61f2000-09-24 19:41:57 +000013422
Ken Thomases20d9bad2007-10-19 16:18:51 -050013423 char *name=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013424 struct hostent he;
13425 struct hostent *result;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013426 char *buf=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013427 int bufsize=0;
Austin English8521ebe2011-06-13 21:26:40 -070013428 int errnr;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013429 char *addr=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013430 int addrlen=0;
13431 int addrtype=0;
Austin English8521ebe2011-06-13 21:26:40 -070013432 gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13433 gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013434
13435 ;
13436 return 0;
13437}
13438_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013439if ac_fn_c_try_link "$LINENO"; then :
Rein Klazesff7a61f2000-09-24 19:41:57 +000013440 wine_cv_linux_gethostbyname_r_6=yes
13441else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013442 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000013443
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013444fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013445rm -f core conftest.err conftest.$ac_objext \
13446 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013447
13448fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013450$as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000013451 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13452 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013453
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013454$as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
Rein Klazesff7a61f2000-09-24 19:41:57 +000013455
13456 fi
13457
Marcus Meissner028e9a11999-08-04 15:07:56 +000013458if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013459then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013460 { $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 +010013461$as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013462if ${wine_cv_linux_joystick_22_api+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013463 $as_echo_n "(cached) " >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013464else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013466/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013467
Marcus Meissner028e9a11999-08-04 15:07:56 +000013468 #include <sys/ioctl.h>
Marcus Meissner7c434992007-04-12 12:12:05 +020013469 #include <sys/types.h>
Marcus Meissner028e9a11999-08-04 15:07:56 +000013470 #include <linux/joystick.h>
13471
13472 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000013473 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13474 #error "no 2.2 header"
13475 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013476
13477int
13478main ()
13479{
Marcus Meissner028e9a11999-08-04 15:07:56 +000013480/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013481 ;
13482 return 0;
13483}
13484_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013485if ac_fn_c_try_compile "$LINENO"; then :
Marcus Meissner028e9a11999-08-04 15:07:56 +000013486 wine_cv_linux_joystick_22_api=yes
13487else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013488 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000013489fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000013491
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013492fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013494$as_echo "$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000013495 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013496 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013497
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013498$as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
Marcus Meissner028e9a11999-08-04 15:07:56 +000013499
13500 fi
13501fi
13502
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013503
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013504ac_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 +000013505#ifdef HAVE_SYS_PARAM_H
13506# include <sys/param.h>
13507#endif
Robert Millan55b74482006-02-06 21:53:27 +010013508#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013509# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013510#endif
13511#ifdef HAVE_SYS_VFS_H
13512# include <sys/vfs.h>
13513#endif
13514#ifdef HAVE_SYS_STATFS_H
13515# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013516#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013517"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013518if test "x$ac_cv_member_struct_statfs_f_bfree" = xyes; then :
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013519
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013520cat >>confdefs.h <<_ACEOF
13521#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013522_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013523
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013524
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013525fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013526ac_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 +000013527#ifdef HAVE_SYS_PARAM_H
13528# include <sys/param.h>
13529#endif
Robert Millan55b74482006-02-06 21:53:27 +010013530#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013531# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013532#endif
13533#ifdef HAVE_SYS_VFS_H
13534# include <sys/vfs.h>
13535#endif
13536#ifdef HAVE_SYS_STATFS_H
13537# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013538#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013539"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013540if test "x$ac_cv_member_struct_statfs_f_bavail" = xyes; then :
Patrik Stridvall09da9662001-07-08 22:30:50 +000013541
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013542cat >>confdefs.h <<_ACEOF
13543#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013544_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013545
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013546
Patrik Stridvall09da9662001-07-08 22:30:50 +000013547fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013548ac_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 +000013549#ifdef HAVE_SYS_PARAM_H
13550# include <sys/param.h>
13551#endif
Robert Millan55b74482006-02-06 21:53:27 +010013552#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013553# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013554#endif
13555#ifdef HAVE_SYS_VFS_H
13556# include <sys/vfs.h>
13557#endif
13558#ifdef HAVE_SYS_STATFS_H
13559# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013560#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013561"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013562if test "x$ac_cv_member_struct_statfs_f_frsize" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013563
13564cat >>confdefs.h <<_ACEOF
13565#define HAVE_STRUCT_STATFS_F_FRSIZE 1
13566_ACEOF
13567
13568
13569fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013570ac_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 +000013571#ifdef HAVE_SYS_PARAM_H
13572# include <sys/param.h>
13573#endif
Robert Millan55b74482006-02-06 21:53:27 +010013574#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013575# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013576#endif
13577#ifdef HAVE_SYS_VFS_H
13578# include <sys/vfs.h>
13579#endif
13580#ifdef HAVE_SYS_STATFS_H
13581# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013582#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013583"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013584if test "x$ac_cv_member_struct_statfs_f_ffree" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013585
13586cat >>confdefs.h <<_ACEOF
13587#define HAVE_STRUCT_STATFS_F_FFREE 1
13588_ACEOF
13589
13590
13591fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013592ac_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 +000013593#ifdef HAVE_SYS_PARAM_H
13594# include <sys/param.h>
13595#endif
Robert Millan55b74482006-02-06 21:53:27 +010013596#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013597# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013598#endif
13599#ifdef HAVE_SYS_VFS_H
13600# include <sys/vfs.h>
13601#endif
13602#ifdef HAVE_SYS_STATFS_H
13603# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013604#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013605"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013606if test "x$ac_cv_member_struct_statfs_f_favail" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013607
13608cat >>confdefs.h <<_ACEOF
13609#define HAVE_STRUCT_STATFS_F_FAVAIL 1
13610_ACEOF
13611
13612
13613fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013614ac_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 +000013615#ifdef HAVE_SYS_PARAM_H
13616# include <sys/param.h>
13617#endif
Robert Millan55b74482006-02-06 21:53:27 +010013618#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000013619# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013620#endif
13621#ifdef HAVE_SYS_VFS_H
13622# include <sys/vfs.h>
13623#endif
13624#ifdef HAVE_SYS_STATFS_H
13625# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000013626#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013627"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013628if test "x$ac_cv_member_struct_statfs_f_namelen" = xyes; then :
Alexandre Julliardb859a682004-03-07 03:16:43 +000013629
13630cat >>confdefs.h <<_ACEOF
13631#define HAVE_STRUCT_STATFS_F_NAMELEN 1
13632_ACEOF
13633
13634
13635fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000013636
13637
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013638ac_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 +000013639#include <sys/statvfs.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_statvfs_f_blocks" = xyes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013643
13644cat >>confdefs.h <<_ACEOF
13645#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13646_ACEOF
13647
13648
13649fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000013650
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013651
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013652ac_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 +000013653#ifdef HAVE_SYS_SOCKET_H
13654# include <sys/socket.h>
13655#endif
13656#ifdef HAVE_SYS_UN_H
13657# include <sys/un.h>
13658#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013659"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013660if test "x$ac_cv_member_struct_msghdr_msg_accrights" = xyes; then :
Juergen Lock2d33ab92000-02-13 16:03:29 +000013661
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013662cat >>confdefs.h <<_ACEOF
13663#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013664_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013665
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013666
13667fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013668ac_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 +000013669#ifdef HAVE_SYS_SOCKET_H
13670# include <sys/socket.h>
13671#endif
13672#ifdef HAVE_SYS_UN_H
13673# include <sys/un.h>
13674#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013675"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013676if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013677
13678cat >>confdefs.h <<_ACEOF
13679#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13680_ACEOF
13681
13682
13683fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013684ac_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 +000013685#ifdef HAVE_SYS_SOCKET_H
13686# include <sys/socket.h>
13687#endif
13688#ifdef HAVE_SYS_UN_H
13689# include <sys/un.h>
13690#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013691"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013692if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = xyes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013693
13694cat >>confdefs.h <<_ACEOF
13695#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13696_ACEOF
13697
13698
Juergen Lock2d33ab92000-02-13 16:03:29 +000013699fi
13700
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013701
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013702ac_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 +000013703#ifdef HAVE_SCSI_SG_H
13704#include <scsi/sg.h>
13705#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013706"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013707if test "x$ac_cv_member_scsireq_t_cmd" = xyes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013708
13709cat >>confdefs.h <<_ACEOF
13710#define HAVE_SCSIREQ_T_CMD 1
13711_ACEOF
13712
13713
13714fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013715ac_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 +000013716#ifdef HAVE_SCSI_SG_H
13717#include <scsi/sg.h>
13718#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013719"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013720if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = xyes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013721
13722cat >>confdefs.h <<_ACEOF
13723#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13724_ACEOF
13725
13726
13727fi
13728
13729
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013730ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13731"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013732if test "x$ac_cv_member_siginfo_t_si_fd" = xyes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013733
13734cat >>confdefs.h <<_ACEOF
13735#define HAVE_SIGINFO_T_SI_FD 1
13736_ACEOF
13737
13738
13739fi
13740
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013741
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013742ac_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 +010013743#ifdef HAVE_SYS_MTIO_H
13744#include <sys/mtio.h>
13745#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013746"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013747if test "x$ac_cv_member_struct_mtget_mt_blksiz" = xyes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013748
13749cat >>confdefs.h <<_ACEOF
13750#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13751_ACEOF
13752
13753
13754fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013755ac_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 +010013756#ifdef HAVE_SYS_MTIO_H
13757#include <sys/mtio.h>
13758#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013759"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013760if test "x$ac_cv_member_struct_mtget_mt_gstat" = xyes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013761
13762cat >>confdefs.h <<_ACEOF
13763#define HAVE_STRUCT_MTGET_MT_GSTAT 1
13764_ACEOF
13765
13766
13767fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013768ac_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 +010013769#ifdef HAVE_SYS_MTIO_H
13770#include <sys/mtio.h>
13771#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013772"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013773if test "x$ac_cv_member_struct_mtget_mt_blkno" = xyes; then :
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010013774
13775cat >>confdefs.h <<_ACEOF
13776#define HAVE_STRUCT_MTGET_MT_BLKNO 1
13777_ACEOF
13778
13779
13780fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013781
13782
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013783ac_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 +000013784#include <getopt.h>
13785#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013786"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013787if test "x$ac_cv_member_struct_option_name" = xyes; then :
Alexandre Julliarddb89a542003-04-20 02:56:14 +000013788
13789cat >>confdefs.h <<_ACEOF
13790#define HAVE_STRUCT_OPTION_NAME 1
13791_ACEOF
13792
13793
13794fi
13795
13796
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013797ac_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 +020013798if test "x$ac_cv_member_struct_stat_st_blocks" = xyes; then :
Pavel Roskind6507192003-10-03 03:28:40 +000013799
13800cat >>confdefs.h <<_ACEOF
13801#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13802_ACEOF
13803
13804
13805fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013806ac_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 +020013807if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013808
13809cat >>confdefs.h <<_ACEOF
13810#define HAVE_STRUCT_STAT_ST_MTIM 1
13811_ACEOF
13812
13813
13814fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013815ac_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 +020013816if test "x$ac_cv_member_struct_stat_st_ctim" = xyes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013817
13818cat >>confdefs.h <<_ACEOF
13819#define HAVE_STRUCT_STAT_ST_CTIM 1
13820_ACEOF
13821
13822
13823fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013824ac_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 +020013825if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013826
13827cat >>confdefs.h <<_ACEOF
13828#define HAVE_STRUCT_STAT_ST_ATIM 1
13829_ACEOF
13830
13831
13832fi
Pavel Roskind6507192003-10-03 03:28:40 +000013833
13834
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013835ac_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 +030013836#include <sys/types.h>
13837#endif
13838#ifdef HAVE_NETINET_IN_H
13839#include <netinet/in.h>
13840#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013841"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013842if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = xyes; then :
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030013843
13844cat >>confdefs.h <<_ACEOF
13845#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13846_ACEOF
13847
13848
13849fi
13850
13851
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013852ac_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 +020013853#include <sys/types.h>
13854#endif
13855#ifdef HAVE_NETINET_IN_H
13856# include <netinet/in.h>
13857#endif
13858#ifdef HAVE_ARPA_NAMESER_H
13859# include <arpa/nameser.h>
13860#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013861"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013862if test "x$ac_cv_member_ns_msg__msg_ptr" = xyes; then :
Alexandre Julliard788e30f2006-05-31 14:43:21 +020013863
13864cat >>confdefs.h <<_ACEOF
13865#define HAVE_NS_MSG__MSG_PTR 1
13866_ACEOF
13867
13868
13869fi
13870
13871
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013872ac_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 -060013873#include <sys/types.h>
13874#endif
13875#ifdef HAVE_ALIAS_H
13876#include <alias.h>
13877#endif
13878#ifdef HAVE_SYS_SOCKET_H
13879#include <sys/socket.h>
13880#endif
13881#ifdef HAVE_SYS_SOCKETVAR_H
13882#include <sys/socketvar.h>
13883#endif
13884#ifdef HAVE_SYS_TIMEOUT_H
13885#include <sys/timeout.h>
13886#endif
13887#ifdef HAVE_NETINET_IN_H
13888#include <netinet/in.h>
13889#endif
13890#ifdef HAVE_NETINET_IN_SYSTM_H
13891#include <netinet/in_systm.h>
13892#endif
13893#ifdef HAVE_NETINET_IP_H
13894#include <netinet/ip.h>
13895#endif
13896#ifdef HAVE_NETINET_IP_VAR_H
13897#include <netinet/ip_var.h>
13898#endif
13899#ifdef HAVE_NETINET_IP_ICMP_H
13900#include <netinet/ip_icmp.h>
13901#endif
13902#ifdef HAVE_NETINET_ICMP_VAR
13903#include <netinet/icmp_var.h>
13904#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013905"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013906if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = xyes; then :
Austin Englishac0252d2009-01-30 10:18:10 -060013907
13908cat >>confdefs.h <<_ACEOF
13909#define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13910_ACEOF
13911
13912
13913fi
13914
13915
Juan Lang984c3b22010-03-12 10:38:46 -080013916ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13917#include <sys/types.h>
13918#endif
13919#ifdef HAVE_NET_IF_H
13920# include <net/if.h>
13921#endif
13922"
Alexandre Julliard9797da42011-04-27 17:37:43 +020013923if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = xyes; then :
Juan Lang984c3b22010-03-12 10:38:46 -080013924
13925cat >>confdefs.h <<_ACEOF
13926#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13927_ACEOF
13928
13929
13930fi
13931
13932
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013934$as_echo_n "checking for timezone variable... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013935if ${ac_cv_have_timezone+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013936 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000013937else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013939/* end confdefs.h. */
13940#include <time.h>
13941int
13942main ()
13943{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020013944timezone = 1
Phil Krylov6618b032005-05-24 11:52:46 +000013945 ;
13946 return 0;
13947}
13948_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013949if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000013950 ac_cv_have_timezone="yes"
13951else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013952 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000013953fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013954rm -f core conftest.err conftest.$ac_objext \
13955 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013956fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013958$as_echo "$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000013959if test "$ac_cv_have_timezone" = "yes"
13960then
13961
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013962$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000013963
13964fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013966$as_echo_n "checking for daylight variable... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020013967if ${ac_cv_have_daylight+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013968 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000013969else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013971/* end confdefs.h. */
13972#include <time.h>
13973int
13974main ()
13975{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020013976daylight = 1
Phil Krylov6618b032005-05-24 11:52:46 +000013977 ;
13978 return 0;
13979}
13980_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013981if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000013982 ac_cv_have_daylight="yes"
13983else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013984 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000013985fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013986rm -f core conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013988fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013990$as_echo "$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000013991if test "$ac_cv_have_daylight" = "yes"
13992then
13993
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013994$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000013995
13996fi
13997
Natanael Copa3b11f792011-07-06 08:58:01 +000013998ac_save_LIBS="$LIBS"
13999LIBS="$LIBS -lm"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014001$as_echo_n "checking for isinf... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014002if ${ac_cv_have_isinf+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014003 $as_echo_n "(cached) " >&6
Petr Sumbera4992b652008-04-29 17:08:53 +020014004else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020014006/* end confdefs.h. */
14007#include <math.h>
14008int
14009main ()
14010{
Austin English8521ebe2011-06-13 21:26:40 -070014011float f = 0.0; return isinf(f)
Petr Sumbera4992b652008-04-29 17:08:53 +020014012 ;
14013 return 0;
14014}
14015_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014016if ac_fn_c_try_link "$LINENO"; then :
Petr Sumbera4992b652008-04-29 17:08:53 +020014017 ac_cv_have_isinf="yes"
14018else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014019 ac_cv_have_isinf="no"
Petr Sumbera4992b652008-04-29 17:08:53 +020014020fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014021rm -f core conftest.err conftest.$ac_objext \
14022 conftest$ac_exeext conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020014023fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014025$as_echo "$ac_cv_have_isinf" >&6; }
Petr Sumbera4992b652008-04-29 17:08:53 +020014026if test "$ac_cv_have_isinf" = "yes"
14027then
14028
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014029$as_echo "#define HAVE_ISINF 1" >>confdefs.h
Petr Sumbera4992b652008-04-29 17:08:53 +020014030
14031fi
14032
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014034$as_echo_n "checking for isnan... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014035if ${ac_cv_have_isnan+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014036 $as_echo_n "(cached) " >&6
Jacek Caban1715dcb2008-10-14 16:06:49 -050014037else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050014039/* end confdefs.h. */
14040#include <math.h>
14041int
14042main ()
14043{
Austin English8521ebe2011-06-13 21:26:40 -070014044float f = 0.0; return isnan(f)
Jacek Caban1715dcb2008-10-14 16:06:49 -050014045 ;
14046 return 0;
14047}
14048_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014049if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban1715dcb2008-10-14 16:06:49 -050014050 ac_cv_have_isnan="yes"
14051else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014052 ac_cv_have_isnan="no"
Jacek Caban1715dcb2008-10-14 16:06:49 -050014053fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014054rm -f core conftest.err conftest.$ac_objext \
14055 conftest$ac_exeext conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050014056fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014058$as_echo "$ac_cv_have_isnan" >&6; }
Jacek Caban1715dcb2008-10-14 16:06:49 -050014059if test "$ac_cv_have_isnan" = "yes"
14060then
14061
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014062$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
Jacek Caban1715dcb2008-10-14 16:06:49 -050014063
14064fi
Natanael Copa3b11f792011-07-06 08:58:01 +000014065LIBS="$ac_save_LIBS"
Jacek Caban1715dcb2008-10-14 16:06:49 -050014066
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014067
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014068case $host_cpu in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014069 *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 +010014070$as_echo_n "checking whether we need to define __i386__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014071if ${ac_cv_cpp_def___i386__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014072 $as_echo_n "(cached) " >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000014073else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014075/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014076#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014077yes
14078#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014079_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014080if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014081 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014082 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014083else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014084 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014085fi
14086rm -f conftest*
14087
14088fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014090$as_echo "$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014091if test $ac_cv_cpp_def___i386__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014092 CFLAGS="$CFLAGS -D__i386__"
14093 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014094fi ;;
14095 *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 +010014096$as_echo_n "checking whether we need to define __x86_64__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014097if ${ac_cv_cpp_def___x86_64__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014098 $as_echo_n "(cached) " >&6
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014099else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014101/* end confdefs.h. */
14102#ifndef __x86_64__
14103yes
14104#endif
14105_ACEOF
14106if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014107 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014108 ac_cv_cpp_def___x86_64__=yes
14109else
14110 ac_cv_cpp_def___x86_64__=no
14111fi
14112rm -f conftest*
14113
14114fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014116$as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014117if test $ac_cv_cpp_def___x86_64__ = yes; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014118 CFLAGS="$CFLAGS -D__x86_64__"
14119 LINTFLAGS="$LINTFLAGS -D__x86_64__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014120fi ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014121 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014122$as_echo_n "checking whether we need to define __sparc__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014123if ${ac_cv_cpp_def___sparc__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014124 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014125else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014127/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014128#ifndef __sparc__
14129yes
14130#endif
14131_ACEOF
14132if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014133 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014134 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014135else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014136 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014137fi
14138rm -f conftest*
14139
14140fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014142$as_echo "$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014143if test $ac_cv_cpp_def___sparc__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014144 CFLAGS="$CFLAGS -D__sparc__"
14145 LINTFLAGS="$LINTFLAGS -D__sparc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014146fi ;;
14147 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014148$as_echo_n "checking whether we need to define __powerpc__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014149if ${ac_cv_cpp_def___powerpc__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014150 $as_echo_n "(cached) " >&6
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014151else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014153/* end confdefs.h. */
14154#ifndef __powerpc__
14155yes
14156#endif
14157_ACEOF
14158if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014159 $EGREP "yes" >/dev/null 2>&1; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014160 ac_cv_cpp_def___powerpc__=yes
14161else
14162 ac_cv_cpp_def___powerpc__=no
14163fi
14164rm -f conftest*
14165
14166fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014168$as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014169if test $ac_cv_cpp_def___powerpc__ = yes; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014170 CFLAGS="$CFLAGS -D__powerpc__"
14171 LINTFLAGS="$LINTFLAGS -D__powerpc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014172fi ;;
André Hentschel50ada0f2011-04-19 19:37:05 +020014173 *arm*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __arm__" >&5
14174$as_echo_n "checking whether we need to define __arm__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014175if ${ac_cv_cpp_def___arm__+:} false; then :
André Hentschel50ada0f2011-04-19 19:37:05 +020014176 $as_echo_n "(cached) " >&6
14177else
14178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14179/* end confdefs.h. */
14180#ifndef __arm__
14181yes
14182#endif
14183_ACEOF
14184if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14185 $EGREP "yes" >/dev/null 2>&1; then :
14186 ac_cv_cpp_def___arm__=yes
14187else
14188 ac_cv_cpp_def___arm__=no
14189fi
14190rm -f conftest*
14191
14192fi
14193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___arm__" >&5
14194$as_echo "$ac_cv_cpp_def___arm__" >&6; }
14195if test $ac_cv_cpp_def___arm__ = yes; then :
14196 CFLAGS="$CFLAGS -D__arm__"
14197 LINTFLAGS="$LINTFLAGS -D__arm__"
14198fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014199esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014200
14201case $host_vendor in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014202 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014203$as_echo_n "checking whether we need to define __sun__... " >&6; }
Alexandre Julliard9797da42011-04-27 17:37:43 +020014204if ${ac_cv_cpp_def___sun__+:} false; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014205 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014206else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014208/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014209#ifndef __sun__
14210yes
14211#endif
14212_ACEOF
14213if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014214 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014215 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014216else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014217 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014218fi
14219rm -f conftest*
14220
14221fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014223$as_echo "$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014224if test $ac_cv_cpp_def___sun__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014225 CFLAGS="$CFLAGS -D__sun__"
14226 LINTFLAGS="$LINTFLAGS -D__sun__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014227fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014228esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014229
14230
Alexandre Julliarda360e932008-08-20 16:02:37 +020014231
Alexandre Julliard7d831152010-03-20 15:07:45 +010014232
Alexandre Julliard6c142382010-04-11 12:47:30 +020014233
Alexandre Julliard7d831152010-03-20 15:07:45 +010014234ac_config_commands="$ac_config_commands include/stamp-h"
14235
Alexandre Julliard03642412010-03-20 15:24:22 +010014236
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014237ALL_MAKEFILE_DEPENDS="
14238# Rules automatically generated by configure
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014239
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014240.INIT: Makefile
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014241.MAKEFILEDEPS:
Alexandre Julliardbd3110d2010-05-23 10:34:36 +020014242all: Makefile
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020014243Makefile: Makefile.in Make.vars.in Make.rules config.status
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014244 @./config.status Make.tmp Makefile"
Alexandre Julliarda360e932008-08-20 16:02:37 +020014245
Alexandre Julliard367fd222011-01-04 17:05:21 +010014246ALL_POT_FILES=""
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014247ALL_TEST_RESOURCES=""
Alexandre Julliard454fb3c2010-02-08 21:29:13 +010014248
Alexandre Julliard49163da2008-08-25 12:02:27 +020014249
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014250wine_fn_append_file ()
14251{
14252 as_fn_append $1 " \\$as_nl $2"
14253}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014254
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014255wine_fn_append_rule ()
14256{
14257 as_fn_append $1 "$as_nl$2"
14258}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014259
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014260wine_fn_has_flag ()
14261{
14262 expr ",$2," : ".*,$1,.*" >/dev/null
14263}
14264
Alexandre Julliard943cd732010-03-25 21:52:56 +010014265wine_fn_all_dir_rules ()
14266{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014267 ac_dir=$1
14268 ac_alldeps=$2
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014269 ac_makedep="\$(MAKEDEP)"
14270 ac_input=Make.vars.in:$ac_dir/Makefile.in
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014271 if test $ac_dir != tools
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014272 then
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014273 ac_alldeps="$2 $ac_makedep"
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014274 fi
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014275 case $2 in
14276 *.in) ac_input=$ac_input:$2 ;;
14277 *) ac_makedep="$2 $ac_makedep" ;;
14278 esac
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014279
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014280 wine_fn_append_file ALL_DIRS $ac_dir
Alexandre Julliard943cd732010-03-25 21:52:56 +010014281 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014282"__clean__: $ac_dir/__clean__
14283.PHONY: $ac_dir/__clean__
14284$ac_dir/__clean__: $ac_dir/Makefile
14285 @cd $ac_dir && \$(MAKE) clean
14286 \$(RM) $ac_dir/Makefile
14287$ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014288 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014289depend: $ac_dir/__depend__
14290.PHONY: $ac_dir/__depend__
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014291$ac_dir/__depend__: $ac_makedep dummy
14292 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
Alexandre Julliard943cd732010-03-25 21:52:56 +010014293}
14294
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014295wine_fn_config_makefile ()
14296{
14297 ac_dir=$1
Alexandre Julliard03642412010-03-20 15:24:22 +010014298 ac_enable=$2
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014299 ac_flags=$3
Alexandre Julliarda0b8fa92011-06-12 12:44:03 +020014300 ac_rules=$4
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014301 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014302 return 0
14303fi
Alexandre Julliard03642412010-03-20 15:24:22 +010014304
Alexandre Julliarda0b8fa92011-06-12 12:44:03 +020014305 wine_fn_all_dir_rules $ac_dir ${ac_rules:-Make.rules}
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014306 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014307"all: $ac_dir
14308.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014309$ac_dir: $ac_dir/Makefile dummy
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014310 @cd $ac_dir && \$(MAKE)"
14311
14312 wine_fn_has_flag install-lib $ac_flags || wine_fn_has_flag install-dev $ac_flags || return
14313
14314 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014315".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14316$ac_dir/__install__:: $ac_dir
Alexandre Julliarde84063b2010-03-25 21:46:41 +010014317 @cd $ac_dir && \$(MAKE) install
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014318$ac_dir/__uninstall__:: $ac_dir/Makefile
14319 @cd $ac_dir && \$(MAKE) uninstall
14320install:: $ac_dir/__install__
14321__uninstall__: $ac_dir/__uninstall__"
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014322
14323 if wine_fn_has_flag install-lib $ac_flags
14324 then
14325 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014326".PHONY: $ac_dir/__install-lib__
14327$ac_dir/__install-lib__:: $ac_dir
14328 @cd $ac_dir && \$(MAKE) install-lib
14329install-lib:: $ac_dir/__install-lib__"
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014330 fi
14331
14332 if wine_fn_has_flag install-dev $ac_flags
14333 then
14334 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014335".PHONY: $ac_dir/__install-dev
14336$ac_dir/__install-dev__:: $ac_dir
14337 @cd $ac_dir && \$(MAKE) install-dev
14338install-dev:: $ac_dir/__install-dev__"
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020014339 fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014340}
14341
14342wine_fn_config_lib ()
14343{
14344 ac_name=$1
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014345 ac_flags=$2
Alexandre Julliardb8fb1d52010-03-20 14:50:53 +010014346 ac_dir=dlls/$ac_name
Alexandre Julliardf64a6752011-07-09 17:58:47 +020014347 wine_fn_config_makefile $ac_dir enable_$ac_name "$ac_flags" dlls/Makeimplib.rules
14348
14349 if wine_fn_has_flag install-dev $ac_flags
14350 then :
14351 else
14352 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14353".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
14354$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir)
14355 \$(INSTALL_DATA) $ac_dir/lib$ac_name.a \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14356$ac_dir/__uninstall__::
14357 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_name.a
14358install install-dev:: $ac_dir/__install__
14359__uninstall__: $ac_dir/__uninstall__"
14360 fi
14361
Alexandre Julliarda0b8fa92011-06-12 12:44:03 +020014362 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__builddeps__: $ac_dir"
14363 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: tools/widl tools/winebuild tools/winegcc include"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014364}
14365
Alexandre Julliard50231942010-03-16 22:00:02 +010014366wine_fn_config_dll ()
14367{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014368 ac_name=$1
14369 ac_dir=dlls/$ac_name
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014370 ac_enable=$2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014371 ac_flags=$3
Alexandre Julliard1858f432010-12-29 14:10:47 +010014372 ac_implib=${4:-$ac_name}
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014373 ac_file=$ac_dir/lib$ac_implib
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014374 ac_dll=$ac_name
Alexandre Julliard50231942010-03-16 22:00:02 +010014375 ac_deps="tools/widl tools/winebuild tools/winegcc include"
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014376 ac_implibflags=""
14377
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014378 case $ac_name in
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014379 *16) ac_implibflags=" -m16" ;;
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014380 *.*) ;;
14381 *) ac_dll=$ac_dll.dll ;;
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014382 esac
Alexandre Julliard50231942010-03-16 22:00:02 +010014383
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014384 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" dlls/Makedll.rules
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014385
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014386 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014387 test "$ac_enable" != enable_win16 || return 0
Alexandre Julliard28449912011-07-25 22:05:51 +020014388 wine_fn_has_flag implib $ac_flags && wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014389else
Alexandre Julliard60a05ad2010-03-25 12:05:44 +010014390 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014391"$ac_dir: __builddeps__
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014392manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014393 @cd $ac_dir && \$(MAKE) \$@"
Alexandre Julliard367fd222011-01-04 17:05:21 +010014394
Alexandre Julliardbf8f4352011-07-25 11:39:42 +020014395 if wine_fn_has_flag install-lib $ac_flags
14396 then :
14397 else
14398 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14399".PHONY: $ac_dir/__install-lib__ $ac_dir/__uninstall__
14400install install-lib:: $ac_dir/__install-lib__
14401__uninstall__: $ac_dir/__uninstall__"
14402 if test -n "$DLLEXT"
14403 then
14404 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14405"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14406 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT
14407 \$(INSTALL_DATA) $ac_dir/$ac_dll.fake \$(DESTDIR)\$(fakedlldir)/$ac_dll
14408$ac_dir/__uninstall__::
14409 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_dll"
14410 else
14411 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14412"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14413 \$(INSTALL_PROGRAM) $ac_dir/$ac_dll \$(DESTDIR)\$(dlldir)/$ac_dll
14414$ac_dir/__uninstall__::
14415 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_dll"
14416 fi
14417 fi
14418
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014419 if test "x$enable_maintainer_mode" = xyes
Alexandre Julliard367fd222011-01-04 17:05:21 +010014420 then
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014421 if wine_fn_has_flag mc $ac_flags
14422 then
14423 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14424 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14425"$ac_dir/msg.pot: $ac_dir"
14426 fi
14427 if wine_fn_has_flag po $ac_flags
14428 then
14429 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14430 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard367fd222011-01-04 17:05:21 +010014431"$ac_dir/rsrc.pot: $ac_dir"
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014432 fi
Alexandre Julliard367fd222011-01-04 17:05:21 +010014433 fi
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014434fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014435
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014436 if wine_fn_has_flag staticimplib $ac_flags
Alexandre Julliard50231942010-03-16 22:00:02 +010014437 then
14438 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014439"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014440$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014441$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14442 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14443$ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14444 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
Alexandre Julliard6cba5c42011-07-09 18:01:42 +020014445.PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14446$ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14447 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14448$ac_dir/__uninstall__::
14449 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14450install install-dev:: $ac_dir/__install-dev__
14451__uninstall__: $ac_dir/__uninstall__"
14452
14453 if test "$IMPLIBEXT" != "$STATIC_IMPLIBEXT"
14454 then
14455 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14456"$ac_dir/__install-dev__:: $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir) __builddeps__
14457 \$(INSTALL_DATA) $ac_file.$STATIC_IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT
14458$ac_dir/__uninstall__::
14459 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$STATIC_IMPLIBEXT"
14460 fi
14461
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014462 if test "x$CROSSTEST_DISABLE" = x
14463 then
14464 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14465"__builddeps__: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014466$ac_file.cross.a: $ac_dir/Makefile dummy
14467 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014468 fi
14469
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014470 elif wine_fn_has_flag implib $ac_flags
Alexandre Julliard50231942010-03-16 22:00:02 +010014471 then
14472 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014473"__builddeps__: $ac_file.$IMPLIBEXT
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014474$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14475 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14476$ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14477 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
Alexandre Julliard6cba5c42011-07-09 18:01:42 +020014478.PHONY: $ac_dir/__install-dev__ $ac_dir/__uninstall__
14479$ac_dir/__install-dev__:: $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)
14480 \$(INSTALL_DATA) $ac_file.$IMPLIBEXT \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14481$ac_dir/__uninstall__::
14482 \$(RM) \$(DESTDIR)\$(dlldir)/lib$ac_implib.$IMPLIBEXT
14483install install-dev:: $ac_dir/__install-dev__
14484__uninstall__: $ac_dir/__uninstall__"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014485 if test "x$CROSSTEST_DISABLE" = x
14486 then
14487 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14488"__builddeps__: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014489$ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14490 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014491 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014492
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014493 if test "$ac_name" != "$ac_implib"
Alexandre Julliard50231942010-03-16 22:00:02 +010014494 then
14495 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014496"__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014497dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014498 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
Alexandre Julliard50231942010-03-16 22:00:02 +010014499clean::
14500 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014501 if test "x$CROSSTEST_DISABLE" = x
14502 then
14503 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14504"__builddeps__: dlls/lib$ac_implib.cross.a
14505dlls/lib$ac_implib.cross.a: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014506 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014507 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014508 fi
14509 fi
14510}
14511
14512wine_fn_config_program ()
14513{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014514 ac_name=$1
14515 ac_dir=programs/$ac_name
Alexandre Julliardd394e042010-03-20 14:53:39 +010014516 ac_enable=$2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014517 ac_flags=$3
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014518 ac_program=$ac_name
14519
14520 case $ac_name in
14521 *.*) ;;
14522 *) ac_program=$ac_program.exe ;;
14523 esac
14524
14525 wine_fn_config_makefile $ac_dir $ac_enable "$ac_flags" programs/Makeprog.rules
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014526
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014527 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliardd394e042010-03-20 14:53:39 +010014528
14529else
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014530 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014531"$ac_dir: __builddeps__"
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014532
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014533 if test "x$enable_maintainer_mode" = xyes
Alexandre Julliard367fd222011-01-04 17:05:21 +010014534 then
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014535 if wine_fn_has_flag mc $ac_flags
14536 then
14537 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14538 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14539"$ac_dir/msg.pot: $ac_dir"
14540 fi
14541 if wine_fn_has_flag po $ac_flags
14542 then
14543 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14544 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard367fd222011-01-04 17:05:21 +010014545"$ac_dir/rsrc.pot: $ac_dir"
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014546 fi
Alexandre Julliard367fd222011-01-04 17:05:21 +010014547 fi
14548
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014549 wine_fn_has_flag install $ac_flags || return
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014550 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014551".PHONY: $ac_dir/__install__ $ac_dir/__uninstall__
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014552install install-lib:: $ac_dir/__install__
14553__uninstall__: $ac_dir/__uninstall__"
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014554
14555 if test -n "$DLLEXT"
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014556 then
14557 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014558"$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(dlldir) \$(DESTDIR)\$(fakedlldir)
14559 \$(INSTALL_PROGRAM) $ac_dir/$ac_program$DLLEXT \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT
14560 \$(INSTALL_DATA) $ac_dir/$ac_program.fake \$(DESTDIR)\$(fakedlldir)/$ac_program
14561$ac_dir/__uninstall__::
14562 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program$DLLEXT \$(DESTDIR)\$(fakedlldir)/$ac_program"
14563
14564 if test "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
14565 then
14566 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014567"$ac_dir/__install__:: tools \$(DESTDIR)\$(bindir)
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014568 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
Alexandre Julliardbb86a352011-07-09 17:46:54 +020014569$ac_dir/__uninstall__::
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014570 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
Alexandre Julliardfda8b652011-07-09 21:04:23 +020014571 fi
14572 else
14573 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14574"$ac_dir/__install-lib__:: $ac_dir \$(DESTDIR)\$(dlldir)
14575 \$(INSTALL_PROGRAM) $ac_dir/$ac_program \$(DESTDIR)\$(dlldir)/$ac_program
14576$ac_dir/__uninstall__::
14577 \$(RM) \$(DESTDIR)\$(dlldir)/$ac_program"
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014578 fi
Alexandre Julliard41107a92011-08-01 13:40:19 +020014579
14580 if test "x$enable_tools" != xno && wine_fn_has_flag manpage $ac_flags
14581 then
14582 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14583"$ac_dir/__install__:: $ac_dir \$(DESTDIR)\$(mandir)/man\$(prog_manext)
14584 \$(INSTALL_DATA) $ac_dir/$ac_name.man \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)
14585$ac_dir/__uninstall__::
14586 \$(RM) \$(DESTDIR)\$(mandir)/man\$(prog_manext)/$ac_name.\$(prog_manext)"
14587 fi
Alexandre Julliardd394e042010-03-20 14:53:39 +010014588fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014589}
14590
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014591wine_fn_config_test ()
14592{
14593 ac_dir=$1
14594 ac_name=$2
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014595 ac_flags=$3
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014596 wine_fn_append_file ALL_TEST_RESOURCES $ac_name.res
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014597 wine_fn_all_dir_rules $ac_dir Maketest.rules
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014598
Alexandre Julliard9797da42011-04-27 17:37:43 +020014599 if test "x$enable_tests" = xno; then :
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014600
14601else
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014602 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014603"all: $ac_dir
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014604.PHONY: $ac_dir
Alexandre Julliarddbbed382011-05-26 12:04:45 +020014605$ac_dir: $ac_dir/Makefile programs/winetest/Makefile __builddeps__ dummy
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014606 @cd $ac_dir && \$(MAKE)
Alexandre Julliard9b99cd12011-05-24 11:11:22 +020014607programs/winetest: $ac_dir
Alexandre Julliarde4eff852011-05-22 13:15:03 +020014608check test: $ac_dir/__test__
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014609.PHONY: $ac_dir/__test__
Alexandre Julliardeab7efd2010-03-25 21:42:54 +010014610$ac_dir/__test__: dummy
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014611 @cd $ac_dir && \$(MAKE) test
14612testclean::
14613 \$(RM) $ac_dir/*.ok"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014614
14615 if test "x$CROSSTEST_DISABLE" = x
14616 then
14617 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14618"crosstest: $ac_dir/__crosstest__
14619.PHONY: $ac_dir/__crosstest__
14620$ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14621 @cd $ac_dir && \$(MAKE) crosstest"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014622 fi
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014623fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014624}
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014625
14626wine_fn_config_tool ()
14627{
14628 ac_dir=$1
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014629 ac_flags=$2
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014630 if test "x$enable_tools" = xno; then :
14631 return 0
14632fi
14633
Alexandre Julliard49c31e32011-06-12 12:13:17 +020014634 wine_fn_config_makefile $ac_dir enable_tools $ac_flags
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014635
Alexandre Julliard49c31e32011-06-12 12:13:17 +020014636 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "__tooldeps__: $ac_dir"
14637 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "$ac_dir: libs/port"
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014638 case $ac_dir in
14639 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14640 esac
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014641}
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014642
14643wine_fn_config_makerules ()
14644{
14645 ac_rules=$1
14646 ac_deps=$2
14647 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14648"$ac_rules: $ac_rules.in $ac_deps config.status
14649 @./config.status $ac_rules
14650distclean::
14651 \$(RM) $ac_rules"
14652}
14653
14654wine_fn_config_symlink ()
14655{
14656 ac_link=$1
14657 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14658"$ac_link:
14659 @./config.status $ac_link
14660distclean::
14661 \$(RM) $ac_link"
14662}
Alexandre Julliarda070f9b2010-07-26 20:53:12 +020014663
14664if test "x$CROSSTEST_DISABLE" != x
14665then
14666 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14667"crosstest:
14668 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14669fi
Alexandre Julliard40977bf2010-11-11 12:24:46 +010014670ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14671wine_fn_config_symlink dlls/shell32/AUTHORS
Alexandre Julliarda6320522010-02-03 13:14:03 +010014672ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014673test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014674if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014675ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014676test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014677fi
14678if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014679ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014680test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014681fi
14682if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014683ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014684test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014685fi
14686if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014687ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014688test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014689fi
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014690if test "x$enable_tools" != xno; then
Alexandre Julliard321d3882010-05-06 20:51:53 +020014691ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14692test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020014693fi
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014694ac_config_links="$ac_config_links wine:tools/winewrapper"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014695wine_fn_config_symlink wine
Alexandre Julliard4422d222011-05-10 13:26:28 +020014696if test "x$enable_win64" != xno; then
14697ac_config_links="$ac_config_links wine64:tools/winewrapper"
14698wine_fn_config_symlink wine64
14699fi
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014700
Huw Davies4cffb2d2011-04-01 15:27:48 +010014701ac_config_commands="$ac_config_commands dlls/gdi32/dibdrv"
14702
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014703ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014704
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014705ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014706
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020014707ac_config_commands="$ac_config_commands dlls/kernel32/nls"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014708
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010014709ac_config_commands="$ac_config_commands dlls/user32/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014710
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014711ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014712
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014713ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014714
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014715
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014716wine_fn_config_makerules Make.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014717MAKE_RULES=Make.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014718ac_config_files="$ac_config_files Make.rules"
14719
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014720wine_fn_config_makerules Maketest.rules Make.rules
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010014721MAKE_TEST_RULES=Maketest.rules
14722ac_config_files="$ac_config_files Maketest.rules"
14723
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014724wine_fn_config_makerules dlls/Makedll.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014725MAKE_DLL_RULES=dlls/Makedll.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014726ac_config_files="$ac_config_files dlls/Makedll.rules"
14727
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014728wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014729MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014730ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14731
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014732wine_fn_config_makerules programs/Makeprog.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014733MAKE_PROG_RULES=programs/Makeprog.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014734ac_config_files="$ac_config_files programs/Makeprog.rules"
14735
Alexandre Julliarda360e932008-08-20 16:02:37 +020014736
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014737wine_fn_config_dll acledit enable_acledit
Alexandre Julliard1858f432010-12-29 14:10:47 +010014738wine_fn_config_dll aclui enable_aclui implib
14739wine_fn_config_dll activeds enable_activeds implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014740wine_fn_config_dll actxprxy enable_actxprxy
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014741wine_fn_config_lib adsiid
Alexandre Julliard1858f432010-12-29 14:10:47 +010014742wine_fn_config_dll advapi32 enable_advapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014743wine_fn_config_test dlls/advapi32/tests advapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014744wine_fn_config_dll advpack enable_advpack implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014745wine_fn_config_test dlls/advpack/tests advpack_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014746wine_fn_config_dll amstream enable_amstream
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014747wine_fn_config_test dlls/amstream/tests amstream_test
Alexandre Julliard902f10c2011-01-13 15:16:02 +010014748wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014749wine_fn_config_dll atl enable_atl implib
Marcus Meissnerb3f04252010-06-15 11:04:33 +020014750wine_fn_config_test dlls/atl/tests atl_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014751wine_fn_config_dll authz enable_authz
Alexandre Julliard1858f432010-12-29 14:10:47 +010014752wine_fn_config_dll avicap32 enable_avicap32 implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014753wine_fn_config_dll avifil32 enable_avifil32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014754wine_fn_config_test dlls/avifil32/tests avifil32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014755wine_fn_config_dll avifile.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014756wine_fn_config_dll avrt enable_avrt implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014757wine_fn_config_dll bcrypt enable_bcrypt
Alexandre Julliard44479002011-01-11 12:56:17 +010014758wine_fn_config_dll browseui enable_browseui po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014759wine_fn_config_test dlls/browseui/tests browseui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014760wine_fn_config_dll cabinet enable_cabinet implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014761wine_fn_config_test dlls/cabinet/tests cabinet_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014762wine_fn_config_dll capi2032 enable_capi2032 implib
14763wine_fn_config_dll cards enable_cards implib
14764wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14765wine_fn_config_dll clusapi enable_clusapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014766wine_fn_config_dll comcat enable_comcat
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014767wine_fn_config_test dlls/comcat/tests comcat_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014768wine_fn_config_dll comctl32 enable_comctl32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014769wine_fn_config_test dlls/comctl32/tests comctl32_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014770wine_fn_config_dll comdlg32 enable_comdlg32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014771wine_fn_config_test dlls/comdlg32/tests comdlg32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014772wine_fn_config_dll comm.drv16 enable_win16
14773wine_fn_config_dll commdlg.dll16 enable_win16
14774wine_fn_config_dll compobj.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014775wine_fn_config_dll compstui enable_compstui implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014776wine_fn_config_dll credui enable_credui implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014777wine_fn_config_test dlls/credui/tests credui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014778wine_fn_config_dll crtdll enable_crtdll implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014779wine_fn_config_dll crypt32 enable_crypt32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014780wine_fn_config_test dlls/crypt32/tests crypt32_test
Alexandre Julliard8484e962011-01-06 12:28:26 +010014781wine_fn_config_dll cryptdlg enable_cryptdlg po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014782wine_fn_config_dll cryptdll enable_cryptdll implib
14783wine_fn_config_dll cryptnet enable_cryptnet implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014784wine_fn_config_test dlls/cryptnet/tests cryptnet_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014785wine_fn_config_dll cryptui enable_cryptui implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014786wine_fn_config_test dlls/cryptui/tests cryptui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014787wine_fn_config_dll ctapi32 enable_ctapi32
14788wine_fn_config_dll ctl3d.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014789wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014790wine_fn_config_dll ctl3dv2.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014791wine_fn_config_dll d3d10 enable_d3d10 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014792wine_fn_config_test dlls/d3d10/tests d3d10_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014793wine_fn_config_dll d3d10core enable_d3d10core implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014794wine_fn_config_test dlls/d3d10core/tests d3d10core_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014795wine_fn_config_dll d3d8 enable_d3d8 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014796wine_fn_config_test dlls/d3d8/tests d3d8_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014797wine_fn_config_dll d3d9 enable_d3d9 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014798wine_fn_config_test dlls/d3d9/tests d3d9_test
Matteo Bruni0ac336f2010-07-29 01:53:54 +020014799wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
Matteo Bruni66d44992010-07-29 01:47:13 +020014800wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
Matteo Bruni8ea75832010-07-28 16:44:37 +020014801wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
Matteo Bruni458eb082010-07-28 16:37:28 +020014802wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
Matteo Bruni3c59b9c2010-07-28 16:22:11 +020014803wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
Matteo Brunifbf1e832010-07-28 16:13:40 +020014804wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
Matteo Bruni99491462010-07-28 04:31:18 +020014805wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
Matteo Brunifd4efcd2010-07-28 04:09:13 +020014806wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
Matteo Bruni79c1bc42010-08-03 18:44:25 +020014807wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
Matteo Brunife050702010-08-03 18:44:25 +020014808wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014809wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
Rico Schüller5ad7f7b2010-08-19 21:33:43 +020014810wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014811wine_fn_config_dll d3dim enable_d3dim implib
14812wine_fn_config_dll d3drm enable_d3drm implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014813wine_fn_config_test dlls/d3drm/tests d3drm_test
Owen Rudge9870c042010-08-18 16:02:22 -050014814wine_fn_config_dll d3dx10_33 enable_d3dx10_33
Owen Rudge49dbdc12010-08-18 16:02:20 -050014815wine_fn_config_dll d3dx10_34 enable_d3dx10_34
Owen Rudge955b8442010-08-18 16:02:18 -050014816wine_fn_config_dll d3dx10_35 enable_d3dx10_35
Owen Rudgef44830e2010-08-18 16:02:16 -050014817wine_fn_config_dll d3dx10_36 enable_d3dx10_36
Owen Rudge4196ba22010-08-18 16:02:10 -050014818wine_fn_config_dll d3dx10_37 enable_d3dx10_37
Owen Rudge199ff9b2010-08-18 16:02:08 -050014819wine_fn_config_dll d3dx10_38 enable_d3dx10_38
Owen Rudgefb8d7cd2010-08-18 16:02:06 -050014820wine_fn_config_dll d3dx10_39 enable_d3dx10_39
Owen Rudge662cbb12010-08-18 16:02:03 -050014821wine_fn_config_dll d3dx10_40 enable_d3dx10_40
Owen Rudge17591cc2010-08-18 16:01:59 -050014822wine_fn_config_dll d3dx10_41 enable_d3dx10_41
Owen Rudgee5d9e122010-08-18 16:01:57 -050014823wine_fn_config_dll d3dx10_42 enable_d3dx10_42
Owen Rudge3c5b2e62010-08-18 16:01:53 -050014824wine_fn_config_dll d3dx10_43 enable_d3dx10_43
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014825wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14826wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14827wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14828wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14829wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14830wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14831wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14832wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14833wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14834wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14835wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14836wine_fn_config_dll d3dx9_35 enable_d3dx9_35
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014837wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014838wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014839wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14840wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14841wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14842wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14843wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14844wine_fn_config_dll d3dx9_42 enable_d3dx9_42
Matteo Bruni90c615a2010-08-25 17:12:51 +020014845wine_fn_config_dll d3dx9_43 enable_d3dx9_43
Alexandre Julliard1858f432010-12-29 14:10:47 +010014846wine_fn_config_dll d3dxof enable_d3dxof implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014847wine_fn_config_test dlls/d3dxof/tests d3dxof_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014848wine_fn_config_dll dbgeng enable_dbgeng implib
14849wine_fn_config_dll dbghelp enable_dbghelp implib
14850wine_fn_config_dll dciman32 enable_dciman32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014851wine_fn_config_dll ddeml.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014852wine_fn_config_dll ddraw enable_ddraw implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014853wine_fn_config_test dlls/ddraw/tests ddraw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014854wine_fn_config_dll ddrawex enable_ddrawex
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014855wine_fn_config_test dlls/ddrawex/tests ddrawex_test
Alexandre Julliard0cdd1472011-01-06 12:37:11 +010014856wine_fn_config_dll devenum enable_devenum po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014857wine_fn_config_dll dinput enable_dinput implib,staticimplib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014858wine_fn_config_test dlls/dinput/tests dinput_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014859wine_fn_config_dll dinput8 enable_dinput8 implib
Lucas Fialho Zawacki1fbf8572011-04-29 19:29:19 -030014860wine_fn_config_test dlls/dinput8/tests dinput8_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014861wine_fn_config_dll dispdib.dll16 enable_win16
14862wine_fn_config_dll dispex enable_dispex
Huw Daviesdf075612010-03-19 13:34:53 +000014863wine_fn_config_test dlls/dispex/tests dispex_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014864wine_fn_config_dll display.drv16 enable_win16
14865wine_fn_config_dll dmband enable_dmband
14866wine_fn_config_dll dmcompos enable_dmcompos
14867wine_fn_config_dll dmime enable_dmime
Austin Lund203272e2010-08-06 17:50:49 +100014868wine_fn_config_test dlls/dmime/tests dmime_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014869wine_fn_config_dll dmloader enable_dmloader
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014870wine_fn_config_test dlls/dmloader/tests dmloader_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014871wine_fn_config_dll dmscript enable_dmscript
14872wine_fn_config_dll dmstyle enable_dmstyle
14873wine_fn_config_dll dmsynth enable_dmsynth
14874wine_fn_config_dll dmusic enable_dmusic
Alexandre Julliard1858f432010-12-29 14:10:47 +010014875wine_fn_config_dll dmusic32 enable_dmusic32 implib
14876wine_fn_config_dll dnsapi enable_dnsapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014877wine_fn_config_test dlls/dnsapi/tests dnsapi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014878wine_fn_config_dll dplay enable_dplay implib
14879wine_fn_config_dll dplayx enable_dplayx implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014880wine_fn_config_test dlls/dplayx/tests dplayx_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014881wine_fn_config_dll dpnaddr enable_dpnaddr
Alexandre Julliard1858f432010-12-29 14:10:47 +010014882wine_fn_config_dll dpnet enable_dpnet implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014883wine_fn_config_dll dpnhpast enable_dpnhpast
14884wine_fn_config_dll dpnlobby enable_dpnlobby
14885wine_fn_config_dll dpwsockx enable_dpwsockx
14886wine_fn_config_dll drmclien enable_drmclien
Alexandre Julliard1858f432010-12-29 14:10:47 +010014887wine_fn_config_dll dsound enable_dsound implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014888wine_fn_config_test dlls/dsound/tests dsound_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014889wine_fn_config_dll dssenh enable_dssenh
14890wine_fn_config_dll dswave enable_dswave
Alexandre Julliard1858f432010-12-29 14:10:47 +010014891wine_fn_config_dll dwmapi enable_dwmapi implib
Andrew Nguyenf9c8e462011-04-03 20:55:32 -050014892wine_fn_config_dll dxdiagn enable_dxdiagn po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014893wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014894wine_fn_config_lib dxerr8
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014895wine_fn_config_lib dxerr9
Alexandre Julliard1858f432010-12-29 14:10:47 +010014896wine_fn_config_dll dxgi enable_dxgi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014897wine_fn_config_test dlls/dxgi/tests dxgi_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014898wine_fn_config_lib dxguid
David Hedberge2cf9ad2010-07-31 20:02:45 +020014899wine_fn_config_dll explorerframe enable_explorerframe
David Hedberg87212d52010-07-31 20:02:49 +020014900wine_fn_config_test dlls/explorerframe/tests explorerframe_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014901wine_fn_config_dll faultrep enable_faultrep implib
Detlef Riekenberg53fca112010-10-26 10:11:13 +020014902wine_fn_config_test dlls/faultrep/tests faultrep_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014903wine_fn_config_dll fltlib enable_fltlib
14904wine_fn_config_dll fusion enable_fusion
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014905wine_fn_config_test dlls/fusion/tests fusion_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014906wine_fn_config_dll fwpuclnt enable_fwpuclnt
Mariusz Plucińskib3a9ce42010-07-22 23:59:34 +020014907wine_fn_config_dll gameux enable_gameux
Mariusz Plucińskicb886f42010-08-03 11:58:01 +020014908wine_fn_config_test dlls/gameux/tests gameux_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014909wine_fn_config_dll gdi.exe16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014910wine_fn_config_dll gdi32 enable_gdi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014911wine_fn_config_test dlls/gdi32/tests gdi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014912wine_fn_config_dll gdiplus enable_gdiplus implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014913wine_fn_config_test dlls/gdiplus/tests gdiplus_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014914wine_fn_config_dll glu32 enable_glu32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014915wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14916wine_fn_config_dll gpkcsp enable_gpkcsp
14917wine_fn_config_dll hal enable_hal
Alexandre Julliardc9b52d22011-01-06 13:19:58 +010014918wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014919wine_fn_config_dll hid enable_hid implib
14920wine_fn_config_dll hlink enable_hlink implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014921wine_fn_config_test dlls/hlink/tests hlink_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014922wine_fn_config_dll hnetcfg enable_hnetcfg
14923wine_fn_config_dll httpapi enable_httpapi
Alexandre Julliard9c6444c2011-01-06 13:31:16 +010014924wine_fn_config_dll iccvid enable_iccvid po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014925wine_fn_config_dll icmp enable_icmp
Jacek Cabanc685f8c2011-07-27 14:45:47 +020014926wine_fn_config_dll ieframe enable_ieframe implib,po
Jacek Cabanf42d9e22011-07-28 13:32:01 +020014927wine_fn_config_test dlls/ieframe/tests ieframe_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014928wine_fn_config_dll ifsmgr.vxd enable_win16
14929wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
Alexandre Julliard1858f432010-12-29 14:10:47 +010014930wine_fn_config_dll imagehlp enable_imagehlp implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014931wine_fn_config_test dlls/imagehlp/tests imagehlp_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014932wine_fn_config_dll imm.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014933wine_fn_config_dll imm32 enable_imm32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014934wine_fn_config_test dlls/imm32/tests imm32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014935wine_fn_config_dll inetcomm enable_inetcomm implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014936wine_fn_config_test dlls/inetcomm/tests inetcomm_test
Alexandre Julliardbe521062011-01-12 15:49:32 +010014937wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014938wine_fn_config_dll inetmib1 enable_inetmib1
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014939wine_fn_config_test dlls/inetmib1/tests inetmib1_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014940wine_fn_config_dll infosoft enable_infosoft
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014941wine_fn_config_test dlls/infosoft/tests infosoft_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014942wine_fn_config_dll initpki enable_initpki
14943wine_fn_config_dll inkobj enable_inkobj
14944wine_fn_config_dll inseng enable_inseng
Alexandre Julliard1858f432010-12-29 14:10:47 +010014945wine_fn_config_dll iphlpapi enable_iphlpapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014946wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014947wine_fn_config_dll itircl enable_itircl
14948wine_fn_config_dll itss enable_itss
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014949wine_fn_config_test dlls/itss/tests itss_test
Alexandre Julliard0ccf1d82011-01-06 13:38:57 +010014950wine_fn_config_dll jscript enable_jscript po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014951wine_fn_config_test dlls/jscript/tests jscript_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014952wine_fn_config_dll kernel32 enable_kernel32 implib,mc
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014953wine_fn_config_test dlls/kernel32/tests kernel32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014954wine_fn_config_dll keyboard.drv16 enable_win16
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014955wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
Vincent Povirk8f874592010-09-26 16:38:44 -050014956wine_fn_config_dll ktmw32 enable_ktmw32
Alexandre Julliard1858f432010-12-29 14:10:47 +010014957wine_fn_config_dll loadperf enable_loadperf implib
Alexandre Julliard7df87f32011-01-06 14:24:05 +010014958wine_fn_config_dll localspl enable_localspl po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014959wine_fn_config_test dlls/localspl/tests localspl_test
Alexandre Julliard0546dd52011-01-12 16:11:26 +010014960wine_fn_config_dll localui enable_localui po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014961wine_fn_config_test dlls/localui/tests localui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014962wine_fn_config_dll lz32 enable_lz32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014963wine_fn_config_test dlls/lz32/tests lz32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014964wine_fn_config_dll lzexpand.dll16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014965wine_fn_config_dll mapi32 enable_mapi32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014966wine_fn_config_test dlls/mapi32/tests mapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014967wine_fn_config_dll mapistub enable_mapistub
14968wine_fn_config_dll mciavi32 enable_mciavi32
14969wine_fn_config_dll mcicda enable_mcicda
14970wine_fn_config_dll mciqtz32 enable_mciqtz32
14971wine_fn_config_dll mciseq enable_mciseq
14972wine_fn_config_dll mciwave enable_mciwave
14973wine_fn_config_dll midimap enable_midimap
Alexandre Julliard1858f432010-12-29 14:10:47 +010014974wine_fn_config_dll mlang enable_mlang implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014975wine_fn_config_test dlls/mlang/tests mlang_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014976wine_fn_config_dll mmdevapi enable_mmdevapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014977wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014978wine_fn_config_dll mmdevldr.vxd enable_win16
14979wine_fn_config_dll mmsystem.dll16 enable_win16
14980wine_fn_config_dll monodebg.vxd enable_win16
14981wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14982wine_fn_config_dll mouse.drv16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020014983wine_fn_config_dll mpr enable_mpr implib,po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014984wine_fn_config_dll mprapi enable_mprapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014985wine_fn_config_dll msacm.dll16 enable_win16
14986wine_fn_config_dll msacm32.drv enable_msacm32_drv
Alexandre Julliard1858f432010-12-29 14:10:47 +010014987wine_fn_config_dll msacm32 enable_msacm32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014988wine_fn_config_test dlls/msacm32/tests msacm32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014989wine_fn_config_dll msadp32.acm enable_msadp32_acm
14990wine_fn_config_dll mscat32 enable_mscat32
Alexandre Julliard1858f432010-12-29 14:10:47 +010014991wine_fn_config_dll mscms enable_mscms implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014992wine_fn_config_test dlls/mscms/tests mscms_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014993wine_fn_config_dll mscoree enable_mscoree
Louis Lendersa8528702010-08-24 11:48:01 +020014994wine_fn_config_test dlls/mscoree/tests mscoree_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014995wine_fn_config_dll msctf enable_msctf
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014996wine_fn_config_test dlls/msctf/tests msctf_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014997wine_fn_config_dll msdaps enable_msdaps
Alexandre Julliard1858f432010-12-29 14:10:47 +010014998wine_fn_config_dll msdmo enable_msdmo implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014999wine_fn_config_dll msftedit enable_msftedit
15000wine_fn_config_dll msg711.acm enable_msg711_acm
15001wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15002wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015003wine_fn_config_dll mshtml enable_mshtml implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015004wine_fn_config_test dlls/mshtml/tests mshtml_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015005wine_fn_config_dll msi enable_msi implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015006wine_fn_config_test dlls/msi/tests msi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015007wine_fn_config_dll msimg32 enable_msimg32 implib
Hans Leidekker530e9472011-03-10 10:59:44 +010015008wine_fn_config_dll msimsg enable_msimsg
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015009wine_fn_config_dll msimtf enable_msimtf
15010wine_fn_config_dll msisip enable_msisip
15011wine_fn_config_dll msisys.ocx enable_msisys_ocx
15012wine_fn_config_dll msnet32 enable_msnet32
David Hedberg21085ed2011-03-22 04:16:56 +010015013wine_fn_config_dll mspatcha enable_mspatcha
Alexandre Julliardad5605b2011-01-06 16:36:14 +010015014wine_fn_config_dll msrle32 enable_msrle32 po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015015wine_fn_config_dll mssign32 enable_mssign32
15016wine_fn_config_dll mssip32 enable_mssip32
15017wine_fn_config_dll mstask enable_mstask
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015018wine_fn_config_test dlls/mstask/tests mstask_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015019wine_fn_config_dll msvcirt enable_msvcirt
Austin Englishdfbf47b2011-04-05 12:47:46 -070015020wine_fn_config_dll msvcp100 enable_msvcp100
Alexandre Julliarda3172a52011-04-28 23:30:07 +020015021wine_fn_config_dll msvcp60 enable_msvcp60
Alexandre Julliard2f9c02e2011-05-03 11:09:58 +020015022wine_fn_config_dll msvcp70 enable_msvcp70
Alexandre Julliard4be20262011-05-02 17:32:22 +020015023wine_fn_config_dll msvcp71 enable_msvcp71
Piotr Caban71a49eb2010-08-23 16:36:24 +020015024wine_fn_config_dll msvcp80 enable_msvcp80
Piotr Caban9ae9d262010-07-20 23:22:16 +020015025wine_fn_config_dll msvcp90 enable_msvcp90
Piotr Caband589d952010-07-20 23:24:32 +020015026wine_fn_config_test dlls/msvcp90/tests msvcp90_test
Detlef Riekenberg1434ef42010-04-30 14:07:34 +020015027wine_fn_config_dll msvcr100 enable_msvcr100
Alexandre Julliard1858f432010-12-29 14:10:47 +010015028wine_fn_config_dll msvcr70 enable_msvcr70 implib
15029wine_fn_config_dll msvcr71 enable_msvcr71 implib
Piotr Cabanc4522492010-03-25 11:06:29 +010015030wine_fn_config_dll msvcr80 enable_msvcr80
15031wine_fn_config_dll msvcr90 enable_msvcr90
Detlef Riekenberg73e669c2010-03-20 00:32:17 +010015032wine_fn_config_test dlls/msvcr90/tests msvcr90_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015033wine_fn_config_dll msvcrt enable_msvcrt implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015034wine_fn_config_test dlls/msvcrt/tests msvcrt_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015035wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15036wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15037wine_fn_config_dll msvcrtd enable_msvcrtd implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015038wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015039wine_fn_config_dll msvfw32 enable_msvfw32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015040wine_fn_config_test dlls/msvfw32/tests msvfw32_test
Alexandre Julliard958ecd62011-01-06 17:07:23 +010015041wine_fn_config_dll msvidc32 enable_msvidc32 po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015042wine_fn_config_dll msvideo.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015043wine_fn_config_dll mswsock enable_mswsock implib
Alexandre Julliard25ccc902010-12-21 12:03:14 +010015044wine_fn_config_dll msxml enable_msxml
Alexandre Julliard41d6a922010-12-21 13:27:20 +010015045wine_fn_config_dll msxml2 enable_msxml2
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015046wine_fn_config_dll msxml3 enable_msxml3
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015047wine_fn_config_test dlls/msxml3/tests msxml3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015048wine_fn_config_dll msxml4 enable_msxml4
Nikolay Sivov25bce452010-08-30 01:31:07 +040015049wine_fn_config_dll msxml6 enable_msxml6
Alexandre Julliard1858f432010-12-29 14:10:47 +010015050wine_fn_config_dll nddeapi enable_nddeapi implib
15051wine_fn_config_dll netapi32 enable_netapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015052wine_fn_config_test dlls/netapi32/tests netapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015053wine_fn_config_dll newdev enable_newdev implib
Thomas Mullaly858ccff2011-01-02 17:13:43 -050015054wine_fn_config_dll normaliz enable_normaliz implib
Jacek Caban4a912652010-12-02 19:15:28 +010015055wine_fn_config_dll npmshtml enable_npmshtml
Alexandre Julliard1858f432010-12-29 14:10:47 +010015056wine_fn_config_dll ntdll enable_ntdll implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015057wine_fn_config_test dlls/ntdll/tests ntdll_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015058wine_fn_config_dll ntdsapi enable_ntdsapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015059wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015060wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015061wine_fn_config_dll ntprint enable_ntprint
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015062wine_fn_config_test dlls/ntprint/tests ntprint_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015063wine_fn_config_dll objsel enable_objsel
Alexandre Julliard1858f432010-12-29 14:10:47 +010015064wine_fn_config_dll odbc32 enable_odbc32 implib
15065wine_fn_config_dll odbccp32 enable_odbccp32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015066wine_fn_config_test dlls/odbccp32/tests odbccp32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015067wine_fn_config_dll ole2.dll16 enable_win16
15068wine_fn_config_dll ole2conv.dll16 enable_win16
15069wine_fn_config_dll ole2disp.dll16 enable_win16
15070wine_fn_config_dll ole2nls.dll16 enable_win16
15071wine_fn_config_dll ole2prox.dll16 enable_win16
15072wine_fn_config_dll ole2thk.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015073wine_fn_config_dll ole32 enable_ole32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015074wine_fn_config_test dlls/ole32/tests ole32_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015075wine_fn_config_dll oleacc enable_oleacc implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015076wine_fn_config_test dlls/oleacc/tests oleacc_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015077wine_fn_config_dll oleaut32 enable_oleaut32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015078wine_fn_config_test dlls/oleaut32/tests oleaut32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015079wine_fn_config_dll olecli.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015080wine_fn_config_dll olecli32 enable_olecli32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015081wine_fn_config_dll oledb32 enable_oledb32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015082wine_fn_config_test dlls/oledb32/tests oledb32_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015083wine_fn_config_dll oledlg enable_oledlg implib,po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015084wine_fn_config_dll olepro32 enable_olepro32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015085wine_fn_config_dll olesvr.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015086wine_fn_config_dll olesvr32 enable_olesvr32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015087wine_fn_config_dll olethk32 enable_olethk32
15088wine_fn_config_dll openal32 enable_openal32
Peter Urbanec65c84d72010-12-02 23:41:48 +110015089wine_fn_config_dll opencl enable_opencl
Alexandre Julliard1858f432010-12-29 14:10:47 +010015090wine_fn_config_dll opengl32 enable_opengl32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015091wine_fn_config_test dlls/opengl32/tests opengl32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015092wine_fn_config_dll pdh enable_pdh implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015093wine_fn_config_test dlls/pdh/tests pdh_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015094wine_fn_config_dll pidgen enable_pidgen
Alexandre Julliard1858f432010-12-29 14:10:47 +010015095wine_fn_config_dll powrprof enable_powrprof implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015096wine_fn_config_dll printui enable_printui
Alexandre Julliard1858f432010-12-29 14:10:47 +010015097wine_fn_config_dll propsys enable_propsys implib
Andrew Nguyenc20908b2010-07-25 21:57:59 -050015098wine_fn_config_test dlls/propsys/tests propsys_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015099wine_fn_config_dll psapi enable_psapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015100wine_fn_config_test dlls/psapi/tests psapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015101wine_fn_config_dll pstorec enable_pstorec
15102wine_fn_config_dll qcap enable_qcap
15103wine_fn_config_dll qedit enable_qedit
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015104wine_fn_config_test dlls/qedit/tests qedit_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015105wine_fn_config_dll qmgr enable_qmgr
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015106wine_fn_config_test dlls/qmgr/tests qmgr_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015107wine_fn_config_dll qmgrprxy enable_qmgrprxy
Alexandre Julliard1858f432010-12-29 14:10:47 +010015108wine_fn_config_dll quartz enable_quartz implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015109wine_fn_config_test dlls/quartz/tests quartz_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015110wine_fn_config_dll query enable_query
15111wine_fn_config_dll rasapi16.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015112wine_fn_config_dll rasapi32 enable_rasapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015113wine_fn_config_test dlls/rasapi32/tests rasapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015114wine_fn_config_dll rasdlg enable_rasdlg implib
Austin Englishd8d77802011-05-21 20:17:07 -050015115wine_fn_config_dll regapi enable_regapi
Alexandre Julliard1858f432010-12-29 14:10:47 +010015116wine_fn_config_dll resutils enable_resutils implib
15117wine_fn_config_dll riched20 enable_riched20 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015118wine_fn_config_test dlls/riched20/tests riched20_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015119wine_fn_config_dll riched32 enable_riched32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015120wine_fn_config_test dlls/riched32/tests riched32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015121wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015122wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015123wine_fn_config_dll rsabase enable_rsabase
Alexandre Julliard1858f432010-12-29 14:10:47 +010015124wine_fn_config_dll rsaenh enable_rsaenh implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015125wine_fn_config_test dlls/rsaenh/tests rsaenh_test
Louis Lenders85b3f292010-08-27 11:45:11 +020015126wine_fn_config_dll rstrtmgr enable_rstrtmgr
Alexandre Julliard1858f432010-12-29 14:10:47 +010015127wine_fn_config_dll rtutils enable_rtutils implib
Louis Lenders1ae673f2010-05-11 22:59:22 +020015128wine_fn_config_dll samlib enable_samlib
Alexandre Julliard036fe882011-01-14 12:48:59 +010015129wine_fn_config_dll sane.ds enable_sane_ds po
Stefan Leichter81f3d682011-04-03 23:50:40 +020015130wine_fn_config_dll scarddlg enable_scarddlg
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015131wine_fn_config_dll sccbase enable_sccbase
15132wine_fn_config_dll schannel enable_schannel
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015133wine_fn_config_test dlls/schannel/tests schannel_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015134wine_fn_config_dll secur32 enable_secur32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015135wine_fn_config_test dlls/secur32/tests secur32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015136wine_fn_config_dll security enable_security
Alexandre Julliard1858f432010-12-29 14:10:47 +010015137wine_fn_config_dll sensapi enable_sensapi implib
15138wine_fn_config_dll serialui enable_serialui implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015139wine_fn_config_test dlls/serialui/tests serialui_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015140wine_fn_config_dll setupapi enable_setupapi implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015141wine_fn_config_test dlls/setupapi/tests setupapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015142wine_fn_config_dll setupx.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015143wine_fn_config_dll sfc enable_sfc implib
15144wine_fn_config_dll sfc_os enable_sfc_os implib
Alexandre Julliardb31d2312011-01-06 17:42:05 +010015145wine_fn_config_dll shdoclc enable_shdoclc po
Jacek Cabanc685f8c2011-07-27 14:45:47 +020015146wine_fn_config_dll shdocvw enable_shdocvw implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015147wine_fn_config_test dlls/shdocvw/tests shdocvw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015148wine_fn_config_dll shell.dll16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015149wine_fn_config_dll shell32 enable_shell32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015150wine_fn_config_test dlls/shell32/tests shell32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015151wine_fn_config_dll shfolder enable_shfolder implib
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015152wine_fn_config_dll shlwapi enable_shlwapi implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015153wine_fn_config_test dlls/shlwapi/tests shlwapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015154wine_fn_config_dll slbcsp enable_slbcsp
Alexandre Julliard1858f432010-12-29 14:10:47 +010015155wine_fn_config_dll slc enable_slc implib
15156wine_fn_config_dll snmpapi enable_snmpapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015157wine_fn_config_test dlls/snmpapi/tests snmpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015158wine_fn_config_dll softpub enable_softpub
15159wine_fn_config_dll sound.drv16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015160wine_fn_config_dll spoolss enable_spoolss implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015161wine_fn_config_test dlls/spoolss/tests spoolss_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015162wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15163wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
Alexandre Julliard1858f432010-12-29 14:10:47 +010015164wine_fn_config_dll sti enable_sti implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015165wine_fn_config_test dlls/sti/tests sti_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015166wine_fn_config_dll storage.dll16 enable_win16
15167wine_fn_config_dll stress.dll16 enable_win16
Aric Stewart96192102010-10-04 09:48:25 -050015168wine_fn_config_lib strmbase
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015169wine_fn_config_lib strmiids
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015170wine_fn_config_dll svrapi enable_svrapi
15171wine_fn_config_dll sxs enable_sxs
15172wine_fn_config_dll system.drv16 enable_win16
15173wine_fn_config_dll t2embed enable_t2embed
Alexandre Julliard1858f432010-12-29 14:10:47 +010015174wine_fn_config_dll tapi32 enable_tapi32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015175wine_fn_config_dll toolhelp.dll16 enable_win16
15176wine_fn_config_dll traffic enable_traffic
15177wine_fn_config_dll twain.dll16 enable_win16
15178wine_fn_config_dll twain_32 enable_twain_32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015179wine_fn_config_test dlls/twain_32/tests twain_32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015180wine_fn_config_dll typelib.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015181wine_fn_config_dll unicows enable_unicows implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015182wine_fn_config_dll updspapi enable_updspapi
Alexandre Julliard1858f432010-12-29 14:10:47 +010015183wine_fn_config_dll url enable_url implib
15184wine_fn_config_dll urlmon enable_urlmon implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015185wine_fn_config_test dlls/urlmon/tests urlmon_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015186wine_fn_config_dll usbd.sys enable_usbd_sys implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015187wine_fn_config_dll user.exe16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015188wine_fn_config_dll user32 enable_user32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015189wine_fn_config_test dlls/user32/tests user32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015190wine_fn_config_dll userenv enable_userenv implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015191wine_fn_config_test dlls/userenv/tests userenv_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015192wine_fn_config_dll usp10 enable_usp10 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015193wine_fn_config_test dlls/usp10/tests usp10_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015194wine_fn_config_lib uuid
Alexandre Julliard1858f432010-12-29 14:10:47 +010015195wine_fn_config_dll uxtheme enable_uxtheme implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015196wine_fn_config_test dlls/uxtheme/tests uxtheme_test
Jacek Cabanc35aa012011-06-21 16:14:04 +020015197wine_fn_config_dll vbscript enable_vbscript
Jacek Caban68c6f582011-07-19 13:46:50 +020015198wine_fn_config_test dlls/vbscript/tests vbscript_test
Austin Englishdd2159c2011-04-08 18:03:47 +000015199wine_fn_config_dll vcomp enable_vcomp
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015200wine_fn_config_dll vdhcp.vxd enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015201wine_fn_config_dll vdmdbg enable_vdmdbg implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015202wine_fn_config_dll ver.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015203wine_fn_config_dll version enable_version implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015204wine_fn_config_test dlls/version/tests version_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015205wine_fn_config_dll vmm.vxd enable_win16
15206wine_fn_config_dll vnbt.vxd enable_win16
15207wine_fn_config_dll vnetbios.vxd enable_win16
15208wine_fn_config_dll vtdapi.vxd enable_win16
15209wine_fn_config_dll vwin32.vxd enable_win16
15210wine_fn_config_dll w32skrnl enable_win16
15211wine_fn_config_dll w32sys.dll16 enable_win16
15212wine_fn_config_dll wbemprox enable_wbemprox
Alexandre Julliard1858f432010-12-29 14:10:47 +010015213wine_fn_config_dll wer enable_wer implib
Detlef Riekenbergd8a5bc92010-10-26 11:37:17 +020015214wine_fn_config_test dlls/wer/tests wer_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015215wine_fn_config_dll wiaservc enable_wiaservc
15216wine_fn_config_dll win32s16.dll16 enable_win16
15217wine_fn_config_dll win87em.dll16 enable_win16
15218wine_fn_config_dll winaspi.dll16 enable_win16
15219wine_fn_config_dll windebug.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015220wine_fn_config_dll windowscodecs enable_windowscodecs implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015221wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015222wine_fn_config_dll winealsa.drv enable_winealsa_drv
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015223wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015224wine_fn_config_lib winecrt0
Alexandre Julliard1858f432010-12-29 14:10:47 +010015225wine_fn_config_dll wined3d enable_wined3d implib
Aric Stewart2914d652010-10-20 13:55:16 -050015226wine_fn_config_dll winegstreamer enable_winegstreamer
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015227wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15228wine_fn_config_dll winemapi enable_winemapi
15229wine_fn_config_dll winemp3.acm enable_winemp3_acm
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015230wine_fn_config_dll wineoss.drv enable_wineoss_drv
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015231wine_fn_config_dll wineps.drv enable_wineps_drv install-lib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015232wine_fn_config_dll wineps16.drv16 enable_win16
Aric Stewarteefe6f62010-12-03 07:33:08 -060015233wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015234wine_fn_config_dll winequartz.drv enable_winequartz_drv
15235wine_fn_config_dll winex11.drv enable_winex11_drv
15236wine_fn_config_dll wing.dll16 enable_win16
15237wine_fn_config_dll wing32 enable_wing32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015238wine_fn_config_dll winhttp enable_winhttp implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015239wine_fn_config_test dlls/winhttp/tests winhttp_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015240wine_fn_config_dll wininet enable_wininet implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015241wine_fn_config_test dlls/wininet/tests wininet_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015242wine_fn_config_dll winmm enable_winmm implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015243wine_fn_config_test dlls/winmm/tests winmm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015244wine_fn_config_dll winnls.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015245wine_fn_config_dll winnls32 enable_winnls32 implib
15246wine_fn_config_dll winscard enable_winscard implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015247wine_fn_config_dll winsock.dll16 enable_win16
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015248wine_fn_config_dll winspool.drv enable_winspool_drv implib,po winspool
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015249wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
Austin English14067ac2011-05-21 20:14:37 -050015250wine_fn_config_dll winsta enable_winsta
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015251wine_fn_config_dll wintab.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015252wine_fn_config_dll wintab32 enable_wintab32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015253wine_fn_config_test dlls/wintab32/tests wintab32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015254wine_fn_config_dll wintrust enable_wintrust implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015255wine_fn_config_test dlls/wintrust/tests wintrust_test
Ričardas Barkauskas303079f2010-10-20 11:21:15 +030015256wine_fn_config_dll wlanapi enable_wlanapi
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015257wine_fn_config_dll wldap32 enable_wldap32 implib,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015258wine_fn_config_test dlls/wldap32/tests wldap32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015259wine_fn_config_dll wmi enable_wmi
15260wine_fn_config_dll wmiutils enable_wmiutils
Alexandre Julliard1858f432010-12-29 14:10:47 +010015261wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15262wine_fn_config_dll wow32 enable_win16 implib
15263wine_fn_config_dll ws2_32 enable_ws2_32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015264wine_fn_config_test dlls/ws2_32/tests ws2_32_test
Jacek Caban1c2f0662011-08-03 13:22:54 +020015265wine_fn_config_dll wshom.ocx enable_wshom_ocx
Alexandre Julliard1858f432010-12-29 14:10:47 +010015266wine_fn_config_dll wsock32 enable_wsock32 implib
15267wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015268wine_fn_config_dll wuapi enable_wuapi
15269wine_fn_config_dll wuaueng enable_wuaueng
Louis Lenders934d6762010-11-12 11:23:37 +010015270wine_fn_config_dll xapofx1_1 enable_xapofx1_1
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015271wine_fn_config_dll xinput1_1 enable_xinput1_1
15272wine_fn_config_dll xinput1_2 enable_xinput1_2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015273wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015274wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015275wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15276wine_fn_config_dll xmllite enable_xmllite
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015277wine_fn_config_test dlls/xmllite/tests xmllite_test
Alexandre Julliard03642412010-03-20 15:24:22 +010015278wine_fn_config_makefile documentation enable_documentation
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015279wine_fn_config_makefile fonts enable_fonts install-lib
15280wine_fn_config_makefile include enable_include install-dev
Alexandre Julliard03642412010-03-20 15:24:22 +010015281wine_fn_config_makefile libs/port enable_libs_port
Alexandre Julliarde492fcc2011-06-12 12:03:53 +020015282wine_fn_config_makefile libs/wine enable_libs_wine install-dev,install-lib
Alexandre Julliard03642412010-03-20 15:24:22 +010015283wine_fn_config_makefile libs/wpp enable_libs_wpp
Alexandre Julliard41107a92011-08-01 13:40:19 +020015284wine_fn_config_makefile loader enable_loader install-lib,manpage
Hans Leidekkerab789c62010-10-13 14:23:09 +020015285wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015286wine_fn_config_program attrib enable_attrib install
Alexandre Julliard30bdbed2011-02-02 22:44:47 +010015287wine_fn_config_program cabarc enable_cabarc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015288wine_fn_config_program cacls enable_cacls install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015289wine_fn_config_program clock enable_clock install,po
15290wine_fn_config_program cmd enable_cmd install,po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015291wine_fn_config_test programs/cmd/tests cmd.exe_test
Alexandre Julliardd394e042010-03-20 14:53:39 +010015292wine_fn_config_program cmdlgtst enable_cmdlgtst
15293wine_fn_config_program control enable_control install
Andrew Nguyen4122cf22011-06-14 08:01:45 -050015294wine_fn_config_program dxdiag enable_dxdiag install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015295wine_fn_config_program eject enable_eject install
15296wine_fn_config_program expand enable_expand install
Jay Yangf2ac4862011-06-11 17:42:17 -040015297wine_fn_config_program explorer enable_explorer install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015298wine_fn_config_program extrac32 enable_extrac32 install
15299wine_fn_config_program hh enable_hh install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015300wine_fn_config_program hostname enable_hostname install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015301wine_fn_config_program icinfo enable_icinfo install
15302wine_fn_config_program iexplore enable_iexplore install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015303wine_fn_config_program ipconfig enable_ipconfig install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015304wine_fn_config_program lodctr enable_lodctr install
Hans Leidekkerf15aea22010-09-29 09:57:34 +020015305wine_fn_config_program mofcomp enable_mofcomp install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015306wine_fn_config_program mshta enable_mshta install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015307wine_fn_config_program msiexec enable_msiexec install,installbin,manpage
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015308wine_fn_config_program net enable_net install,po
Hans Leidekker8ad7d2e2010-12-06 13:19:41 +010015309wine_fn_config_program netsh enable_netsh install
Vincent Povirk4d3e6f42010-04-02 10:19:18 -050015310wine_fn_config_program ngen enable_ngen install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015311wine_fn_config_program notepad enable_notepad install,installbin,manpage,po
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015312wine_fn_config_program oleview enable_oleview install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015313wine_fn_config_program ping enable_ping install
Hans Leidekker2133b6c2011-01-31 15:26:17 +010015314wine_fn_config_program plugplay enable_plugplay install
Hans Leidekker89599612011-08-24 10:23:57 +020015315wine_fn_config_program presentationfontcache enable_presentationfontcache install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015316wine_fn_config_program progman enable_progman install,po
15317wine_fn_config_program reg enable_reg install,po
Alexandre Julliard41107a92011-08-01 13:40:19 +020015318wine_fn_config_program regedit enable_regedit install,installbin,manpage,po
Andrew Eikumf3c6c622010-07-30 16:02:34 -050015319wine_fn_config_test programs/regedit/tests regedit.exe_test
Hans Leidekkerab5fbeb2010-11-12 13:07:40 +010015320wine_fn_config_program regsvcs enable_regsvcs install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015321wine_fn_config_program regsvr32 enable_regsvr32 install,installbin,manpage
Alexandre Julliardd394e042010-03-20 14:53:39 +010015322wine_fn_config_program rpcss enable_rpcss install
Detlef Riekenbergdf898ea2010-07-18 19:15:57 +020015323wine_fn_config_program rundll.exe16 enable_win16 install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015324wine_fn_config_program rundll32 enable_rundll32 install
Hans Leidekker544da282010-05-03 12:56:58 +020015325wine_fn_config_program sc enable_sc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015326wine_fn_config_program secedit enable_secedit install
Hans Leidekker1885c3d2010-11-18 12:09:11 +010015327wine_fn_config_program servicemodelreg enable_servicemodelreg install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015328wine_fn_config_program services enable_services install
15329wine_fn_config_program spoolsv enable_spoolsv install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015330wine_fn_config_program start enable_start install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015331wine_fn_config_program svchost enable_svchost install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015332wine_fn_config_program taskkill enable_taskkill install,po
15333wine_fn_config_program taskmgr enable_taskmgr install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015334wine_fn_config_program termsv enable_termsv install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015335wine_fn_config_program uninstaller enable_uninstaller install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015336wine_fn_config_program unlodctr enable_unlodctr install
Alexandre Julliard9d6489a2011-01-10 13:25:22 +010015337wine_fn_config_program view enable_view po
Alexandre Julliard41107a92011-08-01 13:40:19 +020015338wine_fn_config_program wineboot enable_wineboot install,installbin,manpage
Alexandre Julliardd394e042010-03-20 14:53:39 +010015339wine_fn_config_program winebrowser enable_winebrowser install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015340wine_fn_config_program winecfg enable_winecfg install,installbin,manpage,po
15341wine_fn_config_program wineconsole enable_wineconsole install,installbin,manpage,po
15342wine_fn_config_program winedbg enable_winedbg install,installbin,manpage,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015343wine_fn_config_program winedevice enable_winedevice install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015344wine_fn_config_program winefile enable_winefile install,installbin,manpage,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015345wine_fn_config_program winemenubuilder enable_winemenubuilder install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015346wine_fn_config_program winemine enable_winemine install,installbin,manpage,po
Hans Leidekker13700722011-02-01 14:01:42 +010015347wine_fn_config_program winemsibuilder enable_winemsibuilder install
Alexandre Julliard41107a92011-08-01 13:40:19 +020015348wine_fn_config_program winepath enable_winepath install,installbin,manpage
Alexandre Julliardd394e042010-03-20 14:53:39 +010015349wine_fn_config_program winetest enable_winetest
15350wine_fn_config_program winevdm enable_win16 install
15351wine_fn_config_program winhelp.exe16 enable_win16 install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015352wine_fn_config_program winhlp32 enable_winhlp32 install,po
Alexandre Julliardd394e042010-03-20 14:53:39 +010015353wine_fn_config_program winoldap.mod16 enable_win16 install
15354wine_fn_config_program winver enable_winver install
Louis Lenders4b281b22010-12-06 23:04:20 +010015355wine_fn_config_program wmic enable_wmic install
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015356wine_fn_config_program wordpad enable_wordpad install,po
15357wine_fn_config_program write enable_write install,po
Jacek Caban16bad582010-07-27 15:51:18 +020015358wine_fn_config_program wscript enable_wscript install
Jacek Cabanf5eb15a2011-02-22 19:48:37 +010015359wine_fn_config_test programs/wscript/tests wscript.exe_test
Alexandre Julliarde2db7942011-06-12 11:41:43 +020015360wine_fn_config_program xcopy enable_xcopy install,po
Alexandre Julliard41107a92011-08-01 13:40:19 +020015361wine_fn_config_makefile server enable_server install-lib,manpage
15362wine_fn_config_tool tools install-dev,install-lib,manpage
15363wine_fn_config_tool tools/widl install-dev,manpage
15364wine_fn_config_tool tools/winebuild install-dev,manpage
15365wine_fn_config_tool tools/winedump install-dev,manpage
15366wine_fn_config_tool tools/winegcc install-dev,manpage
15367wine_fn_config_tool tools/wmc install-dev,manpage
15368wine_fn_config_tool tools/wrc install-dev,manpage
Alexandre Julliard626f4252000-11-10 23:35:20 +000015369
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015370LINGUAS="\
Alexandre Julliardff71d912011-01-08 12:53:31 +010015371ar \
Alexandre Julliard4bca3342011-01-04 19:38:45 +010015372bg \
Alexandre Julliard39558f82011-01-13 17:24:15 +010015373ca \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015374cs \
15375da \
15376de \
Alexandre Julliardc9b52d22011-01-06 13:19:58 +010015377el \
15378en \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015379en_US \
15380eo \
15381es \
Alexandre Julliardff71d912011-01-08 12:53:31 +010015382fa \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015383fi \
15384fr \
15385he \
15386hi \
15387hu \
15388it \
15389ja \
15390ko \
15391lt \
15392ml \
15393nb_NO \
15394nl \
15395or \
15396pa \
15397pl \
15398pt_BR \
15399pt_PT \
Alexandre Julliard433e2402011-01-10 20:30:14 +010015400rm \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015401ro \
15402ru \
15403sk \
15404sl \
Alexandre Julliardc0b813f2011-01-07 12:11:41 +010015405sr_RS@cyrillic \
15406sr_RS@latin \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015407sv \
15408te \
15409th \
15410tr \
15411uk \
15412wa \
15413zh_CN \
15414zh_TW"
15415
15416
15417
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015418ac_config_commands="$ac_config_commands Makefile"
15419
15420
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020015421ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
Alexandre Julliard92b57312010-03-22 20:25:30 +010015422
15423
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015424
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015425if test "x$enable_maintainer_mode" = xyes
15426then
15427 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15428 cd \$(srcdir) && autoconf --warnings=all
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015429\$(srcdir)/include/config.h.in: include/stamp-h.in
15430\$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15431 cd \$(srcdir) && autoheader --warnings=all
Alexandre Julliard367fd222011-01-04 17:05:21 +010015432 @echo timestamp > \$@
15433
15434ALL_POT_FILES =$ALL_POT_FILES
15435all: \$(ALL_PO_FILES)
15436\$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
Alexandre Julliard945ccf52011-01-27 15:09:55 +010015437 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
Alexandre Julliard367fd222011-01-04 17:05:21 +010015438\$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15439 msgcat -o \$@ \$(ALL_POT_FILES)"
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015440fi
15441
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020015442if test "x$enable_tools" != xno
15443then
15444 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(MAKEDEP): tools/Makefile
15445clean:: __clean__
15446 \$(RM) tools/makedep\$(EXEEXT)"
15447fi
15448
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015449if test -n "$with_wine64"
15450then
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020015451wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader
15452fonts server tools:
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015453 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020015454$with_wine64/loader/wine:
15455 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
Alexandre Julliard3c42b622010-12-27 14:37:57 +010015456$with_wine64/loader/wine-preloader:
15457 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015458clean::
Alexandre Julliard84fd1f52011-05-10 11:59:43 +020015459 \$(RM) fonts server tools $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015460fi
15461
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015462cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015463# This file is a shell script that caches the results of configure
15464# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015465# scripts and configure runs, see configure's option --config-cache.
15466# It is not useful on other systems. If it contains results you don't
15467# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015468#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015469# config.status only pays attention to the cache file if you give it
15470# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015471#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015472# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015473# loading this file, other *unset* `ac_cv_foo' will be assigned the
15474# following values.
15475
15476_ACEOF
15477
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015478# The following way of writing the cache mishandles newlines in values,
15479# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015480# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015481# Ultrix sh set writes to stderr and can't be redirected directly,
15482# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015483(
15484 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15485 eval ac_val=\$$ac_var
15486 case $ac_val in #(
15487 *${as_nl}*)
15488 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015489 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015490$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015491 esac
15492 case $ac_var in #(
15493 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015494 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015495 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015496 esac ;;
15497 esac
15498 done
15499
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015500 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015501 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15502 *${as_nl}ac_space=\ *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015503 # `set' does not quote correctly, so add quotes: double-quote
15504 # substitution turns \\\\ into \\, and sed turns \\ into \.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015505 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015506 "s/'/'\\\\''/g;
15507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015508 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015509 *)
15510 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015512 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015513 esac |
15514 sort
15515) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015516 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015517 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015518 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015519 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015520 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15521 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015522 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15523 :end' >>confcache
Jeremy White0ebeb532006-06-20 13:18:41 +020015524if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15525 if test -w "$cache_file"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +020015526 if test "x$cache_file" != "x/dev/null"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015527 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015528$as_echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliard9797da42011-04-27 17:37:43 +020015529 if test ! -f "$cache_file" || test -h "$cache_file"; then
15530 cat confcache >"$cache_file"
15531 else
15532 case $cache_file in #(
15533 */* | ?:*)
15534 mv -f confcache "$cache_file"$$ &&
15535 mv -f "$cache_file"$$ "$cache_file" ;; #(
15536 *)
15537 mv -f confcache "$cache_file" ;;
15538 esac
15539 fi
15540 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015541 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015542 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015543$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015544 fi
15545fi
15546rm -f confcache
15547
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015548test "x$prefix" = xNONE && prefix=$ac_default_prefix
15549# Let make expand exec_prefix.
15550test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15551
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015552DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015553
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015554ac_libobjs=
15555ac_ltlibobjs=
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015556U=
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015557for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15558 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015559 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015560 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015561 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15562 # will be set to the directory where LIBOBJS objects are built.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015563 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15564 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015565done
15566LIBOBJS=$ac_libobjs
15567
15568LTLIBOBJS=$ac_ltlibobjs
15569
15570
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015571
Alexandre Julliard9797da42011-04-27 17:37:43 +020015572: "${CONFIG_STATUS=./config.status}"
Alexandre Julliardabf50482008-10-31 12:56:53 +010015573ac_write_fail=0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015574ac_clean_files_save=$ac_clean_files
15575ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015576{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015577$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015578as_write_fail=0
15579cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015580#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015581# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015582# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015583# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015584# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015585
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015586debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015587ac_cs_recheck=false
15588ac_cs_silent=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015589
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015590SHELL=\${CONFIG_SHELL-$SHELL}
15591export SHELL
15592_ASEOF
15593cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15594## -------------------- ##
15595## M4sh Initialization. ##
15596## -------------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015597
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015598# Be more Bourne compatible
15599DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015600if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015601 emulate sh
15602 NULLCMD=:
Alexandre Julliardabf50482008-10-31 12:56:53 +010015603 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015604 # is contrary to our usage. Disable this feature.
15605 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015606 setopt NO_GLOB_SUBST
15607else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015608 case `(set -o) 2>/dev/null` in #(
15609 *posix*) :
15610 set -o posix ;; #(
15611 *) :
15612 ;;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015613esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015614fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015615
15616
Alexandre Julliardabf50482008-10-31 12:56:53 +010015617as_nl='
15618'
15619export as_nl
15620# Printing a long string crashes Solaris 7 /usr/bin/printf.
15621as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15622as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15623as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015624# Prefer a ksh shell builtin over an external printf program on Solaris,
15625# but without wasting forks for bash or zsh.
15626if test -z "$BASH_VERSION$ZSH_VERSION" \
15627 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15628 as_echo='print -r --'
15629 as_echo_n='print -rn --'
15630elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015631 as_echo='printf %s\n'
15632 as_echo_n='printf %s'
15633else
15634 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15635 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15636 as_echo_n='/usr/ucb/echo -n'
15637 else
15638 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15639 as_echo_n_body='eval
15640 arg=$1;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015641 case $arg in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015642 *"$as_nl"*)
15643 expr "X$arg" : "X\\(.*\\)$as_nl";
15644 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15645 esac;
15646 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15647 '
15648 export as_echo_n_body
15649 as_echo_n='sh -c $as_echo_n_body as_echo'
15650 fi
15651 export as_echo_body
15652 as_echo='sh -c $as_echo_body as_echo'
15653fi
15654
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015655# The user is always right.
15656if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015657 PATH_SEPARATOR=:
15658 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15659 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15660 PATH_SEPARATOR=';'
15661 }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015662fi
15663
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015664
15665# IFS
15666# We need space, tab and new line, in precisely that order. Quoting is
15667# there to prevent editors from complaining about space-tab.
15668# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15669# splitting by setting IFS to empty value.)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015670IFS=" "" $as_nl"
15671
15672# Find who we are. Look in the path if we contain no directory separator.
Alexandre Julliard9797da42011-04-27 17:37:43 +020015673as_myself=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015674case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015675 *[\\/]* ) as_myself=$0 ;;
15676 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015677for as_dir in $PATH
15678do
15679 IFS=$as_save_IFS
15680 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015681 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15682 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015683IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015684
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015685 ;;
15686esac
15687# We did not find ourselves, most probably we were run as `sh COMMAND'
15688# in which case we are not to be found in the path.
15689if test "x$as_myself" = x; then
15690 as_myself=$0
15691fi
15692if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015693 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015694 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015695fi
15696
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015697# Unset variables that we do not need and which cause bugs (e.g. in
15698# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15699# suppresses any "Segmentation fault" message there. '((' could
15700# trigger a bug in pdksh 5.2.14.
15701for as_var in BASH_ENV ENV MAIL MAILPATH
15702do eval test x\${$as_var+set} = xset \
15703 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015704done
15705PS1='$ '
15706PS2='> '
15707PS4='+ '
15708
15709# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +010015710LC_ALL=C
15711export LC_ALL
15712LANGUAGE=C
15713export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015714
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015715# CDPATH.
15716(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15717
15718
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015719# as_fn_error STATUS ERROR [LINENO LOG_FD]
15720# ----------------------------------------
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015721# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15722# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015723# script with STATUS, using 1 if that was 0.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015724as_fn_error ()
15725{
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015726 as_status=$1; test $as_status -eq 0 && as_status=1
15727 if test "$4"; then
15728 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15729 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015730 fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015731 $as_echo "$as_me: error: $2" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015732 as_fn_exit $as_status
15733} # as_fn_error
15734
15735
15736# as_fn_set_status STATUS
15737# -----------------------
15738# Set $? to STATUS, without forking.
15739as_fn_set_status ()
15740{
15741 return $1
15742} # as_fn_set_status
15743
15744# as_fn_exit STATUS
15745# -----------------
15746# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15747as_fn_exit ()
15748{
15749 set +e
15750 as_fn_set_status $1
15751 exit $1
15752} # as_fn_exit
15753
15754# as_fn_unset VAR
15755# ---------------
15756# Portably unset VAR.
15757as_fn_unset ()
15758{
15759 { eval $1=; unset $1;}
15760}
15761as_unset=as_fn_unset
15762# as_fn_append VAR VALUE
15763# ----------------------
15764# Append the text in VALUE to the end of the definition contained in VAR. Take
15765# advantage of any shell optimizations that allow amortized linear growth over
15766# repeated appends, instead of the typical quadratic growth present in naive
15767# implementations.
15768if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15769 eval 'as_fn_append ()
15770 {
15771 eval $1+=\$2
15772 }'
15773else
15774 as_fn_append ()
15775 {
15776 eval $1=\$$1\$2
15777 }
15778fi # as_fn_append
15779
15780# as_fn_arith ARG...
15781# ------------------
15782# Perform arithmetic evaluation on the ARGs, and store the result in the
15783# global $as_val. Take advantage of shells that can avoid forks. The arguments
15784# must be portable across $(()) and expr.
15785if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15786 eval 'as_fn_arith ()
15787 {
15788 as_val=$(( $* ))
15789 }'
15790else
15791 as_fn_arith ()
15792 {
15793 as_val=`expr "$@" || test $? -eq 1`
15794 }
15795fi # as_fn_arith
15796
15797
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015798if expr a : '\(a\)' >/dev/null 2>&1 &&
15799 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15800 as_expr=expr
15801else
15802 as_expr=false
15803fi
15804
15805if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15806 as_basename=basename
15807else
15808 as_basename=false
15809fi
15810
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015811if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15812 as_dirname=dirname
15813else
15814 as_dirname=false
15815fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015816
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015817as_me=`$as_basename -- "$0" ||
15818$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15819 X"$0" : 'X\(//\)$' \| \
15820 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010015821$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015822 sed '/^.*\/\([^/][^/]*\)\/*$/{
15823 s//\1/
15824 q
15825 }
15826 /^X\/\(\/\/\)$/{
15827 s//\1/
15828 q
15829 }
15830 /^X\/\(\/\).*/{
15831 s//\1/
15832 q
15833 }
15834 s/.*/./; q'`
15835
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015836# Avoid depending upon Character Ranges.
15837as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15838as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15839as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15840as_cr_digits='0123456789'
15841as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015842
15843ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015844case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015845-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015846 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015847 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015848 xy) ECHO_C='\c';;
15849 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15850 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015851 esac;;
15852*)
15853 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015854esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015855
15856rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015857if test -d conf$$.dir; then
15858 rm -f conf$$.dir/conf$$.file
15859else
15860 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +010015861 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015862fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010015863if (echo >conf$$.file) 2>/dev/null; then
15864 if ln -s conf$$.file conf$$ 2>/dev/null; then
15865 as_ln_s='ln -s'
15866 # ... but there are two gotchas:
15867 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15868 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15869 # In both cases, we have to default to `cp -p'.
15870 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15871 as_ln_s='cp -p'
15872 elif ln conf$$.file conf$$ 2>/dev/null; then
15873 as_ln_s=ln
15874 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015875 as_ln_s='cp -p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015876 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015877else
15878 as_ln_s='cp -p'
15879fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015880rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15881rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015882
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015883
15884# as_fn_mkdir_p
15885# -------------
15886# Create "$as_dir" as a directory, including parents if necessary.
15887as_fn_mkdir_p ()
15888{
15889
15890 case $as_dir in #(
15891 -*) as_dir=./$as_dir;;
15892 esac
15893 test -d "$as_dir" || eval $as_mkdir_p || {
15894 as_dirs=
15895 while :; do
15896 case $as_dir in #(
15897 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15898 *) as_qdir=$as_dir;;
15899 esac
15900 as_dirs="'$as_qdir' $as_dirs"
15901 as_dir=`$as_dirname -- "$as_dir" ||
15902$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15903 X"$as_dir" : 'X\(//\)[^/]' \| \
15904 X"$as_dir" : 'X\(//\)$' \| \
15905 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15906$as_echo X"$as_dir" |
15907 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15908 s//\1/
15909 q
15910 }
15911 /^X\(\/\/\)[^/].*/{
15912 s//\1/
15913 q
15914 }
15915 /^X\(\/\/\)$/{
15916 s//\1/
15917 q
15918 }
15919 /^X\(\/\).*/{
15920 s//\1/
15921 q
15922 }
15923 s/.*/./; q'`
15924 test -d "$as_dir" && break
15925 done
15926 test -z "$as_dirs" || eval "mkdir $as_dirs"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015927 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015928
15929
15930} # as_fn_mkdir_p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015931if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015932 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015933else
Alexandre Julliard875927f2004-01-02 01:55:29 +000015934 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015935 as_mkdir_p=false
15936fi
15937
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015938if test -x / >/dev/null 2>&1; then
15939 as_test_x='test -x'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015940else
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015941 if ls -dL / >/dev/null 2>&1; then
15942 as_ls_L_option=L
15943 else
15944 as_ls_L_option=
15945 fi
15946 as_test_x='
15947 eval sh -c '\''
15948 if test -d "$1"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015949 test -d "$1/.";
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015950 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015951 case $1 in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015952 -*)set "./$1";;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015953 esac;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015954 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015955 ???[sx]*):;;*)false;;esac;fi
15956 '\'' sh
15957 '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015958fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015959as_executable_p=$as_test_x
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015960
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015961# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000015962as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015963
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015964# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000015965as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015966
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015967
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015968exec 6>&1
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015969## ----------------------------------- ##
15970## Main body of $CONFIG_STATUS script. ##
15971## ----------------------------------- ##
15972_ASEOF
15973test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015974
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015975cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15976# Save the log message, to keep $0 and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015977# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015978# values after options handling.
15979ac_log="
Alexandre Julliard8c00ee02011-08-05 19:24:22 +020015980This file was extended by Wine $as_me 1.3.26, which was
Alexandre Julliard9797da42011-04-27 17:37:43 +020015981generated by GNU Autoconf 2.68. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015982
15983 CONFIG_FILES = $CONFIG_FILES
15984 CONFIG_HEADERS = $CONFIG_HEADERS
15985 CONFIG_LINKS = $CONFIG_LINKS
15986 CONFIG_COMMANDS = $CONFIG_COMMANDS
15987 $ $0 $@
15988
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015989on `(hostname || uname -n) 2>/dev/null | sed 1q`
15990"
15991
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015992_ACEOF
15993
Alexandre Julliardabf50482008-10-31 12:56:53 +010015994case $ac_config_files in *"
15995"*) set x $ac_config_files; shift; ac_config_files=$*;;
15996esac
15997
15998case $ac_config_headers in *"
15999"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16000esac
16001
16002
16003cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016004# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016005config_files="$ac_config_files"
16006config_headers="$ac_config_headers"
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016007config_links="$ac_config_links"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016008config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016009
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016010_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016011
Alexandre Julliardabf50482008-10-31 12:56:53 +010016012cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016013ac_cs_usage="\
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016014\`$as_me' instantiates files and other configuration actions
16015from templates according to the current configuration. Unless the files
16016and actions are specified as TAGs, all are instantiated by default.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016017
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016018Usage: $0 [OPTION]... [TAG]...
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016019
16020 -h, --help print this help, then exit
Alexandre Julliard78bd1942006-08-14 20:42:56 +020016021 -V, --version print version number and configuration settings, then exit
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016022 --config print configuration, then exit
Alexandre Julliardabf50482008-10-31 12:56:53 +010016023 -q, --quiet, --silent
16024 do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016025 -d, --debug don't remove temporary files
16026 --recheck update $as_me by reconfiguring in the same conditions
Alexandre Julliardabf50482008-10-31 12:56:53 +010016027 --file=FILE[:TEMPLATE]
16028 instantiate the configuration file FILE
16029 --header=FILE[:TEMPLATE]
16030 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016031
16032Configuration files:
16033$config_files
16034
16035Configuration headers:
16036$config_headers
16037
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016038Configuration links:
16039$config_links
16040
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016041Configuration commands:
16042$config_commands
16043
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016044Report bugs to <wine-devel@winehq.org>.
16045Wine home page: <http://www.winehq.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000016046
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016047_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016048cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016049ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016050ac_cs_version="\\
Alexandre Julliard8c00ee02011-08-05 19:24:22 +020016051Wine config.status 1.3.26
Alexandre Julliard9797da42011-04-27 17:37:43 +020016052configured by $0, generated by GNU Autoconf 2.68,
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016053 with options \\"\$ac_cs_config\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016054
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016055Copyright (C) 2010 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016056This config.status script is free software; the Free Software Foundation
16057gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016058
16059ac_pwd='$ac_pwd'
16060srcdir='$srcdir'
16061INSTALL='$INSTALL'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016062test -n "\$AWK" || AWK=awk
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016063_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016064
Alexandre Julliardabf50482008-10-31 12:56:53 +010016065cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16066# The default lists apply if the user does not specify any file.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016067ac_need_defaults=:
16068while test $# != 0
16069do
16070 case $1 in
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016071 --*=?*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016072 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16073 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016074 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016075 ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016076 --*=)
16077 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16078 ac_optarg=
16079 ac_shift=:
16080 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016081 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016082 ac_option=$1
16083 ac_optarg=$2
16084 ac_shift=shift
16085 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016086 esac
16087
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016088 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016089 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016090 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16091 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016092 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Alexandre Julliardabf50482008-10-31 12:56:53 +010016093 $as_echo "$ac_cs_version"; exit ;;
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016094 --config | --confi | --conf | --con | --co | --c )
16095 $as_echo "$ac_cs_config"; exit ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016096 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016097 debug=: ;;
16098 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016099 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010016100 case $ac_optarg in
16101 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016102 '') as_fn_error $? "missing file argument" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +010016103 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016104 as_fn_append CONFIG_FILES " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016105 ac_need_defaults=false;;
16106 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016107 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010016108 case $ac_optarg in
16109 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16110 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016111 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016112 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016113 --he | --h)
16114 # Conflict between --help and --header
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016115 as_fn_error $? "ambiguous option: \`$1'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016116Try \`$0 --help' for more information.";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016117 --help | --hel | -h )
Alexandre Julliardabf50482008-10-31 12:56:53 +010016118 $as_echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16120 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16121 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016122
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016123 # This is an error.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016124 -*) as_fn_error $? "unrecognized option: \`$1'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016125Try \`$0 --help' for more information." ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016126
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016127 *) as_fn_append ac_config_targets " $1"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016128 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016129
16130 esac
16131 shift
16132done
16133
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016134ac_configure_extra_args=
16135
16136if $ac_cs_silent; then
16137 exec 6>/dev/null
16138 ac_configure_extra_args="$ac_configure_extra_args --silent"
16139fi
16140
16141_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016142cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016143if \$ac_cs_recheck; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016144 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16145 shift
16146 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16147 CONFIG_SHELL='$SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016148 export CONFIG_SHELL
Alexandre Julliardabf50482008-10-31 12:56:53 +010016149 exec "\$@"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016150fi
16151
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016152_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016154exec 5>>config.log
16155{
16156 echo
16157 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16158## Running $as_me. ##
16159_ASBOX
Alexandre Julliardabf50482008-10-31 12:56:53 +010016160 $as_echo "$ac_log"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016161} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016162
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016163_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016164cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016165#
16166# INIT-COMMANDS
16167#
16168wine_fn_output_makefile ()
16169{
16170 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16171$ALL_MAKEFILE_DEPENDS
16172_WINE_EOF
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016173 as_fn_error $? "could not create Makefile" "$LINENO" 5
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016174}
16175
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016176_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016177
Alexandre Julliardabf50482008-10-31 12:56:53 +010016178cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016179
16180# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016181for ac_config_target in $ac_config_targets
16182do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016183 case $ac_config_target in
16184 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliardc4704c22006-09-22 09:33:00 +020016185 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
Alexandre Julliard40977bf2010-11-11 12:24:46 +010016186 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
Alexandre Julliarda6320522010-02-03 13:14:03 +010016187 "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 +010016188 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16189 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16190 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16191 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
Alexandre Julliard321d3882010-05-06 20:51:53 +020016192 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016193 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
Alexandre Julliard4422d222011-05-10 13:26:28 +020016194 "wine64") CONFIG_LINKS="$CONFIG_LINKS wine64:tools/winewrapper" ;;
Huw Davies4cffb2d2011-04-01 15:27:48 +010016195 "dlls/gdi32/dibdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/dibdrv" ;;
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020016196 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16197 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020016198 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010016199 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016200 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16201 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16202 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010016203 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016204 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16205 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016206 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016207 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020016208 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016209
Alexandre Julliard9797da42011-04-27 17:37:43 +020016210 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016211 esac
16212done
16213
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016214
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016215# If the user did not use the arguments to specify the items to instantiate,
16216# then the envvar interface is used. Set only those that are not.
16217# We use the long form for the default assignment because of an extremely
16218# bizarre bug on SunOS 4.1.3.
16219if $ac_need_defaults; then
16220 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16221 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016222 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016223 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16224fi
16225
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016226# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016227# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016228# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016229# Hook for its removal unless debugging.
16230# Note that there is a small window in which the directory will not be cleaned:
16231# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016232$debug ||
16233{
Alexandre Julliard9797da42011-04-27 17:37:43 +020016234 tmp= ac_tmp=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016235 trap 'exit_status=$?
Alexandre Julliard9797da42011-04-27 17:37:43 +020016236 : "${ac_tmp:=$tmp}"
16237 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016238' 0
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016239 trap 'as_fn_exit 1' 1 2 13 15
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016240}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016241# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016242
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016243{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016244 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliard9797da42011-04-27 17:37:43 +020016245 test -d "$tmp"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016246} ||
16247{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016248 tmp=./conf$$-$RANDOM
16249 (umask 077 && mkdir "$tmp")
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016250} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Alexandre Julliard9797da42011-04-27 17:37:43 +020016251ac_tmp=$tmp
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016252
Alexandre Julliardabf50482008-10-31 12:56:53 +010016253# Set up the scripts for CONFIG_FILES section.
16254# No need to generate them if there are no CONFIG_FILES.
16255# This happens for instance with `./config.status config.h'.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016256if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016257
Alexandre Julliardabf50482008-10-31 12:56:53 +010016258if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16259 ac_cs_awk_getline=:
16260 ac_cs_awk_pipe_init=
16261 ac_cs_awk_read_file='
16262 while ((getline aline < (F[key])) > 0)
16263 print(aline)
16264 close(F[key])'
16265 ac_cs_awk_pipe_fini=
16266else
16267 ac_cs_awk_getline=false
16268 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16269 ac_cs_awk_read_file='
16270 print "|#_!!_#|"
16271 print "cat " F[key] " &&"
16272 '$ac_cs_awk_pipe_init
16273 # The final `:' finishes the AND list.
16274 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16275fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016276ac_cr=`echo X | tr X '\015'`
16277# On cygwin, bash can eat \r inside `` if the user requested igncr.
16278# But we know of no other shell where ac_cr would be empty at this
16279# point, so we can use a bashism as a fallback.
16280if test "x$ac_cr" = x; then
16281 eval ac_cr=\$\'\\r\'
16282fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016283ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16284if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016285 ac_cs_awk_cr='\\r'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016286else
16287 ac_cs_awk_cr=$ac_cr
16288fi
16289
Alexandre Julliard9797da42011-04-27 17:37:43 +020016290echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016291_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016292
Alexandre Julliardabf50482008-10-31 12:56:53 +010016293# Create commands to substitute file output variables.
16294{
16295 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Alexandre Julliard9797da42011-04-27 17:37:43 +020016296 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Alexandre Julliardabf50482008-10-31 12:56:53 +010016297 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16298 echo "_ACAWK" &&
16299 echo "_ACEOF"
16300} >conf$$files.sh &&
16301. ./conf$$files.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016302 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016303rm -f conf$$files.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016304
Alexandre Julliardabf50482008-10-31 12:56:53 +010016305{
16306 echo "cat >conf$$subs.awk <<_ACEOF" &&
16307 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16308 echo "_ACEOF"
16309} >conf$$subs.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016310 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16311ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016312ac_delim='%!_!# '
16313for ac_last_try in false false false false false :; do
Alexandre Julliardabf50482008-10-31 12:56:53 +010016314 . ./conf$$subs.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016315 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016316
Alexandre Julliardabf50482008-10-31 12:56:53 +010016317 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16318 if test $ac_delim_n = $ac_delim_num; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016319 break
16320 elif $ac_last_try; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016321 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016322 else
16323 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016324 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016325done
Alexandre Julliardabf50482008-10-31 12:56:53 +010016326rm -f conf$$subs.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016327
Alexandre Julliardabf50482008-10-31 12:56:53 +010016328cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard9797da42011-04-27 17:37:43 +020016329cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016330_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016331sed -n '
16332h
16333s/^/S["/; s/!.*/"]=/
16334p
16335g
16336s/^[^!]*!//
16337:repl
16338t repl
16339s/'"$ac_delim"'$//
16340t delim
16341:nl
16342h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016343s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010016344t more1
16345s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16346p
16347n
16348b repl
16349:more1
16350s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16351p
16352g
16353s/.\{148\}//
16354t nl
16355:delim
16356h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016357s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010016358t more2
16359s/["\\]/\\&/g; s/^/"/; s/$/"/
16360p
16361b
16362:more2
16363s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16364p
16365g
16366s/.\{148\}//
16367t delim
16368' <conf$$subs.awk | sed '
16369/^[^""]/{
16370 N
16371 s/\n//
16372}
16373' >>$CONFIG_STATUS || ac_write_fail=1
16374rm -f conf$$subs.awk
16375cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16376_ACAWK
Alexandre Julliard9797da42011-04-27 17:37:43 +020016377cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Alexandre Julliardabf50482008-10-31 12:56:53 +010016378 for (key in S) S_is_set[key] = 1
16379 FS = ""
16380 \$ac_cs_awk_pipe_init
16381}
16382{
16383 line = $ 0
16384 nfields = split(line, field, "@")
16385 substed = 0
16386 len = length(field[1])
16387 for (i = 2; i < nfields; i++) {
16388 key = field[i]
16389 keylen = length(key)
16390 if (S_is_set[key]) {
16391 value = S[key]
16392 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16393 len += length(value) + length(field[++i])
16394 substed = 1
16395 } else
16396 len += 1 + keylen
16397 }
16398 if (nfields == 3 && !substed) {
16399 key = field[2]
16400 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16401 \$ac_cs_awk_read_file
16402 next
16403 }
16404 }
16405 print line
16406}
16407\$ac_cs_awk_pipe_fini
16408_ACAWK
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016409_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016410cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16411if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16412 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16413else
16414 cat
Alexandre Julliard9797da42011-04-27 17:37:43 +020016415fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016416 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016417_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016418
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016419# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16420# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016421# trailing colons and then remove the whole line if VPATH becomes empty
16422# (actually we leave an empty line to preserve line numbers).
16423if test "x$srcdir" = x.; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016424 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16425h
16426s///
16427s/^/:/
16428s/[ ]*$/:/
16429s/:\$(srcdir):/:/g
16430s/:\${srcdir}:/:/g
16431s/:@srcdir@:/:/g
16432s/^:*//
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016433s/:*$//
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016434x
16435s/\(=[ ]*\).*/\1/
16436G
16437s/\n//
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016438s/^[^=]*=[ ]*$//
16439}'
16440fi
16441
Alexandre Julliardabf50482008-10-31 12:56:53 +010016442cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016443fi # test -n "$CONFIG_FILES"
16444
Alexandre Julliardabf50482008-10-31 12:56:53 +010016445# Set up the scripts for CONFIG_HEADERS section.
16446# No need to generate them if there are no CONFIG_HEADERS.
16447# This happens for instance with `./config.status Makefile'.
16448if test -n "$CONFIG_HEADERS"; then
Alexandre Julliard9797da42011-04-27 17:37:43 +020016449cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016450BEGIN {
16451_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016452
Alexandre Julliardabf50482008-10-31 12:56:53 +010016453# Transform confdefs.h into an awk script `defines.awk', embedded as
16454# here-document in config.status, that substitutes the proper values into
16455# config.h.in to produce config.h.
16456
16457# Create a delimiter string that does not exist in confdefs.h, to ease
16458# handling of long lines.
16459ac_delim='%!_!# '
16460for ac_last_try in false false :; do
Alexandre Julliard9797da42011-04-27 17:37:43 +020016461 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16462 if test -z "$ac_tt"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016463 break
16464 elif $ac_last_try; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016465 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016466 else
16467 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16468 fi
16469done
16470
16471# For the awk script, D is an array of macro values keyed by name,
16472# likewise P contains macro parameters if any. Preserve backslash
16473# newline sequences.
16474
16475ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16476sed -n '
16477s/.\{148\}/&'"$ac_delim"'/g
16478t rset
16479:rset
16480s/^[ ]*#[ ]*define[ ][ ]*/ /
16481t def
16482d
16483:def
16484s/\\$//
16485t bsnl
16486s/["\\]/\\&/g
16487s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16488D["\1"]=" \3"/p
16489s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16490d
16491:bsnl
16492s/["\\]/\\&/g
16493s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16494D["\1"]=" \3\\\\\\n"\\/p
16495t cont
16496s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16497t cont
16498d
16499:cont
16500n
16501s/.\{148\}/&'"$ac_delim"'/g
16502t clear
16503:clear
16504s/\\$//
16505t bsnlc
16506s/["\\]/\\&/g; s/^/"/; s/$/"/p
16507d
16508:bsnlc
16509s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16510b cont
16511' <confdefs.h | sed '
16512s/'"$ac_delim"'/"\\\
16513"/g' >>$CONFIG_STATUS || ac_write_fail=1
16514
16515cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16516 for (key in D) D_is_set[key] = 1
16517 FS = ""
16518}
16519/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16520 line = \$ 0
16521 split(line, arg, " ")
16522 if (arg[1] == "#") {
16523 defundef = arg[2]
16524 mac1 = arg[3]
16525 } else {
16526 defundef = substr(arg[1], 2)
16527 mac1 = arg[2]
16528 }
16529 split(mac1, mac2, "(") #)
16530 macro = mac2[1]
16531 prefix = substr(line, 1, index(line, defundef) - 1)
16532 if (D_is_set[macro]) {
16533 # Preserve the white space surrounding the "#".
16534 print prefix "define", macro P[macro] D[macro]
16535 next
16536 } else {
16537 # Replace #undef with comments. This is necessary, for example,
16538 # in the case of _POSIX_SOURCE, which is predefined and required
16539 # on some systems where configure will not decide to define it.
16540 if (defundef == "undef") {
16541 print "/*", prefix defundef, macro, "*/"
16542 next
16543 }
16544 }
16545}
16546{ print }
16547_ACAWK
16548_ACEOF
16549cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016550 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016551fi # test -n "$CONFIG_HEADERS"
16552
16553
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016554eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
Alexandre Julliardabf50482008-10-31 12:56:53 +010016555shift
16556for ac_tag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016557do
16558 case $ac_tag in
16559 :[FHLC]) ac_mode=$ac_tag; continue;;
16560 esac
16561 case $ac_mode$ac_tag in
16562 :[FHL]*:*);;
Alexandre Julliard9797da42011-04-27 17:37:43 +020016563 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016564 :[FH]-) ac_tag=-:-;;
16565 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16566 esac
16567 ac_save_IFS=$IFS
16568 IFS=:
16569 set x $ac_tag
16570 IFS=$ac_save_IFS
16571 shift
16572 ac_file=$1
16573 shift
16574
16575 case $ac_mode in
16576 :L) ac_source=$1;;
16577 :[FH])
16578 ac_file_inputs=
16579 for ac_f
16580 do
16581 case $ac_f in
Alexandre Julliard9797da42011-04-27 17:37:43 +020016582 -) ac_f="$ac_tmp/stdin";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016583 *) # Look for the file first in the build tree, then in the source tree
16584 # (if the path is not absolute). The absolute path cannot be DOS-style,
16585 # because $ac_f cannot contain `:'.
16586 test -f "$ac_f" ||
16587 case $ac_f in
16588 [\\/$]*) false;;
16589 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16590 esac ||
Alexandre Julliard9797da42011-04-27 17:37:43 +020016591 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016592 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +010016593 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016594 as_fn_append ac_file_inputs " '$ac_f'"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016595 done
16596
16597 # Let's still pretend it is `configure' which instantiates (i.e., don't
16598 # use $as_me), people would be surprised to read:
16599 # /* config.h. Generated by config.status. */
Alexandre Julliardabf50482008-10-31 12:56:53 +010016600 configure_input='Generated from '`
16601 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16602 `' by configure.'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016603 if test x"$ac_file" != x-; then
16604 configure_input="$ac_file. $configure_input"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016605 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016606$as_echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016607 fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016608 # Neutralize special characters interpreted by sed in replacement strings.
16609 case $configure_input in #(
16610 *\&* | *\|* | *\\* )
16611 ac_sed_conf_input=`$as_echo "$configure_input" |
16612 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16613 *) ac_sed_conf_input=$configure_input;;
16614 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016615
16616 case $ac_tag in
Alexandre Julliard9797da42011-04-27 17:37:43 +020016617 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16618 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016619 esac
16620 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016621 esac
16622
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016623 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016624$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016625 X"$ac_file" : 'X\(//\)[^/]' \| \
16626 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016627 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016628$as_echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16630 s//\1/
16631 q
16632 }
16633 /^X\(\/\/\)[^/].*/{
16634 s//\1/
16635 q
16636 }
16637 /^X\(\/\/\)$/{
16638 s//\1/
16639 q
16640 }
16641 /^X\(\/\).*/{
16642 s//\1/
16643 q
16644 }
16645 s/.*/./; q'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016646 as_dir="$ac_dir"; as_fn_mkdir_p
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016647 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016648
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016649case "$ac_dir" in
16650.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16651*)
Alexandre Julliardabf50482008-10-31 12:56:53 +010016652 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016653 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +010016654 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016655 case $ac_top_builddir_sub in
16656 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16657 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16658 esac ;;
16659esac
16660ac_abs_top_builddir=$ac_pwd
16661ac_abs_builddir=$ac_pwd$ac_dir_suffix
16662# for backward compatibility:
16663ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016664
16665case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016666 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016667 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016668 ac_top_srcdir=$ac_top_builddir_sub
16669 ac_abs_top_srcdir=$ac_pwd ;;
16670 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016671 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016672 ac_top_srcdir=$srcdir
16673 ac_abs_top_srcdir=$srcdir ;;
16674 *) # Relative name.
16675 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16676 ac_top_srcdir=$ac_top_build_prefix$srcdir
16677 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016678esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016679ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000016680
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016681
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016682 case $ac_mode in
16683 :F)
16684 #
16685 # CONFIG_FILE
16686 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016687
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016688 case $INSTALL in
16689 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016690 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000016691 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016692_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016693
Alexandre Julliardabf50482008-10-31 12:56:53 +010016694cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016695# If the template does not know about datarootdir, expand it.
16696# FIXME: This hack should be removed a few years after 2.60.
Jeremy White0ebeb532006-06-20 13:18:41 +020016697ac_datarootdir_hack=; ac_datarootdir_seen=
Alexandre Julliardabf50482008-10-31 12:56:53 +010016698ac_sed_dataroot='
16699/datarootdir/ {
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016700 p
16701 q
16702}
16703/@datadir@/p
16704/@docdir@/p
16705/@infodir@/p
16706/@localedir@/p
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016707/@mandir@/p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016708case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jeremy White0ebeb532006-06-20 13:18:41 +020016709*datarootdir*) ac_datarootdir_seen=yes;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016710*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016711 { $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 +010016712$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016713_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016715 ac_datarootdir_hack='
16716 s&@datadir@&$datadir&g
16717 s&@docdir@&$docdir&g
16718 s&@infodir@&$infodir&g
16719 s&@localedir@&$localedir&g
16720 s&@mandir@&$mandir&g
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016721 s&\\\${datarootdir}&$datarootdir&g' ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016722esac
16723_ACEOF
16724
16725# Neutralize VPATH when `$srcdir' = `.'.
16726# Shell code in configure.ac might set extrasub.
16727# FIXME: do we really want to maintain this feature?
Alexandre Julliardabf50482008-10-31 12:56:53 +010016728cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16729ac_sed_extra="$ac_vpsub
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016730$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016731_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016732cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016733:t
16734/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardabf50482008-10-31 12:56:53 +010016735s|@configure_input@|$ac_sed_conf_input|;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016736s&@top_builddir@&$ac_top_builddir_sub&;t t
Alexandre Julliardabf50482008-10-31 12:56:53 +010016737s&@top_build_prefix@&$ac_top_build_prefix&;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016738s&@srcdir@&$ac_srcdir&;t t
16739s&@abs_srcdir@&$ac_abs_srcdir&;t t
16740s&@top_srcdir@&$ac_top_srcdir&;t t
16741s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16742s&@builddir@&$ac_builddir&;t t
16743s&@abs_builddir@&$ac_abs_builddir&;t t
16744s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16745s&@INSTALL@&$ac_INSTALL&;t t
16746$ac_datarootdir_hack
Alexandre Julliardabf50482008-10-31 12:56:53 +010016747"
16748eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16749if $ac_cs_awk_getline; then
Alexandre Julliard9797da42011-04-27 17:37:43 +020016750 $AWK -f "$ac_tmp/subs.awk"
Alexandre Julliardabf50482008-10-31 12:56:53 +010016751else
Alexandre Julliard9797da42011-04-27 17:37:43 +020016752 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16753fi \
16754 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016755
Jeremy White0ebeb532006-06-20 13:18:41 +020016756test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Alexandre Julliard9797da42011-04-27 17:37:43 +020016757 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16758 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16759 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016761which seems to be undefined. Please make sure it is defined" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016762$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016763which seems to be undefined. Please make sure it is defined" >&2;}
Jeremy White0ebeb532006-06-20 13:18:41 +020016764
Alexandre Julliard9797da42011-04-27 17:37:43 +020016765 rm -f "$ac_tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016766 case $ac_file in
Alexandre Julliard9797da42011-04-27 17:37:43 +020016767 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16768 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Alexandre Julliardabf50482008-10-31 12:56:53 +010016769 esac \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016770 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016771 ;;
16772 :H)
16773 #
16774 # CONFIG_HEADER
16775 #
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016776 if test x"$ac_file" != x-; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016777 {
16778 $as_echo "/* $configure_input */" \
Alexandre Julliard9797da42011-04-27 17:37:43 +020016779 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16780 } >"$ac_tmp/config.h" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016781 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliard9797da42011-04-27 17:37:43 +020016782 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016783 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016784$as_echo "$as_me: $ac_file is unchanged" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016785 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016786 rm -f "$ac_file"
Alexandre Julliard9797da42011-04-27 17:37:43 +020016787 mv "$ac_tmp/config.h" "$ac_file" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016788 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016789 fi
16790 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016791 $as_echo "/* $configure_input */" \
Alexandre Julliard9797da42011-04-27 17:37:43 +020016792 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016793 || as_fn_error $? "could not create -" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016794 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016795 ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016796 :L)
16797 #
16798 # CONFIG_LINK
16799 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016800
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016801 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16802 :
16803 else
16804 # Prefer the file from the source tree if names are identical.
16805 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16806 ac_source=$srcdir/$ac_source
16807 fi
16808
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16810$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16811
16812 if test ! -r "$ac_source"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016813 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016814 fi
16815 rm -f "$ac_file"
16816
16817 # Try a relative symlink, then a hard link, then a copy.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016818 case $ac_source in
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016819 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16820 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16821 esac
16822 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16823 ln "$ac_source" "$ac_file" 2>/dev/null ||
16824 cp -p "$ac_source" "$ac_file" ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016825 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016826 fi
16827 ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016828 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016829$as_echo "$as_me: executing $ac_file commands" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016830 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016831 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016832
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016833
16834 case $ac_file$ac_mode in
Alexandre Julliardc4704c22006-09-22 09:33:00 +020016835 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
Huw Davies4cffb2d2011-04-01 15:27:48 +010016836 "dlls/gdi32/dibdrv":C) test -d "dlls/gdi32/dibdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/dibdrv" >&5
16837$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 +010016838 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16839$as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16840 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16841$as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16842 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16843$as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16844 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16845$as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16846 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16847$as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16848 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16849$as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016850 "Makefile":C) wine_fn_output_makefile Makefile ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016851
16852 esac
16853done # for ac_tag
16854
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000016855
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016856as_fn_exit 0
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016857_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016858ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016859
Alexandre Julliardabf50482008-10-31 12:56:53 +010016860test $ac_write_fail = 0 ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016861 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016862
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016863
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016864# configure is writing to config.log, and then calls config.status.
16865# config.status does its own redirection, appending to config.log.
16866# Unfortunately, on DOS this fails, as config.log is still kept open
16867# by configure, so config.status won't be able to write to it; its
16868# output is simply discarded. So we exec the FD to /dev/null,
16869# effectively closing config.log, so it can be properly (re)opened and
16870# appended to by config.status. When coming back to configure, we
16871# need to make the FD available again.
16872if test "$no_create" != yes; then
16873 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016874 ac_config_status_args=
16875 test "$silent" = yes &&
16876 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016877 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016878 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016879 exec 5>>config.log
16880 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16881 # would make configure fail if this is the last instruction.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016882 $ac_cs_success || as_fn_exit 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016883fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016884if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016886$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16887fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016888
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016889
Alexandre Julliarde3bd1112006-09-21 11:14:38 +020016890if test "$no_create" = "yes"
16891then
16892 exit 0
16893fi
16894
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016895ac_save_IFS="$IFS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016896if test "x$wine_notices != "x; then
16897 echo >&6
Rafał Mużyło4736c992008-10-20 21:43:21 +020016898 IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016899 for msg in $wine_notices; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020016900 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016901 if test -n "$msg"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016902 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016903$as_echo "$as_me: $msg" >&6;}
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016904 fi
16905 done
16906fi
Rafał Mużyło4736c992008-10-20 21:43:21 +020016907IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016908for msg in $wine_warnings; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020016909 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016910 if test -n "$msg"; then
16911 echo >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016913$as_echo "$as_me: WARNING: $msg" >&2;}
Detlef Riekenberge84a3822006-08-21 05:28:17 +020016914 fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016915done
16916IFS="$ac_save_IFS"
Francois Gouget99d026f2005-03-19 17:08:18 +000016917
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016918echo "
Alexandre Julliard64362ac2010-02-23 13:33:52 +010016919$as_me: Finished. Do '${ac_make}' to compile Wine.
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016920" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016921