blob: 51321db56207ed069a0b7e31ae0d2e7fe16653ff [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 Julliarde44875b2011-03-04 19:25:23 +01003# Generated by GNU Autoconf 2.67 for Wine 1.3.15.
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 Julliard25e9e4f2009-08-10 14:27:28 +020094case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020095 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000097for as_dir in $PATH
98do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200103IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000104
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200105 ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110 as_myself=$0
111fi
112if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +0100113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200114 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200115fi
116
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there. '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200134
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152esac
153fi
154"
155 as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169 exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev/null; then :
178 as_have_required=yes
179else
180 as_have_required=no
181fi
182 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189 IFS=$as_save_IFS
190 test -z "$as_dir" && as_dir=.
191 as_found=:
192 case $as_dir in #(
193 /*)
194 for as_base in sh bash ksh sh5; do
195 # Try only shells that exist, to save several forks.
196 as_shell=$as_dir/$as_base
197 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 CONFIG_SHELL=$as_shell as_have_required=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201 break 2
202fi
203fi
204 done;;
205 esac
206 as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210 CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215 if test "x$CONFIG_SHELL" != x; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226 if test x$as_have_required = xno; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x${ZSH_VERSION+set} = xset ; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232 else
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: wine-devel@winehq.org about your system, including any
235$0: error possibly output before this message. Then install
236$0: a modern shell, or manually run the script under such a
237$0: shell if you do have one."
238 fi
239 exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257 { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266 return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274 set +e
275 as_fn_set_status $1
276 exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285 case $as_dir in #(
286 -*) as_dir=./$as_dir;;
287 esac
288 test -d "$as_dir" || eval $as_mkdir_p || {
289 as_dirs=
290 while :; do
291 case $as_dir in #(
292 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293 *) as_qdir=$as_dir;;
294 esac
295 as_dirs="'$as_qdir' $as_dirs"
296 as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303 s//\1/
304 q
305 }
306 /^X\(\/\/\)[^/].*/{
307 s//\1/
308 q
309 }
310 /^X\(\/\/\)$/{
311 s//\1/
312 q
313 }
314 /^X\(\/\).*/{
315 s//\1/
316 q
317 }
318 s/.*/./; q'`
319 test -d "$as_dir" && break
320 done
321 test -z "$as_dirs" || eval "mkdir $as_dirs"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200322 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333 eval 'as_fn_append ()
334 {
335 eval $1+=\$2
336 }'
337else
338 as_fn_append ()
339 {
340 eval $1=\$$1\$2
341 }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350 eval 'as_fn_arith ()
351 {
352 as_val=$(( $* ))
353 }'
354else
355 as_fn_arith ()
356 {
357 as_val=`expr "$@" || test $? -eq 1`
358 }
359fi # as_fn_arith
360
361
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200362# as_fn_error STATUS ERROR [LINENO LOG_FD]
363# ----------------------------------------
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200366# script with STATUS, using 1 if that was 0.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200367as_fn_error ()
368{
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200369 as_status=$1; test $as_status -eq 0 && as_status=1
370 if test "$4"; then
371 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200373 fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200374 $as_echo "$as_me: error: $2" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200375 as_fn_exit $as_status
376} # as_fn_error
377
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200378if expr a : '\(a\)' >/dev/null 2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001; then
380 as_expr=expr
381else
382 as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386 as_basename=basename
387else
388 as_basename=false
389fi
390
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392 as_dirname=dirname
393else
394 as_dirname=false
395fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200396
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +0100401$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200402 sed '/^.*\/\([^/][^/]*\)\/*$/{
403 s//\1/
404 q
405 }
406 /^X\/\(\/\/\)$/{
407 s//\1/
408 q
409 }
410 /^X\/\(\/\).*/{
411 s//\1/
412 q
413 }
414 s/.*/./; q'`
415
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200422
423
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200424 as_lineno_1=$LINENO as_lineno_1a=$LINENO
425 as_lineno_2=$LINENO as_lineno_2a=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200429 sed -n '
430 p
431 /[$]LINENO/=
432 ' <$as_myself |
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000433 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200434 s/[$]LINENO.*/&-/
435 t lineno
436 b
437 :lineno
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000438 N
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200439 :loop
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000441 t loop
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200442 s/-\n.*//
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000443 ' >$as_me.lineno &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200444 chmod +x "$as_me.lineno" ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200445 { $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 +0000446
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200449 # original and so on. Autoconf is especially sensitive to this).
450 . "./$as_me.lineno"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000451 # Exit status is that of the last command.
452 exit
453}
454
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200455ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200456case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200457-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200458 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200459 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200460 xy) ECHO_C='\c';;
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
462 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200463 esac;;
464*)
465 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000466esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000467
468rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200469if test -d conf$$.dir; then
470 rm -f conf$$.dir/conf$$.file
471else
472 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +0100473 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200474fi
Alexandre Julliardabf50482008-10-31 12:56:53 +0100475if (echo >conf$$.file) 2>/dev/null; then
476 if ln -s conf$$.file conf$$ 2>/dev/null; then
477 as_ln_s='ln -s'
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483 as_ln_s='cp -p'
484 elif ln conf$$.file conf$$ 2>/dev/null; then
485 as_ln_s=ln
486 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000487 as_ln_s='cp -p'
Alexandre Julliardabf50482008-10-31 12:56:53 +0100488 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000489else
490 as_ln_s='cp -p'
491fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000494
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000495if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200496 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000497else
Alexandre Julliard875927f2004-01-02 01:55:29 +0000498 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000499 as_mkdir_p=false
500fi
501
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100502if test -x / >/dev/null 2>&1; then
503 as_test_x='test -x'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200504else
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100505 if ls -dL / >/dev/null 2>&1; then
506 as_ls_L_option=L
507 else
508 as_ls_L_option=
509 fi
510 as_test_x='
511 eval sh -c '\''
512 if test -d "$1"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +0100513 test -d "$1/.";
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100514 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200515 case $1 in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +0100516 -*)set "./$1";;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100517 esac;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100519 ???[sx]*):;;*)false;;esac;fi
520 '\'' sh
521 '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200522fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100523as_executable_p=$as_test_x
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000524
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000525# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000527
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000528# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +0000529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000530
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000531
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +0100532test -n "$DJDIR" || exec 7<&0 </dev/null
533exec 6>&1
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000534
535# Name of the host.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200536# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000537# so uname gets run too.
538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000540#
541# Initializations.
542#
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000543ac_default_prefix=/usr/local
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200544ac_clean_files=
Alexandre Julliard11af04e2002-10-10 03:48:04 +0000545ac_config_libobj_dir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200546LIBOBJS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000547cross_compiling=no
548subdirs=
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000549MFLAGS=
550MAKEFLAGS=
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000551
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000552# Identity of this package.
553PACKAGE_NAME='Wine'
554PACKAGE_TARNAME='wine'
Alexandre Julliarde44875b2011-03-04 19:25:23 +0100555PACKAGE_VERSION='1.3.15'
556PACKAGE_STRING='Wine 1.3.15'
Alexandre Julliard875927f2004-01-02 01:55:29 +0000557PACKAGE_BUGREPORT='wine-devel@winehq.org'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200558PACKAGE_URL='http://www.winehq.org'
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000559
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000560ac_unique_file="server/atom.c"
561# Factoring default headers for most tests.
562ac_includes_default="\
563#include <stdio.h>
Phil Krylovf0ca5862006-11-05 23:03:46 +0300564#ifdef HAVE_SYS_TYPES_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000565# include <sys/types.h>
566#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300567#ifdef HAVE_SYS_STAT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000568# include <sys/stat.h>
569#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300570#ifdef STDC_HEADERS
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000571# include <stdlib.h>
572# include <stddef.h>
573#else
Phil Krylovf0ca5862006-11-05 23:03:46 +0300574# ifdef HAVE_STDLIB_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000575# include <stdlib.h>
576# endif
577#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300578#ifdef HAVE_STRING_H
579# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000580# include <memory.h>
581# endif
582# include <string.h>
583#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300584#ifdef HAVE_STRINGS_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000585# include <strings.h>
586#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300587#ifdef HAVE_INTTYPES_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000588# include <inttypes.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200589#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300590#ifdef HAVE_STDINT_H
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200591# include <stdint.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000592#endif
Phil Krylovf0ca5862006-11-05 23:03:46 +0300593#ifdef HAVE_UNISTD_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000594# include <unistd.h>
595#endif"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000596
Alexandre Julliardabf50482008-10-31 12:56:53 +0100597ac_subst_vars='LTLIBOBJS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200598LIBOBJS
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +0100599LINGUAS
Alexandre Julliard454fb3c2010-02-08 21:29:13 +0100600ALL_TEST_BINARIES
Alexandre Julliard7d831152010-03-20 15:07:45 +0100601ALL_WINETEST_DEPENDS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100602LDAPLIBS
603LIBPOLL
604LIBDL
605EXTRA_BINARIES
Alexandre Julliard3e6eab32009-08-13 19:54:31 +0200606MAIN_BINARY
Alexandre Julliardabf50482008-10-31 12:56:53 +0100607SOCKETLIBS
608CRTLIBS
Alexandre Julliardb860c4a2009-09-01 22:36:13 +0200609TOOLSEXT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100610LDPATH
Alexandre Julliard6c142382010-04-11 12:47:30 +0200611UNWINDFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100612BUILTINFLAG
613EXTRACFLAGS
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +0100614LIBKSTAT
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100615LIBOPENAL
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500616LIBMPG123
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +0200617PNGINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100618FONTCONFIGINCL
619CUPSINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100620ALSALIBS
Aric Stewart2914d652010-10-20 13:55:16 -0500621GSTREAMER_INCL
622GSTREAMER_LIBS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100623ESDLIBS
624ESDINCL
625ESDCONFIG
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +0100626LIBGETTEXTPO
Jacek Caban11ca05f2009-05-29 23:35:13 +0200627ZLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100628FREETYPEINCL
629FREETYPELIBS
630ft_devel
631LCMSLIBS
632RESOLVLIBS
633GPHOTO2INCL
634GPHOTO2LIBS
635gphoto2port_devel
636gphoto2_devel
637SANEINCL
638sane_devel
639GNUTLSINCL
640HALINCL
641XSLTINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100642XML2INCL
643XML2LIBS
644NASLIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +0100645X_EXTRA_LIBS
646X_LIBS
647X_PRE_LIBS
648X_CFLAGS
649XMKMF
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100650LIBPTHREAD
Alexandre Julliard1f254212010-01-23 20:26:49 +0100651CROSSTARGET
Alexandre Julliardabf50482008-10-31 12:56:53 +0100652CROSSCC
Alexandre Julliard7d2e7722010-07-26 12:13:47 +0200653CROSSTEST_DISABLE
Alexandre Julliardb5d824b2010-08-24 13:42:10 +0200654PRELINK
Alexandre Julliardabf50482008-10-31 12:56:53 +0100655CARBONLIB
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +0100656QUICKTIMELIB
Alexandre Julliardfac67412010-12-03 14:16:55 +0100657LIBOPENCL
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100658FRAMEWORK_OPENAL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100659COREAUDIO
660DISKARBITRATIONLIB
661LDEXECFLAGS
Ken Thomases21137cd2011-01-05 07:25:23 -0600662APPLICATIONSERVICESLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100663IOKITLIB
664COREFOUNDATIONLIB
665SECURITYLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100666DLLWRAP
667DLLTOOL
668LDD
669LDRPATH_LOCAL
670LDRPATH_INSTALL
671IMPLIBEXT
672LIBEXT
673LDDLLFLAGS
674LDSHARED
675DLLFLAGS
676DLLEXT
Alexandre Julliard40664c02009-02-11 20:40:58 +0100677CPP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100678OPENGL_LIBS
679XLIB
Andrew Nguyen2eda9c72010-05-25 22:20:14 -0500680MAINTAINER_MODE
Alexandre Julliardabf50482008-10-31 12:56:53 +0100681ICOTOOL
Joel Holdsworth476a2be2010-04-05 11:15:03 +0100682CONVERT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100683RSVG
684PKG_CONFIG
685FONTFORGE
686LINTFLAGS
687LINT
688INSTALL_DATA
689INSTALL_SCRIPT
690INSTALL_PROGRAM
691LDCONFIG
692EGREP
693GREP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100694LN_S
Alexandre Julliardabf50482008-10-31 12:56:53 +0100695STRIP
696RANLIB
697ARFLAGS
698ac_ct_AR
699AR
Alexandre Julliardabf50482008-10-31 12:56:53 +0100700BISON
701FLEX
Alexandre Julliardabf50482008-10-31 12:56:53 +0100702TOOLSDIR
Alexandre Julliard90647772009-08-13 19:48:42 +0200703WOW64_DISABLE
Alexandre Julliard07f77c42009-01-15 21:17:51 +0100704TARGETFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100705CPPBIN
706ac_ct_CXX
707CXXFLAGS
708CXX
709OBJEXT
710EXEEXT
711ac_ct_CC
712CPPFLAGS
713LDFLAGS
714CFLAGS
715CC
716SET_MAKE
Alexandre Julliardabf50482008-10-31 12:56:53 +0100717host_os
718host_vendor
719host_cpu
720host
721build_os
722build_vendor
723build_cpu
724build
Alexandre Julliardabf50482008-10-31 12:56:53 +0100725target_alias
726host_alias
727build_alias
728LIBS
729ECHO_T
730ECHO_N
731ECHO_C
732DEFS
733mandir
734localedir
735libdir
736psdir
737pdfdir
738dvidir
739htmldir
740infodir
741docdir
742oldincludedir
743includedir
744localstatedir
745sharedstatedir
746sysconfdir
747datadir
748datarootdir
749libexecdir
750sbindir
751bindir
752program_transform_name
753prefix
754exec_prefix
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200755PACKAGE_URL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100756PACKAGE_BUGREPORT
757PACKAGE_STRING
758PACKAGE_VERSION
759PACKAGE_TARNAME
760PACKAGE_NAME
761PATH_SEPARATOR
762SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200763ac_subst_files='MAKE_RULES
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +0100764MAKE_TEST_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200765MAKE_DLL_RULES
766MAKE_IMPLIB_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200767MAKE_PROG_RULES'
Alexandre Julliardabf50482008-10-31 12:56:53 +0100768ac_user_opts='
769enable_option_checking
770enable_win16
771enable_win64
Alexandre Julliard35078f42008-11-21 10:16:12 +0100772enable_tests
Alexandre Julliardabf50482008-10-31 12:56:53 +0100773enable_maintainer_mode
774with_alsa
Alexandre Julliardabf50482008-10-31 12:56:53 +0100775with_capi
776with_cms
777with_coreaudio
778with_cups
779with_curses
780with_esd
781with_fontconfig
782with_freetype
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +0100783with_gettextpo
Alexandre Julliardabf50482008-10-31 12:56:53 +0100784with_gphoto
785with_glu
786with_gnutls
Alexandre Julliard6ce32e02009-08-19 15:53:04 +0200787with_gsm
Aric Stewart2914d652010-10-20 13:55:16 -0500788with_gstreamer
Alexandre Julliardabf50482008-10-31 12:56:53 +0100789with_hal
790with_jack
791with_jpeg
792with_ldap
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500793with_mpg123
Alexandre Julliardabf50482008-10-31 12:56:53 +0100794with_nas
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
809with_xml
810with_xrandr
811with_xrender
812with_xshape
813with_xshm
814with_xslt
815with_xxf86vm
Alexandre Julliardba6a41a2011-02-18 13:07:27 +0100816with_zlib
Alexandre Julliardabf50482008-10-31 12:56:53 +0100817with_wine_tools
Alexandre Julliard39a75d32009-08-13 19:45:31 +0200818with_wine64
Eric Pouechbc56c4e2009-08-25 19:33:28 +0200819enable_largefile
Alexandre Julliardabf50482008-10-31 12:56:53 +0100820with_x
821'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200822 ac_precious_vars='build_alias
823host_alias
824target_alias
825CC
826CFLAGS
827LDFLAGS
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100828LIBS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200829CPPFLAGS
830CXX
831CXXFLAGS
832CCC
Alexandre Julliard40664c02009-02-11 20:40:58 +0100833CPP
834XMKMF'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200835
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000836
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000837# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000838ac_init_help=
839ac_init_version=false
Alexandre Julliardabf50482008-10-31 12:56:53 +0100840ac_unrecognized_opts=
841ac_unrecognized_sep=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000842# The variables have the same names as the options, with
843# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000844cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000845exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000846no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000847no_recursion=
848prefix=NONE
849program_prefix=NONE
850program_suffix=NONE
851program_transform_name=s,x,x,
852silent=
853site=
854srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000855verbose=
856x_includes=NONE
857x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000858
859# Installation directory options.
860# These are left unexpanded so users can "make install exec_prefix=/foo"
861# and all the variables that are supposed to be based on exec_prefix
862# by default will actually change.
863# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200864# (The list follows the same order as the GNU Coding Standards.)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000865bindir='${exec_prefix}/bin'
866sbindir='${exec_prefix}/sbin'
867libexecdir='${exec_prefix}/libexec'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200868datarootdir='${prefix}/share'
869datadir='${datarootdir}'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000870sysconfdir='${prefix}/etc'
871sharedstatedir='${prefix}/com'
872localstatedir='${prefix}/var'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000873includedir='${prefix}/include'
874oldincludedir='/usr/include'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200875docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876infodir='${datarootdir}/info'
877htmldir='${docdir}'
878dvidir='${docdir}'
879pdfdir='${docdir}'
880psdir='${docdir}'
881libdir='${exec_prefix}/lib'
882localedir='${datarootdir}/locale'
883mandir='${datarootdir}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000884
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000885ac_prev=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200886ac_dashdash=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000887for ac_option
888do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200891 eval $ac_prev=\$ac_option
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000892 ac_prev=
893 continue
894 fi
895
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200896 case $ac_option in
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200900 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000901
902 # Accept the important Cygnus configure options, so we can diagnose typos.
903
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200904 case $ac_dashdash$ac_option in
905 --)
906 ac_dashdash=yes ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000907
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000911 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000912
913 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000914 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000916 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000917
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000923 cache_file=$ac_optarg ;;
924
925 --config-cache | -C)
926 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000927
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200928 -datadir | --datadir | --datadi | --datad)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000929 ac_prev=datadir ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000931 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000932
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
939
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000940 -disable-* | --disable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000942 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200944 as_fn_error $? "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
948 *"
949"enable_$ac_useropt"
950"*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200955
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
960
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000965
966 -enable-* | --enable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000968 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200970 as_fn_error $? "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
974 *"
975"enable_$ac_useropt"
976"*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000981
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000989 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000990
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
994
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001001
1002 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001003 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001004 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001005 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001006
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1012
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001018 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001019
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001023 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001024
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001028 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001029
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001035 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001036
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1041
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001042 -localstatedir | --localstatedir | --localstatedi | --localstated \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001043 | --localstate | --localstat | --localsta | --localst | --locals)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001047 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001048
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001052 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001053
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1057
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001059 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001060 no_create=yes ;;
1061
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1065
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001073 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001074
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001078 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001079
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001085 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001086
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001092 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001093
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001109 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001110
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1115
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1120
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1124
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001129 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001130
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001140 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001141
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001145 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001146
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001150 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001151
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001157 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001158
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001159 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001160 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001162 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001163
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1166
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001169
1170 -with-* | --with-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001172 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001174 as_fn_error $? "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1178 *"
1179"with_$ac_useropt"
1180"*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001185
1186 -without-* | --without-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001188 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001190 as_fn_error $? "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1194 *"
1195"with_$ac_useropt"
1196"*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001201
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1205
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001211 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001212
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001218 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001219
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221Try \`$0 --help' for more information"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001222 ;;
1223
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001230 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001231 eval $ac_envvar=\$ac_optarg
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001232 export $ac_envvar ;;
1233
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001234 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001235 # FIXME: should be removed in autoconf 3.0.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01001238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001239 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001240 ;;
1241
1242 esac
1243done
1244
1245if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001247 as_fn_error $? "missing argument to $ac_option"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001248fi
1249
Alexandre Julliardabf50482008-10-31 12:56:53 +01001250if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +01001254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1256fi
1257
1258# Check all directory arguments for consistency.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001259for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001263do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001264 eval ac_val=\$$ac_var
Alexandre Julliardabf50482008-10-31 12:56:53 +01001265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001272 case $ac_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001275 esac
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001277done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001278
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001279# There might be people who depend on the old broken behavior: `$host'
1280# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001281# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001282build=$build_alias
1283host=$host_alias
1284target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001285
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001286# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001287if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001290 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1291 If a cross compiler is detected then cross compile mode will be used" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001292 elif test "x$build_alias" != "x$host_alias"; then
1293 cross_compiling=yes
1294 fi
1295fi
1296
1297ac_tool_prefix=
1298test -n "$host_alias" && ac_tool_prefix=$host_alias-
1299
1300test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001301
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001302
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001303ac_pwd=`pwd` && test -n "$ac_pwd" &&
1304ac_ls_di=`ls -di .` &&
1305ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001306 as_fn_error $? "working directory cannot be determined"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001307test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001308 as_fn_error $? "pwd does not report name of working directory"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001309
1310
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001311# Find the source files, if location was not specified.
1312if test -z "$srcdir"; then
1313 ac_srcdir_defaulted=yes
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001314 # Try the directory containing this script, then the parent directory.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001315 ac_confdir=`$as_dirname -- "$as_myself" ||
1316$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1317 X"$as_myself" : 'X\(//\)[^/]' \| \
1318 X"$as_myself" : 'X\(//\)$' \| \
1319 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1320$as_echo X"$as_myself" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1322 s//\1/
1323 q
1324 }
1325 /^X\(\/\/\)[^/].*/{
1326 s//\1/
1327 q
1328 }
1329 /^X\(\/\/\)$/{
1330 s//\1/
1331 q
1332 }
1333 /^X\(\/\).*/{
1334 s//\1/
1335 q
1336 }
1337 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001338 srcdir=$ac_confdir
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001339 if test ! -r "$srcdir/$ac_unique_file"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001340 srcdir=..
1341 fi
1342else
1343 ac_srcdir_defaulted=no
1344fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001345if test ! -r "$srcdir/$ac_unique_file"; then
1346 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001347 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001348fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001349ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1350ac_abs_confdir=`(
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001351 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001352 pwd)`
1353# When building in place, set srcdir=.
1354if test "$ac_abs_confdir" = "$ac_pwd"; then
1355 srcdir=.
1356fi
1357# Remove unnecessary trailing slashes from srcdir.
1358# Double slashes in file names in object file debugging info
1359# mess up M-x gdb in Emacs.
1360case $srcdir in
1361*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1362esac
1363for ac_var in $ac_precious_vars; do
1364 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_env_${ac_var}_value=\$${ac_var}
1366 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1367 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1368done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001369
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001370#
1371# Report the --help message.
1372#
1373if test "$ac_init_help" = "long"; then
1374 # Omit some internal or obsolete options to make the list less imposing.
1375 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001376 cat <<_ACEOF
Alexandre Julliarde44875b2011-03-04 19:25:23 +01001377\`configure' configures Wine 1.3.15 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001378
1379Usage: $0 [OPTION]... [VAR=VALUE]...
1380
1381To assign environment variables (e.g., CC, CFLAGS...), specify them as
1382VAR=VALUE. See below for descriptions of some of the useful variables.
1383
1384Defaults for the options are specified in brackets.
1385
1386Configuration:
1387 -h, --help display this help and exit
1388 --help=short display options specific to this package
1389 --help=recursive display the short help of all the included packages
1390 -V, --version display version information and exit
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001391 -q, --quiet, --silent do not print \`checking ...' messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001392 --cache-file=FILE cache test results in FILE [disabled]
1393 -C, --config-cache alias for \`--cache-file=config.cache'
1394 -n, --no-create do not create output files
1395 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1396
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001397Installation directories:
1398 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001399 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001400 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001401 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001402
1403By default, \`make install' will install all the files in
1404\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1405an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1406for instance \`--prefix=\$HOME'.
1407
1408For better control, use the options below.
1409
1410Fine tuning of the installation directories:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001411 --bindir=DIR user executables [EPREFIX/bin]
1412 --sbindir=DIR system admin executables [EPREFIX/sbin]
1413 --libexecdir=DIR program executables [EPREFIX/libexec]
1414 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1415 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1416 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1417 --libdir=DIR object code libraries [EPREFIX/lib]
1418 --includedir=DIR C header files [PREFIX/include]
1419 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1420 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1421 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1422 --infodir=DIR info documentation [DATAROOTDIR/info]
1423 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1424 --mandir=DIR man documentation [DATAROOTDIR/man]
1425 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1426 --htmldir=DIR html documentation [DOCDIR]
1427 --dvidir=DIR dvi documentation [DOCDIR]
1428 --pdfdir=DIR pdf documentation [DOCDIR]
1429 --psdir=DIR ps documentation [DOCDIR]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001430_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001431
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001432 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001433
1434X features:
1435 --x-includes=DIR X include files are in DIR
1436 --x-libraries=DIR X library files are in DIR
1437
1438System types:
1439 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001440 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001441_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001442fi
1443
1444if test -n "$ac_init_help"; then
1445 case $ac_init_help in
Alexandre Julliarde44875b2011-03-04 19:25:23 +01001446 short | recursive ) echo "Configuration of Wine 1.3.15:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001447 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001448 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001449
1450Optional Features:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001451 --disable-option-checking ignore unrecognized --enable/--with options
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +00001454 --disable-win16 do not include Win16 support
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001455 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1456 binaries)
Alexandre Julliard35078f42008-11-21 10:16:12 +01001457 --disable-tests do not build the regression tests
Alexandre Julliard9d037222008-03-20 13:00:12 +01001458 --enable-maintainer-mode
1459 enable maintainer-specific build rules
Eric Pouechbc56c4e2009-08-25 19:33:28 +02001460 --disable-largefile omit support for large files
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001461
1462Optional Packages:
1463 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1464 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001465 --without-alsa do not use the Alsa sound support
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001466 --without-capi do not use CAPI (ISDN support)
1467 --without-cms do not use CMS (color management support)
1468 --without-coreaudio do not use the CoreAudio sound support
1469 --without-cups do not use CUPS
1470 --without-curses do not use (n)curses
1471 --without-esd do not use the EsounD sound support
1472 --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)
1481 --without-jack do not use the Jack sound support
1482 --without-jpeg do not use JPEG
1483 --without-ldap do not use LDAP
Aric Stewartdb71d7c2009-08-19 09:37:48 -05001484 --without-mpg123 do not use the mpg123 library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001485 --without-nas do not use the NAS sound support
Chris Robinson862965f2009-08-25 03:26:35 -07001486 --without-openal do not use OpenAL
Peter Urbanec65c84d72010-12-02 23:41:48 +11001487 --without-opencl do not use OpenCL
Eric Pouech53fa0d52004-02-05 01:27:38 +00001488 --without-opengl do not use OpenGL
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001489 --without-openssl do not use OpenSSL
1490 --without-oss do not use the OSS sound support
1491 --without-png do not use PNG
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01001492 --without-pthread do not use the pthread library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001493 --without-sane do not use SANE (scanner support)
Vincent Povirk73cd5692010-03-08 17:07:29 -06001494 --without-tiff do not use TIFF
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01001495 --without-v4l do not use v4l1 (v4l support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001496 --without-xcomposite do not use the Xcomposite extension
1497 --without-xcursor do not use the Xcursor extension
1498 --without-xinerama do not use Xinerama (multi-monitor support)
1499 --without-xinput do not use the Xinput extension
1500 --without-xml do not use XML
1501 --without-xrandr do not use Xrandr (resolution changes)
1502 --without-xrender do not use the Xrender extension
1503 --without-xshape do not use the Xshape extension
1504 --without-xshm do not use XShm (shared memory extension)
1505 --without-xslt do not use XSLT
Francois Gougeta49beb42008-06-26 14:02:17 +02001506 --without-xxf86vm do not use XFree video mode extension
Alexandre Julliardba6a41a2011-02-18 13:07:27 +01001507 --without-zlib do not use Zlib (data compression)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001508 --with-wine-tools=DIR use Wine tools from directory DIR
Alexandre Julliard39a75d32009-08-13 19:45:31 +02001509 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001510 --with-x use the X Window System
1511
1512Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +00001513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01001517 LIBS libraries to pass to the linker, e.g. -l<library>
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001519 you have headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00001520 CXX C++ compiler command
1521 CXXFLAGS C++ compiler flags
Eric Pouech53fa0d52004-02-05 01:27:38 +00001522 CPP C preprocessor
Alexandre Julliard40664c02009-02-11 20:40:58 +01001523 XMKMF Path to xmkmf, Makefile generator for X Window System
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001524
1525Use these variables to override the choices made by `configure' or to help
1526it to find libraries and programs with nonstandard names/locations.
1527
Alexandre Julliard875927f2004-01-02 01:55:29 +00001528Report bugs to <wine-devel@winehq.org>.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001529Wine home page: <http://www.winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001530_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001531ac_status=$?
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001532fi
1533
1534if test "$ac_init_help" = "recursive"; then
1535 # If there are subdirs, report their specific --help.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001536 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Alexandre Julliardabf50482008-10-31 12:56:53 +01001537 test -d "$ac_dir" ||
1538 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1539 continue
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001540 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001541
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001542case "$ac_dir" in
1543.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1544*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001545 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001546 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001547 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001548 case $ac_top_builddir_sub in
1549 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1550 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1551 esac ;;
1552esac
1553ac_abs_top_builddir=$ac_pwd
1554ac_abs_builddir=$ac_pwd$ac_dir_suffix
1555# for backward compatibility:
1556ac_top_builddir=$ac_top_build_prefix
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001557
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001558case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001559 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001560 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001561 ac_top_srcdir=$ac_top_builddir_sub
1562 ac_abs_top_srcdir=$ac_pwd ;;
1563 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001564 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001565 ac_top_srcdir=$srcdir
1566 ac_abs_top_srcdir=$srcdir ;;
1567 *) # Relative name.
1568 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1569 ac_top_srcdir=$ac_top_build_prefix$srcdir
1570 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001571esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001572ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +00001573
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001574 cd "$ac_dir" || { ac_status=$?; continue; }
1575 # Check for guested configure.
Jeremy White0ebeb532006-06-20 13:18:41 +02001576 if test -f "$ac_srcdir/configure.gnu"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001577 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001578 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1579 elif test -f "$ac_srcdir/configure"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001580 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001581 $SHELL "$ac_srcdir/configure" --help=recursive
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001582 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01001583 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001584 fi || ac_status=$?
1585 cd "$ac_pwd" || { ac_status=$?; break; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001586 done
1587fi
1588
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001589test -n "$ac_init_help" && exit $ac_status
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001590if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001591 cat <<\_ACEOF
Alexandre Julliarde44875b2011-03-04 19:25:23 +01001592Wine configure 1.3.15
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001593generated by GNU Autoconf 2.67
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001594
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001595Copyright (C) 2010 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001596This configure script is free software; the Free Software Foundation
1597gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001598_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001599 exit
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001600fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001601
1602## ------------------------ ##
1603## Autoconf initialization. ##
1604## ------------------------ ##
1605
1606# ac_fn_c_try_compile LINENO
1607# --------------------------
1608# Try to compile conftest.$ac_ext, and return whether this succeeded.
1609ac_fn_c_try_compile ()
1610{
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext
1613 if { { ac_try="$ac_compile"
1614case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_compile") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest.$ac_objext; then :
1632 ac_retval=0
1633else
1634 $as_echo "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
1636
1637 ac_retval=1
1638fi
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001640 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001641
1642} # ac_fn_c_try_compile
1643
1644# ac_fn_cxx_try_compile LINENO
1645# ----------------------------
1646# Try to compile conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_cxx_try_compile ()
1648{
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext
1651 if { { ac_try="$ac_compile"
1652case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_compile") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1664 fi
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_cxx_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest.$ac_objext; then :
1670 ac_retval=0
1671else
1672 $as_echo "$as_me: failed program was:" >&5
1673sed 's/^/| /' conftest.$ac_ext >&5
1674
1675 ac_retval=1
1676fi
1677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001678 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001679
1680} # ac_fn_cxx_try_compile
1681
1682# ac_fn_c_try_link LINENO
1683# -----------------------
1684# Try to link conftest.$ac_ext, and return whether this succeeded.
1685ac_fn_c_try_link ()
1686{
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 rm -f conftest.$ac_objext conftest$ac_exeext
1689 if { { ac_try="$ac_link"
1690case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693esac
1694eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695$as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>conftest.err
1697 ac_status=$?
1698 if test -s conftest.err; then
1699 grep -v '^ *+' conftest.err >conftest.er1
1700 cat conftest.er1 >&5
1701 mv -f conftest.er1 conftest.err
1702 fi
1703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704 test $ac_status = 0; } && {
1705 test -z "$ac_c_werror_flag" ||
1706 test ! -s conftest.err
1707 } && test -s conftest$ac_exeext && {
1708 test "$cross_compiling" = yes ||
1709 $as_test_x conftest$ac_exeext
1710 }; then :
1711 ac_retval=0
1712else
1713 $as_echo "$as_me: failed program was:" >&5
1714sed 's/^/| /' conftest.$ac_ext >&5
1715
1716 ac_retval=1
1717fi
1718 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720 # interfere with the next link command; also delete a directory that is
1721 # left behind by Apple's compiler. We do this before executing the actions.
1722 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001724 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001725
1726} # ac_fn_c_try_link
1727
1728# ac_fn_c_try_cpp LINENO
1729# ----------------------
1730# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1731ac_fn_c_try_cpp ()
1732{
1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734 if { { ac_try="$ac_cpp conftest.$ac_ext"
1735case "(($ac_try" in
1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737 *) ac_try_echo=$ac_try;;
1738esac
1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740$as_echo "$ac_try_echo"; } >&5
1741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1742 ac_status=$?
1743 if test -s conftest.err; then
1744 grep -v '^ *+' conftest.err >conftest.er1
1745 cat conftest.er1 >&5
1746 mv -f conftest.er1 conftest.err
1747 fi
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001749 test $ac_status = 0; } > conftest.i && {
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001750 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751 test ! -s conftest.err
1752 }; then :
1753 ac_retval=0
1754else
1755 $as_echo "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
1757
1758 ac_retval=1
1759fi
1760 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001761 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001762
1763} # ac_fn_c_try_cpp
1764
1765# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1766# -------------------------------------------------------
1767# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1768# the include files in INCLUDES and setting the cache variable VAR
1769# accordingly.
1770ac_fn_c_check_header_mongrel ()
1771{
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001773 if eval "test \"\${$3+set}\"" = set; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775$as_echo_n "checking for $2... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001776if eval "test \"\${$3+set}\"" = set; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001777 $as_echo_n "(cached) " >&6
1778fi
1779eval ac_res=\$$3
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1781$as_echo "$ac_res" >&6; }
1782else
1783 # Is the header compilable?
1784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1785$as_echo_n "checking $2 usability... " >&6; }
1786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1787/* end confdefs.h. */
1788$4
1789#include <$2>
1790_ACEOF
1791if ac_fn_c_try_compile "$LINENO"; then :
1792 ac_header_compiler=yes
1793else
1794 ac_header_compiler=no
1795fi
1796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1798$as_echo "$ac_header_compiler" >&6; }
1799
1800# Is the header present?
1801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1802$as_echo_n "checking $2 presence... " >&6; }
1803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1804/* end confdefs.h. */
1805#include <$2>
1806_ACEOF
1807if ac_fn_c_try_cpp "$LINENO"; then :
1808 ac_header_preproc=yes
1809else
1810 ac_header_preproc=no
1811fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001812rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1814$as_echo "$ac_header_preproc" >&6; }
1815
1816# So? What about this header?
1817case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1818 yes:no: )
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1820$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823 ;;
1824 no:yes:* )
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1826$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1828$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1830$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1832$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1834$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001835( $as_echo "## ------------------------------------ ##
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001836## Report this to wine-devel@winehq.org ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001837## ------------------------------------ ##"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001838 ) | sed "s/^/$as_me: WARNING: /" >&2
1839 ;;
1840esac
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1842$as_echo_n "checking for $2... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001843if eval "test \"\${$3+set}\"" = set; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001844 $as_echo_n "(cached) " >&6
1845else
1846 eval "$3=\$ac_header_compiler"
1847fi
1848eval ac_res=\$$3
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1850$as_echo "$ac_res" >&6; }
1851fi
1852 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1853
1854} # ac_fn_c_check_header_mongrel
1855
1856# ac_fn_c_try_run LINENO
1857# ----------------------
1858# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1859# that executables *can* be run.
1860ac_fn_c_try_run ()
1861{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 if { { ac_try="$ac_link"
1864case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867esac
1868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869$as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_link") 2>&5
1871 ac_status=$?
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1874 { { case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1877esac
1878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879$as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_try") 2>&5
1881 ac_status=$?
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; }; }; then :
1884 ac_retval=0
1885else
1886 $as_echo "$as_me: program exited with status $ac_status" >&5
1887 $as_echo "$as_me: failed program was:" >&5
1888sed 's/^/| /' conftest.$ac_ext >&5
1889
1890 ac_retval=$ac_status
1891fi
1892 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001894 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001895
1896} # ac_fn_c_try_run
1897
1898# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1899# -------------------------------------------------------
1900# Tests whether HEADER exists and can be compiled using the include files in
1901# INCLUDES, setting the cache variable VAR accordingly.
1902ac_fn_c_check_header_compile ()
1903{
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1906$as_echo_n "checking for $2... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001907if eval "test \"\${$3+set}\"" = set; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001908 $as_echo_n "(cached) " >&6
1909else
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h. */
1912$4
1913#include <$2>
1914_ACEOF
1915if ac_fn_c_try_compile "$LINENO"; then :
1916 eval "$3=yes"
1917else
1918 eval "$3=no"
1919fi
1920rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1921fi
1922eval ac_res=\$$3
1923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1924$as_echo "$ac_res" >&6; }
1925 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1926
1927} # ac_fn_c_check_header_compile
1928
1929# ac_fn_c_check_func LINENO FUNC VAR
1930# ----------------------------------
1931# Tests whether FUNC exists, setting the cache variable VAR accordingly
1932ac_fn_c_check_func ()
1933{
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936$as_echo_n "checking for $2... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001937if eval "test \"\${$3+set}\"" = set; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001938 $as_echo_n "(cached) " >&6
1939else
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h. */
1942/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1944#define $2 innocuous_$2
1945
1946/* System header to define __stub macros and hopefully few prototypes,
1947 which can conflict with char $2 (); below.
1948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1949 <limits.h> exists even on freestanding compilers. */
1950
1951#ifdef __STDC__
1952# include <limits.h>
1953#else
1954# include <assert.h>
1955#endif
1956
1957#undef $2
1958
1959/* Override any GCC internal prototype to avoid an error.
1960 Use char because int might match the return type of a GCC
1961 builtin and then its argument prototype would still apply. */
1962#ifdef __cplusplus
1963extern "C"
1964#endif
1965char $2 ();
1966/* The GNU C library defines this for functions which it implements
1967 to always fail with ENOSYS. Some functions are actually named
1968 something starting with __ and the normal name is an alias. */
1969#if defined __stub_$2 || defined __stub___$2
1970choke me
1971#endif
1972
1973int
1974main ()
1975{
1976return $2 ();
1977 ;
1978 return 0;
1979}
1980_ACEOF
1981if ac_fn_c_try_link "$LINENO"; then :
1982 eval "$3=yes"
1983else
1984 eval "$3=no"
1985fi
1986rm -f core conftest.err conftest.$ac_objext \
1987 conftest$ac_exeext conftest.$ac_ext
1988fi
1989eval ac_res=\$$3
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991$as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993
1994} # ac_fn_c_check_func
1995
1996# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1997# ----------------------------------------------------
1998# Tries to find if the field MEMBER exists in type AGGR, after including
1999# INCLUDES, setting cache variable VAR accordingly.
2000ac_fn_c_check_member ()
2001{
2002 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2004$as_echo_n "checking for $2.$3... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002005if eval "test \"\${$4+set}\"" = set; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002006 $as_echo_n "(cached) " >&6
2007else
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009/* end confdefs.h. */
2010$5
2011int
2012main ()
2013{
2014static $2 ac_aggr;
2015if (ac_aggr.$3)
2016return 0;
2017 ;
2018 return 0;
2019}
2020_ACEOF
2021if ac_fn_c_try_compile "$LINENO"; then :
2022 eval "$4=yes"
2023else
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h. */
2026$5
2027int
2028main ()
2029{
2030static $2 ac_aggr;
2031if (sizeof ac_aggr.$3)
2032return 0;
2033 ;
2034 return 0;
2035}
2036_ACEOF
2037if ac_fn_c_try_compile "$LINENO"; then :
2038 eval "$4=yes"
2039else
2040 eval "$4=no"
2041fi
2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043fi
2044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2045fi
2046eval ac_res=\$$4
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2048$as_echo "$ac_res" >&6; }
2049 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2050
2051} # ac_fn_c_check_member
2052
2053# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2054# -------------------------------------------
2055# Tests whether TYPE exists after having included INCLUDES, setting cache
2056# variable VAR accordingly.
2057ac_fn_c_check_type ()
2058{
2059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2061$as_echo_n "checking for $2... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002062if eval "test \"\${$3+set}\"" = set; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002063 $as_echo_n "(cached) " >&6
2064else
2065 eval "$3=no"
2066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2067/* end confdefs.h. */
2068$4
2069int
2070main ()
2071{
2072if (sizeof ($2))
2073 return 0;
2074 ;
2075 return 0;
2076}
2077_ACEOF
2078if ac_fn_c_try_compile "$LINENO"; then :
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080/* end confdefs.h. */
2081$4
2082int
2083main ()
2084{
2085if (sizeof (($2)))
2086 return 0;
2087 ;
2088 return 0;
2089}
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
2092
2093else
2094 eval "$3=yes"
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097fi
2098rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2099fi
2100eval ac_res=\$$3
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2102$as_echo "$ac_res" >&6; }
2103 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2104
2105} # ac_fn_c_check_type
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002106cat >config.log <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002107This file contains any messages produced by compilers while
2108running configure, to aid debugging if configure makes a mistake.
2109
Alexandre Julliarde44875b2011-03-04 19:25:23 +01002110It was created by Wine $as_me 1.3.15, which was
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002111generated by GNU Autoconf 2.67. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002112
2113 $ $0 $@
2114
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002115_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002116exec 5>>config.log
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002117{
2118cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002119## --------- ##
2120## Platform. ##
2121## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002122
2123hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2124uname -m = `(uname -m) 2>/dev/null || echo unknown`
2125uname -r = `(uname -r) 2>/dev/null || echo unknown`
2126uname -s = `(uname -s) 2>/dev/null || echo unknown`
2127uname -v = `(uname -v) 2>/dev/null || echo unknown`
2128
2129/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2130/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2131
2132/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2133/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2134/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002135/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002136/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2137/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2138/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2139
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002140_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002141
2142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2143for as_dir in $PATH
2144do
2145 IFS=$as_save_IFS
2146 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002147 $as_echo "PATH: $as_dir"
2148 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002149IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002150
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002151} >&5
2152
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002153cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002154
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002155
2156## ----------- ##
2157## Core tests. ##
2158## ----------- ##
2159
2160_ACEOF
2161
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002162
2163# Keep a trace of the command line.
2164# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002165# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002166# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002167# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002168ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002169ac_configure_args0=
2170ac_configure_args1=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002171ac_must_keep_next=false
2172for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002173do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002174 for ac_arg
2175 do
2176 case $ac_arg in
2177 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2178 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2179 | -silent | --silent | --silen | --sile | --sil)
2180 continue ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002181 *\'*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01002182 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002183 esac
2184 case $ac_pass in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002185 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002186 2)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002187 as_fn_append ac_configure_args1 " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002188 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00002189 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002190 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00002191 case $ac_arg in
2192 *=* | --config-cache | -C | -disable-* | --disable-* \
2193 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2194 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2195 | -with-* | --with-* | -without-* | --without-* | --x)
2196 case "$ac_configure_args0 " in
2197 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2198 esac
2199 ;;
2200 -* ) ac_must_keep_next=true ;;
2201 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002202 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002203 as_fn_append ac_configure_args " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002204 ;;
2205 esac
2206 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002207done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002208{ ac_configure_args0=; unset ac_configure_args0;}
2209{ ac_configure_args1=; unset ac_configure_args1;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002210
2211# When interrupted or exit'd, cleanup temporary files, and complete
2212# config.log. We remove comments because anyway the quotes in there
2213# would cause problems or look ugly.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002214# WARNING: Use '\'' to represent an apostrophe within the trap.
2215# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002216trap 'exit_status=$?
2217 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002218 {
2219 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002220
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002221 $as_echo "## ---------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002222## Cache variables. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002223## ---------------- ##"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002224 echo
2225 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002226(
2227 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2228 eval ac_val=\$$ac_var
2229 case $ac_val in #(
2230 *${as_nl}*)
2231 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002232 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002233$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002234 esac
2235 case $ac_var in #(
2236 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +01002237 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002238 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002239 esac ;;
2240 esac
2241 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002242 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002243 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2244 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002245 sed -n \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002246 "s/'\''/'\''\\\\'\'''\''/g;
2247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2248 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002249 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002250 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002251 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002252 esac |
2253 sort
2254)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002255 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002256
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002257 $as_echo "## ----------------- ##
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002258## Output variables. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002259## ----------------- ##"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002260 echo
2261 for ac_var in $ac_subst_vars
2262 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002263 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002264 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002265 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002266 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002267 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002268 done | sort
2269 echo
2270
2271 if test -n "$ac_subst_files"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002272 $as_echo "## ------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002273## File substitutions. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002274## ------------------- ##"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002275 echo
2276 for ac_var in $ac_subst_files
2277 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002278 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002279 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002280 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002281 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002282 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002283 done | sort
2284 echo
2285 fi
2286
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002287 if test -s confdefs.h; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002288 $as_echo "## ----------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002289## confdefs.h. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002290## ----------- ##"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002291 echo
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002292 cat confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002293 echo
2294 fi
2295 test "$ac_signal" != 0 &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01002296 $as_echo "$as_me: caught signal $ac_signal"
2297 $as_echo "$as_me: exit $exit_status"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002298 } >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002299 rm -f core *.core core.conftest.* &&
2300 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002301 exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002302' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002303for ac_signal in 1 2 13 15; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002304 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002305done
2306ac_signal=0
2307
2308# confdefs.h avoids OS command line length limits that DEFS can exceed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002309rm -f -r conftest* confdefs.h
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002310
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002311$as_echo "/* confdefs.h */" > confdefs.h
2312
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002313# Predefined preprocessor variables.
2314
2315cat >>confdefs.h <<_ACEOF
2316#define PACKAGE_NAME "$PACKAGE_NAME"
2317_ACEOF
2318
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002319cat >>confdefs.h <<_ACEOF
2320#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2321_ACEOF
2322
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002323cat >>confdefs.h <<_ACEOF
2324#define PACKAGE_VERSION "$PACKAGE_VERSION"
2325_ACEOF
2326
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002327cat >>confdefs.h <<_ACEOF
2328#define PACKAGE_STRING "$PACKAGE_STRING"
2329_ACEOF
2330
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002331cat >>confdefs.h <<_ACEOF
2332#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2333_ACEOF
2334
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002335cat >>confdefs.h <<_ACEOF
2336#define PACKAGE_URL "$PACKAGE_URL"
2337_ACEOF
2338
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002339
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002340# Let the site file select an alternate cache file if it wants to.
Alexandre Julliardabf50482008-10-31 12:56:53 +01002341# Prefer an explicitly selected file to automatically selected ones.
2342ac_site_file1=NONE
2343ac_site_file2=NONE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002344if test -n "$CONFIG_SITE"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002345 # We do not want a PATH search for config.site.
2346 case $CONFIG_SITE in #((
2347 -*) ac_site_file1=./$CONFIG_SITE;;
2348 */*) ac_site_file1=$CONFIG_SITE;;
2349 *) ac_site_file1=./$CONFIG_SITE;;
2350 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002351elif test "x$prefix" != xNONE; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002352 ac_site_file1=$prefix/share/config.site
2353 ac_site_file2=$prefix/etc/config.site
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002354else
Alexandre Julliardabf50482008-10-31 12:56:53 +01002355 ac_site_file1=$ac_default_prefix/share/config.site
2356 ac_site_file2=$ac_default_prefix/etc/config.site
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002357fi
Alexandre Julliardabf50482008-10-31 12:56:53 +01002358for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002359do
Alexandre Julliardabf50482008-10-31 12:56:53 +01002360 test "x$ac_site_file" = xNONE && continue
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002361 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002363$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002364 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002365 . "$ac_site_file" \
2366 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2367$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2368as_fn_error $? "failed to load site script $ac_site_file
2369See \`config.log' for more details" "$LINENO" 5 ; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002370 fi
2371done
2372
2373if test -r "$cache_file"; then
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002374 # Some versions of bash will fail to source /dev/null (special files
2375 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2376 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002377 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002378$as_echo "$as_me: loading cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002379 case $cache_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02002380 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2381 *) . "./$cache_file";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002382 esac
2383 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002384else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002386$as_echo "$as_me: creating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002387 >$cache_file
2388fi
2389
2390# Check that the precious variables saved in the cache have kept the same
2391# value.
2392ac_cache_corrupted=false
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002393for ac_var in $ac_precious_vars; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002394 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2395 eval ac_new_set=\$ac_env_${ac_var}_set
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002396 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2397 eval ac_new_val=\$ac_env_${ac_var}_value
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002398 case $ac_old_set,$ac_new_set in
2399 set,)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002400 { $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 +01002401$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 +00002402 ac_cache_corrupted=: ;;
2403 ,set)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002404 { $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 +01002405$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002406 ac_cache_corrupted=: ;;
2407 ,);;
2408 *)
2409 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002410 # differences in whitespace do not lead to failure.
2411 ac_old_val_w=`echo x $ac_old_val`
2412 ac_new_val_w=`echo x $ac_new_val`
2413 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002415$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2416 ac_cache_corrupted=:
2417 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002418 { $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 +01002419$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2420 eval $ac_var=\$ac_old_val
2421 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002422 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002423$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002424 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002425$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002426 fi;;
2427 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002428 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002429 if test "$ac_new_set" = set; then
2430 case $ac_new_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002431 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002432 *) ac_arg=$ac_var=$ac_new_val ;;
2433 esac
2434 case " $ac_configure_args " in
2435 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002436 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002437 esac
2438 fi
2439done
2440if $ac_cache_corrupted; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002442$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002443 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002444$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002445 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002446fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002447## -------------------- ##
2448## Main body of script. ##
2449## -------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002450
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002451ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002452ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002456
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002457
2458
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002459ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00002460
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002461ac_aux_dir=
Jeremy White0ebeb532006-06-20 13:18:41 +02002462for ac_dir in tools "$srcdir"/tools; do
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002463 if test -f "$ac_dir/install-sh"; then
2464 ac_aux_dir=$ac_dir
2465 ac_install_sh="$ac_aux_dir/install-sh -c"
2466 break
2467 elif test -f "$ac_dir/install.sh"; then
2468 ac_aux_dir=$ac_dir
2469 ac_install_sh="$ac_aux_dir/install.sh -c"
2470 break
2471 elif test -f "$ac_dir/shtool"; then
2472 ac_aux_dir=$ac_dir
2473 ac_install_sh="$ac_aux_dir/shtool install -c"
2474 break
2475 fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002476done
2477if test -z "$ac_aux_dir"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002478 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002479fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002480
2481# These three variables are undocumented and unsupported,
2482# and are intended to be withdrawn in a future Autoconf release.
2483# They can cause serious problems if a builder's source tree is in a directory
2484# whose full name contains unusual characters.
2485ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2486ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2487ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2488
Howard Abrams13277481999-07-10 13:16:29 +00002489
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002490
2491
Alexandre Julliardd59227e2010-02-20 12:36:04 +01002492
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002493# Check whether --enable-win16 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002494if test "${enable_win16+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002495 enableval=$enable_win16;
2496fi
Alexandre Julliardc728efc2002-10-02 02:34:09 +00002497
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002498# Check whether --enable-win64 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002499if test "${enable_win64+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002500 enableval=$enable_win64;
2501fi
Alexandre Julliardb8074992002-11-21 21:51:24 +00002502
Alexandre Julliard35078f42008-11-21 10:16:12 +01002503# Check whether --enable-tests was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002504if test "${enable_tests+set}" = set; then :
Alexandre Julliard35078f42008-11-21 10:16:12 +01002505 enableval=$enable_tests;
2506fi
2507
Alexandre Julliard9d037222008-03-20 13:00:12 +01002508# Check whether --enable-maintainer-mode was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002509if test "${enable_maintainer_mode+set}" = set; then :
Alexandre Julliard9d037222008-03-20 13:00:12 +01002510 enableval=$enable_maintainer_mode;
Alexandre Julliard9d037222008-03-20 13:00:12 +01002511fi
2512
Alexandre Julliardb8074992002-11-21 21:51:24 +00002513
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002514
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002515# Check whether --with-alsa was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002516if test "${with_alsa+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002517 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2518fi
2519
2520
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002521# Check whether --with-capi was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002522if test "${with_capi+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002523 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2524fi
2525
2526
2527# Check whether --with-cms was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002528if test "${with_cms+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002529 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2530fi
2531
2532
2533# Check whether --with-coreaudio was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002534if test "${with_coreaudio+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002535 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2536fi
2537
2538
2539# Check whether --with-cups was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002540if test "${with_cups+set}" = set; then :
Francois Gouget289ea332008-07-24 16:09:07 +02002541 withval=$with_cups;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002542fi
2543
2544
2545# Check whether --with-curses was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002546if test "${with_curses+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002547 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2548fi
2549
2550
2551# Check whether --with-esd was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002552if test "${with_esd+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002553 withval=$with_esd;
2554fi
2555
2556
2557# Check whether --with-fontconfig was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002558if test "${with_fontconfig+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002559 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2560fi
2561
2562
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002563# Check whether --with-freetype was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002564if test "${with_freetype+set}" = set; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002565 withval=$with_freetype;
2566fi
2567
2568
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01002569# Check whether --with-gettextpo was given.
2570if test "${with_gettextpo+set}" = set; then :
2571 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2572fi
2573
2574
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002575# Check whether --with-gphoto was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002576if test "${with_gphoto+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002577 withval=$with_gphoto;
2578fi
2579
2580
Alexandre Julliardad798732008-05-01 13:29:02 +02002581# Check whether --with-glu was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002582if test "${with_glu+set}" = set; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02002583 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2584fi
2585
2586
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002587# Check whether --with-gnutls was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002588if test "${with_gnutls+set}" = set; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002589 withval=$with_gnutls;
2590fi
2591
2592
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02002593# Check whether --with-gsm was given.
2594if test "${with_gsm+set}" = set; then :
2595 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 +02002596fi
2597
2598
Aric Stewart2914d652010-10-20 13:55:16 -05002599# Check whether --with-gstreamer was given.
2600if test "${with_gstreamer+set}" = set; then :
2601 withval=$with_gstreamer;
2602fi
2603
2604
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002605# Check whether --with-hal was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002606if test "${with_hal+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002607 withval=$with_hal;
2608fi
2609
2610
2611# Check whether --with-jack was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002612if test "${with_jack+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002613 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2614fi
2615
2616
2617# Check whether --with-jpeg was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002618if test "${with_jpeg+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002619 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2620fi
2621
2622
2623# Check whether --with-ldap was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002624if test "${with_ldap+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002625 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2626fi
2627
2628
Aric Stewartdb71d7c2009-08-19 09:37:48 -05002629# Check whether --with-mpg123 was given.
2630if test "${with_mpg123+set}" = set; then :
2631 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2632fi
2633
2634
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002635# Check whether --with-nas was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002636if test "${with_nas+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002637 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2638fi
2639
2640
Chris Robinson862965f2009-08-25 03:26:35 -07002641# Check whether --with-openal was given.
2642if test "${with_openal+set}" = set; then :
Ken Thomases0b08f192009-09-09 22:23:35 -05002643 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 -07002644fi
2645
2646
Peter Urbanec65c84d72010-12-02 23:41:48 +11002647# Check whether --with-opencl was given.
2648if test "${with_opencl+set}" = set; then :
Adam Martinson2eb2f712010-12-28 12:46:09 -06002649 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 +11002650fi
2651
2652
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002653# Check whether --with-opengl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002654if test "${with_opengl+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002655 withval=$with_opengl;
2656fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002657
Alexandre Julliardf90efa91998-06-14 15:24:15 +00002658
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002659# Check whether --with-openssl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002660if test "${with_openssl+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002661 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2662fi
2663
2664
2665# Check whether --with-oss was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002666if test "${with_oss+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002667 withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2668fi
2669
2670
2671# Check whether --with-png was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002672if test "${with_png+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002673 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2674fi
2675
2676
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002677# Check whether --with-pthread was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002678if test "${with_pthread+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002679 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2680fi
2681
2682
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002683# Check whether --with-sane was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002684if test "${with_sane+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002685 withval=$with_sane;
2686fi
2687
2688
Vincent Povirk73cd5692010-03-08 17:07:29 -06002689# Check whether --with-tiff was given.
2690if test "${with_tiff+set}" = set; then :
2691 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2692fi
2693
2694
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01002695# Check whether --with-v4l was given.
2696if test "${with_v4l+set}" = set; then :
2697 withval=$with_v4l;
2698fi
2699
2700
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002701# Check whether --with-xcomposite was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002702if test "${with_xcomposite+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002703 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2704fi
2705
2706
2707# Check whether --with-xcursor was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002708if test "${with_xcursor+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002709 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2710fi
2711
2712
2713# Check whether --with-xinerama was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002714if test "${with_xinerama+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002715 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2716fi
2717
2718
2719# Check whether --with-xinput was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002720if test "${with_xinput+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002721 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2722fi
2723
2724
2725# Check whether --with-xml was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002726if test "${with_xml+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002727 withval=$with_xml;
2728fi
2729
2730
2731# Check whether --with-xrandr was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002732if test "${with_xrandr+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002733 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2734fi
2735
2736
2737# Check whether --with-xrender was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002738if test "${with_xrender+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002739 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2740fi
2741
2742
2743# Check whether --with-xshape was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002744if test "${with_xshape+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002745 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2746fi
2747
2748
2749# Check whether --with-xshm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002750if test "${with_xshm+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002751 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2752fi
2753
2754
2755# Check whether --with-xslt was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002756if test "${with_xslt+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002757 withval=$with_xslt;
2758fi
2759
2760
Francois Gougeta49beb42008-06-26 14:02:17 +02002761# Check whether --with-xxf86vm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002762if test "${with_xxf86vm+set}" = set; then :
André Hentschel7b285a42009-09-19 19:08:09 +02002763 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 +01002764fi
2765
2766
Alexandre Julliardba6a41a2011-02-18 13:07:27 +01002767# Check whether --with-zlib was given.
2768if test "${with_zlib+set}" = set; then :
2769 withval=$with_zlib; if test "x$withval" = "xno"; then ac_cv_header_zlib_h=no; fi
2770fi
2771
2772
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002773
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002774# Check whether --with-wine-tools was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002775if test "${with_wine_tools+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002776 withval=$with_wine_tools;
2777fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002778
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002779
Alexandre Julliard39a75d32009-08-13 19:45:31 +02002780# Check whether --with-wine64 was given.
2781if test "${with_wine64+set}" = set; then :
2782 withval=$with_wine64;
2783fi
2784
2785
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002786# Make sure we can run config.sub.
Jeremy White0ebeb532006-06-20 13:18:41 +02002787$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002788 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00002789
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002791$as_echo_n "checking build system type... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002792if test "${ac_cv_build+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002793 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002794else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002795 ac_build_alias=$build_alias
2796test "x$ac_build_alias" = x &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002797 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002798test "x$ac_build_alias" = x &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002799 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Jeremy White0ebeb532006-06-20 13:18:41 +02002800ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002801 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002802
2803fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002805$as_echo "$ac_cv_build" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002806case $ac_cv_build in
2807*-*-*) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002808*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002809esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002810build=$ac_cv_build
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002811ac_save_IFS=$IFS; IFS='-'
2812set x $ac_cv_build
2813shift
2814build_cpu=$1
2815build_vendor=$2
2816shift; shift
2817# Remember, the first character of IFS is used to create $*,
2818# except with old shells:
2819build_os=$*
2820IFS=$ac_save_IFS
2821case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002822
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002823
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002825$as_echo_n "checking host system type... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002826if test "${ac_cv_host+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002827 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002828else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002829 if test "x$host_alias" = x; then
2830 ac_cv_host=$ac_cv_build
2831else
Jeremy White0ebeb532006-06-20 13:18:41 +02002832 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002833 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002834fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002835
2836fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002838$as_echo "$ac_cv_host" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002839case $ac_cv_host in
2840*-*-*) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002841*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002842esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002843host=$ac_cv_host
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002844ac_save_IFS=$IFS; IFS='-'
2845set x $ac_cv_host
2846shift
2847host_cpu=$1
2848host_vendor=$2
2849shift; shift
2850# Remember, the first character of IFS is used to create $*,
2851# except with old shells:
2852host_os=$*
2853IFS=$ac_save_IFS
2854case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002855
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002856
Alexandre Julliard71440f32005-05-19 14:28:17 +00002857
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002858case "$srcdir" in
2859 .) ;;
2860 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002861 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 +02002862You need to run 'make distclean' in the source tree first." "$LINENO" 5
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002863 fi ;;
2864esac
2865
Alexandre Julliard71440f32005-05-19 14:28:17 +00002866
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002868$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2869set x ${MAKE-make}
2870ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002871if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002872 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002873else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002874 cat >conftest.make <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002875SHELL = /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002876all:
Jeremy White0ebeb532006-06-20 13:18:41 +02002877 @echo '@@@%%%=$(MAKE)=@@@%%%'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002878_ACEOF
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002879# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02002880case `${MAKE-make} -f conftest.make 2>/dev/null` in
2881 *@@@%%%=?*=@@@%%%*)
2882 eval ac_cv_prog_make_${ac_make}_set=yes;;
2883 *)
2884 eval ac_cv_prog_make_${ac_make}_set=no;;
2885esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002886rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002887fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002888if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002890$as_echo "yes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002891 SET_MAKE=
2892else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002894$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002895 SET_MAKE="MAKE=${MAKE-make}"
2896fi
2897
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002898ac_ext=c
2899ac_cpp='$CPP $CPPFLAGS'
2900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903if test -n "$ac_tool_prefix"; then
2904 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2905set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002907$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002908if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002909 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002910else
2911 if test -n "$CC"; then
2912 ac_cv_prog_CC="$CC" # Let the user override the test.
2913else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915for as_dir in $PATH
2916do
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002919 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002920 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 +00002921 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002923 break 2
2924 fi
2925done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002926 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002927IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002928
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002929fi
2930fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002931CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002932if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002934$as_echo "$CC" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002935else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002937$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002938fi
2939
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002940
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002941fi
2942if test -z "$ac_cv_prog_CC"; then
2943 ac_ct_CC=$CC
2944 # Extract the first word of "gcc", so it can be a program name with args.
2945set dummy gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002947$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002948if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002949 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002950else
2951 if test -n "$ac_ct_CC"; then
2952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2953else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002959 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002960 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 +00002961 ac_cv_prog_ac_ct_CC="gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002963 break 2
2964 fi
2965done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002966 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002967IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002968
2969fi
2970fi
2971ac_ct_CC=$ac_cv_prog_ac_ct_CC
2972if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002974$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002975else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002977$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002978fi
2979
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002980 if test "x$ac_ct_CC" = x; then
2981 CC=""
2982 else
2983 case $cross_compiling:$ac_tool_warned in
2984yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002985{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002987ac_tool_warned=yes ;;
2988esac
2989 CC=$ac_ct_CC
2990 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002991else
2992 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002993fi
2994
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002995if test -z "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002996 if test -n "$ac_tool_prefix"; then
2997 # 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 +00002998set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003000$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003001if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003002 $as_echo_n "(cached) " >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003003else
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3006else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003012 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003013 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 +00003014 ac_cv_prog_CC="${ac_tool_prefix}cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003016 break 2
3017 fi
3018done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003019 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003020IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003021
3022fi
3023fi
3024CC=$ac_cv_prog_CC
3025if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003027$as_echo "$CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003028else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003030$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003031fi
3032
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003033
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003034 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003035fi
3036if test -z "$CC"; then
3037 # Extract the first word of "cc", so it can be a program name with args.
3038set dummy cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003040$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003041if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003042 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003043else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003047 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049for as_dir in $PATH
3050do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003053 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003054 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 +00003055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3056 ac_prog_rejected=yes
3057 continue
3058 fi
3059 ac_cv_prog_CC="cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003061 break 2
3062 fi
3063done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003064 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003065IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003066
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003067if test $ac_prog_rejected = yes; then
3068 # We found a bogon in the path, so make sure we never use it.
3069 set dummy $ac_cv_prog_CC
3070 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003071 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003072 # We chose a different compiler from the bogus one.
3073 # However, it has the same basename, so the bogon will be chosen
3074 # first if we set CC to just the basename; use the full file name.
3075 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003076 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003077 fi
3078fi
3079fi
3080fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003081CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003082if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003084$as_echo "$CC" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003085else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003087$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003088fi
3089
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003090
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003091fi
3092if test -z "$CC"; then
3093 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003094 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003095 do
3096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3097set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003099$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003100if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003101 $as_echo_n "(cached) " >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00003102else
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3105else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003111 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003112 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 +00003113 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003115 break 2
3116 fi
3117done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003118 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003119IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003120
Eric Pouech18ad24a2000-01-16 22:16:33 +00003121fi
3122fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003123CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00003124if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003126$as_echo "$CC" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003127else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003129$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003130fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003131
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003132
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003133 test -n "$CC" && break
3134 done
3135fi
3136if test -z "$CC"; then
3137 ac_ct_CC=$CC
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003138 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003139do
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003143$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003144if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003145 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003146else
3147 if test -n "$ac_ct_CC"; then
3148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3149else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151for as_dir in $PATH
3152do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003155 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003156 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 +00003157 ac_cv_prog_ac_ct_CC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003159 break 2
3160 fi
3161done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003162 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003163IFS=$as_save_IFS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003164
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003165fi
3166fi
3167ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003170$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003171else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003173$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003174fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003175
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003176
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003177 test -n "$ac_ct_CC" && break
3178done
Eric Pouech18ad24a2000-01-16 22:16:33 +00003179
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003180 if test "x$ac_ct_CC" = x; then
3181 CC=""
3182 else
3183 case $cross_compiling:$ac_tool_warned in
3184yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003185{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003187ac_tool_warned=yes ;;
3188esac
3189 CC=$ac_ct_CC
3190 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003191fi
3192
3193fi
3194
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003195
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003196test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003198as_fn_error $? "no acceptable C compiler found in \$PATH
3199See \`config.log' for more details" "$LINENO" 5 ; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003200
3201# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003202$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003203set X $ac_compile
3204ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003205for ac_option in --version -v -V -qversion; do
3206 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003207case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212$as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003214 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003215 if test -s conftest.err; then
3216 sed '10a\
3217... rest of stderr output deleted ...
3218 10q' conftest.err >conftest.er1
3219 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003220 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003221 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }
3224done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003225
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003227/* end confdefs.h. */
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003228
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003229int
3230main ()
3231{
3232
3233 ;
3234 return 0;
3235}
3236_ACEOF
3237ac_clean_files_save=$ac_clean_files
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003238ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003239# Try to create an executable without -o first, disregard a.out.
3240# It will help us diagnose broken compilers, and finding out an intuition
3241# of exeext.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3243$as_echo_n "checking whether the C compiler works... " >&6; }
Alexandre Julliardabf50482008-10-31 12:56:53 +01003244ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3245
3246# The possible output files:
3247ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3248
Jeremy White0ebeb532006-06-20 13:18:41 +02003249ac_rmfiles=
3250for ac_file in $ac_files
3251do
3252 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003254 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3255 esac
3256done
3257rm -f $ac_rmfiles
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003258
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003259if { { ac_try="$ac_link_default"
Jeremy White0ebeb532006-06-20 13:18:41 +02003260case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003266 (eval "$ac_link_default") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003267 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003270 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3271# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3272# in a Makefile. We should not override ac_cv_exeext if it was cached,
3273# so that the user can short-circuit this test for compilers unknown to
3274# Autoconf.
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003275for ac_file in $ac_files ''
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003276do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003277 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003278 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jeremy White0ebeb532006-06-20 13:18:41 +02003280 ;;
3281 [ab].out )
3282 # We found the default executable, but exeext='' is most
3283 # certainly right.
3284 break;;
3285 *.* )
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003286 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jeremy White0ebeb532006-06-20 13:18:41 +02003287 then :; else
3288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289 fi
3290 # We set ac_cv_exeext here because the later test for it is not
3291 # safe: cross compilers may not add the suffix if given an `-o'
3292 # argument, so we may need to know it at that point already.
3293 # Even if this section looks crufty: it has the advantage of
3294 # actually working.
3295 break;;
3296 * )
3297 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003298 esac
3299done
Jeremy White0ebeb532006-06-20 13:18:41 +02003300test "$ac_cv_exeext" = no && ac_cv_exeext=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003301
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003302else
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003303 ac_file=''
3304fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003305if test -z "$ac_file"; then :
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307$as_echo "no" >&6; }
3308$as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003309sed 's/^/| /' conftest.$ac_ext >&5
3310
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003311{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003313as_fn_error 77 "C compiler cannot create executables
3314See \`config.log' for more details" "$LINENO" 5 ; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003315else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317$as_echo "yes" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003318fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3320$as_echo_n "checking for C compiler default output file name... " >&6; }
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3322$as_echo "$ac_file" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003323ac_exeext=$ac_cv_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02003324
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003325rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jeremy White0ebeb532006-06-20 13:18:41 +02003326ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003328$as_echo_n "checking for suffix of executables... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003329if { { ac_try="$ac_link"
Jeremy White0ebeb532006-06-20 13:18:41 +02003330case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003336 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003337 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003340 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3341# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3342# work properly (i.e., refer to `conftest.exe'), while it won't with
3343# `rm'.
3344for ac_file in conftest.exe conftest conftest.*; do
3345 test -f "$ac_file" || continue
3346 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003348 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3349 break;;
3350 * ) break;;
3351 esac
3352done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003353else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003356as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3357See \`config.log' for more details" "$LINENO" 5 ; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003358fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003359rm -f conftest conftest$ac_cv_exeext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003361$as_echo "$ac_cv_exeext" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003362
3363rm -f conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003364EXEEXT=$ac_cv_exeext
3365ac_exeext=$EXEEXT
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367/* end confdefs.h. */
3368#include <stdio.h>
3369int
3370main ()
3371{
3372FILE *f = fopen ("conftest.out", "w");
3373 return ferror (f) || fclose (f) != 0;
3374
3375 ;
3376 return 0;
3377}
3378_ACEOF
3379ac_clean_files="$ac_clean_files conftest.out"
3380# Check that the compiler produces executables we can run. If not, either
3381# the compiler is broken, or we cross compile.
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3383$as_echo_n "checking whether we are cross compiling... " >&6; }
3384if test "$cross_compiling" != yes; then
3385 { { ac_try="$ac_link"
3386case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389esac
3390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391$as_echo "$ac_try_echo"; } >&5
3392 (eval "$ac_link") 2>&5
3393 ac_status=$?
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }
3396 if { ac_try='./conftest$ac_cv_exeext'
3397 { { case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400esac
3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402$as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_try") 2>&5
3404 ac_status=$?
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; }; then
3407 cross_compiling=no
3408 else
3409 if test "$cross_compiling" = maybe; then
3410 cross_compiling=yes
3411 else
3412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003414as_fn_error $? "cannot run C compiled programs.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003415If you meant to cross compile, use \`--host'.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003416See \`config.log' for more details" "$LINENO" 5 ; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003417 fi
3418 fi
3419fi
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3421$as_echo "$cross_compiling" >&6; }
3422
3423rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3424ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003426$as_echo_n "checking for suffix of object files... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003427if test "${ac_cv_objext+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003428 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003429else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jeremy White0ebeb532006-06-20 13:18:41 +02003431/* end confdefs.h. */
3432
3433int
3434main ()
3435{
3436
3437 ;
3438 return 0;
3439}
3440_ACEOF
3441rm -f conftest.o conftest.obj
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003442if { { ac_try="$ac_compile"
Jeremy White0ebeb532006-06-20 13:18:41 +02003443case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003449 (eval "$ac_compile") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003450 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003453 for ac_file in conftest.o conftest.obj conftest.*; do
3454 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003455 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003457 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3458 break;;
3459 esac
3460done
3461else
Alexandre Julliardabf50482008-10-31 12:56:53 +01003462 $as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003463sed 's/^/| /' conftest.$ac_ext >&5
3464
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003465{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003467as_fn_error $? "cannot compute suffix of object files: cannot compile
3468See \`config.log' for more details" "$LINENO" 5 ; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003469fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003470rm -f conftest.$ac_cv_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003471fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003473$as_echo "$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003474OBJEXT=$ac_cv_objext
3475ac_objext=$OBJEXT
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003477$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003478if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003479 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003480else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003482/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003483
3484int
3485main ()
3486{
3487#ifndef __GNUC__
3488 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003489#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003490
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003491 ;
3492 return 0;
3493}
3494_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003495if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003496 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00003497else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003498 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00003499fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003501ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00003502
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003503fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003505$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3506if test $ac_compiler_gnu = yes; then
3507 GCC=yes
3508else
3509 GCC=
3510fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003511ac_test_CFLAGS=${CFLAGS+set}
3512ac_save_CFLAGS=$CFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003514$as_echo_n "checking whether $CC accepts -g... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003515if test "${ac_cv_prog_cc_g+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003516 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003517else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003518 ac_save_c_werror_flag=$ac_c_werror_flag
3519 ac_c_werror_flag=yes
3520 ac_cv_prog_cc_g=no
3521 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003523/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003524
3525int
3526main ()
3527{
3528
3529 ;
3530 return 0;
3531}
3532_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003533if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003534 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003535else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003536 CFLAGS=""
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003538/* end confdefs.h. */
3539
3540int
3541main ()
3542{
3543
3544 ;
3545 return 0;
3546}
3547_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003548if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003549
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003550else
3551 ac_c_werror_flag=$ac_save_c_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003552 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003554/* end confdefs.h. */
3555
3556int
3557main ()
3558{
3559
3560 ;
3561 return 0;
3562}
3563_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003564if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003565 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003566fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003568fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003570fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003572 ac_c_werror_flag=$ac_save_c_werror_flag
3573fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003575$as_echo "$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003576if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003577 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003578elif test $ac_cv_prog_cc_g = yes; then
3579 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003580 CFLAGS="-g -O2"
3581 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003582 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003583 fi
3584else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003585 if test "$GCC" = yes; then
3586 CFLAGS="-O2"
3587 else
3588 CFLAGS=
3589 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003590fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003592$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003593if test "${ac_cv_prog_cc_c89+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003594 $as_echo_n "(cached) " >&6
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003595else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003596 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003597ac_save_CC=$CC
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003599/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003600#include <stdarg.h>
3601#include <stdio.h>
3602#include <sys/types.h>
3603#include <sys/stat.h>
3604/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3605struct buf { int x; };
3606FILE * (*rcsopen) (struct buf *, struct stat *, int);
3607static char *e (p, i)
3608 char **p;
3609 int i;
3610{
3611 return p[i];
3612}
3613static char *f (char * (*g) (char **, int), char **p, ...)
3614{
3615 char *s;
3616 va_list v;
3617 va_start (v,p);
3618 s = g (p, va_arg (v,int));
3619 va_end (v);
3620 return s;
3621}
Alexandre Julliard875927f2004-01-02 01:55:29 +00003622
3623/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3624 function prototypes and stuff, but not '\xHH' hex character constants.
3625 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003626 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00003627 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3628 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003629 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003630int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3631
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02003632/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3633 inside strings and character constants. */
3634#define FOO(x) 'x'
3635int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3636
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003637int test (int i, double x);
3638struct s1 {int (*f) (int a);};
3639struct s2 {int (*f) (double a);};
3640int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3641int argc;
3642char **argv;
3643int
3644main ()
3645{
3646return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3647 ;
3648 return 0;
3649}
3650_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003651for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3652 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003653do
3654 CC="$ac_save_CC $ac_arg"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003655 if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003656 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003657fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003658rm -f core conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003659 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003660done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003661rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003662CC=$ac_save_CC
3663
3664fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003665# AC_CACHE_VAL
3666case "x$ac_cv_prog_cc_c89" in
3667 x)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003669$as_echo "none needed" >&6; } ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003670 xno)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003672$as_echo "unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003673 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003674 CC="$CC $ac_cv_prog_cc_c89"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003676$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003677esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003678if test "x$ac_cv_prog_cc_c89" != xno; then :
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003679
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003680fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003681
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003682ac_ext=c
3683ac_cpp='$CPP $CPPFLAGS'
3684ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3685ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3686ac_compiler_gnu=$ac_cv_c_compiler_gnu
3687
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003688ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003689ac_cpp='$CXXCPP $CPPFLAGS'
3690ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003693if test -z "$CXX"; then
3694 if test -n "$CCC"; then
3695 CXX=$CCC
3696 else
3697 if test -n "$ac_tool_prefix"; then
3698 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 +00003699 do
3700 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3701set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003703$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003704if test "${ac_cv_prog_CXX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003705 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003706else
3707 if test -n "$CXX"; then
3708 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3709else
3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711for as_dir in $PATH
3712do
3713 IFS=$as_save_IFS
3714 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003715 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003716 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 +00003717 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003719 break 2
3720 fi
3721done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003722 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003723IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003724
3725fi
3726fi
3727CXX=$ac_cv_prog_CXX
3728if test -n "$CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003730$as_echo "$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003731else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003733$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003734fi
3735
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003736
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003737 test -n "$CXX" && break
3738 done
3739fi
3740if test -z "$CXX"; then
3741 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003742 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 +00003743do
3744 # Extract the first word of "$ac_prog", so it can be a program name with args.
3745set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003747$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003748if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003749 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003750else
3751 if test -n "$ac_ct_CXX"; then
3752 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3753else
3754as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3755for as_dir in $PATH
3756do
3757 IFS=$as_save_IFS
3758 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003759 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003760 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 +00003761 ac_cv_prog_ac_ct_CXX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003763 break 2
3764 fi
3765done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003766 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003767IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003768
3769fi
3770fi
3771ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3772if test -n "$ac_ct_CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003774$as_echo "$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003775else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003777$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003778fi
3779
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003780
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003781 test -n "$ac_ct_CXX" && break
3782done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003783
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003784 if test "x$ac_ct_CXX" = x; then
3785 CXX="g++"
3786 else
3787 case $cross_compiling:$ac_tool_warned in
3788yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003789{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003790$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003791ac_tool_warned=yes ;;
3792esac
3793 CXX=$ac_ct_CXX
3794 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003795fi
3796
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003797 fi
3798fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003799# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003800$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003801set X $ac_compile
3802ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003803for ac_option in --version -v -V -qversion; do
3804 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003805case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3810$as_echo "$ac_try_echo"; } >&5
3811 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003812 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003813 if test -s conftest.err; then
3814 sed '10a\
3815... rest of stderr output deleted ...
3816 10q' conftest.err >conftest.er1
3817 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003818 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003819 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3821 test $ac_status = 0; }
3822done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003823
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003825$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003826if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003827 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003828else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003830/* end confdefs.h. */
3831
3832int
3833main ()
3834{
3835#ifndef __GNUC__
3836 choke me
3837#endif
3838
3839 ;
3840 return 0;
3841}
3842_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003843if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003844 ac_compiler_gnu=yes
3845else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003846 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003847fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003849ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3850
3851fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003853$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3854if test $ac_compiler_gnu = yes; then
3855 GXX=yes
3856else
3857 GXX=
3858fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003859ac_test_CXXFLAGS=${CXXFLAGS+set}
3860ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003862$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003863if test "${ac_cv_prog_cxx_g+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003864 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003865else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003866 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3867 ac_cxx_werror_flag=yes
3868 ac_cv_prog_cxx_g=no
3869 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003871/* end confdefs.h. */
3872
3873int
3874main ()
3875{
3876
3877 ;
3878 return 0;
3879}
3880_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003881if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003882 ac_cv_prog_cxx_g=yes
3883else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003884 CXXFLAGS=""
3885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003886/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003887
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003888int
3889main ()
3890{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003891
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003892 ;
3893 return 0;
3894}
3895_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003896if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003897
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003898else
3899 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003900 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003902/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003903
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003904int
3905main ()
3906{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003907
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003908 ;
3909 return 0;
3910}
3911_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003912if ac_fn_cxx_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003913 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003914fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003916fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003918fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003920 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3921fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003923$as_echo "$ac_cv_prog_cxx_g" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003924if test "$ac_test_CXXFLAGS" = set; then
3925 CXXFLAGS=$ac_save_CXXFLAGS
3926elif test $ac_cv_prog_cxx_g = yes; then
3927 if test "$GXX" = yes; then
3928 CXXFLAGS="-g -O2"
3929 else
3930 CXXFLAGS="-g"
3931 fi
3932else
3933 if test "$GXX" = yes; then
3934 CXXFLAGS="-O2"
3935 else
3936 CXXFLAGS=
3937 fi
3938fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003939ac_ext=c
3940ac_cpp='$CPP $CPPFLAGS'
3941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3943ac_compiler_gnu=$ac_cv_c_compiler_gnu
3944
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003945if test -n "$ac_tool_prefix"; then
3946 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3947set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003949$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003950if test "${ac_cv_prog_CPPBIN+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003951 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003952else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003953 if test -n "$CPPBIN"; then
3954 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003955else
3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003961 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003962 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 +00003963 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003965 break 2
3966 fi
3967done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003968 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003969IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003970
3971fi
3972fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003973CPPBIN=$ac_cv_prog_CPPBIN
3974if test -n "$CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003976$as_echo "$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003977else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003979$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003980fi
3981
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003982
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003983fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003984if test -z "$ac_cv_prog_CPPBIN"; then
3985 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003986 # Extract the first word of "cpp", so it can be a program name with args.
3987set dummy cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003989$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003990if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003991 $as_echo_n "(cached) " >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003992else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003993 if test -n "$ac_ct_CPPBIN"; then
3994 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003995else
3996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3997for as_dir in $PATH
3998do
3999 IFS=$as_save_IFS
4000 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004001 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004002 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 +00004003 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004005 break 2
4006 fi
4007done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004008 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004009IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004010
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004011fi
4012fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004013ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4014if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004016$as_echo "$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004017else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004019$as_echo "no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004020fi
4021
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004022 if test "x$ac_ct_CPPBIN" = x; then
4023 CPPBIN="cpp"
4024 else
4025 case $cross_compiling:$ac_tool_warned in
4026yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004027{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004028$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004029ac_tool_warned=yes ;;
4030esac
4031 CPPBIN=$ac_ct_CPPBIN
4032 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004033else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004034 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004035fi
4036
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004037
Alexandre Julliard1aea4ef2009-08-27 13:35:46 +02004038cat >>confdefs.h <<_ACEOF
4039#define EXEEXT "$ac_exeext"
4040_ACEOF
4041
4042
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004043case $host in
Ken Thomases42664332009-05-01 22:59:52 -05004044 *-darwin*)
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004045 if test "x$enable_win64" = "xyes"
Ken Thomases42664332009-05-01 22:59:52 -05004046 then
4047 CC="$CC -m64"
4048 CXX="$CXX -m64"
4049 LD="${LD:-ld} -arch x86_64"
4050 AS="${AS:-as} -arch x86_64"
4051 host_cpu="x86_64"
4052 notice_platform="64-bit "
4053 TARGETFLAGS="-m64"
4054
4055 else
4056 CC="$CC -m32"
4057 CXX="$CXX -m32"
4058 LD="${LD:-ld} -arch i386"
4059 AS="${AS:-as} -arch i386"
4060 host_cpu="i386"
4061 notice_platform="32-bit "
4062 TARGETFLAGS="-m32"
4063
4064 enable_win16=${enable_win16:-yes}
4065 fi
4066 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004067 x86_64*)
Alexandre Julliard6b4ed0f2009-01-12 19:29:43 +01004068 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004069 then
4070 CC="$CC -m32"
4071 CXX="$CXX -m32"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004073$as_echo_n "checking whether $CC works... " >&6; }
4074
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004076/* end confdefs.h. */
4077
4078int
4079main ()
4080{
4081
4082 ;
4083 return 0;
4084}
4085_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004086if ac_fn_c_try_link "$LINENO"; then :
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004088$as_echo "yes" >&6; }
4089else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004091$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004092 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 +01004093fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004094rm -f core conftest.err conftest.$ac_objext \
4095 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004096 LD="${LD:-ld} -m elf_i386"
4097 AS="${AS:-as} --32"
4098 host_cpu="i386"
4099 notice_platform="32-bit "
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004100 TARGETFLAGS="-m32"
4101
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004102 enable_win16=${enable_win16:-yes}
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004103 else
Alexandre Julliard8812d242009-06-14 11:19:54 +02004104 if test "x${GCC}" = "xyes"
4105 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004107$as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard8812d242009-06-14 11:19:54 +02004109/* end confdefs.h. */
4110#include <stdarg.h>
4111int
4112main ()
4113{
4114void func(__builtin_ms_va_list *args);
4115 ;
4116 return 0;
4117}
4118_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004119if ac_fn_c_try_compile "$LINENO"; then :
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004121$as_echo "yes" >&6; }
4122else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004124$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004125 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004126fi
Alexandre Julliard8812d242009-06-14 11:19:54 +02004127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4128 fi
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004129 TARGETFLAGS="-m64"
4130
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004131 fi
4132 ;;
Alexandre Julliard391fce62009-04-02 12:59:52 +02004133 *-mingw32*|*-cygwin*)
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004134 enable_win16=${enable_win16:-no}
Alexandre Goujonac0a38c2010-03-01 21:39:40 +01004135 CFLAGS="$CFLAGS -D_WIN32"
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004136 ;;
4137 i[3456789]86*)
4138 enable_win16=${enable_win16:-yes}
4139 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004140esac
4141
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004142enable_win16=${enable_win16:-no}
Alexandre Julliard776820e2009-02-23 17:46:33 +01004143
Alexandre Julliard95081552010-02-09 19:08:17 +01004144enable_winetest=${enable_winetest:-$enable_tests}
4145
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004146if test -n "$with_wine64"
4147then
4148 if test "x$enable_win64" = "xyes"
4149 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004150 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004151--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4152 fi
Alexandre Julliard90647772009-08-13 19:48:42 +02004153 WOW64_DISABLE=\#
4154
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004155 enable_fonts=${enable_fonts:-no}
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004156 enable_server=${enable_server:-no}
4157 enable_tools=${enable_tools:-no}
Alexandre Julliardb3265322010-04-21 12:28:22 +02004158elif test "x$enable_win64" = "xyes"
4159then
4160 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004161fi
4162
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004164$as_echo_n "checking for the directory containing the Wine tools... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004165if test "${wine_cv_toolsdir+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004166 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004167else
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004168 wine_cv_toolsdir="$with_wine_tools"
4169 if test -z "$with_wine_tools"; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004170 if test "$cross_compiling" = "yes"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004171 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004172 elif test -n "$with_wine64"; then
4173 wine_cv_toolsdir="$with_wine64"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004174 fi
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004175 fi
4176 if test -z "$wine_cv_toolsdir"; then
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004177 wine_cv_toolsdir="\$(top_builddir)"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004178 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4179 case "$wine_cv_toolsdir" in
4180 /*) ;;
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004181 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004182 esac
4183 else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004184 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004185 fi
4186fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004188$as_echo "$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004189TOOLSDIR=$wine_cv_toolsdir
4190
Alexandre Julliard4d135d92009-02-16 13:08:44 +01004191if test -n "$host_alias" -a "$host_alias" != "$build_alias"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004192then
Alexandre Julliard0fea4a52009-02-12 10:28:23 +01004193 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004194
4195fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004196
Alexandre Julliard40916272007-03-08 13:19:50 +01004197for ac_prog in flex
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004198do
4199 # Extract the first word of "$ac_prog", so it can be a program name with args.
4200set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004202$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004203if test "${ac_cv_prog_FLEX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004204 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004205else
Alexandre Julliard40916272007-03-08 13:19:50 +01004206 if test -n "$FLEX"; then
4207 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004208else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210for as_dir in $PATH
4211do
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004214 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004215 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 +01004216 ac_cv_prog_FLEX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004218 break 2
4219 fi
4220done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004221 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004222IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004223
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004224fi
4225fi
Alexandre Julliard40916272007-03-08 13:19:50 +01004226FLEX=$ac_cv_prog_FLEX
4227if test -n "$FLEX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004229$as_echo "$FLEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004230else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004232$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004233fi
4234
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004235
Alexandre Julliard40916272007-03-08 13:19:50 +01004236 test -n "$FLEX" && break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004237done
Alexandre Julliard40916272007-03-08 13:19:50 +01004238test -n "$FLEX" || FLEX="none"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004239
Alexandre Julliard40916272007-03-08 13:19:50 +01004240if test "$FLEX" = "none"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004241then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004242 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004243fi
Michael Stefaniucce307332009-12-29 18:07:02 +01004244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4245$as_echo_n "checking whether flex is recent enough... " >&6; }
4246cat >conftest.l <<EOF
4247%top{
4248#include "prediluvian.h"
4249}
4250%%
4251EOF
Alexandre Julliard27816c72010-07-28 11:04:46 +02004252if $FLEX -t conftest.l >/dev/null 2>&5
Michael Stefaniucce307332009-12-29 18:07:02 +01004253then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4255$as_echo "yes" >&6; }
4256else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004259 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 +01004260fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004261
Mike McCormackc068f672004-03-16 03:11:39 +00004262for ac_prog in bison
4263do
4264 # Extract the first word of "$ac_prog", so it can be a program name with args.
4265set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004267$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004268if test "${ac_cv_prog_BISON+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004269 $as_echo_n "(cached) " >&6
Mike McCormackc068f672004-03-16 03:11:39 +00004270else
4271 if test -n "$BISON"; then
4272 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4273else
4274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4275for as_dir in $PATH
4276do
4277 IFS=$as_save_IFS
4278 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004279 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004280 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 +00004281 ac_cv_prog_BISON="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackc068f672004-03-16 03:11:39 +00004283 break 2
4284 fi
4285done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004286 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004287IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00004288
4289fi
4290fi
4291BISON=$ac_cv_prog_BISON
4292if test -n "$BISON"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004294$as_echo "$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004295else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004297$as_echo "no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004298fi
4299
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004300
Mike McCormackc068f672004-03-16 03:11:39 +00004301 test -n "$BISON" && break
4302done
4303test -n "$BISON" || BISON="none"
4304
4305if test "$BISON" = "none"
4306then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004307 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
Mike McCormackc068f672004-03-16 03:11:39 +00004308fi
4309
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004310if test -n "$ac_tool_prefix"; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004311 for ac_prog in ar gar
4312 do
4313 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4314set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004316$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004317if test "${ac_cv_prog_AR+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004318 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004319else
4320 if test -n "$AR"; then
4321 ac_cv_prog_AR="$AR" # Let the user override the test.
4322else
4323as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4324for as_dir in $PATH
4325do
4326 IFS=$as_save_IFS
4327 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004328 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004329 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 +02004330 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004332 break 2
4333 fi
4334done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004335 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004336IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004337
4338fi
4339fi
4340AR=$ac_cv_prog_AR
4341if test -n "$AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004343$as_echo "$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004344else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004346$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004347fi
4348
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004349
Francois Gouget86bd0462008-06-26 14:05:57 +02004350 test -n "$AR" && break
4351 done
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004352fi
Francois Gouget86bd0462008-06-26 14:05:57 +02004353if test -z "$AR"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004354 ac_ct_AR=$AR
Francois Gouget86bd0462008-06-26 14:05:57 +02004355 for ac_prog in ar gar
4356do
4357 # Extract the first word of "$ac_prog", so it can be a program name with args.
4358set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004360$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004361if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004362 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004363else
4364 if test -n "$ac_ct_AR"; then
4365 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4366else
4367as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368for as_dir in $PATH
4369do
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004372 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004373 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 +02004374 ac_cv_prog_ac_ct_AR="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004376 break 2
4377 fi
4378done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004379 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004380IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004381
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004382fi
4383fi
4384ac_ct_AR=$ac_cv_prog_ac_ct_AR
4385if test -n "$ac_ct_AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004387$as_echo "$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004388else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004390$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004391fi
4392
Francois Gouget86bd0462008-06-26 14:05:57 +02004393
4394 test -n "$ac_ct_AR" && break
4395done
4396
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004397 if test "x$ac_ct_AR" = x; then
4398 AR="ar"
4399 else
4400 case $cross_compiling:$ac_tool_warned in
4401yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004402{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004403$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004404ac_tool_warned=yes ;;
4405esac
4406 AR=$ac_ct_AR
4407 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004408fi
4409
Rob Shearman0c694d72008-03-04 15:53:41 +00004410ARFLAGS=rc
4411
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004412if test -n "$ac_tool_prefix"; then
4413 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4414set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004416$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004417if test "${ac_cv_prog_RANLIB+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004418 $as_echo_n "(cached) " >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004419else
4420 if test -n "$RANLIB"; then
4421 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4422else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004423as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424for as_dir in $PATH
4425do
4426 IFS=$as_save_IFS
4427 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004428 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004429 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 +00004430 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004432 break 2
4433 fi
4434done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004435 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004436IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004437
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004438fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004439fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004440RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004441if test -n "$RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004443$as_echo "$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004444else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004446$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004447fi
4448
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004449
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004450fi
4451if test -z "$ac_cv_prog_RANLIB"; then
4452 ac_ct_RANLIB=$RANLIB
4453 # Extract the first word of "ranlib", so it can be a program name with args.
4454set dummy ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004456$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004457if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004458 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004459else
4460 if test -n "$ac_ct_RANLIB"; then
4461 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4462else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004463as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4464for as_dir in $PATH
4465do
4466 IFS=$as_save_IFS
4467 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004468 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004469 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 +00004470 ac_cv_prog_ac_ct_RANLIB="ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004472 break 2
4473 fi
4474done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004475 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004476IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004477
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004478fi
4479fi
4480ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4481if test -n "$ac_ct_RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004483$as_echo "$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004484else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004486$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004487fi
4488
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004489 if test "x$ac_ct_RANLIB" = x; then
4490 RANLIB=":"
4491 else
4492 case $cross_compiling:$ac_tool_warned in
4493yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004494{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004495$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004496ac_tool_warned=yes ;;
4497esac
4498 RANLIB=$ac_ct_RANLIB
4499 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004500else
4501 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004502fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004503
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004504if test -n "$ac_tool_prefix"; then
4505 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4506set dummy ${ac_tool_prefix}strip; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004508$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004509if test "${ac_cv_prog_STRIP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004510 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004511else
4512 if test -n "$STRIP"; then
4513 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4514else
4515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
4517do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004520 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004522 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004524 break 2
4525 fi
4526done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004527 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004528IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004529
4530fi
4531fi
4532STRIP=$ac_cv_prog_STRIP
4533if test -n "$STRIP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004535$as_echo "$STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004536else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004538$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004539fi
4540
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004541
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004542fi
4543if test -z "$ac_cv_prog_STRIP"; then
4544 ac_ct_STRIP=$STRIP
4545 # Extract the first word of "strip", so it can be a program name with args.
4546set dummy strip; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004548$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004549if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004550 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004551else
4552 if test -n "$ac_ct_STRIP"; then
4553 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4554else
4555as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4556for as_dir in $PATH
4557do
4558 IFS=$as_save_IFS
4559 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004560 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004562 ac_cv_prog_ac_ct_STRIP="strip"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004564 break 2
4565 fi
4566done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004567 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004568IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004569
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004570fi
4571fi
4572ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4573if test -n "$ac_ct_STRIP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004575$as_echo "$ac_ct_STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004576else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004578$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004579fi
4580
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004581 if test "x$ac_ct_STRIP" = x; then
4582 STRIP="strip"
4583 else
4584 case $cross_compiling:$ac_tool_warned in
4585yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004586{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004587$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004588ac_tool_warned=yes ;;
4589esac
4590 STRIP=$ac_ct_STRIP
4591 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004592else
4593 STRIP="$ac_cv_prog_STRIP"
4594fi
4595
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004597$as_echo_n "checking whether ln -s works... " >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004598LN_S=$as_ln_s
4599if test "$LN_S" = "ln -s"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004601$as_echo "yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004602else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004604$as_echo "no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004605fi
4606
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004608$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004609if test "${ac_cv_path_GREP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004610 $as_echo_n "(cached) " >&6
Alexandre Julliardc6264912004-08-16 20:09:37 +00004611else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004612 if test -z "$GREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004613 ac_path_GREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004614 # Loop through the user's path and test for each of PROGNAME-LIST
4615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004616for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4617do
4618 IFS=$as_save_IFS
4619 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004620 for ac_prog in grep ggrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004621 for ac_exec_ext in '' $ac_executable_extensions; do
4622 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4623 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4624# Check for GNU ac_path_GREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004625 # Check for GNU $ac_path_GREP
4626case `"$ac_path_GREP" --version 2>&1` in
4627*GNU*)
4628 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4629*)
4630 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004631 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004632 while :
4633 do
4634 cat "conftest.in" "conftest.in" >"conftest.tmp"
4635 mv "conftest.tmp" "conftest.in"
4636 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004637 $as_echo 'GREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004638 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4639 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004640 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004641 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4642 # Best one so far, save it but keep looking for a better one
4643 ac_cv_path_GREP="$ac_path_GREP"
4644 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00004645 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004646 # 10*(2^10) chars as input seems more than enough
4647 test $ac_count -gt 10 && break
4648 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004649 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004650esac
4651
Alexandre Julliardabf50482008-10-31 12:56:53 +01004652 $ac_path_GREP_found && break 3
4653 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004654 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004655 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004656IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004657 if test -z "$ac_cv_path_GREP"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004658 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 +01004659 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004660else
4661 ac_cv_path_GREP=$GREP
4662fi
4663
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004664fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004666$as_echo "$ac_cv_path_GREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004667 GREP="$ac_cv_path_GREP"
4668
4669
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004671$as_echo_n "checking for egrep... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004672if test "${ac_cv_path_EGREP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004673 $as_echo_n "(cached) " >&6
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004674else
4675 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4676 then ac_cv_path_EGREP="$GREP -E"
4677 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004678 if test -z "$EGREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004679 ac_path_EGREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004680 # Loop through the user's path and test for each of PROGNAME-LIST
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004682for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4683do
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004686 for ac_prog in egrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4689 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4690# Check for GNU ac_path_EGREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004691 # Check for GNU $ac_path_EGREP
4692case `"$ac_path_EGREP" --version 2>&1` in
4693*GNU*)
4694 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4695*)
4696 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004697 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004698 while :
4699 do
4700 cat "conftest.in" "conftest.in" >"conftest.tmp"
4701 mv "conftest.tmp" "conftest.in"
4702 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004703 $as_echo 'EGREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004704 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4705 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004706 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004707 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4708 # Best one so far, save it but keep looking for a better one
4709 ac_cv_path_EGREP="$ac_path_EGREP"
4710 ac_path_EGREP_max=$ac_count
4711 fi
4712 # 10*(2^10) chars as input seems more than enough
4713 test $ac_count -gt 10 && break
4714 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004715 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004716esac
4717
Alexandre Julliardabf50482008-10-31 12:56:53 +01004718 $ac_path_EGREP_found && break 3
4719 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004720 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004721 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004722IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004723 if test -z "$ac_cv_path_EGREP"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004724 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 +01004725 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004726else
4727 ac_cv_path_EGREP=$EGREP
4728fi
4729
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004730 fi
4731fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004733$as_echo "$ac_cv_path_EGREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004734 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00004735
4736
James Juranffe6b761999-06-12 08:21:57 +00004737# Extract the first word of "ldconfig", so it can be a program name with args.
4738set dummy ldconfig; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004740$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004741if test "${ac_cv_path_LDCONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004742 $as_echo_n "(cached) " >&6
James Juranffe6b761999-06-12 08:21:57 +00004743else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004744 case $LDCONFIG in
4745 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004746 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4747 ;;
4748 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004750for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004751do
4752 IFS=$as_save_IFS
4753 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004754 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004755 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 +00004756 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004758 break 2
4759 fi
4760done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004761 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004762IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004763
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004764 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004765 ;;
4766esac
4767fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004768LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00004769if test -n "$LDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004771$as_echo "$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004772else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004774$as_echo "no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004775fi
4776
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004777
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004778# Find a good install program. We prefer a C program (faster),
4779# so one script is as good as another. But avoid the broken or
4780# incompatible versions:
4781# SysV /etc/install, /usr/sbin/install
4782# SunOS /usr/etc/install
4783# IRIX /sbin/install
4784# AIX /bin/install
4785# AmigaOS /C/install, which installs bootblocks on floppy discs
4786# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4787# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4788# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00004789# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004790# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardabf50482008-10-31 12:56:53 +01004791# Reject install programs that cannot install multiple files.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004793$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004794if test -z "$INSTALL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004795if test "${ac_cv_path_install+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004796 $as_echo_n "(cached) " >&6
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004797else
4798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4799for as_dir in $PATH
4800do
4801 IFS=$as_save_IFS
4802 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004803 # Account for people who put trailing slashes in PATH elements.
4804case $as_dir/ in #((
4805 ./ | .// | /[cC]/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004806 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004807 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004808 /usr/ucb/* ) ;;
4809 *)
4810 # OSF1 and SCO ODT 3.0 have their own names for install.
4811 # Don't use installbsd from OSF since it installs stuff as root
4812 # by default.
4813 for ac_prog in ginstall scoinst install; do
4814 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004815 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 +00004816 if test $ac_prog = install &&
4817 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4818 # AIX install. It has an incompatible calling convention.
4819 :
4820 elif test $ac_prog = install &&
4821 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4822 # program-specific install script used by HP pwplus--don't use.
4823 :
4824 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004825 rm -rf conftest.one conftest.two conftest.dir
4826 echo one > conftest.one
4827 echo two > conftest.two
4828 mkdir conftest.dir
4829 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4830 test -s conftest.one && test -s conftest.two &&
4831 test -s conftest.dir/conftest.one &&
4832 test -s conftest.dir/conftest.two
4833 then
4834 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4835 break 3
4836 fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004837 fi
4838 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004839 done
4840 done
4841 ;;
4842esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01004843
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004844 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004845IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004846
Alexandre Julliardabf50482008-10-31 12:56:53 +01004847rm -rf conftest.one conftest.two conftest.dir
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004848
4849fi
4850 if test "${ac_cv_path_install+set}" = set; then
4851 INSTALL=$ac_cv_path_install
4852 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004853 # As a last resort, use the slow shell script. Don't cache a
4854 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004855 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004856 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004857 INSTALL=$ac_install_sh
4858 fi
4859fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004861$as_echo "$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004862
4863# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4864# It thinks the first close brace ends the variable substitution.
4865test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4866
4867test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4868
4869test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4870
4871case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00004872 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004873 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004874esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004875
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004876for ac_prog in lclint lint
4877do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004878 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004879set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004881$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004882if test "${ac_cv_prog_LINT+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004883 $as_echo_n "(cached) " >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004884else
4885 if test -n "$LINT"; then
4886 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4887else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889for as_dir in $PATH
4890do
4891 IFS=$as_save_IFS
4892 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004893 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004894 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 +00004895 ac_cv_prog_LINT="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004897 break 2
4898 fi
4899done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004900 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004901IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004902
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004903fi
4904fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004905LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004906if test -n "$LINT"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004908$as_echo "$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004909else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004911$as_echo "no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004912fi
4913
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004914
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004915 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004916done
4917
4918if test "$LINT" = "lint"
4919then
4920 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4921 fi
4922
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004923
4924
Huw Davies00acb5f2004-08-17 22:33:14 +00004925for ac_prog in fontforge
4926do
4927 # Extract the first word of "$ac_prog", so it can be a program name with args.
4928set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004930$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004931if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004932 $as_echo_n "(cached) " >&6
Huw Davies00acb5f2004-08-17 22:33:14 +00004933else
4934 if test -n "$FONTFORGE"; then
4935 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4936else
4937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4938for as_dir in $PATH
4939do
4940 IFS=$as_save_IFS
4941 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004942 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004943 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 +00004944 ac_cv_prog_FONTFORGE="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Huw Davies00acb5f2004-08-17 22:33:14 +00004946 break 2
4947 fi
4948done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004949 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004950IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00004951
4952fi
4953fi
4954FONTFORGE=$ac_cv_prog_FONTFORGE
4955if test -n "$FONTFORGE"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004957$as_echo "$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004958else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004960$as_echo "no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004961fi
4962
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004963
Huw Davies00acb5f2004-08-17 22:33:14 +00004964 test -n "$FONTFORGE" && break
4965done
4966test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00004967
Mike McCormack90c75bd2005-08-08 18:36:53 +00004968for ac_prog in pkg-config
4969do
4970 # Extract the first word of "$ac_prog", so it can be a program name with args.
4971set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004973$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004974if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004975 $as_echo_n "(cached) " >&6
Mike McCormack90c75bd2005-08-08 18:36:53 +00004976else
4977 if test -n "$PKG_CONFIG"; then
4978 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4979else
4980as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4981for as_dir in $PATH
4982do
4983 IFS=$as_save_IFS
4984 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004985 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004986 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 +00004987 ac_cv_prog_PKG_CONFIG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004988 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormack90c75bd2005-08-08 18:36:53 +00004989 break 2
4990 fi
4991done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004992 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004993IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00004994
4995fi
4996fi
4997PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4998if test -n "$PKG_CONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005000$as_echo "$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00005001else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005003$as_echo "no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00005004fi
5005
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005006
Mike McCormack90c75bd2005-08-08 18:36:53 +00005007 test -n "$PKG_CONFIG" && break
5008done
5009test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5010
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005011for ac_prog in rsvg
5012do
5013 # Extract the first word of "$ac_prog", so it can be a program name with args.
5014set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005016$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005017if test "${ac_cv_prog_RSVG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005018 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005019else
5020 if test -n "$RSVG"; then
5021 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5022else
5023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024for as_dir in $PATH
5025do
5026 IFS=$as_save_IFS
5027 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005028 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5030 ac_cv_prog_RSVG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005032 break 2
5033 fi
5034done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005035 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005036IFS=$as_save_IFS
5037
5038fi
5039fi
5040RSVG=$ac_cv_prog_RSVG
5041if test -n "$RSVG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005043$as_echo "$RSVG" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005044else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005046$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005047fi
5048
5049
5050 test -n "$RSVG" && break
5051done
5052test -n "$RSVG" || RSVG="false"
5053
Joel Holdsworth476a2be2010-04-05 11:15:03 +01005054for ac_prog in convert
5055do
5056 # Extract the first word of "$ac_prog", so it can be a program name with args.
5057set dummy $ac_prog; ac_word=$2
5058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5059$as_echo_n "checking for $ac_word... " >&6; }
5060if test "${ac_cv_prog_CONVERT+set}" = set; then :
5061 $as_echo_n "(cached) " >&6
5062else
5063 if test -n "$CONVERT"; then
5064 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5065else
5066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067for as_dir in $PATH
5068do
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073 ac_cv_prog_CONVERT="$ac_prog"
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5076 fi
5077done
5078 done
5079IFS=$as_save_IFS
5080
5081fi
5082fi
5083CONVERT=$ac_cv_prog_CONVERT
5084if test -n "$CONVERT"; then
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5086$as_echo "$CONVERT" >&6; }
5087else
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5089$as_echo "no" >&6; }
5090fi
5091
5092
5093 test -n "$CONVERT" && break
5094done
5095test -n "$CONVERT" || CONVERT="false"
5096
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005097for ac_prog in icotool
5098do
5099 # Extract the first word of "$ac_prog", so it can be a program name with args.
5100set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005102$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005103if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005104 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005105else
5106 if test -n "$ICOTOOL"; then
5107 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5108else
5109as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5110for as_dir in $PATH
5111do
5112 IFS=$as_save_IFS
5113 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005114 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5116 ac_cv_prog_ICOTOOL="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005118 break 2
5119 fi
5120done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005121 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005122IFS=$as_save_IFS
5123
5124fi
5125fi
5126ICOTOOL=$ac_cv_prog_ICOTOOL
5127if test -n "$ICOTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005129$as_echo "$ICOTOOL" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005130else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005132$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005133fi
5134
5135
5136 test -n "$ICOTOOL" && break
5137done
5138test -n "$ICOTOOL" || ICOTOOL="false"
5139
5140
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005141if test "x$enable_maintainer_mode" != "xyes"
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005142then
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005143 MAINTAINER_MODE=\#
5144
5145else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005146 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi
5147 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 +01005148
5149 if test "$CONVERT" = false
5150 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005151 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005152 else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5154$as_echo_n "checking for recent enough imagemagick... " >&6; }
5155 convert_version=`convert --version | head -n1`
5156 if test "x$convert_version" != "x"
5157 then
5158 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5159 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5160 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5161 then
5162 CONVERT=false
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005163 fi
5164 fi
5165 if test "$CONVERT" = false
5166 then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5168$as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005169 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 +01005170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5172$as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5173 fi
5174 fi
Joel Holdsworth425f1382010-04-05 11:14:47 +01005175
5176 if test "$ICOTOOL" = false
5177 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005178 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworth425f1382010-04-05 11:14:47 +01005179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5181$as_echo_n "checking for recent enough icotool... " >&6; }
5182 icotool_version=`icotool --version | head -n1`
5183 if test "x$icotool_version" != "x"
5184 then
Joel Holdsworth9571f782010-05-16 23:07:33 +01005185 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5186 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
Joel Holdsworth425f1382010-04-05 11:14:47 +01005187 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5188 then
5189 ICOTOOL=false
5190 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5191 fi
5192 fi
5193 if test "$ICOTOOL" = false
5194 then
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5196$as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005197 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 +01005198 else
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5200$as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5201 fi
5202 fi
5203
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005204fi
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005205
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005206
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005208$as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005209if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005210 $as_echo_n "(cached) " >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005211else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005212 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005213LIBS="-li386 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005215/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005216
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005217/* Override any GCC internal prototype to avoid an error.
5218 Use char because int might match the return type of a GCC
5219 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005220#ifdef __cplusplus
5221extern "C"
5222#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005223char i386_set_ldt ();
5224int
5225main ()
5226{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005227return i386_set_ldt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005228 ;
5229 return 0;
5230}
5231_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005232if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005233 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005234else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005235 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005236fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005237rm -f core conftest.err conftest.$ac_objext \
5238 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005239LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005240fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005242$as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005243if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005244 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005245#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005246_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005247
5248 LIBS="-li386 $LIBS"
5249
Alexandre Julliard02e90081998-01-04 17:49:09 +00005250fi
5251
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005253$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005254if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005255 $as_echo_n "(cached) " >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005256else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005257 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005258LIBS="-lossaudio $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005260/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005261
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005262/* Override any GCC internal prototype to avoid an error.
5263 Use char because int might match the return type of a GCC
5264 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005265#ifdef __cplusplus
5266extern "C"
5267#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005268char _oss_ioctl ();
5269int
5270main ()
5271{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005272return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005273 ;
5274 return 0;
5275}
5276_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005277if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005278 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005279else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005280 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005281fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005282rm -f core conftest.err conftest.$ac_objext \
5283 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005284LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005285fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005287$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005288if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005289 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005290#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005291_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005292
5293 LIBS="-lossaudio $LIBS"
5294
Todd Vierlingecc76691998-12-15 17:49:02 +00005295fi
5296
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005297
Alexandre Julliard82776022005-08-08 11:17:25 +00005298XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005299
Huw Daviese82dfab2004-08-04 19:10:26 +00005300OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005301
Rein Klazes7ff12562004-11-09 20:16:35 +00005302
Alexandre Julliard82776022005-08-08 11:17:25 +00005303
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005304# Check whether --enable-largefile was given.
5305if test "${enable_largefile+set}" = set; then :
5306 enableval=$enable_largefile;
5307fi
5308
5309if test "$enable_largefile" != no; then
5310
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5312$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5313if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5314 $as_echo_n "(cached) " >&6
5315else
5316 ac_cv_sys_largefile_CC=no
5317 if test "$GCC" != yes; then
5318 ac_save_CC=$CC
5319 while :; do
5320 # IRIX 6.2 and later do not support large files by default,
5321 # so use the C compiler's -n32 option if that helps.
5322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5323/* end confdefs.h. */
5324#include <sys/types.h>
5325 /* Check that off_t can represent 2**63 - 1 correctly.
5326 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5327 since some C++ compilers masquerading as C compilers
5328 incorrectly reject 9223372036854775807. */
5329#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5330 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5331 && LARGE_OFF_T % 2147483647 == 1)
5332 ? 1 : -1];
5333int
5334main ()
5335{
5336
5337 ;
5338 return 0;
5339}
5340_ACEOF
5341 if ac_fn_c_try_compile "$LINENO"; then :
5342 break
5343fi
5344rm -f core conftest.err conftest.$ac_objext
5345 CC="$CC -n32"
5346 if ac_fn_c_try_compile "$LINENO"; then :
5347 ac_cv_sys_largefile_CC=' -n32'; break
5348fi
5349rm -f core conftest.err conftest.$ac_objext
5350 break
5351 done
5352 CC=$ac_save_CC
5353 rm -f conftest.$ac_ext
5354 fi
5355fi
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5357$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5358 if test "$ac_cv_sys_largefile_CC" != no; then
5359 CC=$CC$ac_cv_sys_largefile_CC
5360 fi
5361
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5363$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5364if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5365 $as_echo_n "(cached) " >&6
5366else
5367 while :; do
5368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h. */
5370#include <sys/types.h>
5371 /* Check that off_t can represent 2**63 - 1 correctly.
5372 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5373 since some C++ compilers masquerading as C compilers
5374 incorrectly reject 9223372036854775807. */
5375#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5376 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5377 && LARGE_OFF_T % 2147483647 == 1)
5378 ? 1 : -1];
5379int
5380main ()
5381{
5382
5383 ;
5384 return 0;
5385}
5386_ACEOF
5387if ac_fn_c_try_compile "$LINENO"; then :
5388 ac_cv_sys_file_offset_bits=no; break
5389fi
5390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5392/* end confdefs.h. */
5393#define _FILE_OFFSET_BITS 64
5394#include <sys/types.h>
5395 /* Check that off_t can represent 2**63 - 1 correctly.
5396 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5397 since some C++ compilers masquerading as C compilers
5398 incorrectly reject 9223372036854775807. */
5399#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5400 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5401 && LARGE_OFF_T % 2147483647 == 1)
5402 ? 1 : -1];
5403int
5404main ()
5405{
5406
5407 ;
5408 return 0;
5409}
5410_ACEOF
5411if ac_fn_c_try_compile "$LINENO"; then :
5412 ac_cv_sys_file_offset_bits=64; break
5413fi
5414rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5415 ac_cv_sys_file_offset_bits=unknown
5416 break
5417done
5418fi
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5420$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5421case $ac_cv_sys_file_offset_bits in #(
5422 no | unknown) ;;
5423 *)
5424cat >>confdefs.h <<_ACEOF
5425#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5426_ACEOF
5427;;
5428esac
5429rm -rf conftest*
5430 if test $ac_cv_sys_file_offset_bits = unknown; then
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5432$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5433if test "${ac_cv_sys_large_files+set}" = set; then :
5434 $as_echo_n "(cached) " >&6
5435else
5436 while :; do
5437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5438/* end confdefs.h. */
5439#include <sys/types.h>
5440 /* Check that off_t can represent 2**63 - 1 correctly.
5441 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5442 since some C++ compilers masquerading as C compilers
5443 incorrectly reject 9223372036854775807. */
5444#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5445 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5446 && LARGE_OFF_T % 2147483647 == 1)
5447 ? 1 : -1];
5448int
5449main ()
5450{
5451
5452 ;
5453 return 0;
5454}
5455_ACEOF
5456if ac_fn_c_try_compile "$LINENO"; then :
5457 ac_cv_sys_large_files=no; break
5458fi
5459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461/* end confdefs.h. */
5462#define _LARGE_FILES 1
5463#include <sys/types.h>
5464 /* Check that off_t can represent 2**63 - 1 correctly.
5465 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5466 since some C++ compilers masquerading as C compilers
5467 incorrectly reject 9223372036854775807. */
5468#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5469 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5470 && LARGE_OFF_T % 2147483647 == 1)
5471 ? 1 : -1];
5472int
5473main ()
5474{
5475
5476 ;
5477 return 0;
5478}
5479_ACEOF
5480if ac_fn_c_try_compile "$LINENO"; then :
5481 ac_cv_sys_large_files=1; break
5482fi
5483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5484 ac_cv_sys_large_files=unknown
5485 break
5486done
5487fi
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5489$as_echo "$ac_cv_sys_large_files" >&6; }
5490case $ac_cv_sys_large_files in #(
5491 no | unknown) ;;
5492 *)
5493cat >>confdefs.h <<_ACEOF
5494#define _LARGE_FILES $ac_cv_sys_large_files
5495_ACEOF
5496;;
5497esac
5498rm -rf conftest*
5499 fi
5500fi
5501
5502
Alexandre Julliard40664c02009-02-11 20:40:58 +01005503ac_ext=c
5504ac_cpp='$CPP $CPPFLAGS'
5505ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005509$as_echo_n "checking how to run the C preprocessor... " >&6; }
5510# On Suns, sometimes $CPP names a directory.
5511if test -n "$CPP" && test -d "$CPP"; then
5512 CPP=
5513fi
5514if test -z "$CPP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005515 if test "${ac_cv_prog_CPP+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005516 $as_echo_n "(cached) " >&6
5517else
5518 # Double quotes because CPP needs to be expanded
5519 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5520 do
5521 ac_preproc_ok=false
5522for ac_c_preproc_warn_flag in '' yes
5523do
5524 # Use a header file that comes with gcc, so configuring glibc
5525 # with a fresh cross-compiler works.
5526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527 # <limits.h> exists even on freestanding compilers.
5528 # On the NeXT, cc -E runs the code through the compiler's parser,
5529 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005531/* end confdefs.h. */
5532#ifdef __STDC__
5533# include <limits.h>
5534#else
5535# include <assert.h>
5536#endif
5537 Syntax error
5538_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005539if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005540
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005541else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005542 # Broken: fails on valid input.
5543continue
5544fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005545rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005546
5547 # OK, works on sane cases. Now check whether nonexistent headers
5548 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005550/* end confdefs.h. */
5551#include <ac_nonexistent.h>
5552_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005553if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005554 # Broken: success on invalid input.
5555continue
5556else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005557 # Passes both tests.
5558ac_preproc_ok=:
5559break
5560fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005561rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005562
5563done
5564# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005565rm -f conftest.i conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005566if $ac_preproc_ok; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005567 break
5568fi
5569
5570 done
5571 ac_cv_prog_CPP=$CPP
5572
5573fi
5574 CPP=$ac_cv_prog_CPP
5575else
5576 ac_cv_prog_CPP=$CPP
5577fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005579$as_echo "$CPP" >&6; }
5580ac_preproc_ok=false
5581for ac_c_preproc_warn_flag in '' yes
5582do
5583 # Use a header file that comes with gcc, so configuring glibc
5584 # with a fresh cross-compiler works.
5585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5586 # <limits.h> exists even on freestanding compilers.
5587 # On the NeXT, cc -E runs the code through the compiler's parser,
5588 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005590/* end confdefs.h. */
5591#ifdef __STDC__
5592# include <limits.h>
5593#else
5594# include <assert.h>
5595#endif
5596 Syntax error
5597_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005598if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005599
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005600else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005601 # Broken: fails on valid input.
5602continue
5603fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005604rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005605
5606 # OK, works on sane cases. Now check whether nonexistent headers
5607 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005609/* end confdefs.h. */
5610#include <ac_nonexistent.h>
5611_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005612if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005613 # Broken: success on invalid input.
5614continue
5615else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005616 # Passes both tests.
5617ac_preproc_ok=:
5618break
5619fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005620rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005621
5622done
5623# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005624rm -f conftest.i conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005625if $ac_preproc_ok; then :
5626
Alexandre Julliard40664c02009-02-11 20:40:58 +01005627else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005628 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005630as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5631See \`config.log' for more details" "$LINENO" 5 ; }
Alexandre Julliard40664c02009-02-11 20:40:58 +01005632fi
5633
5634ac_ext=c
5635ac_cpp='$CPP $CPPFLAGS'
5636ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639
5640
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005642$as_echo_n "checking for ANSI C header files... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005643if test "${ac_cv_header_stdc+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005644 $as_echo_n "(cached) " >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005645else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005647/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005648#include <stdlib.h>
5649#include <stdarg.h>
5650#include <string.h>
5651#include <float.h>
5652
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005653int
5654main ()
5655{
5656
5657 ;
5658 return 0;
5659}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005660_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005661if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005662 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005663else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005664 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005665fi
Jeremy White0ebeb532006-06-20 13:18:41 +02005666rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005667
5668if test $ac_cv_header_stdc = yes; then
5669 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005671/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005672#include <string.h>
5673
5674_ACEOF
5675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005676 $EGREP "memchr" >/dev/null 2>&1; then :
5677
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005678else
5679 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005680fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005681rm -f conftest*
5682
5683fi
5684
5685if test $ac_cv_header_stdc = yes; then
5686 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005688/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005689#include <stdlib.h>
5690
5691_ACEOF
5692if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005693 $EGREP "free" >/dev/null 2>&1; then :
5694
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005695else
5696 ac_cv_header_stdc=no
5697fi
5698rm -f conftest*
5699
5700fi
5701
5702if test $ac_cv_header_stdc = yes; then
5703 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005704 if test "$cross_compiling" = yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005705 :
5706else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005708/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005709#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005710#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005711#if ((' ' & 0x0FF) == 0x020)
5712# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5713# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5714#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005715# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005716 (('a' <= (c) && (c) <= 'i') \
5717 || ('j' <= (c) && (c) <= 'r') \
5718 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005719# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5720#endif
5721
5722#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5723int
5724main ()
5725{
5726 int i;
5727 for (i = 0; i < 256; i++)
5728 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00005729 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005730 return 2;
5731 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005732}
5733_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005734if ac_fn_c_try_run "$LINENO"; then :
5735
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005736else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005737 ac_cv_header_stdc=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005738fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005739rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5740 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005741fi
5742
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005743fi
5744fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005746$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005747if test $ac_cv_header_stdc = yes; then
5748
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005749$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005750
5751fi
5752
5753# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005754for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005755 inttypes.h stdint.h unistd.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005756do :
5757 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5758ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5759"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005760if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005761 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005762#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005763_ACEOF
5764
5765fi
5766
5767done
5768
5769
Rein Klazes7ff12562004-11-09 20:16:35 +00005770for ac_header in \
Chris Robinson862965f2009-08-25 03:26:35 -07005771 AL/al.h \
Ken Thomases21137cd2011-01-05 07:25:23 -06005772 ApplicationServices/ApplicationServices.h \
Aric Stewart4430ab42010-03-17 10:58:32 -05005773 AudioToolbox/AudioConverter.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005774 AudioUnit/AudioUnit.h \
Charles Davis459d9422011-01-29 16:45:53 -07005775 AudioUnit/AudioComponent.h \
Adam Martinson2eb2f712010-12-28 12:46:09 -06005776 CL/cl.h \
Pierre d'Herbemont08884512006-10-24 15:26:33 +02005777 Carbon/Carbon.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005778 CoreAudio/CoreAudio.h \
Alexandre Julliard66f45a52006-11-06 13:33:16 +01005779 DiskArbitration/DiskArbitration.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00005780 IOKit/IOKitLib.h \
Aric Stewart225a4942009-03-10 14:59:20 -05005781 IOKit/hid/IOHIDLib.h \
Ken Thomases0b08f192009-09-09 22:23:35 -05005782 OpenAL/al.h \
Peter Urbanec65c84d72010-12-02 23:41:48 +11005783 OpenCL/opencl.h \
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +01005784 QuickTime/ImageCompression.h \
Eric Durbin020b0ef2008-06-24 22:45:51 -05005785 alias.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005786 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005787 arpa/inet.h \
5788 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00005789 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005790 capi20.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005791 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005792 direct.h \
Rob Shearman87175c62008-10-03 12:55:21 +01005793 dirent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005794 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005795 elf.h \
5796 float.h \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +02005797 fnmatch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005798 fontconfig/fontconfig.h \
5799 getopt.h \
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01005800 gettext-po.h \
Alexandre Julliard46678dc2008-12-09 17:09:42 +01005801 grp.h \
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +02005802 gsm.h \
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +02005803 gsm/gsm.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005804 ieeefp.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005805 inet/mib2.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005806 io.h \
5807 jack/jack.h \
5808 jpeglib.h \
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +01005809 kstat.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005810 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005811 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005812 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005813 ldap.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005814 link.h \
5815 linux/cdrom.h \
5816 linux/compiler.h \
5817 linux/hdreg.h \
5818 linux/input.h \
5819 linux/ioctl.h \
5820 linux/joystick.h \
5821 linux/major.h \
5822 linux/param.h \
5823 linux/serial.h \
Francois Gougetda1a3522008-12-28 10:35:02 +01005824 linux/types.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005825 linux/ucdrom.h \
Ken Thomasesd35c0e82009-03-11 09:05:53 -05005826 mach-o/nlist.h \
Austin English95740b32010-10-08 00:33:52 -07005827 mach-o/loader.h \
Alexandre Julliard150b5dc2006-12-29 20:02:02 +01005828 mach/mach.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005829 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005830 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005831 machine/limits.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005832 machine/soundcard.h \
Austin English40b3d2e2010-05-23 21:18:17 -05005833 machine/sysarch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005834 mntent.h \
Aric Stewartdb71d7c2009-08-19 09:37:48 -05005835 mpg123.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005836 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005837 netdb.h \
5838 netinet/in.h \
5839 netinet/in_systm.h \
5840 netinet/tcp.h \
5841 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01005842 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005843 openssl/ssl.h \
Alexandre Julliard00302152007-07-02 19:54:00 +02005844 png.h \
Steven Edwards57279182005-03-04 12:38:36 +00005845 poll.h \
Albert Lee01b972d2009-11-20 18:35:26 -05005846 port.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005847 process.h \
5848 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005849 pwd.h \
5850 regex.h \
5851 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005852 scsi/scsi.h \
5853 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005854 scsi/sg.h \
5855 soundcard.h \
Austin English2d7ccb32009-06-13 18:01:24 -05005856 stdbool.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005857 stdint.h \
5858 strings.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005859 stropts.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005860 sys/asoundlib.h \
Charles Davis4e44e152011-01-18 13:09:44 -07005861 sys/attr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005862 sys/cdio.h \
5863 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005864 sys/epoll.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005865 sys/errno.h \
Alexandre Julliardc8278922006-08-04 22:11:00 +02005866 sys/event.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005867 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005868 sys/filio.h \
Alexandre Julliard61a70362009-06-26 15:45:03 +02005869 sys/inotify.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005870 sys/ioctl.h \
5871 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00005872 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005873 sys/link.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005874 sys/mman.h \
5875 sys/modem.h \
5876 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01005877 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005878 sys/param.h \
5879 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02005880 sys/prctl.h \
Austin English94021a12009-01-20 17:42:53 -06005881 sys/protosw.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005882 sys/ptrace.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09005883 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005884 sys/scsiio.h \
5885 sys/shm.h \
5886 sys/signal.h \
5887 sys/socket.h \
Mark Adams25696352007-07-10 23:39:21 -04005888 sys/socketvar.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005889 sys/sockio.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005890 sys/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005891 sys/statvfs.h \
5892 sys/strtio.h \
5893 sys/syscall.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005894 sys/tihdr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005895 sys/time.h \
Austin English8b195912009-01-21 21:59:11 -06005896 sys/timeout.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005897 sys/times.h \
5898 sys/uio.h \
5899 sys/un.h \
Alexandre Julliard66eb4bd2008-12-09 19:33:06 +01005900 sys/utsname.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005901 sys/vm86.h \
5902 sys/wait.h \
5903 syscall.h \
5904 termios.h \
Vincent Povirk73cd5692010-03-08 17:07:29 -06005905 tiffio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005906 unistd.h \
5907 utime.h \
John Reiser0a2c94e2008-07-24 13:31:53 -07005908 valgrind/memcheck.h \
Jacek Caban11ca05f2009-05-29 23:35:13 +02005909 valgrind/valgrind.h \
5910 zlib.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005911
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005912do :
5913 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5914ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005915if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005916 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005917#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Rein Klazes7ff12562004-11-09 20:16:35 +00005918_ACEOF
5919
5920fi
5921
5922done
5923
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005925$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005926if test "${ac_cv_header_stat_broken+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005927 $as_echo_n "(cached) " >&6
Rein Klazes7ff12562004-11-09 20:16:35 +00005928else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005930/* end confdefs.h. */
5931#include <sys/types.h>
5932#include <sys/stat.h>
5933
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005934#if defined S_ISBLK && defined S_IFDIR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005935extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005936#endif
5937
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005938#if defined S_ISBLK && defined S_IFCHR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005939extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005940#endif
5941
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005942#if defined S_ISLNK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005943extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005944#endif
5945
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005946#if defined S_ISSOCK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005947extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005948#endif
5949
5950_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005951if ac_fn_c_try_compile "$LINENO"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005952 ac_cv_header_stat_broken=no
Phil Krylovf0ca5862006-11-05 23:03:46 +03005953else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005954 ac_cv_header_stat_broken=yes
Phil Krylovf0ca5862006-11-05 23:03:46 +03005955fi
Phil Krylovf0ca5862006-11-05 23:03:46 +03005956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005957fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005959$as_echo "$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00005960if test $ac_cv_header_stat_broken = yes; then
5961
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005962$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005963
5964fi
5965
5966
5967
Austin English51094be2008-12-27 14:53:53 -06005968for 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 +02005969do :
5970 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5971ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005972 #ifdef HAVE_SYS_PARAM_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005973 # include <sys/param.h>
5974 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005975"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005976if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005977 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005978#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005979_ACEOF
5980
5981fi
5982
5983done
5984
5985
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005986for ac_header in \
5987 netinet/ip.h \
5988 net/if.h \
5989 net/if_arp.h \
5990 net/if_dl.h \
5991 net/if_types.h \
5992 net/route.h \
5993 netinet/if_ether.h \
Austin English337067a2009-01-22 10:44:06 -06005994 netinet/if_inarp.h \
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005995 netinet/in_pcb.h \
5996 netinet/ip_icmp.h \
5997 netinet/ip_var.h \
5998 netinet/udp.h \
5999 netipx/ipx.h \
6000
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006001do :
6002 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6003ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01006004 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006005 # include <sys/socket.h>
6006 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006007 #ifdef HAVE_SYS_SOCKETVAR_H
Ken Thomasesa609fee2007-10-19 16:18:17 -05006008 # include <sys/socketvar.h>
6009 #endif
Austin Englishbb3f2582009-01-26 23:34:42 -06006010 #ifdef HAVE_NET_ROUTE_H
6011 # include <net/route.h>
6012 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006013 #ifdef HAVE_NETINET_IN_H
Ken Thomasesffd78b12007-10-19 16:18:27 -05006014 # include <netinet/in.h>
6015 #endif
Austin English03173932009-01-23 13:29:42 -06006016 #ifdef HAVE_NETINET_IN_SYSTM_H
6017 # include <netinet/in_systm.h>
6018 #endif
Alexandre Julliardd7e846c2009-01-30 14:01:12 +01006019 #ifdef HAVE_NET_IF_H
6020 # include <net/if.h>
6021 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006022 #ifdef HAVE_NETINET_IP_H
6023 # include <netinet/ip.h>
6024 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006025"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006026if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006027 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01006028#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006029_ACEOF
6030
6031fi
6032
6033done
6034
Mark Adams25696352007-07-10 23:39:21 -04006035
Austin English03173932009-01-23 13:29:42 -06006036for 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 +02006037do :
6038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6039ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Eric Durbin020b0ef2008-06-24 22:45:51 -05006040 #ifdef HAVE_ALIAS_H
6041 # include <alias.h>
6042 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006043 #ifdef HAVE_SYS_SOCKET_H
Mark Adams25696352007-07-10 23:39:21 -04006044 # include <sys/socket.h>
6045 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006046 #ifdef HAVE_SYS_SOCKETVAR_H
Mark Adams25696352007-07-10 23:39:21 -04006047 # include <sys/socketvar.h>
6048 #endif
Austin English53d3c462009-01-26 23:47:49 -06006049 #ifdef HAVE_SYS_TIMEOUT_H
6050 # include <sys/timeout.h>
6051 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006052 #ifdef HAVE_NETINET_IN_H
Mark Adams25696352007-07-10 23:39:21 -04006053 # include <netinet/in.h>
6054 #endif
Austin English03173932009-01-23 13:29:42 -06006055 #ifdef HAVE_NETINET_IN_SYSTM_H
6056 # include <netinet/in_systm.h>
6057 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006058 #ifdef HAVE_NETINET_IP_H
6059 # include <netinet/ip.h>
6060 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006061 #ifdef HAVE_NETINET_IP_VAR_H
6062 # include <netinet/ip_var.h>
6063 #endif
Eric Durbin020b0ef2008-06-24 22:45:51 -05006064 #ifdef HAVE_NETINET_IP_ICMP_H
6065 # include <netinet/ip_icmp.h>
6066 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006067 #ifdef HAVE_NETINET_UDP_H
6068 # include <netinet/udp.h>
6069 #endif
Mark Adams25696352007-07-10 23:39:21 -04006070 #ifdef HAVE_NETINET_TCP_H
6071 # include <netinet/tcp.h>
6072 #endif
Austin English03173932009-01-23 13:29:42 -06006073 #ifdef HAVE_NETINET_TCP_TIMER_H
6074 #include <netinet/tcp_timer.h>
6075 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006076"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006077if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mark Adams25696352007-07-10 23:39:21 -04006078 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01006079#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mark Adams25696352007-07-10 23:39:21 -04006080_ACEOF
6081
6082fi
6083
6084done
6085
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006086
Juan Lang0ce420d2009-08-12 09:14:16 -07006087for ac_header in linux/ipx.h linux/irda.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006088do :
Juan Lang0ce420d2009-08-12 09:14:16 -07006089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6090ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gougetfaf05df2006-08-07 21:52:36 +02006091 #ifdef HAVE_ASM_TYPES_H
6092 # include <asm/types.h>
6093 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006094 #ifdef HAVE_SYS_SOCKET_H
Francois Gougetfaf05df2006-08-07 21:52:36 +02006095 # include <sys/socket.h>
6096 #endif
Francois Gougetda1a3522008-12-28 10:35:02 +01006097 #ifdef HAVE_LINUX_TYPES_H
6098 # include <linux/types.h>
6099 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006100"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006101if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Francois Gougetfaf05df2006-08-07 21:52:36 +02006102 cat >>confdefs.h <<_ACEOF
Juan Lang0ce420d2009-08-12 09:14:16 -07006103#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Francois Gougetfaf05df2006-08-07 21:52:36 +02006104_ACEOF
6105
6106fi
6107
6108done
6109
6110
Austin English2d7ccb32009-06-13 18:01:24 -05006111for ac_header in mach-o/dyld_images.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006112do :
6113 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 -05006114 # include <stdbool.h>
6115 #endif
6116 #ifdef HAVE_STDINT_H
6117 # include <stdint.h>
6118 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006119"
6120if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
Austin English2d7ccb32009-06-13 18:01:24 -05006121 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006122#define HAVE_MACH_O_DYLD_IMAGES_H 1
Austin English2d7ccb32009-06-13 18:01:24 -05006123_ACEOF
6124
6125fi
6126
6127done
6128
6129
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006130for ac_header in resolv.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006131do :
6132 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 +01006133 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006134 # include <sys/socket.h>
6135 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006136 #ifdef HAVE_NETINET_IN_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006137 # include <netinet/in.h>
6138 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006139 #ifdef HAVE_ARPA_NAMESER_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006140 # include <arpa/nameser.h>
6141 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006142"
6143if test "x$ac_cv_header_resolv_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006144 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006145#define HAVE_RESOLV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006146_ACEOF
6147
6148fi
6149
6150done
6151
6152
Juan Lange3c0e302010-03-11 18:36:46 -08006153for ac_header in ifaddrs.h
6154do :
6155 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6156"
6157if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6158 cat >>confdefs.h <<_ACEOF
6159#define HAVE_IFADDRS_H 1
6160_ACEOF
6161
6162fi
6163
6164done
6165
6166
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006167for ac_header in ucontext.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006168do :
6169 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6170"
6171if test "x$ac_cv_header_ucontext_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006172 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006173#define HAVE_UCONTEXT_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006174_ACEOF
6175
6176fi
6177
6178done
6179
6180
Tijl Coosemans60833da2007-08-08 00:25:24 +02006181for ac_header in sys/thr.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006182do :
6183 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 +01006184#ifdef HAVE_UCONTEXT_H
Tijl Coosemans60833da2007-08-08 00:25:24 +02006185#include <ucontext.h>
6186#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006187"
6188if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
Tijl Coosemans60833da2007-08-08 00:25:24 +02006189 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006190#define HAVE_SYS_THR_H 1
Tijl Coosemans60833da2007-08-08 00:25:24 +02006191_ACEOF
6192
6193fi
6194
6195done
6196
6197
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006198for ac_header in pthread_np.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006199do :
6200 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 +02006201#include <pthread.h>
6202#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006203"
6204if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006205 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006206#define HAVE_PTHREAD_NP_H 1
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006207_ACEOF
6208
6209fi
6210
6211done
6212
6213
Francois Gougetfaf05df2006-08-07 21:52:36 +02006214for ac_header in linux/videodev.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006215do :
6216 ac_fn_c_check_header_compile "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "#ifdef HAVE_SYS_TIME_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006217#include <sys/time.h>
6218#endif
6219#include <sys/types.h>
6220#ifdef HAVE_ASM_TYPES_H
6221#include <asm/types.h>
6222#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006223"
6224if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006225 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006226#define HAVE_LINUX_VIDEODEV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006227_ACEOF
6228
6229fi
6230
6231done
6232
6233
Alexandre Julliardb079add2006-02-24 11:46:17 +01006234for ac_header in linux/capi.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006235do :
6236 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6237"
6238if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
Alexandre Julliardb079add2006-02-24 11:46:17 +01006239 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006240#define HAVE_LINUX_CAPI_H 1
Alexandre Julliardb079add2006-02-24 11:46:17 +01006241_ACEOF
6242
6243fi
6244
6245done
6246
6247
6248
Alexandre Julliarda3097622007-07-02 17:27:48 +02006249DLLEXT=""
6250
6251DLLFLAGS="-D_REENTRANT"
6252
6253LDSHARED=""
6254
6255LDDLLFLAGS=""
6256
6257LIBEXT="so"
6258
6259IMPLIBEXT="def"
6260
6261LDRPATH_INSTALL=""
6262
6263LDRPATH_LOCAL=""
6264
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006265STATIC_IMPLIBEXT="def.a"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006266# Extract the first word of "ldd", so it can be a program name with args.
6267set dummy ldd; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006269$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006270if test "${ac_cv_path_LDD+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006271 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006272else
6273 case $LDD in
6274 [\\/]* | ?:[\\/]*)
6275 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6276 ;;
6277 *)
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279as_dummy="/sbin:/usr/sbin:$PATH"
6280for as_dir in $as_dummy
6281do
6282 IFS=$as_save_IFS
6283 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006284 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6286 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006288 break 2
6289 fi
6290done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006291 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006292IFS=$as_save_IFS
6293
6294 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6295 ;;
6296esac
6297fi
6298LDD=$ac_cv_path_LDD
6299if test -n "$LDD"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006301$as_echo "$LDD" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006302else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006304$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006305fi
6306
6307
6308
6309case $host_os in
6310 cygwin*|mingw32*)
6311 if test -n "$ac_tool_prefix"; then
6312 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6313set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006315$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006316if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006317 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006318else
6319 if test -n "$DLLTOOL"; then
6320 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6321else
6322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6323for as_dir in $PATH
6324do
6325 IFS=$as_save_IFS
6326 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006327 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6329 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006331 break 2
6332 fi
6333done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006334 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006335IFS=$as_save_IFS
6336
6337fi
6338fi
6339DLLTOOL=$ac_cv_prog_DLLTOOL
6340if test -n "$DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006342$as_echo "$DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006343else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006345$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006346fi
6347
6348
6349fi
6350if test -z "$ac_cv_prog_DLLTOOL"; then
6351 ac_ct_DLLTOOL=$DLLTOOL
6352 # Extract the first word of "dlltool", so it can be a program name with args.
6353set dummy dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006355$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006356if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006357 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006358else
6359 if test -n "$ac_ct_DLLTOOL"; then
6360 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6361else
6362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6363for as_dir in $PATH
6364do
6365 IFS=$as_save_IFS
6366 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006367 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006368 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6369 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006371 break 2
6372 fi
6373done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006374 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006375IFS=$as_save_IFS
6376
6377fi
6378fi
6379ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6380if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006382$as_echo "$ac_ct_DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006383else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006385$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006386fi
6387
6388 if test "x$ac_ct_DLLTOOL" = x; then
6389 DLLTOOL="false"
6390 else
6391 case $cross_compiling:$ac_tool_warned in
6392yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006393{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006394$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006395ac_tool_warned=yes ;;
6396esac
6397 DLLTOOL=$ac_ct_DLLTOOL
6398 fi
6399else
6400 DLLTOOL="$ac_cv_prog_DLLTOOL"
6401fi
6402
6403 if test -n "$ac_tool_prefix"; then
6404 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6405set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006407$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006408if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006409 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006410else
6411 if test -n "$DLLWRAP"; then
6412 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6413else
6414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6415for as_dir in $PATH
6416do
6417 IFS=$as_save_IFS
6418 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006419 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6421 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006423 break 2
6424 fi
6425done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006426 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006427IFS=$as_save_IFS
6428
6429fi
6430fi
6431DLLWRAP=$ac_cv_prog_DLLWRAP
6432if test -n "$DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006434$as_echo "$DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006435else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006437$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006438fi
6439
6440
6441fi
6442if test -z "$ac_cv_prog_DLLWRAP"; then
6443 ac_ct_DLLWRAP=$DLLWRAP
6444 # Extract the first word of "dllwrap", so it can be a program name with args.
6445set dummy dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006447$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006448if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006449 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006450else
6451 if test -n "$ac_ct_DLLWRAP"; then
6452 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6453else
6454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455for as_dir in $PATH
6456do
6457 IFS=$as_save_IFS
6458 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006459 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006460 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6461 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006463 break 2
6464 fi
6465done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006466 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006467IFS=$as_save_IFS
6468
6469fi
6470fi
6471ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6472if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006474$as_echo "$ac_ct_DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006475else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006477$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006478fi
6479
6480 if test "x$ac_ct_DLLWRAP" = x; then
6481 DLLWRAP="false"
6482 else
6483 case $cross_compiling:$ac_tool_warned in
6484yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006487ac_tool_warned=yes ;;
6488esac
6489 DLLWRAP=$ac_ct_DLLWRAP
6490 fi
6491else
6492 DLLWRAP="$ac_cv_prog_DLLWRAP"
6493fi
6494
Alexandre Julliarda3097622007-07-02 17:27:48 +02006495 if test "$DLLWRAP" = "false"; then
6496 LIBEXT="a"
6497 else
6498 LIBEXT="dll"
6499 fi
6500 IMPLIBEXT="a"
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006501 STATIC_IMPLIBEXT="a"
Alexandre Julliardec1ebfb2008-09-04 12:29:07 +02006502 enable_iphlpapi=${enable_iphlpapi:-no}
6503 enable_kernel32=${enable_kernel32:-no}
6504 enable_msvcrt=${enable_msvcrt:-no}
6505 enable_ntdll=${enable_ntdll:-no}
6506 enable_ws2_32=${enable_ws2_32:-no}
6507 enable_loader=${enable_loader:-no}
6508 enable_server=${enable_server:-no}
Alexandre Julliard40664c02009-02-11 20:40:58 +01006509 with_x=${with_x:-no}
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01006510 with_pthread=${with_pthread:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006511 ;;
6512 darwin*|macosx*)
6513 DLLEXT=".so"
6514 LIBEXT="dylib"
6515 DLLFLAGS="$DLLFLAGS -fPIC"
6516 LDDLLFLAGS="-bundle -multiply_defined suppress"
6517 LIBWINE_LDFLAGS="-multiply_defined suppress"
6518 LDSHARED="\$(CC) -dynamiclib"
6519 STRIP="$STRIP -x"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006520 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(top_builddir)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
Rob Shearman312a1db2007-11-26 22:57:35 +00006521 SECURITYLIB="-framework Security -framework CoreFoundation"
6522
6523 COREFOUNDATIONLIB="-framework CoreFoundation"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006524
6525 IOKITLIB="-framework IOKit -framework CoreFoundation"
6526
Ken Thomases21137cd2011-01-05 07:25:23 -06006527 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6528
Alexandre Julliard691bdbd2009-06-23 20:51:37 +02006529 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006530
6531 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6532 then
6533 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6534
6535 fi
6536 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6537 then
Charles Davis459d9422011-01-29 16:45:53 -07006538 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6539 then
6540 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006541
Charles Davis459d9422011-01-29 16:45:53 -07006542 else
6543 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6544
6545 fi
Charles Davisb149d7b2011-01-29 16:45:54 -07006546 ac_save_LIBS="$LIBS"
6547 LIBS="$LIBS $COREAUDIO"
6548 for ac_func in AUGraphAddNode
6549do :
6550 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6551if test "x$ac_cv_func_AUGraphAddNode" = x""yes; then :
6552 cat >>confdefs.h <<_ACEOF
6553#define HAVE_AUGRAPHADDNODE 1
6554_ACEOF
6555
6556fi
6557done
6558
6559 LIBS="$ac_save_LIBS"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006560 fi
Ken Thomases0b08f192009-09-09 22:23:35 -05006561 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6562 then
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006563 FRAMEWORK_OPENAL="-framework OpenAL"
Ken Thomases0b08f192009-09-09 22:23:35 -05006564
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006565
6566cat >>confdefs.h <<_ACEOF
6567#define HAVE_OPENAL 1
6568_ACEOF
6569
6570 ac_cv_lib_openal=yes
Ken Thomases0b08f192009-09-09 22:23:35 -05006571 fi
Alexandre Julliardfac67412010-12-03 14:16:55 +01006572 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6573 then
6574 LIBOPENCL="-framework OpenCL"
6575
6576 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6577 fi
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006578 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6579 then
6580 ac_save_LIBS="$LIBS"
6581 LIBS="$LIBS $IOKITLIB"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006582 for ac_func in IOHIDManagerCreate
6583do :
6584 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6585if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006586 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006587#define HAVE_IOHIDMANAGERCREATE 1
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006588_ACEOF
6589
6590fi
6591done
6592
6593 LIBS="$ac_save_LIBS"
6594 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006595 case $host_cpu in
6596 *powerpc*)
6597 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6598 esac
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +01006599 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6600 then
6601 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6602
6603 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6604 else
6605 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6606 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006607 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6608 then
6609 CARBONLIB="-framework Carbon"
6610
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02006611 enable_winequartz_drv=${enable_winequartz_drv:-yes}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006612 fi
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006613 if test "x$enable_win16" = "xyes"
6614 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006616$as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006617 if test "$cross_compiling" = yes; then :
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006619$as_echo "cross-compiling, assuming yes" >&6; }
6620else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006622/* end confdefs.h. */
6623asm(".text\n"
6624 "bad:\tnop;nop\n"
6625 "good:\tnop;nop\n\t"
6626 ".globl _testfunc\n"
6627 "_testfunc:\tcallw good");
6628 extern void testfunc();
6629int
6630main ()
6631{
6632unsigned short *p = (unsigned short *)testfunc;
6633 return p[0] != 0xe866 || p[1] != 0xfffa
6634 ;
6635 return 0;
6636}
6637_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006638if ac_fn_c_try_run "$LINENO"; then :
6639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006640$as_echo "yes" >&6; }
6641else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006643$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006644 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 +02006645fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006646rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6647 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006648fi
6649
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006650 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006651 ;;
6652 *)
6653 DLLFLAGS="$DLLFLAGS -fPIC"
6654 DLLEXT=".so"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006655 { $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 +01006656$as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006657if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006658 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006659else
6660 ac_wine_try_cflags_saved=$CFLAGS
6661CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006662cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6663/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006664void myfunc() {}
6665_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006666if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006667 ac_cv_c_dll_gnuelf="yes"
6668else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006669 ac_cv_c_dll_gnuelf="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006670fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006671rm -f core conftest.err conftest.$ac_objext \
6672 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006673CFLAGS=$ac_wine_try_cflags_saved
6674fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006676$as_echo "$ac_cv_c_dll_gnuelf" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006677 if test "$ac_cv_c_dll_gnuelf" = "yes"
6678 then
6679 LDSHARED="\$(CC) -shared"
6680 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006681 { $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 +01006682$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006683if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006684 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006685else
6686 ac_wine_try_cflags_saved=$CFLAGS
6687CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006689/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006690int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006691_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006692if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006693 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6694else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006695 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006696fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006697rm -f core conftest.err conftest.$ac_objext \
6698 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006699CFLAGS=$ac_wine_try_cflags_saved
6700fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006701{ $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 +01006702$as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006703if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006704 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6705else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006706 { $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 +01006707$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006708if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006709 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006710else
6711 ac_wine_try_cflags_saved=$CFLAGS
6712CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006713cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006714/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006715int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006716_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006717if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006718 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6719else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006720 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006721fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006722rm -f core conftest.err conftest.$ac_objext \
6723 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006724CFLAGS=$ac_wine_try_cflags_saved
6725fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006726{ $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 +01006727$as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006728if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006729 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6730fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006731fi
6732
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006733 { $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 +01006734$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006735if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006736 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006737else
6738 ac_wine_try_cflags_saved=$CFLAGS
6739CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006740cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006741/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006742int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006743_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006744if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006745 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6746else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006747 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006748fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006749rm -f core conftest.err conftest.$ac_objext \
6750 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006751CFLAGS=$ac_wine_try_cflags_saved
6752fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006753{ $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 +01006754$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006755if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006756 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6757fi
6758
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006759 { $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 +01006760$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006761if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006762 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006763else
6764 ac_wine_try_cflags_saved=$CFLAGS
6765CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006766cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006767/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006768int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006769_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006770if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006771 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6772else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006773 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006774fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006775rm -f core conftest.err conftest.$ac_objext \
6776 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006777CFLAGS=$ac_wine_try_cflags_saved
6778fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006779{ $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 +01006780$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 +02006781if 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 +02006782 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6783fi
6784
Alexandre Julliarda3097622007-07-02 17:27:48 +02006785 echo '{ global: *; };' >conftest.map
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006786 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6787{ $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 +01006788$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006789if eval "test \"\${$as_ac_var+set}\"" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006790 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006791else
6792 ac_wine_try_cflags_saved=$CFLAGS
6793CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006794cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006795/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006796int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006797_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006798if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006799 eval "$as_ac_var=yes"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006800else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006801 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006802fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006803rm -f core conftest.err conftest.$ac_objext \
6804 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006805CFLAGS=$ac_wine_try_cflags_saved
6806fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006807eval ac_res=\$$as_ac_var
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6809$as_echo "$ac_res" >&6; }
6810if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006811 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6812fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006813 rm -f conftest.map
6814
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006816$as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006817if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006818 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006819else
6820 ac_wine_try_cflags_saved=$CFLAGS
6821CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006823/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006824int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006825_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006826if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006827 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6828else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006829 ac_cv_cflags__fPIC__Wl___export_dynamic=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006830fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006831rm -f core conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006833CFLAGS=$ac_wine_try_cflags_saved
6834fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006836$as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006837if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006838 LDEXECFLAGS="-Wl,--export-dynamic"
6839
6840fi
6841
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006842 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6843{ $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 +01006844$as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006845if eval "test \"\${$as_ac_var+set}\"" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006846 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006847else
6848 ac_wine_try_cflags_saved=$CFLAGS
6849CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006851/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006852int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006853_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006854if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006855 eval "$as_ac_var=yes"
6856else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006857 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006858fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006859rm -f core conftest.err conftest.$ac_objext \
6860 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006861CFLAGS=$ac_wine_try_cflags_saved
6862fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006863eval ac_res=\$$as_ac_var
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006865$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006866if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006867 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006868 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006869else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006870 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6871{ $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 +01006872$as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006873if eval "test \"\${$as_ac_var+set}\"" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006874 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006875else
6876 ac_wine_try_cflags_saved=$CFLAGS
6877CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006878cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006879/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006880int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006881_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006882if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006883 eval "$as_ac_var=yes"
6884else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006885 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006886fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006887rm -f core conftest.err conftest.$ac_objext \
6888 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006889CFLAGS=$ac_wine_try_cflags_saved
6890fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006891eval ac_res=\$$as_ac_var
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006893$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006894if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006895 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006896 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006897fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006898fi
6899
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006901$as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006902if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006903 $as_echo_n "(cached) " >&6
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006904else
6905 ac_wine_try_cflags_saved=$CFLAGS
6906CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006907cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006908/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006909int main(int argc, char **argv) { return 0; }
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006910_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006911if ac_fn_c_try_link "$LINENO"; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006912 ac_cv_cflags__Wl___enable_new_dtags=yes
6913else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006914 ac_cv_cflags__Wl___enable_new_dtags=no
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006915fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006916rm -f core conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006918CFLAGS=$ac_wine_try_cflags_saved
6919fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006921$as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006922if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006923 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6924fi
6925
Alexandre Julliarda3097622007-07-02 17:27:48 +02006926 case $host_cpu in
6927 *i[3456789]86* | x86_64)
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006928 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6929{ $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 +01006930$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006931if eval "test \"\${$as_ac_var+set}\"" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006932 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006933else
6934 ac_wine_try_cflags_saved=$CFLAGS
6935CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006937/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006938int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006939_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006940if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006941 eval "$as_ac_var=yes"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006942else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006943 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006944fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006945rm -f core conftest.err conftest.$ac_objext \
6946 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006947CFLAGS=$ac_wine_try_cflags_saved
6948fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006949eval ac_res=\$$as_ac_var
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6951$as_echo "$ac_res" >&6; }
6952if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Francois Gouget5f694dd2010-11-26 16:18:32 +01006953 case $host_os in
6954 freebsd*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6955 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6956 esac
6957
Alexandre Julliarda3097622007-07-02 17:27:48 +02006958fi
Alexandre Julliardb5d824b2010-08-24 13:42:10 +02006959 # Extract the first word of "prelink", so it can be a program name with args.
6960set dummy prelink; ac_word=$2
6961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6962$as_echo_n "checking for $ac_word... " >&6; }
6963if test "${ac_cv_path_PRELINK+set}" = set; then :
6964 $as_echo_n "(cached) " >&6
6965else
6966 case $PRELINK in
6967 [\\/]* | ?:[\\/]*)
6968 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6969 ;;
6970 *)
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6972for as_dir in /sbin /usr/sbin $PATH
6973do
6974 IFS=$as_save_IFS
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 break 2
6981 fi
6982done
6983 done
6984IFS=$as_save_IFS
6985
6986 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6987 ;;
6988esac
6989fi
6990PRELINK=$ac_cv_path_PRELINK
6991if test -n "$PRELINK"; then
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6993$as_echo "$PRELINK" >&6; }
6994else
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6996$as_echo "no" >&6; }
6997fi
6998
6999
7000 if test "x$PRELINK" = xfalse
7001 then
7002 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
7003 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007004 ;;
7005 esac
7006
7007 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007009$as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007010if test "${ac_cv_c_dll_unixware+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007011 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007012else
7013 ac_wine_try_cflags_saved=$CFLAGS
7014CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007015cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02007017void myfunc() {}
7018_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007019if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02007020 ac_cv_c_dll_unixware="yes"
7021else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007022 ac_cv_c_dll_unixware="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007023fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007024rm -f core conftest.err conftest.$ac_objext \
7025 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02007026CFLAGS=$ac_wine_try_cflags_saved
7027fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007029$as_echo "$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007030 if test "$ac_cv_c_dll_unixware" = "yes"
7031 then
7032 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7033 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7034
7035 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007037$as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007038if test "${ac_cv_c_dll_hpux+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007039 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007040else
7041 ac_wine_try_cflags_saved=$CFLAGS
7042CFLAGS="$CFLAGS -shared"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7044/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02007045void myfunc() {}
7046_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007047if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02007048 ac_cv_c_dll_hpux="yes"
7049else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007050 ac_cv_c_dll_hpux="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007051fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007052rm -f core conftest.err conftest.$ac_objext \
7053 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02007054CFLAGS=$ac_wine_try_cflags_saved
7055fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007057$as_echo "$ac_cv_c_dll_hpux" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007058 if test "$ac_cv_c_dll_hpux" = "yes"
7059 then
7060 LIBEXT="sl"
7061 DLLEXT=".sl"
7062 LDDLLFLAGS="-shared -fPIC"
7063 LDSHARED="\$(CC) -shared"
7064 fi
7065 fi
7066 fi
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007067 ;;
7068esac
Alexandre Julliarda3097622007-07-02 17:27:48 +02007069
Aric Stewarteefe6f62010-12-03 07:33:08 -06007070enable_wineqtdecoder=${enable_wineqtdecoder:-no}
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007071enable_winequartz_drv=${enable_winequartz_drv:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02007072
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007073if test "$LIBEXT" = "a"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007074 as_fn_error $? "could not find a way to build shared libraries.
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007075It is currently not possible to build Wine without shared library
7076(.so) support to allow transparent switch between .so and .dll files.
7077If you are using Linux, you will need a newer binutils.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007078" "$LINENO" 5
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007079fi
7080
Alexandre Julliard7d2e7722010-07-26 12:13:47 +02007081CROSSTEST_DISABLE=\#
7082
7083if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007084then
Alexandre Julliarda91fb212009-12-07 15:36:09 +01007085 case "$host_cpu" in
7086 i[3456789]86*)
Jacek Caban0b6bfad2010-12-21 18:08:38 +01007087 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 +01007088 x86_64)
Vincent Povirkd2103752010-10-11 15:55:40 -05007089 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 +01007090 *)
7091 ac_prefix_list="" ;;
7092esac
7093for ac_prog in $ac_prefix_list
Alexandre Julliarda3097622007-07-02 17:27:48 +02007094do
7095 # Extract the first word of "$ac_prog", so it can be a program name with args.
7096set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007097{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007098$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007099if test "${ac_cv_prog_CROSSCC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007100 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007101else
7102 if test -n "$CROSSCC"; then
7103 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7104else
7105as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106for as_dir in $PATH
7107do
7108 IFS=$as_save_IFS
7109 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007110 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02007111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112 ac_cv_prog_CROSSCC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02007114 break 2
7115 fi
7116done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007117 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02007118IFS=$as_save_IFS
7119
7120fi
7121fi
7122CROSSCC=$ac_cv_prog_CROSSCC
7123if test -n "$CROSSCC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007125$as_echo "$CROSSCC" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007126else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007128$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007129fi
7130
7131
7132 test -n "$CROSSCC" && break
7133done
7134test -n "$CROSSCC" || CROSSCC="false"
7135
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007136 if test "$CROSSCC" != "false"
7137 then
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007138 ac_save_CC="$CC"
7139 CC="$CROSSCC"
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7141$as_echo_n "checking whether $CROSSCC works... " >&6; }
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143/* end confdefs.h. */
Alexandre Julliarda2d88ab2009-05-30 17:08:06 +02007144
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007145int
7146main ()
7147{
7148
7149 ;
7150 return 0;
7151}
7152_ACEOF
7153if ac_fn_c_try_compile "$LINENO"; then :
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7155$as_echo "yes" >&6; }
7156 set x $CROSSCC
7157 shift
7158 target=""
7159 while test $# -ge 1
7160 do
7161 case "$1" in
7162 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7163 esac
7164 shift
7165 done
7166 if test -n "$target"
7167 then
7168 CROSSTEST_DISABLE=""
7169 CROSSTARGET="$target"
7170
7171 fi
7172else
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7174$as_echo "no" >&6; }
7175fi
7176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7177 CC="$ac_save_CC"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007178 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007179fi
7180
7181
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007182if test "$ac_cv_header_pthread_h" = "yes"
7183then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007185$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007186if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007187 $as_echo_n "(cached) " >&6
7188else
7189 ac_check_lib_save_LIBS=$LIBS
7190LIBS="-lpthread $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007191cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007192/* end confdefs.h. */
7193
7194/* Override any GCC internal prototype to avoid an error.
7195 Use char because int might match the return type of a GCC
7196 builtin and then its argument prototype would still apply. */
7197#ifdef __cplusplus
7198extern "C"
7199#endif
7200char pthread_create ();
7201int
7202main ()
7203{
7204return pthread_create ();
7205 ;
7206 return 0;
7207}
7208_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007209if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007210 ac_cv_lib_pthread_pthread_create=yes
7211else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007212 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007213fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007214rm -f core conftest.err conftest.$ac_objext \
7215 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007216LIBS=$ac_check_lib_save_LIBS
7217fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007219$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007220if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007221 LIBPTHREAD="-lpthread"
7222
7223fi
7224
7225fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007226if test "x$LIBPTHREAD" = "x"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007227 case "x$with_pthread" in
7228 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007229 *) as_fn_error $? "pthread ${notice_platform}development files not found.
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007230Wine cannot support threads without libpthread.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007231Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007232esac
7233fi
7234
7235
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007237$as_echo_n "checking for X... " >&6; }
7238
7239
7240# Check whether --with-x was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007241if test "${with_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007242 withval=$with_x;
7243fi
7244
7245# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7246if test "x$with_x" = xno; then
7247 # The user explicitly disabled X.
7248 have_x=disabled
7249else
7250 case $x_includes,$x_libraries in #(
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007251 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007252 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007253 $as_echo_n "(cached) " >&6
7254else
7255 # One or both of the vars are not set, and there is no cached value.
7256ac_x_includes=no ac_x_libraries=no
7257rm -f -r conftest.dir
7258if mkdir conftest.dir; then
7259 cd conftest.dir
7260 cat >Imakefile <<'_ACEOF'
7261incroot:
7262 @echo incroot='${INCROOT}'
7263usrlibdir:
7264 @echo usrlibdir='${USRLIBDIR}'
7265libdir:
7266 @echo libdir='${LIBDIR}'
7267_ACEOF
7268 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007269 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Alexandre Julliard40664c02009-02-11 20:40:58 +01007270 for ac_var in incroot usrlibdir libdir; do
7271 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7272 done
7273 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7274 for ac_extension in a so sl dylib la dll; do
7275 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7276 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7277 ac_im_usrlibdir=$ac_im_libdir; break
7278 fi
7279 done
7280 # Screen out bogus values from the imake configuration. They are
7281 # bogus both because they are the default anyway, and because
7282 # using them would break gcc on systems where it needs fixed includes.
7283 case $ac_im_incroot in
7284 /usr/include) ac_x_includes= ;;
7285 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7286 esac
7287 case $ac_im_usrlibdir in
7288 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7289 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7290 esac
7291 fi
7292 cd ..
7293 rm -f -r conftest.dir
7294fi
7295
7296# Standard set of common directories for X headers.
7297# Check X11 before X11Rn because it is often a symlink to the current release.
7298ac_x_header_dirs='
7299/usr/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007300/usr/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007301/usr/X11R6/include
7302/usr/X11R5/include
7303/usr/X11R4/include
7304
7305/usr/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007306/usr/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007307/usr/include/X11R6
7308/usr/include/X11R5
7309/usr/include/X11R4
7310
7311/usr/local/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007312/usr/local/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007313/usr/local/X11R6/include
7314/usr/local/X11R5/include
7315/usr/local/X11R4/include
7316
7317/usr/local/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007318/usr/local/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007319/usr/local/include/X11R6
7320/usr/local/include/X11R5
7321/usr/local/include/X11R4
7322
7323/usr/X386/include
7324/usr/x386/include
7325/usr/XFree86/include/X11
7326
7327/usr/include
7328/usr/local/include
7329/usr/unsupported/include
7330/usr/athena/include
7331/usr/local/x11r5/include
7332/usr/lpp/Xamples/include
7333
7334/usr/openwin/include
7335/usr/openwin/share/include'
7336
7337if test "$ac_x_includes" = no; then
7338 # Guess where to find include files, by looking for Xlib.h.
7339 # First, try using that file with no special directory specified.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007341/* end confdefs.h. */
7342#include <X11/Xlib.h>
7343_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007344if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007345 # We can compile using X headers with no special include directory.
7346ac_x_includes=
7347else
Alexandre Julliard40664c02009-02-11 20:40:58 +01007348 for ac_dir in $ac_x_header_dirs; do
7349 if test -r "$ac_dir/X11/Xlib.h"; then
7350 ac_x_includes=$ac_dir
7351 break
7352 fi
7353done
7354fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007355rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007356fi # $ac_x_includes = no
7357
7358if test "$ac_x_libraries" = no; then
7359 # Check for the libraries.
7360 # See if we find them without any special options.
7361 # Don't add to $LIBS permanently.
7362 ac_save_LIBS=$LIBS
7363 LIBS="-lX11 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007365/* end confdefs.h. */
7366#include <X11/Xlib.h>
7367int
7368main ()
7369{
7370XrmInitialize ()
7371 ;
7372 return 0;
7373}
7374_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007375if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007376 LIBS=$ac_save_LIBS
7377# We can link X programs with no special library path.
7378ac_x_libraries=
7379else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007380 LIBS=$ac_save_LIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +01007381for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7382do
7383 # Don't even attempt the hair of trying to link an X program!
7384 for ac_extension in a so sl dylib la dll; do
7385 if test -r "$ac_dir/libX11.$ac_extension"; then
7386 ac_x_libraries=$ac_dir
7387 break 2
7388 fi
7389 done
7390done
7391fi
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 +01007394fi # $ac_x_libraries = no
7395
7396case $ac_x_includes,$ac_x_libraries in #(
7397 no,* | *,no | *\'*)
7398 # Didn't find X, or a directory has "'" in its name.
7399 ac_cv_have_x="have_x=no";; #(
7400 *)
7401 # Record where we found X for the cache.
7402 ac_cv_have_x="have_x=yes\
7403 ac_x_includes='$ac_x_includes'\
7404 ac_x_libraries='$ac_x_libraries'"
7405esac
7406fi
7407;; #(
7408 *) have_x=yes;;
7409 esac
7410 eval "$ac_cv_have_x"
7411fi # $with_x != no
7412
7413if test "$have_x" != yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007415$as_echo "$have_x" >&6; }
7416 no_x=yes
7417else
7418 # If each of the values was on the command line, it overrides each guess.
7419 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7420 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7421 # Update the cache value to reflect the command line values.
7422 ac_cv_have_x="have_x=yes\
7423 ac_x_includes='$x_includes'\
7424 ac_x_libraries='$x_libraries'"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007426$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7427fi
7428
7429if test "$no_x" = yes; then
7430 # Not all programs may use this symbol, but it does not hurt to define it.
7431
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007432$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
Alexandre Julliard40664c02009-02-11 20:40:58 +01007433
7434 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7435else
7436 if test -n "$x_includes"; then
7437 X_CFLAGS="$X_CFLAGS -I$x_includes"
7438 fi
7439
7440 # It would also be nice to do this for all -L options, not just this one.
7441 if test -n "$x_libraries"; then
7442 X_LIBS="$X_LIBS -L$x_libraries"
7443 # For Solaris; some versions of Sun CC require a space after -R and
7444 # others require no space. Words are not sufficient . . . .
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007446$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7447 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7448 ac_xsave_c_werror_flag=$ac_c_werror_flag
7449 ac_c_werror_flag=yes
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007451/* end confdefs.h. */
7452
7453int
7454main ()
7455{
7456
7457 ;
7458 return 0;
7459}
7460_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007461if ac_fn_c_try_link "$LINENO"; then :
7462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007463$as_echo "no" >&6; }
7464 X_LIBS="$X_LIBS -R$x_libraries"
7465else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007466 LIBS="$ac_xsave_LIBS -R $x_libraries"
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007468/* end confdefs.h. */
7469
7470int
7471main ()
7472{
7473
7474 ;
7475 return 0;
7476}
7477_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007478if ac_fn_c_try_link "$LINENO"; then :
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007480$as_echo "yes" >&6; }
7481 X_LIBS="$X_LIBS -R $x_libraries"
7482else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007484$as_echo "neither works" >&6; }
7485fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007486rm -f core conftest.err conftest.$ac_objext \
7487 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007488fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007489rm -f core conftest.err conftest.$ac_objext \
7490 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007491 ac_c_werror_flag=$ac_xsave_c_werror_flag
7492 LIBS=$ac_xsave_LIBS
7493 fi
7494
7495 # Check for system-dependent libraries X programs must link with.
7496 # Do this before checking for the system-independent R6 libraries
7497 # (-lICE), since we may need -lsocket or whatever for X linking.
7498
7499 if test "$ISC" = yes; then
7500 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7501 else
7502 # Martyn Johnson says this is needed for Ultrix, if the X
7503 # libraries were built with DECnet support. And Karl Berry says
7504 # the Alpha needs dnet_stub (dnet does not exist).
7505 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007507/* end confdefs.h. */
7508
7509/* Override any GCC internal prototype to avoid an error.
7510 Use char because int might match the return type of a GCC
7511 builtin and then its argument prototype would still apply. */
7512#ifdef __cplusplus
7513extern "C"
7514#endif
7515char XOpenDisplay ();
7516int
7517main ()
7518{
7519return XOpenDisplay ();
7520 ;
7521 return 0;
7522}
7523_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007524if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007525
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007526else
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007528$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007529if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007530 $as_echo_n "(cached) " >&6
7531else
7532 ac_check_lib_save_LIBS=$LIBS
7533LIBS="-ldnet $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007535/* end confdefs.h. */
7536
7537/* Override any GCC internal prototype to avoid an error.
7538 Use char because int might match the return type of a GCC
7539 builtin and then its argument prototype would still apply. */
7540#ifdef __cplusplus
7541extern "C"
7542#endif
7543char dnet_ntoa ();
7544int
7545main ()
7546{
7547return dnet_ntoa ();
7548 ;
7549 return 0;
7550}
7551_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007552if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007553 ac_cv_lib_dnet_dnet_ntoa=yes
7554else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007555 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007556fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007557rm -f core conftest.err conftest.$ac_objext \
7558 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007559LIBS=$ac_check_lib_save_LIBS
7560fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007562$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007563if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007564 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7565fi
7566
7567 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007569$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007570if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007571 $as_echo_n "(cached) " >&6
7572else
7573 ac_check_lib_save_LIBS=$LIBS
7574LIBS="-ldnet_stub $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007576/* end confdefs.h. */
7577
7578/* Override any GCC internal prototype to avoid an error.
7579 Use char because int might match the return type of a GCC
7580 builtin and then its argument prototype would still apply. */
7581#ifdef __cplusplus
7582extern "C"
7583#endif
7584char dnet_ntoa ();
7585int
7586main ()
7587{
7588return dnet_ntoa ();
7589 ;
7590 return 0;
7591}
7592_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007593if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007594 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7595else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007596 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007597fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007598rm -f core conftest.err conftest.$ac_objext \
7599 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007600LIBS=$ac_check_lib_save_LIBS
7601fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007603$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007604if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007605 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7606fi
7607
7608 fi
7609fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007610rm -f core conftest.err conftest.$ac_objext \
7611 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007612 LIBS="$ac_xsave_LIBS"
7613
7614 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7615 # to get the SysV transport functions.
7616 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7617 # needs -lnsl.
7618 # The nsl library prevents programs from opening the X display
7619 # on Irix 5.2, according to T.E. Dickey.
7620 # The functions gethostbyname, getservbyname, and inet_addr are
7621 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007622 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7623if test "x$ac_cv_func_gethostbyname" = x""yes; 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_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007629$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007630if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007631 $as_echo_n "(cached) " >&6
7632else
7633 ac_check_lib_save_LIBS=$LIBS
7634LIBS="-lnsl $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 gethostbyname ();
7645int
7646main ()
7647{
7648return gethostbyname ();
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_nsl_gethostbyname=yes
7655else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007656 ac_cv_lib_nsl_gethostbyname=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_nsl_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007663$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007664if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007665 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7666fi
7667
7668 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007670$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007671if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007672 $as_echo_n "(cached) " >&6
7673else
7674 ac_check_lib_save_LIBS=$LIBS
7675LIBS="-lbsd $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007677/* end confdefs.h. */
7678
7679/* Override any GCC internal prototype to avoid an error.
7680 Use char because int might match the return type of a GCC
7681 builtin and then its argument prototype would still apply. */
7682#ifdef __cplusplus
7683extern "C"
7684#endif
7685char gethostbyname ();
7686int
7687main ()
7688{
7689return gethostbyname ();
7690 ;
7691 return 0;
7692}
7693_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007694if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007695 ac_cv_lib_bsd_gethostbyname=yes
7696else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007697 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007698fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007699rm -f core conftest.err conftest.$ac_objext \
7700 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007701LIBS=$ac_check_lib_save_LIBS
7702fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007704$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007705if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007706 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7707fi
7708
7709 fi
7710 fi
7711
7712 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7713 # socket/setsockopt and other routines are undefined under SCO ODT
7714 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7715 # on later versions), says Simon Leinen: it contains gethostby*
7716 # variants that don't use the name server (or something). -lsocket
7717 # must be given before -lnsl if both are needed. We assume that
7718 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007719 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7720if test "x$ac_cv_func_connect" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007721
Alexandre Julliard40664c02009-02-11 20:40:58 +01007722fi
7723
Alexandre Julliard40664c02009-02-11 20:40:58 +01007724 if test $ac_cv_func_connect = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007726$as_echo_n "checking for connect in -lsocket... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007727if test "${ac_cv_lib_socket_connect+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007728 $as_echo_n "(cached) " >&6
7729else
7730 ac_check_lib_save_LIBS=$LIBS
7731LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007733/* end confdefs.h. */
7734
7735/* Override any GCC internal prototype to avoid an error.
7736 Use char because int might match the return type of a GCC
7737 builtin and then its argument prototype would still apply. */
7738#ifdef __cplusplus
7739extern "C"
7740#endif
7741char connect ();
7742int
7743main ()
7744{
7745return connect ();
7746 ;
7747 return 0;
7748}
7749_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007750if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007751 ac_cv_lib_socket_connect=yes
7752else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007753 ac_cv_lib_socket_connect=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007754fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007755rm -f core conftest.err conftest.$ac_objext \
7756 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007757LIBS=$ac_check_lib_save_LIBS
7758fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007760$as_echo "$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007761if test "x$ac_cv_lib_socket_connect" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007762 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7763fi
7764
7765 fi
7766
7767 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007768 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7769if test "x$ac_cv_func_remove" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007770
Alexandre Julliard40664c02009-02-11 20:40:58 +01007771fi
7772
Alexandre Julliard40664c02009-02-11 20:40:58 +01007773 if test $ac_cv_func_remove = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007775$as_echo_n "checking for remove in -lposix... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007776if test "${ac_cv_lib_posix_remove+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007777 $as_echo_n "(cached) " >&6
7778else
7779 ac_check_lib_save_LIBS=$LIBS
7780LIBS="-lposix $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007781cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007782/* end confdefs.h. */
7783
7784/* Override any GCC internal prototype to avoid an error.
7785 Use char because int might match the return type of a GCC
7786 builtin and then its argument prototype would still apply. */
7787#ifdef __cplusplus
7788extern "C"
7789#endif
7790char remove ();
7791int
7792main ()
7793{
7794return remove ();
7795 ;
7796 return 0;
7797}
7798_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007799if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007800 ac_cv_lib_posix_remove=yes
7801else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007802 ac_cv_lib_posix_remove=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007803fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007804rm -f core conftest.err conftest.$ac_objext \
7805 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007806LIBS=$ac_check_lib_save_LIBS
7807fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007809$as_echo "$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007810if test "x$ac_cv_lib_posix_remove" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007811 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7812fi
7813
7814 fi
7815
7816 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007817 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7818if test "x$ac_cv_func_shmat" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007819
Alexandre Julliard40664c02009-02-11 20:40:58 +01007820fi
7821
Alexandre Julliard40664c02009-02-11 20:40:58 +01007822 if test $ac_cv_func_shmat = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007824$as_echo_n "checking for shmat in -lipc... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007825if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007826 $as_echo_n "(cached) " >&6
7827else
7828 ac_check_lib_save_LIBS=$LIBS
7829LIBS="-lipc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007831/* end confdefs.h. */
7832
7833/* Override any GCC internal prototype to avoid an error.
7834 Use char because int might match the return type of a GCC
7835 builtin and then its argument prototype would still apply. */
7836#ifdef __cplusplus
7837extern "C"
7838#endif
7839char shmat ();
7840int
7841main ()
7842{
7843return shmat ();
7844 ;
7845 return 0;
7846}
7847_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007848if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007849 ac_cv_lib_ipc_shmat=yes
7850else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007851 ac_cv_lib_ipc_shmat=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007852fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007853rm -f core conftest.err conftest.$ac_objext \
7854 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007855LIBS=$ac_check_lib_save_LIBS
7856fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007858$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007859if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007860 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7861fi
7862
7863 fi
7864 fi
7865
7866 # Check for libraries that X11R6 Xt/Xaw programs need.
7867 ac_save_LDFLAGS=$LDFLAGS
7868 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7869 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7870 # check for ICE first), but we must link in the order -lSM -lICE or
7871 # we get undefined symbols. So assume we have SM if we have ICE.
7872 # These have to be linked with before -lX11, unlike the other
7873 # libraries we check for below, so use a different variable.
7874 # John Interrante, Karl Berry
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007876$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007877if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007878 $as_echo_n "(cached) " >&6
7879else
7880 ac_check_lib_save_LIBS=$LIBS
7881LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007882cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007883/* end confdefs.h. */
7884
7885/* Override any GCC internal prototype to avoid an error.
7886 Use char because int might match the return type of a GCC
7887 builtin and then its argument prototype would still apply. */
7888#ifdef __cplusplus
7889extern "C"
7890#endif
7891char IceConnectionNumber ();
7892int
7893main ()
7894{
7895return IceConnectionNumber ();
7896 ;
7897 return 0;
7898}
7899_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007900if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007901 ac_cv_lib_ICE_IceConnectionNumber=yes
7902else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007903 ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007904fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007905rm -f core conftest.err conftest.$ac_objext \
7906 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007907LIBS=$ac_check_lib_save_LIBS
7908fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007910$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007911if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007912 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7913fi
7914
7915 LDFLAGS=$ac_save_LDFLAGS
7916
7917fi
7918
7919
Rein Klazes7ff12562004-11-09 20:16:35 +00007920if test "$have_x" = "yes"
7921then
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007922 XLIB="-lX11"
Rein Klazes7ff12562004-11-09 20:16:35 +00007923 ac_save_CPPFLAGS="$CPPFLAGS"
7924 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7925
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007927$as_echo_n "checking for -lX11... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007928if test "${ac_cv_lib_soname_X11+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007929 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007930else
7931 ac_check_soname_save_LIBS=$LIBS
7932LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007934/* end confdefs.h. */
7935
7936/* Override any GCC internal prototype to avoid an error.
7937 Use char because int might match the return type of a GCC
7938 builtin and then its argument prototype would still apply. */
7939#ifdef __cplusplus
7940extern "C"
7941#endif
7942char XCreateWindow ();
7943int
7944main ()
7945{
7946return XCreateWindow ();
7947 ;
7948 return 0;
7949}
7950_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007951if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007952 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007953 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 +02007954 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'` ;;
7955 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7956 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007957fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007958rm -f core conftest.err conftest.$ac_objext \
7959 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007960 LIBS=$ac_check_soname_save_LIBS
7961fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007962if test "x$ac_cv_lib_soname_X11" = "x"; then :
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007964$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007965
7966else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007968$as_echo "$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007969
7970cat >>confdefs.h <<_ACEOF
7971#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7972_ACEOF
7973
7974
7975fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007977$as_echo_n "checking for -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007978if test "${ac_cv_lib_soname_Xext+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007979 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007980else
7981 ac_check_soname_save_LIBS=$LIBS
7982LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007984/* end confdefs.h. */
7985
7986/* Override any GCC internal prototype to avoid an error.
7987 Use char because int might match the return type of a GCC
7988 builtin and then its argument prototype would still apply. */
7989#ifdef __cplusplus
7990extern "C"
7991#endif
7992char XextCreateExtension ();
7993int
7994main ()
7995{
7996return XextCreateExtension ();
7997 ;
7998 return 0;
7999}
8000_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008001if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02008002 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008003 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 +02008004 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'` ;;
8005 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8006 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02008007fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008008rm -f core conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02008010 LIBS=$ac_check_soname_save_LIBS
8011fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008012if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008014$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02008015
8016else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008018$as_echo "$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02008019
8020cat >>confdefs.h <<_ACEOF
8021#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8022_ACEOF
8023
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008024 XLIB="-lXext $XLIB"
Alexandre Julliarda8518542007-07-09 22:43:45 +02008025fi
8026
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008027 for ac_header in X11/Xlib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008028 X11/XKBlib.h \
8029 X11/Xutil.h \
Andrew Riedi23e2cb12007-03-22 12:06:19 -07008030 X11/Xcursor/Xcursor.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008031 X11/extensions/shape.h \
8032 X11/extensions/XInput.h \
8033 X11/extensions/XShm.h \
Chris Robinson42584652007-09-22 18:19:08 -07008034 X11/extensions/Xcomposite.h \
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008035 X11/extensions/Xinerama.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008036 X11/extensions/Xrandr.h \
8037 X11/extensions/Xrender.h \
André Hentschel7b285a42009-09-19 19:08:09 +02008038 X11/extensions/xf86vmode.h \
8039 X11/extensions/xf86vmproto.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008040do :
8041 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8042ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
Alexandre Julliard73482142005-08-03 19:21:04 +00008043# include <X11/Xlib.h>
8044#endif
8045#ifdef HAVE_X11_XUTIL_H
8046# include <X11/Xutil.h>
8047#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008048"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008049if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008050 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01008051#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008052_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00008053
8054fi
8055
8056done
8057
8058
8059 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8060 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008062$as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008063if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008064 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008065else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008066 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008067LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008069/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008070
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008071/* Override any GCC internal prototype to avoid an error.
8072 Use char because int might match the return type of a GCC
8073 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008074#ifdef __cplusplus
8075extern "C"
8076#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008077char XkbQueryExtension ();
8078int
8079main ()
8080{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008081return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008082 ;
8083 return 0;
8084}
8085_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008086if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008087 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008088else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008089 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008090fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008091rm -f core conftest.err conftest.$ac_objext \
8092 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008093LIBS=$ac_check_lib_save_LIBS
8094fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008096$as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008097if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
Patrik Stridvall24110281999-02-04 10:09:54 +00008098
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008099$as_echo "#define HAVE_XKB 1" >>confdefs.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008100
Patrik Stridvall24110281999-02-04 10:09:54 +00008101fi
8102
Alexandre Julliard255b4862003-10-15 04:09:55 +00008103 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008104
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008105 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8106 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008108$as_echo_n "checking for -lXcursor... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008109if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008110 $as_echo_n "(cached) " >&6
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008111else
8112 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008113LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008115/* end confdefs.h. */
8116
8117/* Override any GCC internal prototype to avoid an error.
8118 Use char because int might match the return type of a GCC
8119 builtin and then its argument prototype would still apply. */
8120#ifdef __cplusplus
8121extern "C"
8122#endif
8123char XcursorImageLoadCursor ();
8124int
8125main ()
8126{
8127return XcursorImageLoadCursor ();
8128 ;
8129 return 0;
8130}
8131_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008132if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008133 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008134 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 +02008135 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'` ;;
8136 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8137 esac
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008138fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008139rm -f core conftest.err conftest.$ac_objext \
8140 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008141 LIBS=$ac_check_soname_save_LIBS
8142fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008143if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008145$as_echo "not found" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008146
8147else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008149$as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008150
8151cat >>confdefs.h <<_ACEOF
8152#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8153_ACEOF
8154
8155
8156fi
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008157 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008158 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008159 case "x$with_xcursor" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008160 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 +01008161 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008162 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8163This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008164esac
8165fi
8166
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008167 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8168 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008170$as_echo_n "checking for -lXi... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008171if test "${ac_cv_lib_soname_Xi+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008172 $as_echo_n "(cached) " >&6
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008173else
8174 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008175LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008177/* end confdefs.h. */
8178
8179/* Override any GCC internal prototype to avoid an error.
8180 Use char because int might match the return type of a GCC
8181 builtin and then its argument prototype would still apply. */
8182#ifdef __cplusplus
8183extern "C"
8184#endif
8185char XOpenDevice ();
8186int
8187main ()
8188{
8189return XOpenDevice ();
8190 ;
8191 return 0;
8192}
8193_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008194if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008195 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008196 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 +02008197 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'` ;;
8198 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8199 esac
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008200fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008201rm -f core conftest.err conftest.$ac_objext \
8202 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008203 LIBS=$ac_check_soname_save_LIBS
8204fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008205if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008207$as_echo "not found" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008208
8209else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008211$as_echo "$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008212
8213cat >>confdefs.h <<_ACEOF
8214#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8215_ACEOF
8216
8217
8218fi
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008219 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008220 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008221 case "x$with_xinput" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008222 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 +01008223 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008224 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8225This is an error since --with-xinput was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008226esac
8227fi
8228
Alexandre Julliard255b4862003-10-15 04:09:55 +00008229 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8230 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008232$as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008233if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008234 $as_echo_n "(cached) " >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00008235else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008236 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008237LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008238cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008239/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008240
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008241/* Override any GCC internal prototype to avoid an error.
8242 Use char because int might match the return type of a GCC
8243 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008244#ifdef __cplusplus
8245extern "C"
8246#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008247char XShmQueryExtension ();
8248int
8249main ()
8250{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008251return XShmQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008252 ;
8253 return 0;
8254}
8255_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008256if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008257 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00008258else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008259 ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00008260fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008261rm -f core conftest.err conftest.$ac_objext \
8262 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008263LIBS=$ac_check_lib_save_LIBS
8264fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008266$as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008267if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
Francois Jacques5b6879c2000-07-28 23:04:54 +00008268
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008269$as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00008270
Francois Jacques5b6879c2000-07-28 23:04:54 +00008271fi
8272
Alexandre Julliard255b4862003-10-15 04:09:55 +00008273 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008274 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008275 case "x$with_xshm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008276 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 +01008277 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008278 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8279This is an error since --with-xshm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008280esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008281fi
8282
Alexandre Julliard255b4862003-10-15 04:09:55 +00008283 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8284 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008286$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008287if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008288 $as_echo_n "(cached) " >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00008289else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008290 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008291LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008293/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008294
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008295/* Override any GCC internal prototype to avoid an error.
8296 Use char because int might match the return type of a GCC
8297 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008298#ifdef __cplusplus
8299extern "C"
8300#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008301char XShapeQueryExtension ();
8302int
8303main ()
8304{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008305return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008306 ;
8307 return 0;
8308}
8309_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008310if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008311 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00008312else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008313 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00008314fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008315rm -f core conftest.err conftest.$ac_objext \
8316 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008317LIBS=$ac_check_lib_save_LIBS
8318fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008320$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008321if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
Ove Kaavenc90fb252001-01-02 22:39:14 +00008322
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008323$as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00008324
Ove Kaavenc90fb252001-01-02 22:39:14 +00008325fi
8326
Alexandre Julliard255b4862003-10-15 04:09:55 +00008327 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008328 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008329 case "x$with_xshape" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008330 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 +01008331 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008332 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8333This is an error since --with-xshape was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008334esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008335fi
8336
André Hentschel7b285a42009-09-19 19:08:09 +02008337 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 +00008338 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008340$as_echo_n "checking for -lXxf86vm... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008341if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008342 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008343else
Francois Gougeta49beb42008-06-26 14:02:17 +02008344 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008345LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008347/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008348
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008349/* Override any GCC internal prototype to avoid an error.
8350 Use char because int might match the return type of a GCC
8351 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008352#ifdef __cplusplus
8353extern "C"
8354#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008355char XF86VidModeQueryExtension ();
8356int
8357main ()
8358{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008359return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008360 ;
8361 return 0;
8362}
8363_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008364if ac_fn_c_try_link "$LINENO"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008365 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008366 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 +02008367 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'` ;;
8368 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8369 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008370fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008371rm -f core conftest.err conftest.$ac_objext \
8372 conftest$ac_exeext conftest.$ac_ext
Francois Gougeta49beb42008-06-26 14:02:17 +02008373 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008374fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008375if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008377$as_echo "not found" >&6; }
Patrik Stridvall24110281999-02-04 10:09:54 +00008378
Francois Gougeta49beb42008-06-26 14:02:17 +02008379else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008381$as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
Francois Gougeta49beb42008-06-26 14:02:17 +02008382
8383cat >>confdefs.h <<_ACEOF
8384#define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008385_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008386
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008387
Patrik Stridvall24110281999-02-04 10:09:54 +00008388fi
Alexandre Julliard255b4862003-10-15 04:09:55 +00008389 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008390 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008391 case "x$with_xxf86vm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008392 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 +01008393 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008394 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8395This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008396esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008397fi
8398
Alexandre Julliarda8518542007-07-09 22:43:45 +02008399 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 +02008400 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008402$as_echo_n "checking for -lXrender... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008403if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008404 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008405else
8406 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008407LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008409/* end confdefs.h. */
8410
8411/* Override any GCC internal prototype to avoid an error.
8412 Use char because int might match the return type of a GCC
8413 builtin and then its argument prototype would still apply. */
8414#ifdef __cplusplus
8415extern "C"
8416#endif
8417char XRenderQueryExtension ();
8418int
8419main ()
8420{
8421return XRenderQueryExtension ();
8422 ;
8423 return 0;
8424}
8425_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008426if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008427 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008428 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 +02008429 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'` ;;
8430 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8431 esac
Alexandre Julliard629639e2007-07-04 12:47:57 +02008432fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008433rm -f core conftest.err conftest.$ac_objext \
8434 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008435 LIBS=$ac_check_soname_save_LIBS
8436fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008437if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008439$as_echo "not found" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008440
8441else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008443$as_echo "$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008444
8445cat >>confdefs.h <<_ACEOF
8446#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8447_ACEOF
8448
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008450$as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008451if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008452 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008453else
8454 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008455LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008457/* end confdefs.h. */
8458
8459/* Override any GCC internal prototype to avoid an error.
8460 Use char because int might match the return type of a GCC
8461 builtin and then its argument prototype would still apply. */
8462#ifdef __cplusplus
8463extern "C"
8464#endif
8465char XRenderSetPictureTransform ();
8466int
8467main ()
8468{
8469return XRenderSetPictureTransform ();
8470 ;
8471 return 0;
8472}
8473_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008474if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008475 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8476else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008477 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Alexandre Julliard629639e2007-07-04 12:47:57 +02008478fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008479rm -f core conftest.err conftest.$ac_objext \
8480 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008481LIBS=$ac_check_lib_save_LIBS
8482fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008484$as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008485if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008486
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008487$as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
Alexandre Julliard629639e2007-07-04 12:47:57 +02008488
8489fi
8490
8491fi
8492
Alexandre Julliard629639e2007-07-04 12:47:57 +02008493 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008494 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008495 case "x$with_xrender" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008496 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 +01008497 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008498 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8499This is an error since --with-xrender was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008500esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008501fi
8502
Alexandre Julliard629639e2007-07-04 12:47:57 +02008503 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 +00008504 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008506/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008507#include <X11/Xlib.h>
8508#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008509int
8510main ()
8511{
Mike McCormackc7c9f932004-04-07 03:57:35 +00008512static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008513 ;
8514 return 0;
8515}
8516_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008517if ac_fn_c_try_compile "$LINENO"; then :
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008519$as_echo_n "checking for -lXrandr... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008520if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008521 $as_echo_n "(cached) " >&6
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008522else
8523 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008524LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008526/* end confdefs.h. */
8527
8528/* Override any GCC internal prototype to avoid an error.
8529 Use char because int might match the return type of a GCC
8530 builtin and then its argument prototype would still apply. */
8531#ifdef __cplusplus
8532extern "C"
8533#endif
8534char XRRQueryExtension ();
8535int
8536main ()
8537{
8538return XRRQueryExtension ();
8539 ;
8540 return 0;
8541}
8542_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008543if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008544 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008545 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 +02008546 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'` ;;
8547 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8548 esac
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008549fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008550rm -f core conftest.err conftest.$ac_objext \
8551 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008552 LIBS=$ac_check_soname_save_LIBS
8553fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008554if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008556$as_echo "not found" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008557
8558else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008560$as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008561
8562cat >>confdefs.h <<_ACEOF
8563#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8564_ACEOF
8565
8566
8567fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008568fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00008570 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008571 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008572 case "x$with_xrandr" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008573 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 +01008574 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008575 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8576This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008577esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008578fi
8579
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008580 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8581 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008583/* end confdefs.h. */
8584#include <X11/Xlib.h>
8585#include <X11/extensions/Xinerama.h>
8586int
8587main ()
8588{
8589static typeof(XineramaQueryScreens) * func;
8590 ;
8591 return 0;
8592}
8593_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008594if ac_fn_c_try_compile "$LINENO"; then :
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008596$as_echo_n "checking for -lXinerama... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008597if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008598 $as_echo_n "(cached) " >&6
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008599else
8600 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008601LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008603/* end confdefs.h. */
8604
8605/* Override any GCC internal prototype to avoid an error.
8606 Use char because int might match the return type of a GCC
8607 builtin and then its argument prototype would still apply. */
8608#ifdef __cplusplus
8609extern "C"
8610#endif
8611char XineramaQueryScreens ();
8612int
8613main ()
8614{
8615return XineramaQueryScreens ();
8616 ;
8617 return 0;
8618}
8619_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008620if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008621 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008622 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 +02008623 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'` ;;
8624 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8625 esac
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008626fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008627rm -f core conftest.err conftest.$ac_objext \
8628 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008629 LIBS=$ac_check_soname_save_LIBS
8630fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008631if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008633$as_echo "not found" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008634
8635else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008637$as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008638
8639cat >>confdefs.h <<_ACEOF
8640#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8641_ACEOF
8642
8643
8644fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008645fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8647 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008648 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008649 case "x$with_xinerama" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008650 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 +01008651 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008652 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8653This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008654esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008655fi
8656
Chris Robinson42584652007-09-22 18:19:08 -07008657 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8658 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008660$as_echo_n "checking for -lXcomposite... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008661if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008662 $as_echo_n "(cached) " >&6
Chris Robinson42584652007-09-22 18:19:08 -07008663else
8664 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008665LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008667/* end confdefs.h. */
8668
8669/* Override any GCC internal prototype to avoid an error.
8670 Use char because int might match the return type of a GCC
8671 builtin and then its argument prototype would still apply. */
8672#ifdef __cplusplus
8673extern "C"
8674#endif
8675char XCompositeRedirectWindow ();
8676int
8677main ()
8678{
8679return XCompositeRedirectWindow ();
8680 ;
8681 return 0;
8682}
8683_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008684if ac_fn_c_try_link "$LINENO"; then :
Chris Robinson42584652007-09-22 18:19:08 -07008685 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008686 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 -07008687 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'` ;;
8688 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8689 esac
Chris Robinson42584652007-09-22 18:19:08 -07008690fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008691rm -f core conftest.err conftest.$ac_objext \
8692 conftest$ac_exeext conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008693 LIBS=$ac_check_soname_save_LIBS
8694fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008695if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008697$as_echo "not found" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008698
8699else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008701$as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008702
8703cat >>confdefs.h <<_ACEOF
8704#define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8705_ACEOF
8706
8707
8708fi
Chris Robinson42584652007-09-22 18:19:08 -07008709 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008710 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008711 case "x$with_xcomposite" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008712 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 +01008713 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008714 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8715This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008716esac
Chris Robinson42584652007-09-22 18:19:08 -07008717fi
8718
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008719 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 +09008720#include <X11/Xlib.h>
8721#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008722"
8723if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008724
8725cat >>confdefs.h <<_ACEOF
8726#define HAVE_XICCALLBACK_CALLBACK 1
8727_ACEOF
8728
8729
8730fi
8731
8732
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008733
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008734 opengl_msg=""
8735 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008736 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008737 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8738do :
8739 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8740ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
Alexandre Julliard73482142005-08-03 19:21:04 +00008741# include <GL/glx.h>
8742#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008743"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008744if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008745 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01008746#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008747_ACEOF
8748
8749fi
8750
8751done
8752
Alexandre Julliard73482142005-08-03 19:21:04 +00008753 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8754 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008756$as_echo_n "checking for up-to-date OpenGL version... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008757if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008758 $as_echo_n "(cached) " >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008759else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008761/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008762#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008763int
8764main ()
8765{
Lionel Ulmer5c085701999-02-28 19:48:53 +00008766GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008767 ;
8768 return 0;
8769}
8770_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008771if ac_fn_c_try_compile "$LINENO"; then :
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008772 wine_cv_opengl_header_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008773else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008774 wine_cv_opengl_header_version_OK="no"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008775fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008777fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008779$as_echo "$wine_cv_opengl_header_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008780
Alexandre Julliardcc6a08c2006-08-24 14:34:22 +02008781 if test "$wine_cv_opengl_header_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008782 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008784$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008785if test "${ac_cv_lib_soname_GL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008786 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008787else
Alexandre Julliard31353e12007-07-04 12:44:12 +02008788 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008789LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008791/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008792
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008793/* Override any GCC internal prototype to avoid an error.
8794 Use char because int might match the return type of a GCC
8795 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008796#ifdef __cplusplus
8797extern "C"
8798#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008799char glXCreateContext ();
8800int
8801main ()
8802{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008803return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008804 ;
8805 return 0;
8806}
8807_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008808if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard31353e12007-07-04 12:44:12 +02008809 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008810 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 +02008811 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'` ;;
8812 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8813 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008814fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008815rm -f core conftest.err conftest.$ac_objext \
8816 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard31353e12007-07-04 12:44:12 +02008817 LIBS=$ac_check_soname_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008818fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008819if test "x$ac_cv_lib_soname_GL" = "x"; then :
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008821$as_echo "not found" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008823$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008824if test "${ac_cv_lib_soname_GL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008825 $as_echo_n "(cached) " >&6
Francois Gougetd701ee22007-12-18 10:17:20 +01008826else
8827 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008828LIBS="-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 +02008829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008830/* end confdefs.h. */
8831
8832/* Override any GCC internal prototype to avoid an error.
8833 Use char because int might match the return type of a GCC
8834 builtin and then its argument prototype would still apply. */
8835#ifdef __cplusplus
8836extern "C"
8837#endif
8838char glXCreateContext ();
8839int
8840main ()
8841{
8842return glXCreateContext ();
8843 ;
8844 return 0;
8845}
8846_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008847if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetd701ee22007-12-18 10:17:20 +01008848 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008849 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 +01008850 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'` ;;
8851 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8852 esac
Francois Gougetd701ee22007-12-18 10:17:20 +01008853fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008854rm -f core conftest.err conftest.$ac_objext \
8855 conftest$ac_exeext conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008856 LIBS=$ac_check_soname_save_LIBS
8857fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008858if test "x$ac_cv_lib_soname_GL" = "x"; then :
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008860$as_echo "not found" >&6; }
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008861 if test -f /usr/X11R6/lib/libGL.a
Francois Gougetd701ee22007-12-18 10:17:20 +01008862 then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008863 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008864This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
Francois Gougetd701ee22007-12-18 10:17:20 +01008865 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008866 opengl_msg="No OpenGL library found on this system."
Francois Gougetd701ee22007-12-18 10:17:20 +01008867 fi
8868else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008870$as_echo "$ac_cv_lib_soname_GL" >&6; }
Francois Gougetd701ee22007-12-18 10:17:20 +01008871
8872cat >>confdefs.h <<_ACEOF
8873#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8874_ACEOF
8875
8876 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 +01008877
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008878$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Francois Gougetd701ee22007-12-18 10:17:20 +01008879
8880fi
Alexandre Julliard31353e12007-07-04 12:44:12 +02008881else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008883$as_echo "$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard31353e12007-07-04 12:44:12 +02008884
8885cat >>confdefs.h <<_ACEOF
8886#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8887_ACEOF
8888
8889 OPENGL_LIBS="-lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008890
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008891$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008892
Alexandre Julliardc84c4782006-09-22 09:36:12 +02008893fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008894 if test "$ac_cv_header_GL_glu_h" = "yes"
8895 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008897$as_echo_n "checking for -lGLU... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008898if test "${ac_cv_lib_soname_GLU+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008899 $as_echo_n "(cached) " >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008900else
Alexandre Julliardad798732008-05-01 13:29:02 +02008901 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008902LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008904/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008905
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008906/* Override any GCC internal prototype to avoid an error.
8907 Use char because int might match the return type of a GCC
8908 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008909#ifdef __cplusplus
8910extern "C"
8911#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008912char gluLookAt ();
8913int
8914main ()
8915{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008916return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008917 ;
8918 return 0;
8919}
8920_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008921if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008922 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008923 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 +02008924 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'` ;;
8925 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8926 esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008927fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008928rm -f core conftest.err conftest.$ac_objext \
8929 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardad798732008-05-01 13:29:02 +02008930 LIBS=$ac_check_soname_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008931fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008932if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008934$as_echo "not found" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008935
Alexandre Julliardad798732008-05-01 13:29:02 +02008936else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008938$as_echo "$ac_cv_lib_soname_GLU" >&6; }
Alexandre Julliardad798732008-05-01 13:29:02 +02008939
8940cat >>confdefs.h <<_ACEOF
8941#define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8942_ACEOF
8943
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02008944
Alexandre Julliardad798732008-05-01 13:29:02 +02008945fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008946 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008947 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008948 case "x$with_glu" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008949 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 +02008950 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008951 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8952This is an error since --with-glu was requested." "$LINENO" 5 ;;
Alexandre Julliardad798732008-05-01 13:29:02 +02008953esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008954fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008955 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008956 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008957 fi
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008958 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008959 opengl_msg="OpenGL development headers not found."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008960 fi
Alexandre Julliard8e9504d2008-09-24 13:11:11 +02008961 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8962 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8963 else
8964 enable_opengl32=${enable_opengl32:-no}
8965 enable_glu32=${enable_glu32:-no}
Patrik Stridvall24110281999-02-04 10:09:54 +00008966 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008967 if test -n "$opengl_msg"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008968 case "x$with_opengl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008969 x) as_fn_append wine_warnings "|$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008970OpenGL and Direct3D won't be supported." ;;
8971 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008972 *) as_fn_error $? "$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008973OpenGL and Direct3D won't be supported.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008974This is an error since --with-opengl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008975esac
8976fi
8977
Francois Gouget6f670b12002-10-10 17:54:27 +00008978 NASLIBS=""
8979
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008980 for ac_header in audio/audiolib.h
8981do :
8982 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8983if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008984 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008985#define HAVE_AUDIO_AUDIOLIB_H 1
Francois Gouget6f670b12002-10-10 17:54:27 +00008986_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008987 for ac_header in audio/soundlib.h
8988do :
8989 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8990"
8991if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008992 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008993#define HAVE_AUDIO_SOUNDLIB_H 1
Francois Gouget6f670b12002-10-10 17:54:27 +00008994_ACEOF
8995
8996fi
8997
8998done
8999
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009001$as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009002if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009003 $as_echo_n "(cached) " >&6
Francois Gouget6f670b12002-10-10 17:54:27 +00009004else
9005 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02009006LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009008/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009009
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009010/* Override any GCC internal prototype to avoid an error.
9011 Use char because int might match the return type of a GCC
9012 builtin and then its argument prototype would still apply. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009013#ifdef __cplusplus
9014extern "C"
9015#endif
Francois Gouget6f670b12002-10-10 17:54:27 +00009016char AuCreateFlow ();
9017int
9018main ()
9019{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009020return AuCreateFlow ();
Francois Gouget6f670b12002-10-10 17:54:27 +00009021 ;
9022 return 0;
9023}
9024_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009025if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00009026 ac_cv_lib_audio_AuCreateFlow=yes
9027else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009028 ac_cv_lib_audio_AuCreateFlow=no
Francois Gouget6f670b12002-10-10 17:54:27 +00009029fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009030rm -f core conftest.err conftest.$ac_objext \
9031 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00009032LIBS=$ac_check_lib_save_LIBS
9033fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009035$as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009036if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00009037
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009038$as_echo "#define HAVE_NAS 1" >>confdefs.h
Francois Gouget6f670b12002-10-10 17:54:27 +00009039
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009041$as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009042if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009043 $as_echo_n "(cached) " >&6
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009044else
9045 ac_check_lib_save_LIBS=$LIBS
9046LIBS="-lXau $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009048/* end confdefs.h. */
9049
9050/* Override any GCC internal prototype to avoid an error.
9051 Use char because int might match the return type of a GCC
9052 builtin and then its argument prototype would still apply. */
9053#ifdef __cplusplus
9054extern "C"
9055#endif
9056char XauGetBestAuthByAddr ();
9057int
9058main ()
9059{
9060return XauGetBestAuthByAddr ();
9061 ;
9062 return 0;
9063}
9064_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009065if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009066 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9067else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009068 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009069fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009070rm -f core conftest.err conftest.$ac_objext \
9071 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009072LIBS=$ac_check_lib_save_LIBS
9073fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009075$as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009076if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
Alexandre Julliardfd03c502009-08-17 15:11:08 +02009077 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009078else
Alexandre Julliardfd03c502009-08-17 15:11:08 +02009079 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009080fi
9081
9082
Francois Gouget6f670b12002-10-10 17:54:27 +00009083fi
9084
9085fi
9086
9087done
9088
9089
Ove Kaaven1eb593c1999-02-14 09:34:46 +00009090 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00009091else
9092 XLIB=""
9093 X_CFLAGS=""
9094 X_LIBS=""
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02009095 enable_winex11_drv=${enable_winex11_drv:-no}
9096 enable_opengl32=${enable_opengl32:-no}
9097 enable_glu32=${enable_glu32:-no}
Patrik Stridvallea584721998-11-01 16:22:07 +00009098fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009099if test "x$XLIB" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009100 case "x$with_x" in
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009101 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009102 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
Gerald Pfeifer5805d8b2010-09-19 21:10:13 +02009103without X support, which probably isn't what you want. You will need
9104to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009105Use the --without-x option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009106esac
9107fi
9108
Adam Martinson2eb2f712010-12-28 12:46:09 -06009109if test "$ac_cv_header_CL_cl_h" = "yes"
Peter Urbanec65c84d72010-12-02 23:41:48 +11009110then
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9112$as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9113if test "${ac_cv_lib_OpenCL_clGetPlatformInfo+set}" = set; then :
9114 $as_echo_n "(cached) " >&6
9115else
9116 ac_check_lib_save_LIBS=$LIBS
9117LIBS="-lOpenCL $LIBS"
9118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119/* end confdefs.h. */
9120
9121/* Override any GCC internal prototype to avoid an error.
9122 Use char because int might match the return type of a GCC
9123 builtin and then its argument prototype would still apply. */
9124#ifdef __cplusplus
9125extern "C"
9126#endif
9127char clGetPlatformInfo ();
9128int
9129main ()
9130{
9131return clGetPlatformInfo ();
9132 ;
9133 return 0;
9134}
9135_ACEOF
9136if ac_fn_c_try_link "$LINENO"; then :
9137 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9138else
9139 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9140fi
9141rm -f core conftest.err conftest.$ac_objext \
9142 conftest$ac_exeext conftest.$ac_ext
9143LIBS=$ac_check_lib_save_LIBS
9144fi
9145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9146$as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9147if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = x""yes; then :
9148 LIBOPENCL="-lOpenCL"
9149
9150fi
9151
9152fi
9153if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9154 case "x$with_opencl" in
9155 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9156 xno) ;;
9157 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9158This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9159esac
9160fi
9161test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9162
Alexandre Julliard902da691995-11-05 14:39:02 +00009163
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009164XML2LIBS=""
9165
9166XML2INCL=""
9167
Mike McCormackf3719a82005-09-03 09:39:38 +00009168XSLTINCL=""
9169
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009170if test "x$with_xml" != "xno"
Mike McCormack90c75bd2005-08-08 18:36:53 +00009171then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009172 ac_save_CPPFLAGS="$CPPFLAGS"
9173 if test "$PKG_CONFIG" != "false"
9174 then
9175 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9176 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9177 else
9178 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9179 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9180 fi
9181 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009182 for ac_header in libxml/parser.h libxml/xmlsave.h libxml/SAX2.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009183do :
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009184 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9185ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9186if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009187 cat >>confdefs.h <<_ACEOF
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009188#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009189_ACEOF
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009190
9191fi
9192
9193done
9194
9195 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"
9196 then
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009198$as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009199if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009200 $as_echo_n "(cached) " >&6
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009201else
9202 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +00009203LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009205/* end confdefs.h. */
9206
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009207/* Override any GCC internal prototype to avoid an error.
9208 Use char because int might match the return type of a GCC
9209 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009210#ifdef __cplusplus
9211extern "C"
9212#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +00009213char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009214int
9215main ()
9216{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009217return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009218 ;
9219 return 0;
9220}
9221_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009222if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack90c75bd2005-08-08 18:36:53 +00009223 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009224else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009225 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009226fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009227rm -f core conftest.err conftest.$ac_objext \
9228 conftest$ac_exeext conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009229LIBS=$ac_check_lib_save_LIBS
9230fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009232$as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009233if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009234
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009235$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009236
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009237 XML2LIBS="$ac_xml_libs"
9238 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009239fi
9240
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009242$as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009243if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009244 $as_echo_n "(cached) " >&6
Mike McCormack70adb8f2005-08-12 10:35:17 +00009245else
9246 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009247LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009248cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009249/* end confdefs.h. */
9250
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009251/* Override any GCC internal prototype to avoid an error.
9252 Use char because int might match the return type of a GCC
9253 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +00009254#ifdef __cplusplus
9255extern "C"
9256#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +00009257char xmlReadMemory ();
9258int
9259main ()
9260{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009261return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +00009262 ;
9263 return 0;
9264}
9265_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009266if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009267 ac_cv_lib_xml2_xmlReadMemory=yes
9268else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009269 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +00009270fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009271rm -f core conftest.err conftest.$ac_objext \
9272 conftest$ac_exeext conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009273LIBS=$ac_check_lib_save_LIBS
9274fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009276$as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009277if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009278
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009279$as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
Mike McCormack70adb8f2005-08-12 10:35:17 +00009280
9281fi
9282
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009284$as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009285if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009286 $as_echo_n "(cached) " >&6
Lei Zhang6a530ab2006-11-29 15:59:03 -08009287else
9288 ac_check_lib_save_LIBS=$LIBS
9289LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009291/* end confdefs.h. */
9292
9293/* Override any GCC internal prototype to avoid an error.
9294 Use char because int might match the return type of a GCC
9295 builtin and then its argument prototype would still apply. */
9296#ifdef __cplusplus
9297extern "C"
9298#endif
9299char xmlNewDocPI ();
9300int
9301main ()
9302{
9303return xmlNewDocPI ();
9304 ;
9305 return 0;
9306}
9307_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009308if ac_fn_c_try_link "$LINENO"; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009309 ac_cv_lib_xml2_xmlNewDocPI=yes
9310else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009311 ac_cv_lib_xml2_xmlNewDocPI=no
Lei Zhang6a530ab2006-11-29 15:59:03 -08009312fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009313rm -f core conftest.err conftest.$ac_objext \
9314 conftest$ac_exeext conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009315LIBS=$ac_check_lib_save_LIBS
9316fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009318$as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009319if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009320
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009321$as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
Lei Zhang6a530ab2006-11-29 15:59:03 -08009322
9323fi
9324
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
Adam Martinson6ee22312010-11-22 20:54:54 -06009326$as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9327if test "${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+set}" = set; then :
9328 $as_echo_n "(cached) " >&6
9329else
9330 ac_check_lib_save_LIBS=$LIBS
9331LIBS="-lxml2 $ac_xml_libs $LIBS"
9332cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333/* end confdefs.h. */
9334
9335/* Override any GCC internal prototype to avoid an error.
9336 Use char because int might match the return type of a GCC
9337 builtin and then its argument prototype would still apply. */
9338#ifdef __cplusplus
9339extern "C"
9340#endif
9341char xmlSchemaSetParserStructuredErrors ();
9342int
9343main ()
9344{
9345return xmlSchemaSetParserStructuredErrors ();
9346 ;
9347 return 0;
9348}
9349_ACEOF
9350if ac_fn_c_try_link "$LINENO"; then :
9351 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9352else
9353 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9354fi
9355rm -f core conftest.err conftest.$ac_objext \
9356 conftest$ac_exeext conftest.$ac_ext
9357LIBS=$ac_check_lib_save_LIBS
9358fi
9359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9360$as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9361if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = x""yes; then :
9362
9363$as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9364
9365fi
9366
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009368$as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9369if test "${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+set}" = set; then :
9370 $as_echo_n "(cached) " >&6
9371else
9372 ac_check_lib_save_LIBS=$LIBS
9373LIBS="-lxml2 $ac_xml_libs $LIBS"
9374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9375/* end confdefs.h. */
9376
9377/* Override any GCC internal prototype to avoid an error.
9378 Use char because int might match the return type of a GCC
9379 builtin and then its argument prototype would still apply. */
9380#ifdef __cplusplus
9381extern "C"
9382#endif
9383char xmlSchemaSetValidStructuredErrors ();
9384int
9385main ()
9386{
9387return xmlSchemaSetValidStructuredErrors ();
9388 ;
9389 return 0;
9390}
9391_ACEOF
9392if ac_fn_c_try_link "$LINENO"; then :
9393 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9394else
9395 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9396fi
9397rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
9399LIBS=$ac_check_lib_save_LIBS
9400fi
9401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9402$as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9403if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then :
9404
9405$as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9406
9407fi
9408
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
Adam Martinson82f73c82010-11-11 15:16:24 -06009410$as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9411if test "${ac_cv_lib_xml2_xmlFirstElementChild+set}" = set; then :
9412 $as_echo_n "(cached) " >&6
9413else
9414 ac_check_lib_save_LIBS=$LIBS
9415LIBS="-lxml2 $ac_xml_libs $LIBS"
9416cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9417/* end confdefs.h. */
9418
9419/* Override any GCC internal prototype to avoid an error.
9420 Use char because int might match the return type of a GCC
9421 builtin and then its argument prototype would still apply. */
9422#ifdef __cplusplus
9423extern "C"
9424#endif
9425char xmlFirstElementChild ();
9426int
9427main ()
9428{
9429return xmlFirstElementChild ();
9430 ;
9431 return 0;
9432}
9433_ACEOF
9434if ac_fn_c_try_link "$LINENO"; then :
9435 ac_cv_lib_xml2_xmlFirstElementChild=yes
9436else
9437 ac_cv_lib_xml2_xmlFirstElementChild=no
9438fi
9439rm -f core conftest.err conftest.$ac_objext \
9440 conftest$ac_exeext conftest.$ac_ext
9441LIBS=$ac_check_lib_save_LIBS
9442fi
9443{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9444$as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9445if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = x""yes; then :
9446
9447$as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9448
9449fi
9450
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009451 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
Adam Martinson9408b492010-11-02 17:20:08 -05009452"
9453if test "x$ac_cv_type_xmlDocProperties" = x""yes; then :
9454
9455$as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9456
9457fi
9458
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009459 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009460 CPPFLAGS="$ac_save_CPPFLAGS"
9461fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009462if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009463 case "x$with_xml" in
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009464 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 +01009465 xno) ;;
Andrew Nguyen6097f2f2011-02-21 05:01:50 -06009466 *) as_fn_error $? "libxml2 ${notice_platform}development files not found (or too old), XML won't be supported.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009467This is an error since --with-xml was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009468esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009469fi
9470
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009471if test "x$with_xslt" != "xno"
Emmanuel Maillard2a98b402007-06-22 02:58:39 +02009472then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009473 if test "$PKG_CONFIG" != "false"
9474 then
9475 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9476 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9477 else
9478 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9479 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9480 fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009481 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009482 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009483 for ac_header in libxslt/pattern.h libxslt/transform.h
9484do :
9485 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9486ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
Vincent Bérond7f64242005-09-15 09:39:09 +00009487# include <libxslt/pattern.h>
9488#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009489"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009490if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mike McCormackf3719a82005-09-03 09:39:38 +00009491 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009492#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackf3719a82005-09-03 09:39:38 +00009493_ACEOF
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009494
9495fi
9496
9497done
9498
9499 CPPFLAGS="$ac_save_CPPFLAGS"
9500 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9501 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009503$as_echo_n "checking for -lxslt... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009504if test "${ac_cv_lib_soname_xslt+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009505 $as_echo_n "(cached) " >&6
Mike McCormackf3719a82005-09-03 09:39:38 +00009506else
Francois Gouget3d384f12008-11-17 19:29:32 +01009507 ac_check_soname_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009508LIBS="-lxslt $ac_xslt_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +00009510/* end confdefs.h. */
9511
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009512/* Override any GCC internal prototype to avoid an error.
9513 Use char because int might match the return type of a GCC
9514 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +00009515#ifdef __cplusplus
9516extern "C"
9517#endif
Mike McCormackf3719a82005-09-03 09:39:38 +00009518char xsltCompilePattern ();
9519int
9520main ()
9521{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009522return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +00009523 ;
9524 return 0;
9525}
9526_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009527if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget3d384f12008-11-17 19:29:32 +01009528 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009529 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 +01009530 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'` ;;
9531 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9532 esac
Mike McCormackf3719a82005-09-03 09:39:38 +00009533fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009534rm -f core conftest.err conftest.$ac_objext \
9535 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3d384f12008-11-17 19:29:32 +01009536 LIBS=$ac_check_soname_save_LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009537fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009538if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009540$as_echo "not found" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +00009541
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009542else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009544$as_echo "$ac_cv_lib_soname_xslt" >&6; }
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009545
Francois Gouget3d384f12008-11-17 19:29:32 +01009546cat >>confdefs.h <<_ACEOF
9547#define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009548_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +00009549
Francois Gouget3d384f12008-11-17 19:29:32 +01009550 XSLTINCL="$ac_xslt_cflags"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009551fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009552 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009553fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009554if test "x$ac_cv_lib_soname_xslt" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009555 case "x$with_xslt" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009556 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 +01009557 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009558 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9559This is an error since --with-xslt was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009560esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009561fi
9562
Alexandre Julliard00068982006-04-18 16:47:53 +02009563HALINCL=""
9564
Francois Gouget295a0cd2009-01-09 20:22:22 +01009565if test "x$with_hal" != "xno"
Alexandre Julliard00068982006-04-18 16:47:53 +02009566then
9567 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009568 if test "$PKG_CONFIG" != "false"
9569 then
9570 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9571 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9572 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9573 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009574 for ac_header in dbus/dbus.h hal/libhal.h
9575do :
9576 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9577ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009578if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliard00068982006-04-18 16:47:53 +02009579 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009580#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliard00068982006-04-18 16:47:53 +02009581_ACEOF
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009582
9583fi
9584
9585done
9586
9587 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9588 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009590$as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009591if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009592 $as_echo_n "(cached) " >&6
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009593else
9594 ac_check_lib_save_LIBS=$LIBS
9595LIBS="-ldbus-1 $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009597/* end confdefs.h. */
9598
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009599/* Override any GCC internal prototype to avoid an error.
9600 Use char because int might match the return type of a GCC
9601 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009602#ifdef __cplusplus
9603extern "C"
9604#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009605char dbus_connection_close ();
9606int
9607main ()
9608{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009609return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009610 ;
9611 return 0;
9612}
9613_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009614if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009615 ac_cv_lib_dbus_1_dbus_connection_close=yes
9616else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009617 ac_cv_lib_dbus_1_dbus_connection_close=no
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009618fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009619rm -f core conftest.err conftest.$ac_objext \
9620 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009621LIBS=$ac_check_lib_save_LIBS
9622fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009624$as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009625if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009627$as_echo_n "checking for -lhal... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009628if test "${ac_cv_lib_soname_hal+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009629 $as_echo_n "(cached) " >&6
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009630else
9631 ac_check_soname_save_LIBS=$LIBS
9632LIBS="-lhal $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009634/* end confdefs.h. */
Alexandre Julliard00068982006-04-18 16:47:53 +02009635
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009636/* Override any GCC internal prototype to avoid an error.
9637 Use char because int might match the return type of a GCC
9638 builtin and then its argument prototype would still apply. */
9639#ifdef __cplusplus
9640extern "C"
9641#endif
9642char libhal_ctx_new ();
9643int
9644main ()
9645{
9646return libhal_ctx_new ();
9647 ;
9648 return 0;
9649}
9650_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009651if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009652 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009653 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 +02009654 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'` ;;
9655 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9656 esac
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009657fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009658rm -f core conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009660 LIBS=$ac_check_soname_save_LIBS
9661fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009662if test "x$ac_cv_lib_soname_hal" = "x"; then :
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009664$as_echo "not found" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009665
9666else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009668$as_echo "$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009669
9670cat >>confdefs.h <<_ACEOF
9671#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
Alexandre Julliard00068982006-04-18 16:47:53 +02009672_ACEOF
9673
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009674 HALINCL="$ac_hal_cflags"
Alexandre Julliard00068982006-04-18 16:47:53 +02009675fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009676fi
9677
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009678 fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009679 CPPFLAGS="$ac_save_CPPFLAGS"
9680fi
Alexandre Julliardd8062732010-04-26 06:57:49 -05009681if 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 +01009682 case "x$with_hal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009683 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 +01009684 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009685 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9686This is an error since --with-hal was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009687esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009688fi
9689
Francois Gouget295a0cd2009-01-09 20:22:22 +01009690if test "x$with_gnutls" != "xno"
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009691then
9692 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009693 if test "$PKG_CONFIG" != "false"
9694 then
9695 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9696 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9697 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9698 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009699 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9700if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gouget3aae9542008-10-24 11:24:58 +02009702/* end confdefs.h. */
9703#include <gnutls/gnutls.h>
9704int
9705main ()
9706{
Henri Verbeet8c4a2972008-12-30 09:45:20 +01009707typeof(gnutls_mac_get_key_size) *pfunc;
Francois Gouget3aae9542008-10-24 11:24:58 +02009708 ;
9709 return 0;
9710}
9711_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009712if ac_fn_c_try_compile "$LINENO"; then :
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009714$as_echo_n "checking for -lgnutls... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009715if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009716 $as_echo_n "(cached) " >&6
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009717else
9718 ac_check_soname_save_LIBS=$LIBS
9719LIBS="-lgnutls $ac_gnutls_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009721/* end confdefs.h. */
9722
9723/* Override any GCC internal prototype to avoid an error.
9724 Use char because int might match the return type of a GCC
9725 builtin and then its argument prototype would still apply. */
9726#ifdef __cplusplus
9727extern "C"
9728#endif
9729char gnutls_global_init ();
9730int
9731main ()
9732{
9733return gnutls_global_init ();
9734 ;
9735 return 0;
9736}
9737_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009738if ac_fn_c_try_link "$LINENO"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009739 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009740 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 +02009741 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'` ;;
9742 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9743 esac
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009744fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009745rm -f core conftest.err conftest.$ac_objext \
9746 conftest$ac_exeext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009747 LIBS=$ac_check_soname_save_LIBS
9748fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009749if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009751$as_echo "not found" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009752
9753else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009755$as_echo "$ac_cv_lib_soname_gnutls" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009756
9757cat >>confdefs.h <<_ACEOF
9758#define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9759_ACEOF
9760
9761 GNUTLSINCL="$ac_gnutls_cflags"
9762
9763fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009764fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009766fi
9767
9768
9769 CPPFLAGS="$ac_save_CPPFLAGS"
9770fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009771if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009772 case "x$with_gnutls" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009773 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009774 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009775 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9776This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009777esac
9778fi
9779
Alexandre Julliard48957682001-12-26 23:08:31 +00009780CURSESLIBS=""
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009781if test "$ac_cv_header_ncurses_h" = "yes"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00009782then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009784$as_echo_n "checking for -lncurses... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009785if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009786 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009787else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009788 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009789LIBS="-lncurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009791/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009792
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009793/* Override any GCC internal prototype to avoid an error.
9794 Use char because int might match the return type of a GCC
9795 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009796#ifdef __cplusplus
9797extern "C"
9798#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009799char waddch ();
9800int
9801main ()
9802{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009803return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009804 ;
9805 return 0;
9806}
9807_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009808if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009809 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009810 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 +02009811 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'` ;;
9812 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9813 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009814fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009815rm -f core conftest.err conftest.$ac_objext \
9816 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009817 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009818fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009819if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009821$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009822
9823else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009825$as_echo "$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009826
9827cat >>confdefs.h <<_ACEOF
9828#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9829_ACEOF
9830
9831 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009832fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009833elif test "$ac_cv_header_curses_h" = "yes"
9834then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009836$as_echo_n "checking for -lcurses... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009837if test "${ac_cv_lib_soname_curses+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009838 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009839else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009840 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009841LIBS="-lcurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009843/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009844
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009845/* Override any GCC internal prototype to avoid an error.
9846 Use char because int might match the return type of a GCC
9847 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009848#ifdef __cplusplus
9849extern "C"
9850#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009851char waddch ();
9852int
9853main ()
9854{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009855return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009856 ;
9857 return 0;
9858}
9859_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009860if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009861 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009862 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 +02009863 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'` ;;
9864 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9865 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009866fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009867rm -f core conftest.err conftest.$ac_objext \
9868 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009869 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009870fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009871if test "x$ac_cv_lib_soname_curses" = "x"; then :
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009873$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009874
9875else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009877$as_echo "$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009878
9879cat >>confdefs.h <<_ACEOF
9880#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9881_ACEOF
9882
9883 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009884fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009885fi
9886ac_save_LIBS="$LIBS"
9887LIBS="$LIBS $CURSESLIBS"
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009888for ac_func in mousemask
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009889do :
9890 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9891if test "x$ac_cv_func_mousemask" = x""yes; then :
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009892 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009893#define HAVE_MOUSEMASK 1
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009894_ACEOF
9895
9896fi
9897done
9898
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009899LIBS="$ac_save_LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009900if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009901 case "x$with_curses" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009902 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 +01009903 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009904 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9905This is an error since --with-curses was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009906esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009907fi
9908
Francois Gouget3fe5d802009-01-14 14:16:06 +01009909if test "x$with_sane" != "xno"
9910then
9911 ac_save_CPPFLAGS="$CPPFLAGS"
9912 # Extract the first word of "sane-config", so it can be a program name with args.
Shi Quan He6b0720f2002-03-21 02:58:39 +00009913set dummy sane-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009915$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009916if test "${ac_cv_prog_sane_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009917 $as_echo_n "(cached) " >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009918else
9919 if test -n "$sane_devel"; then
9920 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9921else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009922as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9923for as_dir in $PATH
9924do
9925 IFS=$as_save_IFS
9926 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009927 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009928 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 +00009929 ac_cv_prog_sane_devel="sane-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009931 break 2
9932 fi
9933done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009934 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009935IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +00009936
9937 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9938fi
9939fi
9940sane_devel=$ac_cv_prog_sane_devel
9941if test -n "$sane_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009943$as_echo "$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009944else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009946$as_echo "no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009947fi
9948
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009949
Francois Gouget3fe5d802009-01-14 14:16:06 +01009950 if test "$sane_devel" != "no"
9951 then
9952 ac_sane_incl="`$sane_devel --cflags`"
9953 ac_sane_libs="`$sane_devel --ldflags`"
9954 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9955 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009956 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9957if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009959$as_echo_n "checking for -lsane... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009960if test "${ac_cv_lib_soname_sane+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009961 $as_echo_n "(cached) " >&6
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009962else
9963 ac_check_soname_save_LIBS=$LIBS
Francois Gougeta9d7bab2008-07-20 22:41:41 +02009964LIBS="-lsane $ac_sane_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009966/* end confdefs.h. */
9967
9968/* Override any GCC internal prototype to avoid an error.
9969 Use char because int might match the return type of a GCC
9970 builtin and then its argument prototype would still apply. */
9971#ifdef __cplusplus
9972extern "C"
9973#endif
9974char sane_init ();
9975int
9976main ()
9977{
9978return sane_init ();
9979 ;
9980 return 0;
9981}
9982_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009983if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009984 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009985 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 +02009986 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'` ;;
9987 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9988 esac
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009989fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009990rm -f core conftest.err conftest.$ac_objext \
9991 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009992 LIBS=$ac_check_soname_save_LIBS
9993fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009994if test "x$ac_cv_lib_soname_sane" = "x"; then :
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009996$as_echo "not found" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009997
9998else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010000$as_echo "$ac_cv_lib_soname_sane" >&6; }
Alexandre Julliard418e74b2007-07-02 19:42:13 +020010001
10002cat >>confdefs.h <<_ACEOF
10003#define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
10004_ACEOF
10005
10006 SANEINCL="$ac_sane_incl"
10007
10008fi
Shi Quan He6b0720f2002-03-21 02:58:39 +000010009fi
10010
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010011
Shi Quan He6b0720f2002-03-21 02:58:39 +000010012 CPPFLAGS="$ac_save_CPPFLAGS"
10013fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010014if test "x$ac_cv_lib_soname_sane" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010015 case "x$with_sane" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010016 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 +010010017 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010018 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10019This is an error since --with-sane was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010020esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010021fi
10022
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +010010023if test "x$with_v4l" != "xno"
10024then
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10026$as_echo_n "checking for -lv4l1... " >&6; }
10027if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
10028 $as_echo_n "(cached) " >&6
10029else
10030 ac_check_soname_save_LIBS=$LIBS
10031LIBS="-lv4l1 $LIBS"
10032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10033/* end confdefs.h. */
10034
10035/* Override any GCC internal prototype to avoid an error.
10036 Use char because int might match the return type of a GCC
10037 builtin and then its argument prototype would still apply. */
10038#ifdef __cplusplus
10039extern "C"
10040#endif
10041char v4l1_open ();
10042int
10043main ()
10044{
10045return v4l1_open ();
10046 ;
10047 return 0;
10048}
10049_ACEOF
10050if ac_fn_c_try_link "$LINENO"; then :
10051 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010052 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 +010010053 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'` ;;
10054 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10055 esac
10056fi
10057rm -f core conftest.err conftest.$ac_objext \
10058 conftest$ac_exeext conftest.$ac_ext
10059 LIBS=$ac_check_soname_save_LIBS
10060fi
10061if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10063$as_echo "not found" >&6; }
10064
10065else
10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10067$as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10068
10069cat >>confdefs.h <<_ACEOF
10070#define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10071_ACEOF
10072
10073
10074fi
10075fi
10076if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10077 case "x$with_v4l" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010078 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +010010079 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010080 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10081This is an error since --with-v4l was requested." "$LINENO" 5 ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +010010082esac
10083fi
10084
Francois Gouget3fe5d802009-01-14 14:16:06 +010010085if test "x$with_gphoto" != "xno"
10086then
10087 ac_save_CPPFLAGS="$CPPFLAGS"
10088 # Extract the first word of "gphoto2-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010089set dummy gphoto2-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010091$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010092if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010093 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010094else
10095 if test -n "$gphoto2_devel"; then
10096 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10097else
10098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10099for as_dir in $PATH
10100do
10101 IFS=$as_save_IFS
10102 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010103 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010104 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 +020010105 ac_cv_prog_gphoto2_devel="gphoto2-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010107 break 2
10108 fi
10109done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010110 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010111IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010112
10113 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10114fi
10115fi
10116gphoto2_devel=$ac_cv_prog_gphoto2_devel
10117if test -n "$gphoto2_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010119$as_echo "$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010120else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010122$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010123fi
10124
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010125
Francois Gouget3fe5d802009-01-14 14:16:06 +010010126 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010127set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010129$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010130if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010131 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010132else
10133 if test -n "$gphoto2port_devel"; then
10134 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10135else
10136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10137for as_dir in $PATH
10138do
10139 IFS=$as_save_IFS
10140 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010141 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010142 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 +020010143 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010145 break 2
10146 fi
10147done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010148 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010149IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010150
10151 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10152fi
10153fi
10154gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10155if test -n "$gphoto2port_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010157$as_echo "$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010158else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010160$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010161fi
10162
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010163
Francois Gouget3fe5d802009-01-14 14:16:06 +010010164 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10165 then
10166 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10167 ac_gphoto2_libs=""
10168 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10169 do
10170 case "$i" in
10171 -L/usr/lib|-L/usr/lib64) ;;
10172 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10173 esac
10174 done
10175 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10176 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010177 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010178 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10179if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010181$as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010182if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010183 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010184else
10185 ac_check_lib_save_LIBS=$LIBS
Francois Gouget4bc03fe2008-07-21 17:10:45 +020010186LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010187cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010188/* end confdefs.h. */
10189
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010190/* Override any GCC internal prototype to avoid an error.
10191 Use char because int might match the return type of a GCC
10192 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010193#ifdef __cplusplus
10194extern "C"
10195#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010196char gp_camera_new ();
10197int
10198main ()
10199{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010200return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010201 ;
10202 return 0;
10203}
10204_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010205if ac_fn_c_try_link "$LINENO"; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010206 ac_cv_lib_gphoto2_gp_camera_new=yes
10207else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010208 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010209fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010210rm -f core conftest.err conftest.$ac_objext \
10211 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010212LIBS=$ac_check_lib_save_LIBS
10213fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010214{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010215$as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010216if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010217
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010218$as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010219
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010220 GPHOTO2LIBS="$ac_gphoto2_libs"
10221
10222 GPHOTO2INCL="$ac_gphoto2_incl"
10223
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010224fi
10225
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010226fi
10227
10228
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010229 CPPFLAGS="$ac_save_CPPFLAGS"
10230fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010231if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010232 case "x$with_gphoto" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010233 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 +010010234 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010235 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10236This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010237esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010238fi
10239
10240
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010241if test "$ac_cv_header_resolv_h" = "yes"
10242then
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010243 ac_save_LIBS="$LIBS"
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010244 for lib in '' -lresolv
10245 do
10246 LIBS="$lib $ac_save_LIBS"
10247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010248/* end confdefs.h. */
Rob Shearmanba349212009-01-02 12:12:06 +000010249#ifdef HAVE_NETINET_IN_H
10250#include <netinet/in.h>
10251#endif
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010252#include <resolv.h>
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010253int
10254main ()
10255{
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010256res_query("foo",ns_c_in,0,0,0);
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010257 ;
10258 return 0;
10259}
10260_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010261if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010262
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010263$as_echo "#define HAVE_RESOLV 1" >>confdefs.h
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010264
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010265 RESOLVLIBS="$lib"
10266
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010267fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010268rm -f core conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010270 if test "${RESOLVLIBS+set}" = set; then
10271 break
10272 fi
10273 done
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010274 LIBS="$ac_save_LIBS"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010275fi
10276
Hans Leidekkerd3447022005-07-15 10:09:43 +000010277LCMSLIBS=""
10278
10279if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10280then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010282$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010283if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010284 $as_echo_n "(cached) " >&6
Hans Leidekkerd3447022005-07-15 10:09:43 +000010285else
10286 ac_check_lib_save_LIBS=$LIBS
10287LIBS="-llcms $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010289/* end confdefs.h. */
10290
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010291/* Override any GCC internal prototype to avoid an error.
10292 Use char because int might match the return type of a GCC
10293 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +000010294#ifdef __cplusplus
10295extern "C"
10296#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +000010297char cmsOpenProfileFromFile ();
10298int
10299main ()
10300{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010301return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000010302 ;
10303 return 0;
10304}
10305_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010306if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010307 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10308else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010309 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000010310fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010311rm -f core conftest.err conftest.$ac_objext \
10312 conftest$ac_exeext conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010313LIBS=$ac_check_lib_save_LIBS
10314fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010316$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010317if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010318
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010319$as_echo "#define HAVE_LCMS 1" >>confdefs.h
Hans Leidekkerd3447022005-07-15 10:09:43 +000010320
10321 LCMSLIBS="-llcms"
10322fi
10323
10324fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010325if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010326 case "x$with_cms" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010327 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 +010010328 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010329 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10330This is an error since --with-cms was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010331esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010332fi
10333
Francois Gouget3fe5d802009-01-14 14:16:06 +010010334if test "x$with_freetype" != "xno"
10335then
10336 for ac_prog in freetype-config freetype2-config
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010337do
10338 # Extract the first word of "$ac_prog", so it can be a program name with args.
10339set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010341$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010342if test "${ac_cv_prog_ft_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010343 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010344else
10345 if test -n "$ft_devel"; then
10346 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10347else
10348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10349for as_dir in $PATH
10350do
10351 IFS=$as_save_IFS
10352 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010353 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010354 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 +020010355 ac_cv_prog_ft_devel="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010357 break 2
10358 fi
10359done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010360 done
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010361IFS=$as_save_IFS
10362
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010363fi
10364fi
10365ft_devel=$ac_cv_prog_ft_devel
10366if test -n "$ft_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010368$as_echo "$ft_devel" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010369else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010371$as_echo "no" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010372fi
10373
10374
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010375 test -n "$ft_devel" && break
10376done
Francois Gouget3fe5d802009-01-14 14:16:06 +010010377test -n "$ft_devel" || ft_devel="no"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010378
Francois Gouget3fe5d802009-01-14 14:16:06 +010010379 if test "$ft_devel" != "no"
10380 then
10381 ac_freetype_incl=`$ft_devel --cflags`
10382 ac_freetype_libs=`$ft_devel --libs`
10383 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010384 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010386$as_echo_n "checking for -lfreetype... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010387if test "${ac_cv_lib_soname_freetype+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010388 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010389else
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010390 ac_check_soname_save_LIBS=$LIBS
10391LIBS="-lfreetype $ac_freetype_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010393/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010394
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010395/* Override any GCC internal prototype to avoid an error.
10396 Use char because int might match the return type of a GCC
10397 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010398#ifdef __cplusplus
10399extern "C"
10400#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010401char FT_Init_FreeType ();
10402int
10403main ()
10404{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010405return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010406 ;
10407 return 0;
10408}
10409_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010410if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010411 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010412 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 +020010413 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'` ;;
10414 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10415 esac
Ian Pilcher563598d2001-05-16 20:56:05 +000010416fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010417rm -f core conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010419 LIBS=$ac_check_soname_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010420fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010421if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010423$as_echo "not found" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010424 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010425else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010427$as_echo "$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010428
10429cat >>confdefs.h <<_ACEOF
10430#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10431_ACEOF
10432
10433 ft_lib=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010434fi
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010435 if test "$ft_lib" = "yes"
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010436 then
Ian Pilcher40432fe2001-06-06 21:05:23 +000010437 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010438 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010439 for ac_header in ft2build.h \
Rein Klazese617a9c2003-11-19 02:18:13 +000010440 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010441 freetype/ftglyph.h \
Dmitry Timoshkovb0d15902007-09-20 19:10:31 +090010442 freetype/fttypes.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010443 freetype/tttables.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010444 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010445 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010446 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010447 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010010448 freetype/ftmodapi.h \
ByeongSik Jeon028617b2008-12-10 23:50:44 +090010449 freetype/ftlcdfil.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010450 freetype/internal/sfnt.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010451do :
10452 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10453ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
Francois Gouget9e67edf2008-03-06 12:34:48 +010010454 # include <ft2build.h>
Rein Klazes9c269172003-11-20 04:17:33 +000010455 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010456"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010457if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010458 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010459#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010460_ACEOF
10461
10462fi
10463
Ian Pilcher40432fe2001-06-06 21:05:23 +000010464done
10465
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010467/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010468#include <ft2build.h>
10469 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010470_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010471if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010472
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010473$as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
Alexandre Julliard18d75732002-01-29 03:02:50 +000010474
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010475 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010476else
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010477 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010478fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010479rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010480 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10481"
10482if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
Huw Daviesd8a6c272006-02-22 12:24:25 +000010483
10484cat >>confdefs.h <<_ACEOF
10485#define HAVE_FT_TRUETYPEENGINETYPE 1
10486_ACEOF
10487
10488
10489fi
10490
Huw Davies35bca772006-04-12 12:14:27 +010010491 ac_save_CFLAGS="$CFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010492 CFLAGS="$CFLAGS $ac_freetype_libs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010493 for ac_func in FT_Load_Sfnt_Table
10494do :
10495 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10496if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
Huw Davies35bca772006-04-12 12:14:27 +010010497 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010498#define HAVE_FT_LOAD_SFNT_TABLE 1
Huw Davies35bca772006-04-12 12:14:27 +010010499_ACEOF
10500
10501fi
10502done
10503
10504 CFLAGS="$ac_save_CFLAGS"
Ian Pilcher40432fe2001-06-06 21:05:23 +000010505 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010506 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010507 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010508
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010509$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010510
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010511 FREETYPELIBS="$ac_freetype_libs"
10512
10513 FREETYPEINCL="$ac_freetype_incl"
10514
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010515 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010516 fi
10517fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010518if test "x$FREETYPELIBS" = "x"; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010519 case "x$with_freetype" in
10520 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010521 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10522Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010523esac
Huw Davies00acb5f2004-08-17 22:33:14 +000010524fi
Alexandre Julliard6de0af12008-08-25 14:41:03 +020010525test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010526
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010528$as_echo_n "checking for parport header/ppdev.h... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010529if test "${ac_cv_c_ppdev+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010530 $as_echo_n "(cached) " >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010531else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010533/* end confdefs.h. */
Yann Droneauddd33ee92010-03-08 14:46:46 +010010534#ifdef HAVE_SYS_IOCTL_H
10535# include <sys/ioctl.h>
10536#endif
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010537#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010538int
10539main ()
10540{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010541ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010542 ;
10543 return 0;
10544}
10545_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010546if ac_fn_c_try_compile "$LINENO"; then :
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010547 ac_cv_c_ppdev="yes"
10548else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010549 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010550fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010552fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010554$as_echo "$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010555if test "$ac_cv_c_ppdev" = "yes"
10556then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010557
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010558$as_echo "#define HAVE_PPDEV 1" >>confdefs.h
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010559
10560fi
10561
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010562ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010563LIBS="$LIBS $LIBPTHREAD"
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010564for ac_func in \
Tijl Coosemansfc8172f2006-08-05 23:31:07 +020010565 pthread_attr_get_np \
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010566 pthread_getattr_np \
10567 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010568 pthread_get_stacksize_np
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010569do :
10570 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10571ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010572if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Alexandre Julliard821ab862003-11-12 22:44:56 +000010573 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010574#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010575_ACEOF
10576
10577fi
10578done
10579
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010580LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010581
Jacek Caban11ca05f2009-05-29 23:35:13 +020010582if test "$ac_cv_header_zlib_h" = "yes"
10583then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010585$as_echo_n "checking for inflate in -lz... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010586if test "${ac_cv_lib_z_inflate+set}" = set; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010587 $as_echo_n "(cached) " >&6
10588else
10589 ac_check_lib_save_LIBS=$LIBS
10590LIBS="-lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010592/* end confdefs.h. */
10593
10594/* Override any GCC internal prototype to avoid an error.
10595 Use char because int might match the return type of a GCC
10596 builtin and then its argument prototype would still apply. */
10597#ifdef __cplusplus
10598extern "C"
10599#endif
10600char inflate ();
10601int
10602main ()
10603{
10604return inflate ();
10605 ;
10606 return 0;
10607}
10608_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010609if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010610 ac_cv_lib_z_inflate=yes
10611else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010612 ac_cv_lib_z_inflate=no
Jacek Caban11ca05f2009-05-29 23:35:13 +020010613fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010614rm -f core conftest.err conftest.$ac_objext \
10615 conftest$ac_exeext conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010616LIBS=$ac_check_lib_save_LIBS
10617fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010619$as_echo "$ac_cv_lib_z_inflate" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010620if test "x$ac_cv_lib_z_inflate" = x""yes; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010621
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010622$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
Jacek Caban11ca05f2009-05-29 23:35:13 +020010623
10624 ZLIB="-lz"
10625
10626fi
10627
10628fi
Alexandre Julliardba6a41a2011-02-18 13:07:27 +010010629if test "x$ZLIB" = "x"; then :
10630 case "x$with_zlib" in
10631 x) as_fn_append wine_notices "|libz ${notice_platform}development files not found, data compression won't be supported." ;;
10632 xno) ;;
10633 *) as_fn_error $? "libz ${notice_platform}development files not found, data compression won't be supported.
10634This is an error since --with-zlib was requested." "$LINENO" 5 ;;
10635esac
10636fi
Jacek Caban11ca05f2009-05-29 23:35:13 +020010637
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010638if test "x$enable_tools" != xno
10639then
10640 if test "$ac_cv_header_gettext_po_h" = "yes"
10641 then
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10643$as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10644if test "${ac_cv_lib_gettextpo_po_message_msgctxt+set}" = set; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010645 $as_echo_n "(cached) " >&6
10646else
10647 ac_check_lib_save_LIBS=$LIBS
10648LIBS="-lgettextpo $LIBS"
10649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10650/* end confdefs.h. */
10651
10652/* Override any GCC internal prototype to avoid an error.
10653 Use char because int might match the return type of a GCC
10654 builtin and then its argument prototype would still apply. */
10655#ifdef __cplusplus
10656extern "C"
10657#endif
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010658char po_message_msgctxt ();
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010659int
10660main ()
10661{
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010662return po_message_msgctxt ();
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010663 ;
10664 return 0;
10665}
10666_ACEOF
10667if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010668 ac_cv_lib_gettextpo_po_message_msgctxt=yes
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010669else
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010670 ac_cv_lib_gettextpo_po_message_msgctxt=no
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010671fi
10672rm -f core conftest.err conftest.$ac_objext \
10673 conftest$ac_exeext conftest.$ac_ext
10674LIBS=$ac_check_lib_save_LIBS
10675fi
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10677$as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10678if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = x""yes; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010679
10680$as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10681
10682 LIBGETTEXTPO="-lgettextpo"
10683
10684fi
10685
10686 fi
10687 if test "x$LIBGETTEXTPO" = "x"; then :
10688 case "x$with_gettextpo" in
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010689 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 +010010690 xno) ;;
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010691 *) as_fn_error $? "GetText ${notice_platform}development files not found (or too old). Internationalization won't be fully supported.
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010692This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10693esac
10694fi
10695fi
10696
Francois Gouget3fe5d802009-01-14 14:16:06 +010010697if test "x$with_esd" != xno
10698then
10699 save_CFLAGS="$CFLAGS"
10700 # Extract the first word of "esd-config", so it can be a program name with args.
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010701set dummy esd-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010702{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010703$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010704if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010705 $as_echo_n "(cached) " >&6
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010706else
10707 case $ESDCONFIG in
10708 [\\/]* | ?:[\\/]*)
10709 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10710 ;;
10711 *)
10712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10713for as_dir in $PATH
10714do
10715 IFS=$as_save_IFS
10716 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010717 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010719 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010721 break 2
10722 fi
10723done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010724 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010725IFS=$as_save_IFS
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010726
Francois Gouget3fe5d802009-01-14 14:16:06 +010010727 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010728 ;;
10729esac
10730fi
10731ESDCONFIG=$ac_cv_path_ESDCONFIG
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010732if test -n "$ESDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010734$as_echo "$ESDCONFIG" >&6; }
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010735else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010737$as_echo "no" >&6; }
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010738fi
10739
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010740
Francois Gouget3fe5d802009-01-14 14:16:06 +010010741 if test "x$ESDCONFIG" != "xno"
10742 then
10743 ac_esd_incl=""
10744 for i in `$ESDCONFIG --cflags`
10745 do
10746 case "$i" in
10747 -I*) ac_esd_incl="$ac_esd_incl $i";;
10748 esac
10749 done
10750 ac_esd_libs=`$ESDCONFIG --libs`
10751 CFLAGS="$CFLAGS $ac_esd_incl"
10752 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010753 ac_esd_libs=${ac_esd_libs:-"-lesd"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010754 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10755if test "x$ac_cv_header_esd_h" = x""yes; then :
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010757$as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010758if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010759 $as_echo_n "(cached) " >&6
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010760else
10761 ac_check_lib_save_LIBS=$LIBS
Francois Gougete9b1a402008-07-21 23:41:21 +020010762LIBS="-lesd $ac_esd_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010763cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010764/* end confdefs.h. */
10765
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010766/* Override any GCC internal prototype to avoid an error.
10767 Use char because int might match the return type of a GCC
10768 builtin and then its argument prototype would still apply. */
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010769#ifdef __cplusplus
10770extern "C"
10771#endif
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010772char esd_open_sound ();
10773int
10774main ()
10775{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010776return esd_open_sound ();
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010777 ;
10778 return 0;
10779}
10780_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010781if ac_fn_c_try_link "$LINENO"; then :
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010782 ac_cv_lib_esd_esd_open_sound=yes
10783else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010784 ac_cv_lib_esd_esd_open_sound=no
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010785fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010786rm -f core conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010788LIBS=$ac_check_lib_save_LIBS
10789fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010791$as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010792if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
Francois Gougete9b1a402008-07-21 23:41:21 +020010793 ESDINCL="$ac_esd_incl"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010794
Francois Gouget3fe5d802009-01-14 14:16:06 +010010795 ESDLIBS="$ac_esd_libs"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010796
10797
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010798$as_echo "#define HAVE_ESD 1" >>confdefs.h
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010799
10800fi
10801
Francois Gouget3fe5d802009-01-14 14:16:06 +010010802fi
10803
10804
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010805 CFLAGS="$save_CFLAGS"
10806fi
10807
Aric Stewart2914d652010-10-20 13:55:16 -050010808if test "x$with_gstreamer" != "xno"
10809then
10810 ac_save_CPPFLAGS="$CPPFLAGS"
10811 if test "$PKG_CONFIG" != "false"; then
10812 ac_gst_incl=""
10813 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10814 do
10815 case "$i" in
10816 -I*) ac_gst_incl="$ac_gst_incl $i";;
10817 esac
10818 done
10819 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10820 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
Andrew Nguyende417972010-10-29 00:26:04 -050010821 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10822if test "x$ac_cv_header_gst_gstpad_h" = x""yes; then :
10823 ac_fn_c_check_header_mongrel "$LINENO" "gst/app/gstappsink.h" "ac_cv_header_gst_app_gstappsink_h" "$ac_includes_default"
Aric Stewart2914d652010-10-20 13:55:16 -050010824if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
Andrew Nguyende417972010-10-29 00:26:04 -050010825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10826$as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10827if test "${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+set}" = set; then :
10828 $as_echo_n "(cached) " >&6
10829else
10830 ac_check_lib_save_LIBS=$LIBS
10831LIBS="-lgstreamer-0.10 $LIBS"
10832cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833/* end confdefs.h. */
10834
10835/* Override any GCC internal prototype to avoid an error.
10836 Use char because int might match the return type of a GCC
10837 builtin and then its argument prototype would still apply. */
10838#ifdef __cplusplus
10839extern "C"
10840#endif
10841char gst_pad_get_caps_reffed ();
10842int
10843main ()
10844{
10845return gst_pad_get_caps_reffed ();
10846 ;
10847 return 0;
10848}
10849_ACEOF
10850if ac_fn_c_try_link "$LINENO"; then :
10851 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10852else
10853 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10854fi
10855rm -f core conftest.err conftest.$ac_objext \
10856 conftest$ac_exeext conftest.$ac_ext
10857LIBS=$ac_check_lib_save_LIBS
10858fi
10859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10860$as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10861if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = x""yes; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10863$as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10864if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then :
10865 $as_echo_n "(cached) " >&6
10866else
10867 ac_check_lib_save_LIBS=$LIBS
10868LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10870/* end confdefs.h. */
10871
10872/* Override any GCC internal prototype to avoid an error.
10873 Use char because int might match the return type of a GCC
10874 builtin and then its argument prototype would still apply. */
10875#ifdef __cplusplus
10876extern "C"
10877#endif
10878char gst_app_buffer_new ();
10879int
10880main ()
10881{
10882return gst_app_buffer_new ();
10883 ;
10884 return 0;
10885}
10886_ACEOF
10887if ac_fn_c_try_link "$LINENO"; then :
10888 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10889else
10890 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10891fi
10892rm -f core conftest.err conftest.$ac_objext \
10893 conftest$ac_exeext conftest.$ac_ext
10894LIBS=$ac_check_lib_save_LIBS
10895fi
10896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10897$as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10898if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then :
10899 GSTREAMER_LIBS="$ac_gst_libs"
10900
Andrew Nguyende417972010-10-29 00:26:04 -050010901 GSTREAMER_INCL="$ac_gst_incl"
Aric Stewart2914d652010-10-20 13:55:16 -050010902
10903fi
10904
10905fi
10906
Andrew Nguyende417972010-10-29 00:26:04 -050010907fi
10908
10909
10910fi
10911
Aric Stewart2914d652010-10-20 13:55:16 -050010912
10913 fi
10914 CPPFLAGS="$ac_save_CPPFLAGS"
10915fi
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +010010916if 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 -050010917 case "x$with_gstreamer" in
Detlef Riekenberg654bb4a2010-12-12 22:48:56 +010010918 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 -050010919 xno) ;;
Detlef Riekenberg654bb4a2010-12-12 22:48:56 +010010920 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
Aric Stewart2914d652010-10-20 13:55:16 -050010921This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10922esac
10923fi
10924test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10925
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010926ALSALIBS=""
10927
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010928if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010929then
Austin Englishaeb78cb2011-01-12 01:43:46 -080010930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10931$as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10932if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010933 $as_echo_n "(cached) " >&6
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010934else
10935 ac_check_lib_save_LIBS=$LIBS
10936LIBS="-lasound $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010937cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010938/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010939
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010940/* Override any GCC internal prototype to avoid an error.
10941 Use char because int might match the return type of a GCC
10942 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010943#ifdef __cplusplus
10944extern "C"
10945#endif
Austin Englishaeb78cb2011-01-12 01:43:46 -080010946char snd_pcm_hw_params_get_access_mask ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010947int
10948main ()
10949{
Austin Englishaeb78cb2011-01-12 01:43:46 -080010950return snd_pcm_hw_params_get_access_mask ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010951 ;
10952 return 0;
10953}
10954_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010955if ac_fn_c_try_link "$LINENO"; then :
Austin Englishaeb78cb2011-01-12 01:43:46 -080010956 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010957else
Austin Englishaeb78cb2011-01-12 01:43:46 -080010958 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010959fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010960rm -f core conftest.err conftest.$ac_objext \
10961 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010962LIBS=$ac_check_lib_save_LIBS
10963fi
Austin Englishaeb78cb2011-01-12 01:43:46 -080010964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10965$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10966if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = x""yes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Vincent Béron151015f2005-01-10 13:26:33 +000010968/* end confdefs.h. */
10969#ifdef HAVE_ALSA_ASOUNDLIB_H
10970#include <alsa/asoundlib.h>
10971#elif defined(HAVE_SYS_ASOUNDLIB_H)
10972#include <sys/asoundlib.h>
10973#endif
10974int
10975main ()
10976{
Austin Englishaeb78cb2011-01-12 01:43:46 -080010977int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)
Vincent Béron151015f2005-01-10 13:26:33 +000010978 ;
10979 return 0;
10980}
10981_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010982if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010983
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010984$as_echo "#define HAVE_ALSA 1" >>confdefs.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010985
Vincent Béron151015f2005-01-10 13:26:33 +000010986 ALSALIBS="-lasound"
Vincent Béron151015f2005-01-10 13:26:33 +000010987fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010989fi
10990
10991fi
10992
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010993
Alexandre Julliard73482142005-08-03 19:21:04 +000010994if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10995then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010997$as_echo_n "checking for -lcapi20... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010998if test "${ac_cv_lib_soname_capi20+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010999 $as_echo_n "(cached) " >&6
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011000else
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020011001 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011002LIBS="-lcapi20 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011004/* end confdefs.h. */
11005
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011006/* Override any GCC internal prototype to avoid an error.
11007 Use char because int might match the return type of a GCC
11008 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011009#ifdef __cplusplus
11010extern "C"
11011#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011012char capi20_register ();
11013int
11014main ()
11015{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011016return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011017 ;
11018 return 0;
11019}
11020_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011021if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020011022 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011023 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 +020011024 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'` ;;
11025 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11026 esac
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011027fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011028rm -f core conftest.err conftest.$ac_objext \
11029 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020011030 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011031fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011032if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011034$as_echo "not found" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011035
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020011036else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011038$as_echo "$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020011039
11040cat >>confdefs.h <<_ACEOF
11041#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011042_ACEOF
11043
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020011044
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011045fi
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011046fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011047if test "x$ac_cv_lib_soname_capi20" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011048 case "x$with_capi" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011049 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 +010011050 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011051 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11052This is an error since --with-capi was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011053esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020011054fi
11055
Francois Gouget289ea332008-07-24 16:09:07 +020011056CUPSINCL=""
11057
11058if test "x$with_cups" != "xno"
Alexandre Julliard702d3552007-07-02 17:30:44 +020011059then
Francois Gouget289ea332008-07-24 16:09:07 +020011060 ac_save_CPPFLAGS="$CPPFLAGS"
11061 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
Alexandre Julliarda991a562008-07-28 12:04:46 +020011062 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
Francois Gouget289ea332008-07-24 16:09:07 +020011063 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011064 for ac_header in cups/cups.h
11065do :
11066 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11067if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
Francois Gouget289ea332008-07-24 16:09:07 +020011068 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011069#define HAVE_CUPS_CUPS_H 1
Francois Gouget289ea332008-07-24 16:09:07 +020011070_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011072$as_echo_n "checking for -lcups... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011073if test "${ac_cv_lib_soname_cups+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011074 $as_echo_n "(cached) " >&6
Alexandre Julliard702d3552007-07-02 17:30:44 +020011075else
11076 ac_check_soname_save_LIBS=$LIBS
Francois Gouget289ea332008-07-24 16:09:07 +020011077LIBS="-lcups $ac_cups_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020011079/* end confdefs.h. */
11080
11081/* Override any GCC internal prototype to avoid an error.
11082 Use char because int might match the return type of a GCC
11083 builtin and then its argument prototype would still apply. */
11084#ifdef __cplusplus
11085extern "C"
11086#endif
11087char cupsGetDefault ();
11088int
11089main ()
11090{
11091return cupsGetDefault ();
11092 ;
11093 return 0;
11094}
11095_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011096if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard702d3552007-07-02 17:30:44 +020011097 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011098 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 +020011099 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'` ;;
11100 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11101 esac
Alexandre Julliard702d3552007-07-02 17:30:44 +020011102fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011103rm -f core conftest.err conftest.$ac_objext \
11104 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020011105 LIBS=$ac_check_soname_save_LIBS
11106fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011107if test "x$ac_cv_lib_soname_cups" = "x"; then :
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011109$as_echo "not found" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020011110
11111else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011113$as_echo "$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020011114
11115cat >>confdefs.h <<_ACEOF
11116#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11117_ACEOF
11118
Francois Gouget289ea332008-07-24 16:09:07 +020011119 CUPSINCL="$ac_cups_cflags"
11120fi
Alexandre Julliard702d3552007-07-02 17:30:44 +020011121fi
11122
Francois Gouget289ea332008-07-24 16:09:07 +020011123done
11124
11125 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliard702d3552007-07-02 17:30:44 +020011126fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011127if test "x$ac_cv_lib_soname_cups" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011128 case "x$with_cups" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011129 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 +010011130 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011131 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11132This is an error since --with-cups was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011133esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020011134fi
11135
Alexandre Julliard34200c32007-07-02 17:31:19 +020011136if test "$ac_cv_header_jack_jack_h" = "yes"
11137then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011139$as_echo_n "checking for -ljack... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011140if test "${ac_cv_lib_soname_jack+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011141 $as_echo_n "(cached) " >&6
Alexandre Julliard34200c32007-07-02 17:31:19 +020011142else
11143 ac_check_soname_save_LIBS=$LIBS
11144LIBS="-ljack $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard34200c32007-07-02 17:31:19 +020011146/* end confdefs.h. */
11147
11148/* Override any GCC internal prototype to avoid an error.
11149 Use char because int might match the return type of a GCC
11150 builtin and then its argument prototype would still apply. */
11151#ifdef __cplusplus
11152extern "C"
11153#endif
11154char jack_client_new ();
11155int
11156main ()
11157{
11158return jack_client_new ();
11159 ;
11160 return 0;
11161}
11162_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011163if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard34200c32007-07-02 17:31:19 +020011164 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011165 dll) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest.exe | grep "jack" | sed -e "s/dll.*/dll/"';2,$d'` ;;
Francois Gouget90a6fb02008-07-11 17:47:23 +020011166 dylib) ac_cv_lib_soname_jack=`otool -L conftest$ac_exeext | grep "libjack-*[0-9.]*\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libjack-*[0-9.]*\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11167 *) ac_cv_lib_soname_jack=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjack-*[0-9.]*\\.$LIBEXT" | sed -e "s/^.*\(libjack-*[0-9.]*\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
Alexandre Julliard34200c32007-07-02 17:31:19 +020011168 esac
Alexandre Julliard34200c32007-07-02 17:31:19 +020011169fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011170rm -f core conftest.err conftest.$ac_objext \
11171 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard34200c32007-07-02 17:31:19 +020011172 LIBS=$ac_check_soname_save_LIBS
11173fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011174if test "x$ac_cv_lib_soname_jack" = "x"; then :
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011176$as_echo "not found" >&6; }
Alexandre Julliard34200c32007-07-02 17:31:19 +020011177
11178else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011180$as_echo "$ac_cv_lib_soname_jack" >&6; }
Alexandre Julliard34200c32007-07-02 17:31:19 +020011181
11182cat >>confdefs.h <<_ACEOF
11183#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11184_ACEOF
11185
11186
11187fi
Alexandre Julliard34200c32007-07-02 17:31:19 +020011188fi
11189
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011190if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11191then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011193$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011194if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011195 $as_echo_n "(cached) " >&6
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011196else
11197 ac_check_soname_save_LIBS=$LIBS
11198LIBS="-lfontconfig $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011200/* end confdefs.h. */
11201
11202/* Override any GCC internal prototype to avoid an error.
11203 Use char because int might match the return type of a GCC
11204 builtin and then its argument prototype would still apply. */
11205#ifdef __cplusplus
11206extern "C"
11207#endif
11208char FcInit ();
11209int
11210main ()
11211{
11212return FcInit ();
11213 ;
11214 return 0;
11215}
11216_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011217if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011218 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011219 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 +020011220 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'` ;;
11221 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11222 esac
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011223fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011224rm -f core conftest.err conftest.$ac_objext \
11225 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011226 LIBS=$ac_check_soname_save_LIBS
11227fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011228if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011230$as_echo "not found" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011231
11232else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011234$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011235
11236cat >>confdefs.h <<_ACEOF
11237#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11238_ACEOF
11239
11240
11241fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011242elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
Alexandre Julliard5c076732007-10-17 17:04:01 +020011243then
11244 ac_save_CPPFLAGS="$CPPFLAGS"
11245 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11246 $as_unset ac_cv_header_fontconfig_fontconfig_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011247 for ac_header in fontconfig/fontconfig.h
11248do :
11249 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11250if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020011251 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011252#define HAVE_FONTCONFIG_FONTCONFIG_H 1
Alexandre Julliard5c076732007-10-17 17:04:01 +020011253_ACEOF
11254
11255fi
11256
11257done
11258
11259 CPPFLAGS="$ac_save_CPPFLAGS"
11260 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11261 then
11262 FONTCONFIGINCL="$X_CFLAGS"
11263
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011265$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011266if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011267 $as_echo_n "(cached) " >&6
Alexandre Julliard5c076732007-10-17 17:04:01 +020011268else
11269 ac_check_soname_save_LIBS=$LIBS
11270LIBS="-lfontconfig $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020011272/* end confdefs.h. */
11273
11274/* Override any GCC internal prototype to avoid an error.
11275 Use char because int might match the return type of a GCC
11276 builtin and then its argument prototype would still apply. */
11277#ifdef __cplusplus
11278extern "C"
11279#endif
11280char FcInit ();
11281int
11282main ()
11283{
11284return FcInit ();
11285 ;
11286 return 0;
11287}
11288_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011289if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020011290 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011291 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 +020011292 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'` ;;
11293 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11294 esac
Alexandre Julliard5c076732007-10-17 17:04:01 +020011295fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011296rm -f core conftest.err conftest.$ac_objext \
11297 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020011298 LIBS=$ac_check_soname_save_LIBS
11299fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011300if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011302$as_echo "not found" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020011303
11304else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011306$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020011307
11308cat >>confdefs.h <<_ACEOF
11309#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11310_ACEOF
11311
11312
11313fi
Alexandre Julliard5c076732007-10-17 17:04:01 +020011314 fi
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011315fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011316if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011317 case "x$with_fontconfig" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011318 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 +010011319 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011320 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11321This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011322esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011323fi
11324
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011325if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11326then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011328$as_echo_n "checking for -lssl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011329if test "${ac_cv_lib_soname_ssl+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011330 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011331else
11332 ac_check_soname_save_LIBS=$LIBS
11333LIBS="-lssl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011335/* end confdefs.h. */
11336
11337/* Override any GCC internal prototype to avoid an error.
11338 Use char because int might match the return type of a GCC
11339 builtin and then its argument prototype would still apply. */
11340#ifdef __cplusplus
11341extern "C"
11342#endif
11343char SSL_library_init ();
11344int
11345main ()
11346{
11347return SSL_library_init ();
11348 ;
11349 return 0;
11350}
11351_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011352if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011353 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011354 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 +020011355 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'` ;;
11356 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11357 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011358fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011359rm -f core conftest.err conftest.$ac_objext \
11360 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011361 LIBS=$ac_check_soname_save_LIBS
11362fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011363if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011365$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011366
11367else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011369$as_echo "$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011370
11371cat >>confdefs.h <<_ACEOF
11372#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11373_ACEOF
11374
11375
11376fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011378$as_echo_n "checking for -lcrypto... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011379if test "${ac_cv_lib_soname_crypto+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011380 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011381else
11382 ac_check_soname_save_LIBS=$LIBS
11383LIBS="-lcrypto $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011385/* end confdefs.h. */
11386
11387/* Override any GCC internal prototype to avoid an error.
11388 Use char because int might match the return type of a GCC
11389 builtin and then its argument prototype would still apply. */
11390#ifdef __cplusplus
11391extern "C"
11392#endif
11393char BIO_new_socket ();
11394int
11395main ()
11396{
11397return BIO_new_socket ();
11398 ;
11399 return 0;
11400}
11401_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011402if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011403 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011404 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 +020011405 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'` ;;
11406 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11407 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011408fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011409rm -f core conftest.err conftest.$ac_objext \
11410 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011411 LIBS=$ac_check_soname_save_LIBS
11412fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011413if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011415$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011416
11417else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011419$as_echo "$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011420
11421cat >>confdefs.h <<_ACEOF
11422#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11423_ACEOF
11424
11425
11426fi
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011427fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011428if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011429 case "x$with_openssl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011430 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 +010011431 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011432 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11433This is an error since --with-openssl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011434esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011435fi
11436
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +020011437if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011438then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011440$as_echo_n "checking for -lgsm... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011441if test "${ac_cv_lib_soname_gsm+set}" = set; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011442 $as_echo_n "(cached) " >&6
11443else
11444 ac_check_soname_save_LIBS=$LIBS
11445LIBS="-lgsm $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011447/* end confdefs.h. */
11448
11449/* Override any GCC internal prototype to avoid an error.
11450 Use char because int might match the return type of a GCC
11451 builtin and then its argument prototype would still apply. */
11452#ifdef __cplusplus
11453extern "C"
11454#endif
11455char gsm_create ();
11456int
11457main ()
11458{
11459return gsm_create ();
11460 ;
11461 return 0;
11462}
11463_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011464if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011465 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011466 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 +020011467 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'` ;;
11468 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11469 esac
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011470fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011471rm -f core conftest.err conftest.$ac_objext \
11472 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011473 LIBS=$ac_check_soname_save_LIBS
11474fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011475if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011477$as_echo "not found" >&6; }
11478
11479else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011481$as_echo "$ac_cv_lib_soname_gsm" >&6; }
11482
11483cat >>confdefs.h <<_ACEOF
11484#define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11485_ACEOF
11486
11487
11488fi
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011489fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011490if test "x$ac_cv_lib_soname_gsm" = "x"; then :
Alexandre Julliard6ce32e02009-08-19 15:53:04 +020011491 case "x$with_gsm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011492 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 +020011493 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011494 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11495This is an error since --with-gsm was requested." "$LINENO" 5 ;;
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011496esac
11497fi
11498
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011499if test "$ac_cv_header_jpeglib_h" = "yes"
11500then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011502$as_echo_n "checking for -ljpeg... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011503if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011504 $as_echo_n "(cached) " >&6
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011505else
11506 ac_check_soname_save_LIBS=$LIBS
11507LIBS="-ljpeg $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011509/* end confdefs.h. */
11510
11511/* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11514#ifdef __cplusplus
11515extern "C"
11516#endif
11517char jpeg_start_decompress ();
11518int
11519main ()
11520{
11521return jpeg_start_decompress ();
11522 ;
11523 return 0;
11524}
11525_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011526if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011527 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011528 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 +020011529 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'` ;;
11530 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11531 esac
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011532fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011533rm -f core conftest.err conftest.$ac_objext \
11534 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011535 LIBS=$ac_check_soname_save_LIBS
11536fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011537if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011539$as_echo "not found" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011540
11541else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011543$as_echo "$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011544
11545cat >>confdefs.h <<_ACEOF
11546#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11547_ACEOF
11548
11549
11550fi
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011551fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011552if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011553 case "x$with_jpeg" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011554 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 +010011555 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011556 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11557This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011558esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011559fi
11560
Alexandre Julliard00302152007-07-02 19:54:00 +020011561if test "$ac_cv_header_png_h" = "yes"
11562then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011564$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011565if test "${ac_cv_lib_soname_png+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011566 $as_echo_n "(cached) " >&6
Alexandre Julliard00302152007-07-02 19:54:00 +020011567else
11568 ac_check_soname_save_LIBS=$LIBS
Austin Englishfe8879e2008-12-28 19:10:19 -060011569LIBS="-lpng -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011571/* end confdefs.h. */
11572
11573/* Override any GCC internal prototype to avoid an error.
11574 Use char because int might match the return type of a GCC
11575 builtin and then its argument prototype would still apply. */
11576#ifdef __cplusplus
11577extern "C"
11578#endif
11579char png_create_read_struct ();
11580int
11581main ()
11582{
11583return png_create_read_struct ();
11584 ;
11585 return 0;
11586}
11587_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011588if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard00302152007-07-02 19:54:00 +020011589 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011590 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 +020011591 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'` ;;
11592 *) 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'` ;;
11593 esac
Alexandre Julliard00302152007-07-02 19:54:00 +020011594fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011595rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011597 LIBS=$ac_check_soname_save_LIBS
11598fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011599if test "x$ac_cv_lib_soname_png" = "x"; then :
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011601$as_echo "not found" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011602
11603else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011605$as_echo "$ac_cv_lib_soname_png" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011606
11607cat >>confdefs.h <<_ACEOF
11608#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11609_ACEOF
11610
11611
11612fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11614$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11615if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11616 $as_echo_n "(cached) " >&6
11617else
11618 ac_check_lib_save_LIBS=$LIBS
11619LIBS="-lpng -lm -lz $LIBS"
11620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11621/* end confdefs.h. */
11622
11623/* Override any GCC internal prototype to avoid an error.
11624 Use char because int might match the return type of a GCC
11625 builtin and then its argument prototype would still apply. */
11626#ifdef __cplusplus
11627extern "C"
11628#endif
11629char png_set_expand_gray_1_2_4_to_8 ();
11630int
11631main ()
11632{
11633return png_set_expand_gray_1_2_4_to_8 ();
11634 ;
11635 return 0;
11636}
11637_ACEOF
11638if ac_fn_c_try_link "$LINENO"; then :
11639 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11640else
11641 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11642fi
11643rm -f core conftest.err conftest.$ac_objext \
11644 conftest$ac_exeext conftest.$ac_ext
11645LIBS=$ac_check_lib_save_LIBS
11646fi
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11648$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11649if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11650
11651$as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11652
11653
11654fi
11655
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011656elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11657then
11658 ac_save_CPPFLAGS="$CPPFLAGS"
11659 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11660 $as_unset ac_cv_header_png_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011661 for ac_header in png.h
11662do :
11663 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11664if test "x$ac_cv_header_png_h" = x""yes; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011665 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011666#define HAVE_PNG_H 1
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011667_ACEOF
11668
11669fi
11670
11671done
11672
11673 CPPFLAGS="$ac_save_CPPFLAGS"
11674 if test "$ac_cv_header_png_h" = "yes"
11675 then
11676 PNGINCL="$X_CFLAGS"
11677
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011679$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011680if test "${ac_cv_lib_soname_png+set}" = set; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011681 $as_echo_n "(cached) " >&6
11682else
11683 ac_check_soname_save_LIBS=$LIBS
11684LIBS="-lpng $X_LIBS -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011686/* end confdefs.h. */
11687
11688/* Override any GCC internal prototype to avoid an error.
11689 Use char because int might match the return type of a GCC
11690 builtin and then its argument prototype would still apply. */
11691#ifdef __cplusplus
11692extern "C"
11693#endif
11694char png_create_read_struct ();
11695int
11696main ()
11697{
11698return png_create_read_struct ();
11699 ;
11700 return 0;
11701}
11702_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011703if ac_fn_c_try_link "$LINENO"; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011704 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011705 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 +020011706 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'` ;;
11707 *) 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'` ;;
11708 esac
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011709fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011710rm -f core conftest.err conftest.$ac_objext \
11711 conftest$ac_exeext conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011712 LIBS=$ac_check_soname_save_LIBS
11713fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011714if test "x$ac_cv_lib_soname_png" = "x"; then :
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011716$as_echo "not found" >&6; }
11717
11718else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011719 { $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 +020011720$as_echo "$ac_cv_lib_soname_png" >&6; }
11721
11722cat >>confdefs.h <<_ACEOF
11723#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11724_ACEOF
11725
11726
11727fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11729$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11730if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11731 $as_echo_n "(cached) " >&6
11732else
11733 ac_check_lib_save_LIBS=$LIBS
11734LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11735cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11736/* end confdefs.h. */
11737
11738/* Override any GCC internal prototype to avoid an error.
11739 Use char because int might match the return type of a GCC
11740 builtin and then its argument prototype would still apply. */
11741#ifdef __cplusplus
11742extern "C"
11743#endif
11744char png_set_expand_gray_1_2_4_to_8 ();
11745int
11746main ()
11747{
11748return png_set_expand_gray_1_2_4_to_8 ();
11749 ;
11750 return 0;
11751}
11752_ACEOF
11753if ac_fn_c_try_link "$LINENO"; then :
11754 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11755else
11756 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11757fi
11758rm -f core conftest.err conftest.$ac_objext \
11759 conftest$ac_exeext conftest.$ac_ext
11760LIBS=$ac_check_lib_save_LIBS
11761fi
11762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11763$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11764if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11765 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11766
11767fi
11768
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011769 fi
Alexandre Julliard00302152007-07-02 19:54:00 +020011770fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011771if test "x$ac_cv_lib_soname_png" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011772 case "x$with_png" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011773 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 +010011774 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011775 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11776This is an error since --with-png was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011777esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011778fi
11779
Vincent Povirk73cd5692010-03-08 17:07:29 -060011780if test "$ac_cv_header_tiffio_h" = "yes"
11781then
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11783$as_echo_n "checking for -ltiff... " >&6; }
11784if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11785 $as_echo_n "(cached) " >&6
11786else
11787 ac_check_soname_save_LIBS=$LIBS
11788LIBS="-ltiff $LIBS"
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790/* end confdefs.h. */
11791
11792/* Override any GCC internal prototype to avoid an error.
11793 Use char because int might match the return type of a GCC
11794 builtin and then its argument prototype would still apply. */
11795#ifdef __cplusplus
11796extern "C"
11797#endif
11798char TIFFClientOpen ();
11799int
11800main ()
11801{
11802return TIFFClientOpen ();
11803 ;
11804 return 0;
11805}
11806_ACEOF
11807if ac_fn_c_try_link "$LINENO"; then :
11808 case "$LIBEXT" in
11809 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11810 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'` ;;
11811 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11812 esac
11813fi
11814rm -f core conftest.err conftest.$ac_objext \
11815 conftest$ac_exeext conftest.$ac_ext
11816 LIBS=$ac_check_soname_save_LIBS
11817fi
11818if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11820$as_echo "not found" >&6; }
11821
11822else
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11824$as_echo "$ac_cv_lib_soname_tiff" >&6; }
11825
11826cat >>confdefs.h <<_ACEOF
11827#define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11828_ACEOF
11829
11830
11831fi
11832fi
11833if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11834 case "x$with_tiff" in
11835 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11836 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011837 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11838This is an error since --with-tiff was requested." "$LINENO" 5 ;;
Vincent Povirk73cd5692010-03-08 17:07:29 -060011839esac
11840fi
11841
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011842if test "$ac_cv_header_mpg123_h" = "yes"
11843then
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11845$as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11846if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011847 $as_echo_n "(cached) " >&6
11848else
11849 ac_check_lib_save_LIBS=$LIBS
11850LIBS="-lmpg123 $LIBS"
11851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11852/* end confdefs.h. */
11853
11854/* Override any GCC internal prototype to avoid an error.
11855 Use char because int might match the return type of a GCC
11856 builtin and then its argument prototype would still apply. */
11857#ifdef __cplusplus
11858extern "C"
11859#endif
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011860char mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011861int
11862main ()
11863{
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011864return mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011865 ;
11866 return 0;
11867}
11868_ACEOF
11869if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011870 ac_cv_lib_mpg123_mpg123_feed=yes
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011871else
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011872 ac_cv_lib_mpg123_mpg123_feed=no
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011873fi
11874rm -f core conftest.err conftest.$ac_objext \
11875 conftest$ac_exeext conftest.$ac_ext
11876LIBS=$ac_check_lib_save_LIBS
11877fi
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11879$as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11880if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011881 LIBMPG123="-lmpg123"
11882
11883fi
11884
11885fi
Aric Stewart4430ab42010-03-17 10:58:32 -050011886if 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 -050011887 case "x$with_mpg123" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011888 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 -050011889 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011890 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11891This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011892esac
11893fi
Kristofer Henrikssonc58eff62010-05-24 15:04:42 -040011894test "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 -050011895
Chris Robinson862965f2009-08-25 03:26:35 -070011896if test "$ac_cv_header_AL_al_h" = "yes"
11897then
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11899$as_echo_n "checking for -lopenal... " >&6; }
11900if test "${ac_cv_lib_soname_openal+set}" = set; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011901 $as_echo_n "(cached) " >&6
11902else
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011903 ac_check_soname_save_LIBS=$LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011904LIBS="-lopenal $LIBS"
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson862965f2009-08-25 03:26:35 -070011906/* end confdefs.h. */
11907
11908/* Override any GCC internal prototype to avoid an error.
11909 Use char because int might match the return type of a GCC
11910 builtin and then its argument prototype would still apply. */
11911#ifdef __cplusplus
11912extern "C"
11913#endif
11914char alGetSource3i ();
11915int
11916main ()
11917{
11918return alGetSource3i ();
11919 ;
11920 return 0;
11921}
11922_ACEOF
11923if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011924 case "$LIBEXT" in
11925 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11926 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'` ;;
11927 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11928 esac
Chris Robinson862965f2009-08-25 03:26:35 -070011929fi
11930rm -f core conftest.err conftest.$ac_objext \
11931 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011932 LIBS=$ac_check_soname_save_LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011933fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011934if test "x$ac_cv_lib_soname_openal" = "x"; then :
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11936$as_echo "not found" >&6; }
11937
11938else
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11940$as_echo "$ac_cv_lib_soname_openal" >&6; }
11941
11942cat >>confdefs.h <<_ACEOF
11943#define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11944_ACEOF
11945
11946 LIBOPENAL="-lopenal"
11947
11948 ac_cv_lib_openal=yes
11949
11950cat >>confdefs.h <<_ACEOF
11951#define HAVE_OPENAL 1
11952_ACEOF
Chris Robinson862965f2009-08-25 03:26:35 -070011953
11954fi
Chris Robinson862965f2009-08-25 03:26:35 -070011955fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011956if test "x$ac_cv_lib_openal" != xyes; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011957 case "x$with_openal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011958 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 -070011959 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011960 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11961This is an error since --with-openal was requested." "$LINENO" 5 ;;
Chris Robinson862965f2009-08-25 03:26:35 -070011962esac
11963fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011964test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
Chris Robinson862965f2009-08-25 03:26:35 -070011965
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011966if test "$ac_cv_header_kstat_h" = "yes"
11967then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011969$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011970if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011971 $as_echo_n "(cached) " >&6
11972else
11973 ac_check_lib_save_LIBS=$LIBS
11974LIBS="-lkstat $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011975cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011976/* end confdefs.h. */
11977
11978/* Override any GCC internal prototype to avoid an error.
11979 Use char because int might match the return type of a GCC
11980 builtin and then its argument prototype would still apply. */
11981#ifdef __cplusplus
11982extern "C"
11983#endif
11984char kstat_open ();
11985int
11986main ()
11987{
11988return kstat_open ();
11989 ;
11990 return 0;
11991}
11992_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011993if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011994 ac_cv_lib_kstat_kstat_open=yes
11995else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011996 ac_cv_lib_kstat_kstat_open=no
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011997fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011998rm -f core conftest.err conftest.$ac_objext \
11999 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010012000LIBS=$ac_check_lib_save_LIBS
12001fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010012003$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012004if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010012005
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012006$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010012007
12008 LIBKSTAT="-lkstat"
12009
12010fi
12011
12012fi
12013
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012015$as_echo_n "checking for -lodbc... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012016if test "${ac_cv_lib_soname_odbc+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012017 $as_echo_n "(cached) " >&6
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012018else
12019 ac_check_soname_save_LIBS=$LIBS
12020LIBS="-lodbc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012022/* end confdefs.h. */
12023
12024/* Override any GCC internal prototype to avoid an error.
12025 Use char because int might match the return type of a GCC
12026 builtin and then its argument prototype would still apply. */
12027#ifdef __cplusplus
12028extern "C"
12029#endif
12030char SQLConnect ();
12031int
12032main ()
12033{
12034return SQLConnect ();
12035 ;
12036 return 0;
12037}
12038_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012039if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012040 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010012041 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 +010012042 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'` ;;
12043 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
12044 esac
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012045fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012046rm -f core conftest.err conftest.$ac_objext \
12047 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012048 LIBS=$ac_check_soname_save_LIBS
12049fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012050if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012052$as_echo "not found" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012053 cat >>confdefs.h <<_ACEOF
12054#define SONAME_LIBODBC "libodbc.$LIBEXT"
12055_ACEOF
12056
12057else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012059$as_echo "$ac_cv_lib_soname_odbc" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012060
12061cat >>confdefs.h <<_ACEOF
12062#define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12063_ACEOF
12064
12065
12066fi
12067
Michael Stefaniuca2f07502010-12-17 11:11:42 +010012068if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010012069 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
12070 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
12071 "$ac_cv_header_soundcard_h" != "yes" -a \
Michael Stefaniuca2f07502010-12-17 11:11:42 +010012072 "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010012073then
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010012074 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
Alexandre Julliardf9dec942007-07-10 15:14:15 +020012075fi
12076
12077
Alexandre Julliardfc094232003-04-14 21:46:41 +000012078EXTRACFLAGS=""
12079
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012080if test "x${GCC}" = "xyes"
12081then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000012082 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000012083
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012085$as_echo_n "checking for gcc strength-reduce bug... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012086if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012087 $as_echo_n "(cached) " >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012088else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012089 if test "$cross_compiling" = yes; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012090 ac_cv_c_gcc_strength_bug="yes"
12091else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012093/* end confdefs.h. */
Alexandre Julliardad356de2007-06-08 20:23:16 +020012094int L[4] = {0,1,2,3};
12095int
12096main ()
12097{
12098static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012099 unsigned int B = 3;
12100 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000012101 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000012102 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12103 L[i] = 4;
Alexandre Julliard95251a72009-02-16 12:46:58 +010012104 return (Array[1] != -2 || L[2] != 3)
Alexandre Julliardad356de2007-06-08 20:23:16 +020012105 ;
12106 return 0;
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012107}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012108_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012109if ac_fn_c_try_run "$LINENO"; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012110 ac_cv_c_gcc_strength_bug="no"
12111else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012112 ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012113fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12115 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012116fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012117
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012118fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012120$as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012121 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12122 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012123 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012124 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012125
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012127$as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012128if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012129 $as_echo_n "(cached) " >&6
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012130else
12131 ac_wine_try_cflags_saved=$CFLAGS
12132CFLAGS="$CFLAGS -fno-builtin"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012134/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012135int main(int argc, char **argv) { return 0; }
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012136_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012137if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012138 ac_cv_cflags__fno_builtin=yes
12139else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012140 ac_cv_cflags__fno_builtin=no
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012141fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012142rm -f core conftest.err conftest.$ac_objext \
12143 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012144CFLAGS=$ac_wine_try_cflags_saved
12145fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012147$as_echo "$ac_cv_cflags__fno_builtin" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012148if test $ac_cv_cflags__fno_builtin = yes; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012149 BUILTINFLAG="-fno-builtin"
12150
12151fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012153$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012154if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012155 $as_echo_n "(cached) " >&6
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012156else
12157 ac_wine_try_cflags_saved=$CFLAGS
12158CFLAGS="$CFLAGS -fno-strict-aliasing"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012160/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012161int main(int argc, char **argv) { return 0; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012162_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012163if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012164 ac_cv_cflags__fno_strict_aliasing=yes
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012165else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012166 ac_cv_cflags__fno_strict_aliasing=no
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012167fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012168rm -f core conftest.err conftest.$ac_objext \
12169 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012170CFLAGS=$ac_wine_try_cflags_saved
12171fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012172{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012173$as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012174if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012175 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12176fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012178$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012179if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012180 $as_echo_n "(cached) " >&6
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012181else
12182 ac_wine_try_cflags_saved=$CFLAGS
12183CFLAGS="$CFLAGS -Wdeclaration-after-statement"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012185/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012186int main(int argc, char **argv) { return 0; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012187_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012188if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012189 ac_cv_cflags__Wdeclaration_after_statement=yes
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012190else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012191 ac_cv_cflags__Wdeclaration_after_statement=no
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012192fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012193rm -f core conftest.err conftest.$ac_objext \
12194 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012195CFLAGS=$ac_wine_try_cflags_saved
12196fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012198$as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012199if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012200 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12201fi
Alexandre Julliard295806f2009-10-07 13:46:06 +020012202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12203$as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12204if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
12205 $as_echo_n "(cached) " >&6
12206else
12207 ac_wine_try_cflags_saved=$CFLAGS
12208CFLAGS="$CFLAGS -Wstrict-prototypes"
12209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12210/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012211int main(int argc, char **argv) { return 0; }
Alexandre Julliard295806f2009-10-07 13:46:06 +020012212_ACEOF
12213if ac_fn_c_try_link "$LINENO"; then :
12214 ac_cv_cflags__Wstrict_prototypes=yes
12215else
12216 ac_cv_cflags__Wstrict_prototypes=no
12217fi
12218rm -f core conftest.err conftest.$ac_objext \
12219 conftest$ac_exeext conftest.$ac_ext
12220CFLAGS=$ac_wine_try_cflags_saved
12221fi
12222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12223$as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12224if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12225 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12226fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012228$as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012229if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012230 $as_echo_n "(cached) " >&6
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012231else
12232 ac_wine_try_cflags_saved=$CFLAGS
12233CFLAGS="$CFLAGS -Wtype-limits"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012235/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012236int main(int argc, char **argv) { return 0; }
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012237_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012238if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012239 ac_cv_cflags__Wtype_limits=yes
12240else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012241 ac_cv_cflags__Wtype_limits=no
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012242fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012243rm -f core conftest.err conftest.$ac_objext \
12244 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012245CFLAGS=$ac_wine_try_cflags_saved
12246fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012248$as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012249if test $ac_cv_cflags__Wtype_limits = yes; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012250 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12251fi
Gerald Pfeifereae58292010-01-02 15:13:43 +010012252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12253$as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12254if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
12255 $as_echo_n "(cached) " >&6
12256else
12257 ac_wine_try_cflags_saved=$CFLAGS
12258CFLAGS="$CFLAGS -Wwrite-strings"
12259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012261int main(int argc, char **argv) { return 0; }
Gerald Pfeifereae58292010-01-02 15:13:43 +010012262_ACEOF
12263if ac_fn_c_try_link "$LINENO"; then :
12264 ac_cv_cflags__Wwrite_strings=yes
12265else
12266 ac_cv_cflags__Wwrite_strings=no
12267fi
12268rm -f core conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext conftest.$ac_ext
12270CFLAGS=$ac_wine_try_cflags_saved
12271fi
12272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12273$as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12274if test $ac_cv_cflags__Wwrite_strings = yes; then :
12275 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12276fi
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012277
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012278 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012279 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12281$as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012282if test "${ac_cv_c_string_h_warnings+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012283 $as_echo_n "(cached) " >&6
Mike McCormackc509bc42003-02-25 04:01:58 +000012284else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012286/* end confdefs.h. */
12287#include <string.h>
12288int
12289main ()
12290{
12291
12292 ;
12293 return 0;
12294}
12295_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012296if ac_fn_c_try_compile "$LINENO"; then :
Mike McCormackc509bc42003-02-25 04:01:58 +000012297 ac_cv_c_string_h_warnings=no
12298else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012299 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000012300fi
Jeremy White0ebeb532006-06-20 13:18:41 +020012301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012302fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012304$as_echo "$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012305 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012306 if test "$ac_cv_c_string_h_warnings" = "no"
12307 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012308 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000012309 fi
Alexandre Julliard12753c52009-10-02 14:39:49 +020012310
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012311 saved_CFLAGS="$CFLAGS"
12312 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12314$as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12315if test "${ac_cv_c_logicalop_noisy+set}" = set; then :
12316 $as_echo_n "(cached) " >&6
12317else
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319/* end confdefs.h. */
12320#include <string.h>
12321int
12322main ()
12323{
12324char*f(const char *h,char n) {return strchr(h,n);}
12325 ;
12326 return 0;
12327}
12328_ACEOF
12329if ac_fn_c_try_compile "$LINENO"; then :
12330 ac_cv_c_logicalop_noisy=no
12331else
12332 ac_cv_c_logicalop_noisy=yes
12333fi
12334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12335fi
12336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12337$as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12338 CFLAGS="$saved_CFLAGS"
12339 if test "$ac_cv_c_logicalop_noisy" = "no"
12340 then
12341 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12342 fi
12343
Andrew Nguyen2eda9c72010-05-25 22:20:14 -050012344 if test "x$enable_maintainer_mode" = "xyes"
Alexandre Julliard12753c52009-10-02 14:39:49 +020012345 then
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12347$as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12348if test "${ac_cv_cflags__Werror+set}" = set; then :
12349 $as_echo_n "(cached) " >&6
12350else
12351 ac_wine_try_cflags_saved=$CFLAGS
12352CFLAGS="$CFLAGS -Werror"
12353cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012355int main(int argc, char **argv) { return 0; }
Alexandre Julliard12753c52009-10-02 14:39:49 +020012356_ACEOF
12357if ac_fn_c_try_link "$LINENO"; then :
12358 ac_cv_cflags__Werror=yes
12359else
12360 ac_cv_cflags__Werror=no
12361fi
12362rm -f core conftest.err conftest.$ac_objext \
12363 conftest$ac_exeext conftest.$ac_ext
12364CFLAGS=$ac_wine_try_cflags_saved
12365fi
12366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12367$as_echo "$ac_cv_cflags__Werror" >&6; }
12368if test $ac_cv_cflags__Werror = yes; then :
12369 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12370fi
12371 fi
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020012372
12373 saved_CFLAGS="$CFLAGS"
12374 CFLAGS="$CFLAGS -Werror"
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12376$as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12377if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12378 $as_echo_n "(cached) " >&6
12379else
12380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12381/* end confdefs.h. */
12382int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12383int
12384main ()
12385{
12386
12387 ;
12388 return 0;
12389}
12390_ACEOF
12391if ac_fn_c_try_compile "$LINENO"; then :
12392 ac_cv_have_ms_hook_prologue="yes"
12393else
12394 ac_cv_have_ms_hook_prologue="no"
12395fi
12396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12397fi
12398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12399$as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12400 CFLAGS="$saved_CFLAGS"
12401 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12402 then
12403
12404$as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12405
12406 else
12407 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12408
12409 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012410fi
12411
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012412
Alexandre Julliard105793b2010-10-22 17:13:57 +020012413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12414$as_echo_n "checking for the need to disable Fortify... " >&6; }
12415if test "${ac_cv_c_fortify_enabled+set}" = set; then :
12416 $as_echo_n "(cached) " >&6
12417else
12418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12419/* end confdefs.h. */
12420#include <string.h>
12421int
12422main ()
12423{
12424#if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12425#error Fortify enabled
12426#endif
12427 ;
12428 return 0;
12429}
12430_ACEOF
12431if ac_fn_c_try_compile "$LINENO"; then :
12432 ac_cv_c_fortify_enabled=no
12433else
12434 ac_cv_c_fortify_enabled=yes
12435fi
12436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12437fi
12438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12439$as_echo "$ac_cv_c_fortify_enabled" >&6; }
12440if test "$ac_cv_c_fortify_enabled" = yes
12441then
Alexandre Julliardb10fb862010-10-29 14:25:01 +020012442 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
Alexandre Julliard105793b2010-10-22 17:13:57 +020012443fi
12444
12445
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012447$as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012448if test "${ac_cv_c_extern_prefix+set}" = set; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012449 $as_echo_n "(cached) " >&6
12450else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012452/* end confdefs.h. */
12453extern int ac_test;
12454int
12455main ()
12456{
12457asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12458 ;
12459 return 0;
12460}
12461_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012462if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012463 ac_cv_c_extern_prefix="yes"
12464else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012465 ac_cv_c_extern_prefix="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012466fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012467rm -f core conftest.err conftest.$ac_objext \
12468 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012469fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012471$as_echo "$ac_cv_c_extern_prefix" >&6; }
12472
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012473case $host_cpu in
12474 *i[3456789]86*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012476$as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012477if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012478 $as_echo_n "(cached) " >&6
12479else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012481/* end confdefs.h. */
12482#ifndef _MSC_VER
12483#define __stdcall __attribute__((__stdcall__))
12484#endif
12485int __stdcall ac_test(int i) { return i; }
12486int
12487main ()
12488{
12489asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12490 ;
12491 return 0;
12492}
12493_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012494if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012495 ac_cv_c_stdcall_suffix="yes"
12496else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012497 ac_cv_c_stdcall_suffix="no"
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012498fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012499rm -f core conftest.err conftest.$ac_objext \
12500 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012501fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012503$as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12504 *) ac_cv_c_stdcall_suffix="no" ;;
12505esac
12506
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012507
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012508if test "$ac_cv_c_extern_prefix" = "yes"
12509then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012510 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012511
12512 asm_name_prefix="_"
12513else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012514 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012515
12516 asm_name_prefix=""
12517fi
12518
12519
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012520if test "$ac_cv_c_stdcall_suffix" = "yes"
12521then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012522 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012523
12524else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012525 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012526
12527fi
12528
12529
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012531$as_echo_n "checking how to define a function in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012532if test "${ac_cv_asm_func_def+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012533 $as_echo_n "(cached) " >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012534else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012536/* end confdefs.h. */
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012537
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012538int
12539main ()
12540{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012541asm("\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 +000012542 ;
12543 return 0;
12544}
12545_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012546if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012547 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012548else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012550/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012551
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012552int
12553main ()
12554{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012555asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012556 ;
12557 return 0;
12558}
12559_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012560if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012561 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012562else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012564/* end confdefs.h. */
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012565
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012566int
12567main ()
12568{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012569asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012570 ;
12571 return 0;
12572}
12573_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012574if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012575 ac_cv_asm_func_def=".type 2"
12576else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012577 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012578fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012579rm -f core conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012581fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012582rm -f core conftest.err conftest.$ac_objext \
12583 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012584fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012585rm -f core conftest.err conftest.$ac_objext \
12586 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012587fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012589$as_echo "$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012590
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012591
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012592case "$ac_cv_asm_func_def" in
12593 ".def")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012594 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012595
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012596 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012597 ".type @function")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012598 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012599
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012600 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012601 ".type 2")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012602 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012603
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012604 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012605 *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012606 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012607
12608 asm_func_header="" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012609esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012610
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012612$as_echo_n "checking whether asm() works outside of functions... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012613if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012614 $as_echo_n "(cached) " >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012615else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012617/* end confdefs.h. */
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012618asm(".text\n\t.long 0");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012619int
12620main ()
12621{
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012622
12623 ;
12624 return 0;
12625}
12626_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012627if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012628 ac_cv_c_asm_outside_funcs="yes"
12629else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012630 ac_cv_c_asm_outside_funcs="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012631fi
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12633fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012634{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012635$as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12636
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012638$as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012639if test "${ac_cv_c_dot_previous+set}" = set; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012640 $as_echo_n "(cached) " >&6
12641else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012643/* end confdefs.h. */
12644
12645int
12646main ()
12647{
12648asm(".text\nac_test:\t.long 0\n\t.previous");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012649 ;
12650 return 0;
12651}
12652_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012653if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012654 ac_cv_c_dot_previous="yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012655else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012656 ac_cv_c_dot_previous="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012657fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012658rm -f core conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012660fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012662$as_echo "$ac_cv_c_dot_previous" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012663
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012665$as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012666if test "${ac_cv_c_cfi_support+set}" = set; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012667 $as_echo_n "(cached) " >&6
12668else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012670/* end confdefs.h. */
12671asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12672int
12673main ()
12674{
12675
12676 ;
12677 return 0;
12678}
12679_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012680if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012681 ac_cv_c_cfi_support="yes"
12682else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012683 ac_cv_c_cfi_support="no"
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012684fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12686fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012688$as_echo "$ac_cv_c_cfi_support" >&6; }
12689
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012690asm_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 +020012691asm_func_trailer=""
12692if test "$ac_cv_c_dot_previous" = "yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012693then
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012694 asm_func_trailer="\\n\\t.previous"
12695fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012696if test "$ac_cv_c_cfi_support" = "yes"
12697then
12698 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12699 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012700
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012701$as_echo "#define __ASM_CFI(str) str" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012702
Alexandre Julliard6c142382010-04-11 12:47:30 +020012703 UNWINDFLAGS=-fasynchronous-unwind-tables
12704
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012705else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012706 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012707
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012708fi
12709
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012710asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12711
12712
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012713if test "$ac_cv_c_asm_outside_funcs" = "yes"
12714then
12715 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012716#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 +000012717_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012718
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012719else
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012720 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012721#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 +000012722_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012723
12724fi
12725
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012726$as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012727
12728
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012729$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 +020012730
12731
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012732
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012733LDPATH=""
12734
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012735case $build_os in
12736 cygwin*|mingw32*)
Alexandre Julliardb860c4a2009-09-01 22:36:13 +020012737 TOOLSEXT=".exe"
12738
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012739 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012740 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000012741 darwin*|macosx*)
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012742 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012743 *)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012744 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012745 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012746esac
12747
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012748case $host_os in
12749 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000012750 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012751
Alexandre Julliardbd9852c2010-09-19 12:40:12 +020012752 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012753
12754 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000012755esac
12756
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012757MAIN_BINARY="wine"
12758
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020012759test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012760
Alexandre Julliard0a086202010-12-16 16:54:15 +010012761case $host_os in
12762 linux*)
12763 case $host_cpu in
12764 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12765 ;;
12766 x86_64*) EXTRA_BINARIES="wine64-preloader"
Tijl Coosemans9f5c69c2007-08-24 15:46:36 +020012767 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010012768 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000012769 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012770esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012771
12772
Alexandre Julliard95251a72009-02-16 12:46:58 +010012773ac_save_CFLAGS="$CFLAGS"
12774CFLAGS="$CFLAGS $BUILTINFLAG"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012775for ac_func in \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012776 _pclose \
12777 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012778 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000012779 _spawnvp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012780 _strdup \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012781 _stricmp \
12782 _strnicmp \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012783 _strtoi64 \
12784 _strtoui64 \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012785 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010012786 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012787 chsize \
Alexandre Julliarde533e972006-08-15 12:11:30 +020012788 dlopen \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000012789 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000012790 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012791 finite \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +020012792 fnmatch \
Hans Leidekkerbed38422004-10-14 03:08:57 +000012793 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012794 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000012795 fstatfs \
12796 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012797 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000012798 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000012799 futimesat \
Charles Davis4e44e152011-01-18 13:09:44 -070012800 getattrlist \
Alexandre Julliarda9f214c2006-11-13 15:42:48 +010012801 getdirentries \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000012802 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012803 getpagesize \
Alexandre Julliard142dab82002-07-01 18:17:30 +000012804 getpwuid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000012805 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000012806 getuid \
Alexandre Julliardc8278922006-08-04 22:11:00 +020012807 kqueue \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000012808 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012809 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000012810 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012811 pclose \
Alexandre Julliard6f68b772009-07-01 12:13:34 +020012812 pipe2 \
Alexandre Julliard10892602006-08-15 11:41:59 +020012813 poll \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012814 popen \
Albert Lee01b972d2009-11-20 18:35:26 -050012815 port_create \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020012816 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012817 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000012818 pwrite \
Rob Shearman87175c62008-10-03 12:55:21 +010012819 readdir \
Alexandre Julliarde2930742004-01-08 05:07:05 +000012820 readlink \
Jeremy White08c0f692004-10-09 02:26:29 +000012821 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012822 select \
Gerald Pfeifer39f67272008-01-20 21:23:08 +010012823 setproctitle \
Paul Millardf10b7d2006-07-16 15:06:28 +010012824 setrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012825 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012826 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000012827 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012828 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000012829 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012830 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000012831 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012832 strcasecmp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012833 strdup \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012834 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012835 strncasecmp \
Louis Lenders6c04a182006-12-17 17:56:50 +000012836 strtold \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012837 strtoll \
12838 strtoull \
Alexandre Julliard0fbd5562008-12-22 10:47:16 +010012839 symlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012840 tcgetattr \
Tijl Coosemans0c4f1522007-08-23 14:12:37 +020012841 thr_kill2 \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012842 timegm \
12843 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012844 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012845 wait4 \
12846 waitpid \
12847
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012848do :
12849 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12850ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020012851if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012852 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012853#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012854_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012855
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012856fi
12857done
12858
Alexandre Julliard95251a72009-02-16 12:46:58 +010012859CFLAGS="$ac_save_CFLAGS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012860
Alexandre Julliarde533e972006-08-15 12:11:30 +020012861if test "$ac_cv_func_dlopen" = no
12862then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012864$as_echo_n "checking for dlopen in -ldl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012865if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012866 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012867else
12868 ac_check_lib_save_LIBS=$LIBS
12869LIBS="-ldl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012871/* end confdefs.h. */
12872
12873/* Override any GCC internal prototype to avoid an error.
12874 Use char because int might match the return type of a GCC
12875 builtin and then its argument prototype would still apply. */
12876#ifdef __cplusplus
12877extern "C"
12878#endif
12879char dlopen ();
12880int
12881main ()
12882{
12883return dlopen ();
12884 ;
12885 return 0;
12886}
12887_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012888if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012889 ac_cv_lib_dl_dlopen=yes
12890else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012891 ac_cv_lib_dl_dlopen=no
Alexandre Julliarde533e972006-08-15 12:11:30 +020012892fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012893rm -f core conftest.err conftest.$ac_objext \
12894 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012895LIBS=$ac_check_lib_save_LIBS
12896fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012898$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012899if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12900 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
Alexandre Julliarde533e972006-08-15 12:11:30 +020012901 LIBDL="-ldl"
12902
12903fi
12904
12905fi
12906ac_wine_check_funcs_save_LIBS="$LIBS"
12907LIBS="$LIBS $LIBDL"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012908for ac_func in dladdr
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012909do :
12910 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12911if test "x$ac_cv_func_dladdr" = x""yes; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012912 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012913#define HAVE_DLADDR 1
Alexandre Julliarde533e972006-08-15 12:11:30 +020012914_ACEOF
12915
12916fi
12917done
12918
12919LIBS="$ac_wine_check_funcs_save_LIBS"
12920
Alexandre Julliard10892602006-08-15 11:41:59 +020012921if test "$ac_cv_func_poll" = no
12922then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012924$as_echo_n "checking for poll in -lpoll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012925if test "${ac_cv_lib_poll_poll+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012926 $as_echo_n "(cached) " >&6
Alexandre Julliard10892602006-08-15 11:41:59 +020012927else
12928 ac_check_lib_save_LIBS=$LIBS
12929LIBS="-lpoll $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012931/* end confdefs.h. */
12932
12933/* Override any GCC internal prototype to avoid an error.
12934 Use char because int might match the return type of a GCC
12935 builtin and then its argument prototype would still apply. */
12936#ifdef __cplusplus
12937extern "C"
12938#endif
12939char poll ();
12940int
12941main ()
12942{
12943return poll ();
12944 ;
12945 return 0;
12946}
12947_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012948if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard10892602006-08-15 11:41:59 +020012949 ac_cv_lib_poll_poll=yes
12950else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012951 ac_cv_lib_poll_poll=no
Alexandre Julliard10892602006-08-15 11:41:59 +020012952fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012953rm -f core conftest.err conftest.$ac_objext \
12954 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012955LIBS=$ac_check_lib_save_LIBS
12956fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012958$as_echo "$ac_cv_lib_poll_poll" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012959if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12960 $as_echo "#define HAVE_POLL 1" >>confdefs.h
Alexandre Julliard10892602006-08-15 11:41:59 +020012961 LIBPOLL="-lpoll"
12962
12963fi
12964
12965fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012966
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012968$as_echo_n "checking for library containing gethostbyname... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012969if test "${ac_cv_search_gethostbyname+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012970 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012971else
Alexandre Julliard28710412007-04-23 16:31:58 +020012972 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012974/* end confdefs.h. */
12975
12976/* Override any GCC internal prototype to avoid an error.
12977 Use char because int might match the return type of a GCC
12978 builtin and then its argument prototype would still apply. */
12979#ifdef __cplusplus
12980extern "C"
12981#endif
12982char gethostbyname ();
12983int
12984main ()
12985{
12986return gethostbyname ();
12987 ;
12988 return 0;
12989}
12990_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012991for ac_lib in '' nsl; do
12992 if test -z "$ac_lib"; then
12993 ac_res="none required"
12994 else
12995 ac_res=-l$ac_lib
12996 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12997 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012998 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012999 ac_cv_search_gethostbyname=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020013000fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013001rm -f core conftest.err conftest.$ac_objext \
13002 conftest$ac_exeext
13003 if test "${ac_cv_search_gethostbyname+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013004 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020013005fi
Alexandre Julliard28710412007-04-23 16:31:58 +020013006done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013007if test "${ac_cv_search_gethostbyname+set}" = set; then :
13008
Alexandre Julliard28710412007-04-23 16:31:58 +020013009else
13010 ac_cv_search_gethostbyname=no
13011fi
13012rm conftest.$ac_ext
13013LIBS=$ac_func_search_save_LIBS
13014fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013016$as_echo "$ac_cv_search_gethostbyname" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020013017ac_res=$ac_cv_search_gethostbyname
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013018if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020013020
13021fi
13022
Alexandre Julliarde533e972006-08-15 12:11:30 +020013023
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013025$as_echo_n "checking for library containing connect... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013026if test "${ac_cv_search_connect+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013027 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020013028else
Alexandre Julliard28710412007-04-23 16:31:58 +020013029 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020013031/* end confdefs.h. */
13032
13033/* Override any GCC internal prototype to avoid an error.
13034 Use char because int might match the return type of a GCC
13035 builtin and then its argument prototype would still apply. */
13036#ifdef __cplusplus
13037extern "C"
13038#endif
13039char connect ();
13040int
13041main ()
13042{
13043return connect ();
13044 ;
13045 return 0;
13046}
13047_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020013048for ac_lib in '' socket; do
13049 if test -z "$ac_lib"; then
13050 ac_res="none required"
13051 else
13052 ac_res=-l$ac_lib
13053 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13054 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013055 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013056 ac_cv_search_connect=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020013057fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013058rm -f core conftest.err conftest.$ac_objext \
13059 conftest$ac_exeext
13060 if test "${ac_cv_search_connect+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013061 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020013062fi
Alexandre Julliard28710412007-04-23 16:31:58 +020013063done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013064if test "${ac_cv_search_connect+set}" = set; then :
13065
Alexandre Julliard28710412007-04-23 16:31:58 +020013066else
13067 ac_cv_search_connect=no
13068fi
13069rm conftest.$ac_ext
13070LIBS=$ac_func_search_save_LIBS
13071fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013073$as_echo "$ac_cv_search_connect" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020013074ac_res=$ac_cv_search_connect
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013075if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013076 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020013077
13078fi
13079
Alexandre Julliarde533e972006-08-15 12:11:30 +020013080
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013082$as_echo_n "checking for library containing inet_aton... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013083if test "${ac_cv_search_inet_aton+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013084 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020013085else
Alexandre Julliard28710412007-04-23 16:31:58 +020013086 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020013088/* end confdefs.h. */
13089
13090/* Override any GCC internal prototype to avoid an error.
13091 Use char because int might match the return type of a GCC
13092 builtin and then its argument prototype would still apply. */
13093#ifdef __cplusplus
13094extern "C"
13095#endif
13096char inet_aton ();
13097int
13098main ()
13099{
13100return inet_aton ();
13101 ;
13102 return 0;
13103}
13104_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020013105for ac_lib in '' resolv; do
13106 if test -z "$ac_lib"; then
13107 ac_res="none required"
13108 else
13109 ac_res=-l$ac_lib
13110 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13111 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013112 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013113 ac_cv_search_inet_aton=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020013114fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013115rm -f core conftest.err conftest.$ac_objext \
13116 conftest$ac_exeext
13117 if test "${ac_cv_search_inet_aton+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013118 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020013119fi
Alexandre Julliard28710412007-04-23 16:31:58 +020013120done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013121if test "${ac_cv_search_inet_aton+set}" = set; then :
13122
Alexandre Julliard28710412007-04-23 16:31:58 +020013123else
13124 ac_cv_search_inet_aton=no
13125fi
13126rm conftest.$ac_ext
13127LIBS=$ac_func_search_save_LIBS
13128fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013130$as_echo "$ac_cv_search_inet_aton" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020013131ac_res=$ac_cv_search_inet_aton
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013132if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013133 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020013134
13135fi
13136
Alexandre Julliarde533e972006-08-15 12:11:30 +020013137
Ben Taylor41c59962007-04-23 13:41:42 +000013138for ac_func in \
13139 getaddrinfo \
13140 getnameinfo \
13141 getnetbyname \
13142 getprotobyname \
13143 getprotobynumber \
13144 getservbyport \
13145 inet_network \
Austin English06566912009-03-28 00:13:09 -050013146 inet_ntop \
13147 inet_pton \
Ben Taylor41c59962007-04-23 13:41:42 +000013148 sendmsg \
Alexandre Julliard98bec052009-03-26 11:07:28 +010013149 socketpair \
Ben Taylor41c59962007-04-23 13:41:42 +000013150
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013151do :
13152 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13153ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013154if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Ben Taylor41c59962007-04-23 13:41:42 +000013155 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010013156#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Ben Taylor41c59962007-04-23 13:41:42 +000013157_ACEOF
13158
13159fi
13160done
13161
13162
Francois Gougetbcba2702008-07-10 12:36:06 +020013163LDAPLIBS=""
13164
13165if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13166then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013167 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13168"
13169if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013171$as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013172if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013173 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020013174else
13175 ac_check_lib_save_LIBS=$LIBS
13176LIBS="-lldap_r $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013178/* end confdefs.h. */
13179
13180/* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13183#ifdef __cplusplus
13184extern "C"
13185#endif
13186char ldap_initialize ();
13187int
13188main ()
13189{
13190return ldap_initialize ();
13191 ;
13192 return 0;
13193}
13194_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013195if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013196 ac_cv_lib_ldap_r_ldap_initialize=yes
13197else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013198 ac_cv_lib_ldap_r_ldap_initialize=no
Francois Gougetbcba2702008-07-10 12:36:06 +020013199fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013200rm -f core conftest.err conftest.$ac_objext \
13201 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013202LIBS=$ac_check_lib_save_LIBS
13203fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013205$as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013206if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013208$as_echo_n "checking for ber_init in -llber... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013209if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013210 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020013211else
13212 ac_check_lib_save_LIBS=$LIBS
13213LIBS="-llber $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013215/* end confdefs.h. */
13216
13217/* Override any GCC internal prototype to avoid an error.
13218 Use char because int might match the return type of a GCC
13219 builtin and then its argument prototype would still apply. */
13220#ifdef __cplusplus
13221extern "C"
13222#endif
13223char ber_init ();
13224int
13225main ()
13226{
13227return ber_init ();
13228 ;
13229 return 0;
13230}
13231_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013232if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013233 ac_cv_lib_lber_ber_init=yes
13234else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013235 ac_cv_lib_lber_ber_init=no
Francois Gougetbcba2702008-07-10 12:36:06 +020013236fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013237rm -f core conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013239LIBS=$ac_check_lib_save_LIBS
13240fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013242$as_echo "$ac_cv_lib_lber_ber_init" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013243if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013244
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013245$as_echo "#define HAVE_LDAP 1" >>confdefs.h
Francois Gougetbcba2702008-07-10 12:36:06 +020013246
13247 LDAPLIBS="-lldap_r -llber"
13248fi
13249
13250fi
13251
13252fi
13253
13254 ac_wine_check_funcs_save_LIBS="$LIBS"
13255LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Francois Gougetbcba2702008-07-10 12:36:06 +020013256for ac_func in \
13257 ldap_count_references \
13258 ldap_first_reference \
13259 ldap_next_reference \
13260 ldap_parse_reference \
13261 ldap_parse_sort_control \
13262 ldap_parse_sortresponse_control \
13263 ldap_parse_vlv_control \
13264 ldap_parse_vlvresponse_control
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013265do :
13266 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13267ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013268if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013269 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010013270#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Francois Gougetbcba2702008-07-10 12:36:06 +020013271_ACEOF
13272
13273fi
13274done
13275
13276LIBS="$ac_wine_check_funcs_save_LIBS"
13277fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013278if test "x$LDAPLIBS" = "x"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013279 case "x$with_ldap" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010013280 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 +020013281 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013282 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13283This is an error since --with-ldap was requested." "$LINENO" 5 ;;
Francois Gougetbcba2702008-07-10 12:36:06 +020013284esac
13285fi
13286
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010013288$as_echo_n "checking whether mkdir takes only one argument... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013289if test "${wine_cv_one_arg_mkdir+set}" = set; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010013290 $as_echo_n "(cached) " >&6
13291else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard921e6622008-12-22 10:39:11 +010013293/* end confdefs.h. */
13294#include <sys/stat.h>
13295int
13296main ()
13297{
13298mkdir("foo");
13299 ;
13300 return 0;
13301}
13302_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013303if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010013304 wine_cv_one_arg_mkdir=yes
13305else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013306 wine_cv_one_arg_mkdir=no
Alexandre Julliard921e6622008-12-22 10:39:11 +010013307fi
Alexandre Julliard921e6622008-12-22 10:39:11 +010013308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13309fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010013311$as_echo "$wine_cv_one_arg_mkdir" >&6; }
13312if test "$wine_cv_one_arg_mkdir" = "yes"
13313then
13314
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013315$as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
Alexandre Julliard921e6622008-12-22 10:39:11 +010013316
13317fi
13318
Andrew Nguyen2f22a502011-02-22 07:10:22 -060013319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sched_setaffinity" >&5
13320$as_echo_n "checking for sched_setaffinity... " >&6; }
13321if test "${wine_cv_have_sched_setaffinity+set}" = set; then :
13322 $as_echo_n "(cached) " >&6
13323else
13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325/* end confdefs.h. */
13326#define _GNU_SOURCE
13327#include <sched.h>
13328int
13329main ()
13330{
13331sched_setaffinity(0, 0, 0);
13332 ;
13333 return 0;
13334}
13335_ACEOF
13336if ac_fn_c_try_link "$LINENO"; then :
13337 wine_cv_have_sched_setaffinity=yes
13338else
13339 wine_cv_have_sched_setaffinity=no
13340fi
13341rm -f core conftest.err conftest.$ac_objext \
13342 conftest$ac_exeext conftest.$ac_ext
13343fi
13344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sched_setaffinity" >&5
13345$as_echo "$wine_cv_have_sched_setaffinity" >&6; }
13346if test "$wine_cv_have_sched_setaffinity" = "yes"
13347then
13348
13349$as_echo "#define HAVE_SCHED_SETAFFINITY 1" >>confdefs.h
13350
13351fi
13352
Ben Taylor41c59962007-04-23 13:41:42 +000013353
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013355$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013356if test "${ac_cv_c_const+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013357 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013358else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013360/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013361
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013362int
13363main ()
13364{
13365/* FIXME: Include the comments suggested by Paul. */
13366#ifndef __cplusplus
13367 /* Ultrix mips cc rejects this. */
13368 typedef int charset[2];
Phil Krylovf0ca5862006-11-05 23:03:46 +030013369 const charset cs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013370 /* SunOS 4.1.1 cc rejects this. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030013371 char const *const *pcpcc;
13372 char **ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013373 /* NEC SVR4.0.2 mips cc rejects this. */
13374 struct point {int x, y;};
13375 static struct point const zero = {0,0};
13376 /* AIX XL C 1.02.0.0 rejects this.
13377 It does not let you subtract one const X* pointer from another in
13378 an arm of an if-expression whose if-part is not a constant
13379 expression */
13380 const char *g = "string";
Phil Krylovf0ca5862006-11-05 23:03:46 +030013381 pcpcc = &g + (g ? g-g : 0);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013382 /* HPUX 7.0 cc rejects these. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030013383 ++pcpcc;
13384 ppc = (char**) pcpcc;
13385 pcpcc = (char const *const *) ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013386 { /* SCO 3.2v4 cc rejects this. */
13387 char *t;
13388 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013389
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013390 *t++ = 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013391 if (s) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013392 }
13393 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13394 int x[] = {25, 17};
13395 const int *foo = &x[0];
13396 ++foo;
13397 }
13398 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13399 typedef const int *iptr;
13400 iptr p = 0;
13401 ++p;
13402 }
13403 { /* AIX XL C 1.02.0.0 rejects this saying
13404 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13405 struct s { int j; const int *ap[3]; };
13406 struct s *b; b->j = 5;
13407 }
13408 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13409 const int foo = 10;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013410 if (!foo) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013411 }
Phil Krylovf0ca5862006-11-05 23:03:46 +030013412 return !cs[0] && !zero.x;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013413#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013414
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013415 ;
13416 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013417}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013418_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013419if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013420 ac_cv_c_const=yes
13421else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013422 ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013423fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013425fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013427$as_echo "$ac_cv_c_const" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013428if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013429
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013430$as_echo "#define const /**/" >>confdefs.h
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013431
13432fi
13433
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013435$as_echo_n "checking for inline... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013436if test "${ac_cv_c_inline+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013437 $as_echo_n "(cached) " >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013438else
13439 ac_cv_c_inline=no
13440for ac_kw in inline __inline__ __inline; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013442/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013443#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013444typedef int foo_t;
13445static $ac_kw foo_t static_foo () {return 0; }
13446$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013447#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013448
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013449_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013450if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013451 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013452fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013454 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013455done
13456
13457fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013459$as_echo "$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000013460
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013461case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013462 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000013463 *)
13464 case $ac_cv_c_inline in
13465 no) ac_val=;;
13466 *) ac_val=$ac_cv_c_inline;;
13467 esac
13468 cat >>confdefs.h <<_ACEOF
13469#ifndef __cplusplus
13470#define inline $ac_val
13471#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013472_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000013473 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013474esac
13475
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013476ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13477if test "x$ac_cv_type_mode_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013478
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013479cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013480#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013481_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013482
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013483
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013484fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013485ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13486if test "x$ac_cv_type_off_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013487
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013488cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013489#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013490_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013491
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013492
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013493fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013494ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13495if test "x$ac_cv_type_pid_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013496
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013497cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013498#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013499_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013500
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013501
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013502fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013503ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13504if test "x$ac_cv_type_size_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013505
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013506cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013507#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013508_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013509
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013510
13511fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013512ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13513if test "x$ac_cv_type_ssize_t" = x""yes; then :
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013514
13515cat >>confdefs.h <<_ACEOF
13516#define HAVE_SSIZE_T 1
13517_ACEOF
13518
13519
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013520fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013521ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13522if test "x$ac_cv_type_long_long" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013523
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013524cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013525#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013526_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013527
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013528
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013529fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013530ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13531if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013532
13533cat >>confdefs.h <<_ACEOF
13534#define HAVE_FSBLKCNT_T 1
13535_ACEOF
13536
13537
13538fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013539ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13540if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013541
13542cat >>confdefs.h <<_ACEOF
13543#define HAVE_FSFILCNT_T 1
13544_ACEOF
13545
13546
13547fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013548
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013549ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
Alexandre Julliardabf50482008-10-31 12:56:53 +010013550#include <signal.h>
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013551"
13552if test "x$ac_cv_type_sigset_t" = x""yes; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013553
13554cat >>confdefs.h <<_ACEOF
13555#define HAVE_SIGSET_T 1
13556_ACEOF
13557
13558
13559fi
13560
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013561ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13562"
13563if test "x$ac_cv_type_request_sense" = x""yes; then :
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000013564
13565cat >>confdefs.h <<_ACEOF
13566#define HAVE_REQUEST_SENSE 1
13567_ACEOF
13568
13569
13570fi
13571
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013572
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013573ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
Austin English68f2db22009-01-29 08:28:37 -060013574#ifdef HAVE_SYS_SOCKET_H
13575#include <sys/socket.h>
13576#endif
13577#ifdef HAVE_SYS_SOCKETVAR_H
13578#include <sys/socketvar.h>
13579#endif
13580#ifdef HAVE_NET_ROUTE_H
13581#include <net/route.h>
13582#endif
13583#ifdef HAVE_NETINET_IN_H
13584#include <netinet/in.h>
13585#endif
13586#ifdef HAVE_NETINET_IN_SYSTM_H
13587#include <netinet/in_systm.h>
13588#endif
13589#ifdef HAVE_NETINET_IP_H
13590#include <netinet/ip.h>
13591#endif
13592#ifdef HAVE_NETINET_IN_PCB_H
13593#include <netinet/in_pcb.h>
13594#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013595"
13596if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
Austin English68f2db22009-01-29 08:28:37 -060013597
13598cat >>confdefs.h <<_ACEOF
13599#define HAVE_STRUCT_XINPGEN 1
13600_ACEOF
13601
13602
13603fi
13604
13605
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013606ac_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 +000013607#include <linux/input.h>
13608#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013609"
13610if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
Daniel Remenake491e8f2005-07-29 14:18:58 +000013611
13612cat >>confdefs.h <<_ACEOF
13613#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13614_ACEOF
13615
13616
13617fi
13618
13619
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013621$as_echo_n "checking for sigaddset... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013622if test "${wine_cv_have_sigaddset+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013623 $as_echo_n "(cached) " >&6
Paul Millar10a6c562004-12-07 17:19:54 +000013624else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013626/* end confdefs.h. */
13627#include <signal.h>
13628int
13629main ()
13630{
13631sigset_t set; sigaddset(&set,SIGTERM);
13632 ;
13633 return 0;
13634}
13635_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013636if ac_fn_c_try_link "$LINENO"; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013637 wine_cv_have_sigaddset=yes
13638else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013639 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000013640fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013641rm -f core conftest.err conftest.$ac_objext \
13642 conftest$ac_exeext conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013643fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013645$as_echo "$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000013646if test "$wine_cv_have_sigaddset" = "yes"
13647then
13648
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013649$as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
Paul Millar10a6c562004-12-07 17:19:54 +000013650
13651fi
13652
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013653
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013654{ $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 +010013655$as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013656if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013657 $as_echo_n "(cached) " >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013658else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013660/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000013661#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013662int
13663main ()
13664{
Rein Klazesff7a61f2000-09-24 19:41:57 +000013665
Ken Thomases20d9bad2007-10-19 16:18:51 -050013666 char *name=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013667 struct hostent he;
13668 struct hostent *result;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013669 char *buf=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013670 int bufsize=0;
13671 int res,errnr;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013672 char *addr=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013673 int addrlen=0;
13674 int addrtype=0;
13675 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13676 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013677
13678 ;
13679 return 0;
13680}
13681_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013682if ac_fn_c_try_link "$LINENO"; then :
Rein Klazesff7a61f2000-09-24 19:41:57 +000013683 wine_cv_linux_gethostbyname_r_6=yes
13684else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013685 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000013686
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013687fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013688rm -f core conftest.err conftest.$ac_objext \
13689 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013690
13691fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013693$as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000013694 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13695 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013696
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013697$as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
Rein Klazesff7a61f2000-09-24 19:41:57 +000013698
13699 fi
13700
Marcus Meissner028e9a11999-08-04 15:07:56 +000013701if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013702then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013703 { $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 +010013704$as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013705if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013706 $as_echo_n "(cached) " >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013707else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013709/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013710
Marcus Meissner028e9a11999-08-04 15:07:56 +000013711 #include <sys/ioctl.h>
Marcus Meissner7c434992007-04-12 12:12:05 +020013712 #include <sys/types.h>
Marcus Meissner028e9a11999-08-04 15:07:56 +000013713 #include <linux/joystick.h>
13714
13715 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000013716 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13717 #error "no 2.2 header"
13718 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013719
13720int
13721main ()
13722{
Marcus Meissner028e9a11999-08-04 15:07:56 +000013723/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013724 ;
13725 return 0;
13726}
13727_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013728if ac_fn_c_try_compile "$LINENO"; then :
Marcus Meissner028e9a11999-08-04 15:07:56 +000013729 wine_cv_linux_joystick_22_api=yes
13730else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013731 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000013732fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000013734
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013735fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013737$as_echo "$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000013738 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013739 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013740
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013741$as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
Marcus Meissner028e9a11999-08-04 15:07:56 +000013742
13743 fi
13744fi
13745
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013746
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013747ac_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 +000013748#ifdef HAVE_SYS_PARAM_H
13749# include <sys/param.h>
13750#endif
Robert Millan55b74482006-02-06 21:53:27 +010013751#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013752# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013753#endif
13754#ifdef HAVE_SYS_VFS_H
13755# include <sys/vfs.h>
13756#endif
13757#ifdef HAVE_SYS_STATFS_H
13758# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013759#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013760"
13761if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013762
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013763cat >>confdefs.h <<_ACEOF
13764#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013765_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013766
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013767
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013768fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013769ac_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 +000013770#ifdef HAVE_SYS_PARAM_H
13771# include <sys/param.h>
13772#endif
Robert Millan55b74482006-02-06 21:53:27 +010013773#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013774# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013775#endif
13776#ifdef HAVE_SYS_VFS_H
13777# include <sys/vfs.h>
13778#endif
13779#ifdef HAVE_SYS_STATFS_H
13780# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013781#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013782"
13783if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
Patrik Stridvall09da9662001-07-08 22:30:50 +000013784
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013785cat >>confdefs.h <<_ACEOF
13786#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013787_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013788
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013789
Patrik Stridvall09da9662001-07-08 22:30:50 +000013790fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013791ac_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 +000013792#ifdef HAVE_SYS_PARAM_H
13793# include <sys/param.h>
13794#endif
Robert Millan55b74482006-02-06 21:53:27 +010013795#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013796# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013797#endif
13798#ifdef HAVE_SYS_VFS_H
13799# include <sys/vfs.h>
13800#endif
13801#ifdef HAVE_SYS_STATFS_H
13802# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013803#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013804"
13805if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013806
13807cat >>confdefs.h <<_ACEOF
13808#define HAVE_STRUCT_STATFS_F_FRSIZE 1
13809_ACEOF
13810
13811
13812fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013813ac_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 +000013814#ifdef HAVE_SYS_PARAM_H
13815# include <sys/param.h>
13816#endif
Robert Millan55b74482006-02-06 21:53:27 +010013817#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013818# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013819#endif
13820#ifdef HAVE_SYS_VFS_H
13821# include <sys/vfs.h>
13822#endif
13823#ifdef HAVE_SYS_STATFS_H
13824# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013825#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013826"
13827if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013828
13829cat >>confdefs.h <<_ACEOF
13830#define HAVE_STRUCT_STATFS_F_FFREE 1
13831_ACEOF
13832
13833
13834fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013835ac_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 +000013836#ifdef HAVE_SYS_PARAM_H
13837# include <sys/param.h>
13838#endif
Robert Millan55b74482006-02-06 21:53:27 +010013839#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013840# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013841#endif
13842#ifdef HAVE_SYS_VFS_H
13843# include <sys/vfs.h>
13844#endif
13845#ifdef HAVE_SYS_STATFS_H
13846# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013847#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013848"
13849if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013850
13851cat >>confdefs.h <<_ACEOF
13852#define HAVE_STRUCT_STATFS_F_FAVAIL 1
13853_ACEOF
13854
13855
13856fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013857ac_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 +000013858#ifdef HAVE_SYS_PARAM_H
13859# include <sys/param.h>
13860#endif
Robert Millan55b74482006-02-06 21:53:27 +010013861#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000013862# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013863#endif
13864#ifdef HAVE_SYS_VFS_H
13865# include <sys/vfs.h>
13866#endif
13867#ifdef HAVE_SYS_STATFS_H
13868# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000013869#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013870"
13871if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
Alexandre Julliardb859a682004-03-07 03:16:43 +000013872
13873cat >>confdefs.h <<_ACEOF
13874#define HAVE_STRUCT_STATFS_F_NAMELEN 1
13875_ACEOF
13876
13877
13878fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000013879
13880
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013881ac_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 +000013882#include <sys/statvfs.h>
13883#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013884"
13885if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013886
13887cat >>confdefs.h <<_ACEOF
13888#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13889_ACEOF
13890
13891
13892fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000013893
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013894
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013895ac_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 +000013896#ifdef HAVE_SYS_SOCKET_H
13897# include <sys/socket.h>
13898#endif
13899#ifdef HAVE_SYS_UN_H
13900# include <sys/un.h>
13901#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013902"
13903if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
Juergen Lock2d33ab92000-02-13 16:03:29 +000013904
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013905cat >>confdefs.h <<_ACEOF
13906#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013907_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013908
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013909
13910fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013911ac_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 +000013912#ifdef HAVE_SYS_SOCKET_H
13913# include <sys/socket.h>
13914#endif
13915#ifdef HAVE_SYS_UN_H
13916# include <sys/un.h>
13917#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013918"
13919if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013920
13921cat >>confdefs.h <<_ACEOF
13922#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13923_ACEOF
13924
13925
13926fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013927ac_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 +000013928#ifdef HAVE_SYS_SOCKET_H
13929# include <sys/socket.h>
13930#endif
13931#ifdef HAVE_SYS_UN_H
13932# include <sys/un.h>
13933#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013934"
13935if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013936
13937cat >>confdefs.h <<_ACEOF
13938#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13939_ACEOF
13940
13941
Juergen Lock2d33ab92000-02-13 16:03:29 +000013942fi
13943
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013944
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013945ac_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 +000013946#ifdef HAVE_SCSI_SG_H
13947#include <scsi/sg.h>
13948#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013949"
13950if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013951
13952cat >>confdefs.h <<_ACEOF
13953#define HAVE_SCSIREQ_T_CMD 1
13954_ACEOF
13955
13956
13957fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013958ac_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 +000013959#ifdef HAVE_SCSI_SG_H
13960#include <scsi/sg.h>
13961#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013962"
13963if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013964
13965cat >>confdefs.h <<_ACEOF
13966#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13967_ACEOF
13968
13969
13970fi
13971
13972
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013973ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13974"
13975if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013976
13977cat >>confdefs.h <<_ACEOF
13978#define HAVE_SIGINFO_T_SI_FD 1
13979_ACEOF
13980
13981
13982fi
13983
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013984
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013985ac_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 +010013986#ifdef HAVE_SYS_MTIO_H
13987#include <sys/mtio.h>
13988#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013989"
13990if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013991
13992cat >>confdefs.h <<_ACEOF
13993#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13994_ACEOF
13995
13996
13997fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013998ac_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 +010013999#ifdef HAVE_SYS_MTIO_H
14000#include <sys/mtio.h>
14001#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014002"
14003if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010014004
14005cat >>confdefs.h <<_ACEOF
14006#define HAVE_STRUCT_MTGET_MT_GSTAT 1
14007_ACEOF
14008
14009
14010fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014011ac_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 +010014012#ifdef HAVE_SYS_MTIO_H
14013#include <sys/mtio.h>
14014#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014015"
14016if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010014017
14018cat >>confdefs.h <<_ACEOF
14019#define HAVE_STRUCT_MTGET_MT_BLKNO 1
14020_ACEOF
14021
14022
14023fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010014024
14025
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014026ac_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 +000014027#include <getopt.h>
14028#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014029"
14030if test "x$ac_cv_member_struct_option_name" = x""yes; then :
Alexandre Julliarddb89a542003-04-20 02:56:14 +000014031
14032cat >>confdefs.h <<_ACEOF
14033#define HAVE_STRUCT_OPTION_NAME 1
14034_ACEOF
14035
14036
14037fi
14038
14039
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014040ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
14041if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
Pavel Roskind6507192003-10-03 03:28:40 +000014042
14043cat >>confdefs.h <<_ACEOF
14044#define HAVE_STRUCT_STAT_ST_BLOCKS 1
14045_ACEOF
14046
14047
14048fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014049ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
14050if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020014051
14052cat >>confdefs.h <<_ACEOF
14053#define HAVE_STRUCT_STAT_ST_MTIM 1
14054_ACEOF
14055
14056
14057fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014058ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14059if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020014060
14061cat >>confdefs.h <<_ACEOF
14062#define HAVE_STRUCT_STAT_ST_CTIM 1
14063_ACEOF
14064
14065
14066fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014067ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14068if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020014069
14070cat >>confdefs.h <<_ACEOF
14071#define HAVE_STRUCT_STAT_ST_ATIM 1
14072_ACEOF
14073
14074
14075fi
Pavel Roskind6507192003-10-03 03:28:40 +000014076
14077
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014078ac_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 +030014079#include <sys/types.h>
14080#endif
14081#ifdef HAVE_NETINET_IN_H
14082#include <netinet/in.h>
14083#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014084"
14085if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030014086
14087cat >>confdefs.h <<_ACEOF
14088#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14089_ACEOF
14090
14091
14092fi
14093
14094
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014095ac_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 +020014096#include <sys/types.h>
14097#endif
14098#ifdef HAVE_NETINET_IN_H
14099# include <netinet/in.h>
14100#endif
14101#ifdef HAVE_ARPA_NAMESER_H
14102# include <arpa/nameser.h>
14103#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014104"
14105if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
Alexandre Julliard788e30f2006-05-31 14:43:21 +020014106
14107cat >>confdefs.h <<_ACEOF
14108#define HAVE_NS_MSG__MSG_PTR 1
14109_ACEOF
14110
14111
14112fi
14113
14114
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014115ac_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 -060014116#include <sys/types.h>
14117#endif
14118#ifdef HAVE_ALIAS_H
14119#include <alias.h>
14120#endif
14121#ifdef HAVE_SYS_SOCKET_H
14122#include <sys/socket.h>
14123#endif
14124#ifdef HAVE_SYS_SOCKETVAR_H
14125#include <sys/socketvar.h>
14126#endif
14127#ifdef HAVE_SYS_TIMEOUT_H
14128#include <sys/timeout.h>
14129#endif
14130#ifdef HAVE_NETINET_IN_H
14131#include <netinet/in.h>
14132#endif
14133#ifdef HAVE_NETINET_IN_SYSTM_H
14134#include <netinet/in_systm.h>
14135#endif
14136#ifdef HAVE_NETINET_IP_H
14137#include <netinet/ip.h>
14138#endif
14139#ifdef HAVE_NETINET_IP_VAR_H
14140#include <netinet/ip_var.h>
14141#endif
14142#ifdef HAVE_NETINET_IP_ICMP_H
14143#include <netinet/ip_icmp.h>
14144#endif
14145#ifdef HAVE_NETINET_ICMP_VAR
14146#include <netinet/icmp_var.h>
14147#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014148"
14149if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
Austin Englishac0252d2009-01-30 10:18:10 -060014150
14151cat >>confdefs.h <<_ACEOF
14152#define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14153_ACEOF
14154
14155
14156fi
14157
14158
Juan Lang984c3b22010-03-12 10:38:46 -080014159ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14160#include <sys/types.h>
14161#endif
14162#ifdef HAVE_NET_IF_H
14163# include <net/if.h>
14164#endif
14165"
14166if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
14167
14168cat >>confdefs.h <<_ACEOF
14169#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14170_ACEOF
14171
14172
14173fi
14174
14175
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014177$as_echo_n "checking for timezone variable... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014178if test "${ac_cv_have_timezone+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014179 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000014180else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014182/* end confdefs.h. */
14183#include <time.h>
14184int
14185main ()
14186{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020014187timezone = 1
Phil Krylov6618b032005-05-24 11:52:46 +000014188 ;
14189 return 0;
14190}
14191_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014192if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000014193 ac_cv_have_timezone="yes"
14194else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014195 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000014196fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014197rm -f core conftest.err conftest.$ac_objext \
14198 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014199fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014201$as_echo "$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000014202if test "$ac_cv_have_timezone" = "yes"
14203then
14204
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014205$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000014206
14207fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014209$as_echo_n "checking for daylight variable... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014210if test "${ac_cv_have_daylight+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014211 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000014212else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014214/* end confdefs.h. */
14215#include <time.h>
14216int
14217main ()
14218{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020014219daylight = 1
Phil Krylov6618b032005-05-24 11:52:46 +000014220 ;
14221 return 0;
14222}
14223_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014224if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000014225 ac_cv_have_daylight="yes"
14226else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014227 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000014228fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014229rm -f core conftest.err conftest.$ac_objext \
14230 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014231fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014233$as_echo "$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000014234if test "$ac_cv_have_daylight" = "yes"
14235then
14236
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014237$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000014238
14239fi
14240
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014242$as_echo_n "checking for isinf... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014243if test "${ac_cv_have_isinf+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014244 $as_echo_n "(cached) " >&6
Petr Sumbera4992b652008-04-29 17:08:53 +020014245else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020014247/* end confdefs.h. */
14248#include <math.h>
14249int
14250main ()
14251{
Francois Gouget2fef93a2008-06-26 15:59:05 +020014252float f = 0.0; int i=isinf(f)
Petr Sumbera4992b652008-04-29 17:08:53 +020014253 ;
14254 return 0;
14255}
14256_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014257if ac_fn_c_try_link "$LINENO"; then :
Petr Sumbera4992b652008-04-29 17:08:53 +020014258 ac_cv_have_isinf="yes"
14259else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014260 ac_cv_have_isinf="no"
Petr Sumbera4992b652008-04-29 17:08:53 +020014261fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014262rm -f core conftest.err conftest.$ac_objext \
14263 conftest$ac_exeext conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020014264fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014266$as_echo "$ac_cv_have_isinf" >&6; }
Petr Sumbera4992b652008-04-29 17:08:53 +020014267if test "$ac_cv_have_isinf" = "yes"
14268then
14269
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014270$as_echo "#define HAVE_ISINF 1" >>confdefs.h
Petr Sumbera4992b652008-04-29 17:08:53 +020014271
14272fi
14273
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014275$as_echo_n "checking for isnan... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014276if test "${ac_cv_have_isnan+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014277 $as_echo_n "(cached) " >&6
Jacek Caban1715dcb2008-10-14 16:06:49 -050014278else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050014280/* end confdefs.h. */
14281#include <math.h>
14282int
14283main ()
14284{
14285float f = 0.0; int i=isnan(f)
14286 ;
14287 return 0;
14288}
14289_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014290if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban1715dcb2008-10-14 16:06:49 -050014291 ac_cv_have_isnan="yes"
14292else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014293 ac_cv_have_isnan="no"
Jacek Caban1715dcb2008-10-14 16:06:49 -050014294fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014295rm -f core conftest.err conftest.$ac_objext \
14296 conftest$ac_exeext conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050014297fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014299$as_echo "$ac_cv_have_isnan" >&6; }
Jacek Caban1715dcb2008-10-14 16:06:49 -050014300if test "$ac_cv_have_isnan" = "yes"
14301then
14302
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014303$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
Jacek Caban1715dcb2008-10-14 16:06:49 -050014304
14305fi
14306
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014307
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014308case $host_cpu in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014309 *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 +010014310$as_echo_n "checking whether we need to define __i386__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014311if test "${ac_cv_cpp_def___i386__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014312 $as_echo_n "(cached) " >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000014313else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014315/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014316#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014317yes
14318#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014319_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014320if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014321 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014322 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014323else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014324 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014325fi
14326rm -f conftest*
14327
14328fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014330$as_echo "$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014331if test $ac_cv_cpp_def___i386__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014332 CFLAGS="$CFLAGS -D__i386__"
14333 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014334fi ;;
14335 *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 +010014336$as_echo_n "checking whether we need to define __x86_64__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014337if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014338 $as_echo_n "(cached) " >&6
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014339else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014341/* end confdefs.h. */
14342#ifndef __x86_64__
14343yes
14344#endif
14345_ACEOF
14346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014347 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014348 ac_cv_cpp_def___x86_64__=yes
14349else
14350 ac_cv_cpp_def___x86_64__=no
14351fi
14352rm -f conftest*
14353
14354fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014356$as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014357if test $ac_cv_cpp_def___x86_64__ = yes; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014358 CFLAGS="$CFLAGS -D__x86_64__"
14359 LINTFLAGS="$LINTFLAGS -D__x86_64__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014360fi ;;
14361 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014362$as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014363if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014364 $as_echo_n "(cached) " >&6
Steven Edwards69b67862002-12-10 22:48:48 +000014365else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014367/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000014368#ifndef __ALPHA__
14369yes
14370#endif
14371_ACEOF
14372if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014373 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014374 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000014375else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014376 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000014377fi
14378rm -f conftest*
14379
14380fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014382$as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014383if test $ac_cv_cpp_def___ALPHA__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014384 CFLAGS="$CFLAGS -D__ALPHA__"
14385 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014386fi ;;
14387 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014388$as_echo_n "checking whether we need to define __sparc__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014389if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014390 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014391else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014393/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014394#ifndef __sparc__
14395yes
14396#endif
14397_ACEOF
14398if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014399 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014400 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014401else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014402 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014403fi
14404rm -f conftest*
14405
14406fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014408$as_echo "$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014409if test $ac_cv_cpp_def___sparc__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014410 CFLAGS="$CFLAGS -D__sparc__"
14411 LINTFLAGS="$LINTFLAGS -D__sparc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014412fi ;;
14413 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014414$as_echo_n "checking whether we need to define __powerpc__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014415if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014416 $as_echo_n "(cached) " >&6
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014417else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014419/* end confdefs.h. */
14420#ifndef __powerpc__
14421yes
14422#endif
14423_ACEOF
14424if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014425 $EGREP "yes" >/dev/null 2>&1; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014426 ac_cv_cpp_def___powerpc__=yes
14427else
14428 ac_cv_cpp_def___powerpc__=no
14429fi
14430rm -f conftest*
14431
14432fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014434$as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014435if test $ac_cv_cpp_def___powerpc__ = yes; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014436 CFLAGS="$CFLAGS -D__powerpc__"
14437 LINTFLAGS="$LINTFLAGS -D__powerpc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014438fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014439esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014440
14441case $host_vendor in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014442 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014443$as_echo_n "checking whether we need to define __sun__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014444if test "${ac_cv_cpp_def___sun__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014445 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014446else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014448/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014449#ifndef __sun__
14450yes
14451#endif
14452_ACEOF
14453if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014454 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014455 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014456else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014457 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014458fi
14459rm -f conftest*
14460
14461fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014463$as_echo "$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014464if test $ac_cv_cpp_def___sun__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014465 CFLAGS="$CFLAGS -D__sun__"
14466 LINTFLAGS="$LINTFLAGS -D__sun__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014467fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014468esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014469
14470
Alexandre Julliarda360e932008-08-20 16:02:37 +020014471
Alexandre Julliard7d831152010-03-20 15:07:45 +010014472
Alexandre Julliard6c142382010-04-11 12:47:30 +020014473
Alexandre Julliard7d831152010-03-20 15:07:45 +010014474ac_config_commands="$ac_config_commands include/stamp-h"
14475
Alexandre Julliard03642412010-03-20 15:24:22 +010014476
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014477ALL_MAKEFILE_DEPENDS="
14478# Rules automatically generated by configure
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014479
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014480.INIT: Makefile
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014481.MAKEFILEDEPS:
Alexandre Julliardbd3110d2010-05-23 10:34:36 +020014482all: Makefile
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020014483Makefile: Makefile.in Make.vars.in Make.rules config.status
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014484 @./config.status Make.tmp Makefile"
Alexandre Julliarda360e932008-08-20 16:02:37 +020014485
Alexandre Julliard367fd222011-01-04 17:05:21 +010014486ALL_POT_FILES=""
Alexandre Julliardd5addea2010-02-08 21:27:54 +010014487ALL_WINETEST_DEPENDS="# Test binaries"
14488
Alexandre Julliard454fb3c2010-02-08 21:29:13 +010014489ALL_TEST_BINARIES=""
14490
Alexandre Julliard49163da2008-08-25 12:02:27 +020014491
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014492wine_fn_append_file ()
14493{
14494 as_fn_append $1 " \\$as_nl $2"
14495}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014496
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014497wine_fn_append_rule ()
14498{
14499 as_fn_append $1 "$as_nl$2"
14500}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014501
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014502wine_fn_has_flag ()
14503{
14504 expr ",$2," : ".*,$1,.*" >/dev/null
14505}
14506
Alexandre Julliard943cd732010-03-25 21:52:56 +010014507wine_fn_all_dir_rules ()
14508{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014509 ac_dir=$1
14510 ac_alldeps=$2
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014511 ac_makedep="\$(MAKEDEP)"
14512 ac_input=Make.vars.in:$ac_dir/Makefile.in
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014513 if test $ac_dir != tools
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014514 then
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014515 ac_alldeps="$2 $ac_makedep"
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014516 fi
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014517 case $2 in
14518 *.in) ac_input=$ac_input:$2 ;;
14519 *) ac_makedep="$2 $ac_makedep" ;;
14520 esac
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014521
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014522 wine_fn_append_file ALL_DIRS $ac_dir
Alexandre Julliard943cd732010-03-25 21:52:56 +010014523 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014524"__clean__: $ac_dir/__clean__
14525.PHONY: $ac_dir/__clean__
14526$ac_dir/__clean__: $ac_dir/Makefile
14527 @cd $ac_dir && \$(MAKE) clean
14528 \$(RM) $ac_dir/Makefile
14529$ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014530 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014531depend: $ac_dir/__depend__
14532.PHONY: $ac_dir/__depend__
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014533$ac_dir/__depend__: $ac_makedep dummy
14534 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
Alexandre Julliard943cd732010-03-25 21:52:56 +010014535}
14536
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014537wine_fn_config_makefile ()
14538{
14539 ac_dir=$1
Alexandre Julliard03642412010-03-20 15:24:22 +010014540 ac_enable=$2
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014541 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014542 return 0
14543fi
Alexandre Julliard03642412010-03-20 15:24:22 +010014544
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014545 wine_fn_all_dir_rules $ac_dir Make.rules
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014546 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014547"all: $ac_dir
14548.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014549$ac_dir: $ac_dir/Makefile dummy
14550 @cd $ac_dir && \$(MAKE)
Alexandre Julliarde84063b2010-03-25 21:46:41 +010014551install:: $ac_dir
14552 @cd $ac_dir && \$(MAKE) install
14553install-lib:: $ac_dir
14554 @cd $ac_dir && \$(MAKE) install-lib
14555install-dev:: $ac_dir
14556 @cd $ac_dir && \$(MAKE) install-dev
14557uninstall:: $ac_dir/Makefile
14558 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014559}
14560
14561wine_fn_config_lib ()
14562{
14563 ac_name=$1
Alexandre Julliardb8fb1d52010-03-20 14:50:53 +010014564 ac_dir=dlls/$ac_name
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014565 wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014566 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014567"all __builddeps__: $ac_dir
Alexandre Julliard7d2e7722010-07-26 12:13:47 +020014568$ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014569 @cd $ac_dir && \$(MAKE)
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014570install install-dev:: $ac_dir
14571 @cd $ac_dir && \$(MAKE) install
14572uninstall:: $ac_dir/Makefile
14573 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014574}
14575
Alexandre Julliard50231942010-03-16 22:00:02 +010014576wine_fn_config_dll ()
14577{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014578 ac_name=$1
14579 ac_dir=dlls/$ac_name
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014580 ac_enable=$2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014581 ac_flags=$3
Alexandre Julliard1858f432010-12-29 14:10:47 +010014582 ac_implib=${4:-$ac_name}
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014583 ac_file=$ac_dir/lib$ac_implib
Alexandre Julliard50231942010-03-16 22:00:02 +010014584 ac_deps="tools/widl tools/winebuild tools/winegcc include"
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014585 ac_implibflags=""
14586
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014587 case $ac_name in
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014588 *16) ac_implibflags=" -m16" ;;
14589 esac
Alexandre Julliard50231942010-03-16 22:00:02 +010014590
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014591 wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014592
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014593 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014594 test "$ac_enable" != enable_win16 || return 0
14595else
Alexandre Julliard60a05ad2010-03-25 12:05:44 +010014596 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014597"all: $ac_dir
14598.PHONY: $ac_dir
14599$ac_dir: $ac_dir/Makefile __builddeps__ dummy
14600 @cd $ac_dir && \$(MAKE)
14601install:: $ac_dir/Makefile __builddeps__
14602 @cd $ac_dir && \$(MAKE) install
14603install-lib:: $ac_dir/Makefile __builddeps__
14604 @cd $ac_dir && \$(MAKE) install-lib
14605uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14606 @cd $ac_dir && \$(MAKE) \$@"
Alexandre Julliard367fd222011-01-04 17:05:21 +010014607
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014608 if test "x$enable_maintainer_mode" = xyes
Alexandre Julliard367fd222011-01-04 17:05:21 +010014609 then
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014610 if wine_fn_has_flag mc $ac_flags
14611 then
14612 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14613 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14614"$ac_dir/msg.pot: $ac_dir"
14615 fi
14616 if wine_fn_has_flag po $ac_flags
14617 then
14618 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14619 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard367fd222011-01-04 17:05:21 +010014620"$ac_dir/rsrc.pot: $ac_dir"
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014621 fi
Alexandre Julliard367fd222011-01-04 17:05:21 +010014622 fi
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014623fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014624
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014625 if wine_fn_has_flag staticimplib $ac_flags
Alexandre Julliard50231942010-03-16 22:00:02 +010014626 then
14627 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014628"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014629$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014630$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14631 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14632$ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14633 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14634install-dev:: $ac_dir/Makefile __builddeps__
14635 @cd $ac_dir && \$(MAKE) install-dev"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014636 if test "x$CROSSTEST_DISABLE" = x
14637 then
14638 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14639"__builddeps__: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014640$ac_file.cross.a: $ac_dir/Makefile dummy
14641 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014642 fi
14643
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014644 elif wine_fn_has_flag implib $ac_flags
Alexandre Julliard50231942010-03-16 22:00:02 +010014645 then
14646 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014647"__builddeps__: $ac_file.$IMPLIBEXT
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014648$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14649 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14650$ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14651 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14652install-dev:: $ac_dir/Makefile __builddeps__
14653 @cd $ac_dir && \$(MAKE) install-dev"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014654 if test "x$CROSSTEST_DISABLE" = x
14655 then
14656 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14657"__builddeps__: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014658$ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14659 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014660 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014661
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014662 if test "$ac_name" != "$ac_implib"
Alexandre Julliard50231942010-03-16 22:00:02 +010014663 then
14664 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014665"__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014666dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014667 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
Alexandre Julliard50231942010-03-16 22:00:02 +010014668clean::
14669 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014670 if test "x$CROSSTEST_DISABLE" = x
14671 then
14672 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14673"__builddeps__: dlls/lib$ac_implib.cross.a
14674dlls/lib$ac_implib.cross.a: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014675 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014676 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014677 fi
14678 fi
14679}
14680
14681wine_fn_config_program ()
14682{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014683 ac_name=$1
14684 ac_dir=programs/$ac_name
Alexandre Julliardd394e042010-03-20 14:53:39 +010014685 ac_enable=$2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014686 ac_flags=$3
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014687 wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014688
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014689 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliardd394e042010-03-20 14:53:39 +010014690
14691else
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014692 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014693"all: $ac_dir
14694.PHONY: $ac_dir
14695$ac_dir: $ac_dir/Makefile __builddeps__ dummy
14696 @cd $ac_dir && \$(MAKE)"
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014697
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014698 if test "x$enable_maintainer_mode" = xyes
Alexandre Julliard367fd222011-01-04 17:05:21 +010014699 then
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014700 if wine_fn_has_flag mc $ac_flags
14701 then
14702 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14703 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14704"$ac_dir/msg.pot: $ac_dir"
14705 fi
14706 if wine_fn_has_flag po $ac_flags
14707 then
14708 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14709 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard367fd222011-01-04 17:05:21 +010014710"$ac_dir/rsrc.pot: $ac_dir"
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014711 fi
Alexandre Julliard367fd222011-01-04 17:05:21 +010014712 fi
14713
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014714 wine_fn_has_flag install $ac_flags || return
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014715 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014716"install install-lib:: $ac_dir/Makefile __builddeps__
14717 @cd $ac_dir && \$(MAKE) install
14718uninstall:: $ac_dir/Makefile
14719 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliardc1e29582011-01-03 18:28:27 +010014720 if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014721 then
14722 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard718ea422010-03-26 09:29:10 +010014723"install install-lib:: tools \$(DESTDIR)\$(bindir)
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014724 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014725uninstall::
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014726 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014727 fi
Alexandre Julliardd394e042010-03-20 14:53:39 +010014728fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014729}
14730
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014731wine_fn_config_test ()
14732{
14733 ac_dir=$1
14734 ac_name=$2
14735 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14736 wine_fn_append_rule ALL_WINETEST_DEPENDS \
Alexandre Julliardbd9852c2010-09-19 12:40:12 +020014737"$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14738 cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014739$ac_name.rc:
14740 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14741$ac_name.res: $ac_name.rc $ac_name.exe"
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014742 wine_fn_all_dir_rules $ac_dir Maketest.rules
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014743
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014744 if test "x$enable_tests" = x""no; then :
14745
14746else
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014747 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014748"all programs/winetest: $ac_dir
14749.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014750$ac_dir: $ac_dir/Makefile __builddeps__ dummy
14751 @cd $ac_dir && \$(MAKE)
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014752test: $ac_dir/__test__
14753.PHONY: $ac_dir/__test__
Alexandre Julliardeab7efd2010-03-25 21:42:54 +010014754$ac_dir/__test__: dummy
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014755 @cd $ac_dir && \$(MAKE) test
14756testclean::
14757 \$(RM) $ac_dir/*.ok"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014758
14759 if test "x$CROSSTEST_DISABLE" = x
14760 then
14761 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14762"crosstest: $ac_dir/__crosstest__
14763.PHONY: $ac_dir/__crosstest__
14764$ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14765 @cd $ac_dir && \$(MAKE) crosstest"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014766 fi
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014767fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014768}
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014769
14770wine_fn_config_tool ()
14771{
14772 ac_dir=$1
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014773 wine_fn_all_dir_rules $ac_dir Make.rules
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014774
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014775 if test "x$enable_tools" = x""no; then :
14776
14777else
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014778 case $ac_dir in
14779 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14780"install:: $ac_dir
14781 @cd $ac_dir && \$(MAKE) install
14782install-lib:: $ac_dir
14783 @cd $ac_dir && \$(MAKE) install-lib
14784install-dev:: $ac_dir
14785 @cd $ac_dir && \$(MAKE) install-dev" ;;
14786 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14787"install install-dev:: $ac_dir
14788 @cd $ac_dir && \$(MAKE) install" ;;
14789 esac
14790 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14791"uninstall:: $ac_dir/Makefile
14792 @cd $ac_dir && \$(MAKE) uninstall
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014793all __tooldeps__: $ac_dir
14794.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014795$ac_dir: $ac_dir/Makefile libs/port dummy
14796 @cd $ac_dir && \$(MAKE)"
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014797 case $ac_dir in
14798 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14799 esac
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014800fi
14801}
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014802
14803wine_fn_config_makerules ()
14804{
14805 ac_rules=$1
14806 ac_deps=$2
14807 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14808"$ac_rules: $ac_rules.in $ac_deps config.status
14809 @./config.status $ac_rules
14810distclean::
14811 \$(RM) $ac_rules"
14812}
14813
14814wine_fn_config_symlink ()
14815{
14816 ac_link=$1
14817 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14818"$ac_link:
14819 @./config.status $ac_link
14820distclean::
14821 \$(RM) $ac_link"
14822}
Alexandre Julliarda070f9b2010-07-26 20:53:12 +020014823
14824if test "x$CROSSTEST_DISABLE" != x
14825then
14826 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14827"crosstest:
14828 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14829fi
Alexandre Julliard40977bf2010-11-11 12:24:46 +010014830ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14831wine_fn_config_symlink dlls/shell32/AUTHORS
Alexandre Julliarda6320522010-02-03 13:14:03 +010014832ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014833test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014834if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014835ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014836test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014837fi
14838if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014839ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014840test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014841fi
14842if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014843ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014844test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014845fi
14846if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014847ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014848test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014849fi
Alexandre Julliard321d3882010-05-06 20:51:53 +020014850ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14851test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014852ac_config_links="$ac_config_links wine:tools/winewrapper"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014853wine_fn_config_symlink wine
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014854
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014855ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014856
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014857ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014858
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020014859ac_config_commands="$ac_config_commands dlls/kernel32/nls"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014860
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010014861ac_config_commands="$ac_config_commands dlls/user32/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014862
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014863ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014864
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014865ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014866
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014867
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014868wine_fn_config_makerules Make.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014869MAKE_RULES=Make.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014870ac_config_files="$ac_config_files Make.rules"
14871
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014872wine_fn_config_makerules Maketest.rules Make.rules
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010014873MAKE_TEST_RULES=Maketest.rules
14874ac_config_files="$ac_config_files Maketest.rules"
14875
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014876wine_fn_config_makerules dlls/Makedll.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014877MAKE_DLL_RULES=dlls/Makedll.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014878ac_config_files="$ac_config_files dlls/Makedll.rules"
14879
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014880wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014881MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014882ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14883
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014884wine_fn_config_makerules programs/Makeprog.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014885MAKE_PROG_RULES=programs/Makeprog.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014886ac_config_files="$ac_config_files programs/Makeprog.rules"
14887
Alexandre Julliarda360e932008-08-20 16:02:37 +020014888
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014889wine_fn_config_dll acledit enable_acledit
Alexandre Julliard1858f432010-12-29 14:10:47 +010014890wine_fn_config_dll aclui enable_aclui implib
14891wine_fn_config_dll activeds enable_activeds implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014892wine_fn_config_dll actxprxy enable_actxprxy
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014893wine_fn_config_lib adsiid
Alexandre Julliard1858f432010-12-29 14:10:47 +010014894wine_fn_config_dll advapi32 enable_advapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014895wine_fn_config_test dlls/advapi32/tests advapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014896wine_fn_config_dll advpack enable_advpack implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014897wine_fn_config_test dlls/advpack/tests advpack_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014898wine_fn_config_dll amstream enable_amstream
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014899wine_fn_config_test dlls/amstream/tests amstream_test
Alexandre Julliard902f10c2011-01-13 15:16:02 +010014900wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014901wine_fn_config_dll atl enable_atl implib
Marcus Meissnerb3f04252010-06-15 11:04:33 +020014902wine_fn_config_test dlls/atl/tests atl_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014903wine_fn_config_dll authz enable_authz
Alexandre Julliard1858f432010-12-29 14:10:47 +010014904wine_fn_config_dll avicap32 enable_avicap32 implib
Alexandre Julliardaf743a62011-01-13 15:37:43 +010014905wine_fn_config_dll avifil32 enable_avifil32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014906wine_fn_config_test dlls/avifil32/tests avifil32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014907wine_fn_config_dll avifile.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014908wine_fn_config_dll avrt enable_avrt implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014909wine_fn_config_dll bcrypt enable_bcrypt
Alexandre Julliard44479002011-01-11 12:56:17 +010014910wine_fn_config_dll browseui enable_browseui po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014911wine_fn_config_test dlls/browseui/tests browseui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014912wine_fn_config_dll cabinet enable_cabinet implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014913wine_fn_config_test dlls/cabinet/tests cabinet_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014914wine_fn_config_dll capi2032 enable_capi2032 implib
14915wine_fn_config_dll cards enable_cards implib
14916wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14917wine_fn_config_dll clusapi enable_clusapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014918wine_fn_config_dll comcat enable_comcat
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014919wine_fn_config_test dlls/comcat/tests comcat_test
Alexandre Julliard54684cf2011-01-11 13:43:35 +010014920wine_fn_config_dll comctl32 enable_comctl32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014921wine_fn_config_test dlls/comctl32/tests comctl32_test
Alexandre Julliard7294f7d2011-01-14 12:27:20 +010014922wine_fn_config_dll comdlg32 enable_comdlg32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014923wine_fn_config_test dlls/comdlg32/tests comdlg32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014924wine_fn_config_dll comm.drv16 enable_win16
14925wine_fn_config_dll commdlg.dll16 enable_win16
14926wine_fn_config_dll compobj.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014927wine_fn_config_dll compstui enable_compstui implib
Alexandre Julliardb6e78c42011-01-12 15:19:02 +010014928wine_fn_config_dll credui enable_credui po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014929wine_fn_config_test dlls/credui/tests credui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014930wine_fn_config_dll crtdll enable_crtdll implib
Alexandre Julliardc485b182011-01-06 12:18:02 +010014931wine_fn_config_dll crypt32 enable_crypt32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014932wine_fn_config_test dlls/crypt32/tests crypt32_test
Alexandre Julliard8484e962011-01-06 12:28:26 +010014933wine_fn_config_dll cryptdlg enable_cryptdlg po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014934wine_fn_config_dll cryptdll enable_cryptdll implib
14935wine_fn_config_dll cryptnet enable_cryptnet implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014936wine_fn_config_test dlls/cryptnet/tests cryptnet_test
Alexandre Julliardaa1bdef2011-01-12 15:30:17 +010014937wine_fn_config_dll cryptui enable_cryptui po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014938wine_fn_config_test dlls/cryptui/tests cryptui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014939wine_fn_config_dll ctapi32 enable_ctapi32
14940wine_fn_config_dll ctl3d.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014941wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014942wine_fn_config_dll ctl3dv2.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014943wine_fn_config_dll d3d10 enable_d3d10 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014944wine_fn_config_test dlls/d3d10/tests d3d10_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014945wine_fn_config_dll d3d10core enable_d3d10core implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014946wine_fn_config_test dlls/d3d10core/tests d3d10core_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014947wine_fn_config_dll d3d8 enable_d3d8 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014948wine_fn_config_test dlls/d3d8/tests d3d8_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014949wine_fn_config_dll d3d9 enable_d3d9 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014950wine_fn_config_test dlls/d3d9/tests d3d9_test
Matteo Bruni0ac336f2010-07-29 01:53:54 +020014951wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
Matteo Bruni66d44992010-07-29 01:47:13 +020014952wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
Matteo Bruni8ea75832010-07-28 16:44:37 +020014953wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
Matteo Bruni458eb082010-07-28 16:37:28 +020014954wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
Matteo Bruni3c59b9c2010-07-28 16:22:11 +020014955wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
Matteo Brunifbf1e832010-07-28 16:13:40 +020014956wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
Matteo Bruni99491462010-07-28 04:31:18 +020014957wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
Matteo Brunifd4efcd2010-07-28 04:09:13 +020014958wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
Matteo Bruni79c1bc42010-08-03 18:44:25 +020014959wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
Matteo Brunife050702010-08-03 18:44:25 +020014960wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014961wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
Rico Schüller5ad7f7b2010-08-19 21:33:43 +020014962wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014963wine_fn_config_dll d3dim enable_d3dim implib
14964wine_fn_config_dll d3drm enable_d3drm implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014965wine_fn_config_test dlls/d3drm/tests d3drm_test
Owen Rudge9870c042010-08-18 16:02:22 -050014966wine_fn_config_dll d3dx10_33 enable_d3dx10_33
Owen Rudge49dbdc12010-08-18 16:02:20 -050014967wine_fn_config_dll d3dx10_34 enable_d3dx10_34
Owen Rudge955b8442010-08-18 16:02:18 -050014968wine_fn_config_dll d3dx10_35 enable_d3dx10_35
Owen Rudgef44830e2010-08-18 16:02:16 -050014969wine_fn_config_dll d3dx10_36 enable_d3dx10_36
Owen Rudge4196ba22010-08-18 16:02:10 -050014970wine_fn_config_dll d3dx10_37 enable_d3dx10_37
Owen Rudge199ff9b2010-08-18 16:02:08 -050014971wine_fn_config_dll d3dx10_38 enable_d3dx10_38
Owen Rudgefb8d7cd2010-08-18 16:02:06 -050014972wine_fn_config_dll d3dx10_39 enable_d3dx10_39
Owen Rudge662cbb12010-08-18 16:02:03 -050014973wine_fn_config_dll d3dx10_40 enable_d3dx10_40
Owen Rudge17591cc2010-08-18 16:01:59 -050014974wine_fn_config_dll d3dx10_41 enable_d3dx10_41
Owen Rudgee5d9e122010-08-18 16:01:57 -050014975wine_fn_config_dll d3dx10_42 enable_d3dx10_42
Owen Rudge3c5b2e62010-08-18 16:01:53 -050014976wine_fn_config_dll d3dx10_43 enable_d3dx10_43
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014977wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14978wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14979wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14980wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14981wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14982wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14983wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14984wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14985wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14986wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14987wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14988wine_fn_config_dll d3dx9_35 enable_d3dx9_35
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014989wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014990wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014991wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14992wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14993wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14994wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14995wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14996wine_fn_config_dll d3dx9_42 enable_d3dx9_42
Matteo Bruni90c615a2010-08-25 17:12:51 +020014997wine_fn_config_dll d3dx9_43 enable_d3dx9_43
Alexandre Julliard1858f432010-12-29 14:10:47 +010014998wine_fn_config_dll d3dxof enable_d3dxof implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014999wine_fn_config_test dlls/d3dxof/tests d3dxof_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015000wine_fn_config_dll dbgeng enable_dbgeng implib
15001wine_fn_config_dll dbghelp enable_dbghelp implib
15002wine_fn_config_dll dciman32 enable_dciman32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015003wine_fn_config_dll ddeml.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015004wine_fn_config_dll ddraw enable_ddraw implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015005wine_fn_config_test dlls/ddraw/tests ddraw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015006wine_fn_config_dll ddrawex enable_ddrawex
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015007wine_fn_config_test dlls/ddrawex/tests ddrawex_test
Alexandre Julliard0cdd1472011-01-06 12:37:11 +010015008wine_fn_config_dll devenum enable_devenum po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015009wine_fn_config_dll dinput enable_dinput implib,staticimplib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015010wine_fn_config_test dlls/dinput/tests dinput_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015011wine_fn_config_dll dinput8 enable_dinput8 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015012wine_fn_config_dll dispdib.dll16 enable_win16
15013wine_fn_config_dll dispex enable_dispex
Huw Daviesdf075612010-03-19 13:34:53 +000015014wine_fn_config_test dlls/dispex/tests dispex_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015015wine_fn_config_dll display.drv16 enable_win16
15016wine_fn_config_dll dmband enable_dmband
15017wine_fn_config_dll dmcompos enable_dmcompos
15018wine_fn_config_dll dmime enable_dmime
Austin Lund203272e2010-08-06 17:50:49 +100015019wine_fn_config_test dlls/dmime/tests dmime_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015020wine_fn_config_dll dmloader enable_dmloader
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015021wine_fn_config_test dlls/dmloader/tests dmloader_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015022wine_fn_config_dll dmscript enable_dmscript
15023wine_fn_config_dll dmstyle enable_dmstyle
15024wine_fn_config_dll dmsynth enable_dmsynth
15025wine_fn_config_dll dmusic enable_dmusic
Alexandre Julliard1858f432010-12-29 14:10:47 +010015026wine_fn_config_dll dmusic32 enable_dmusic32 implib
15027wine_fn_config_dll dnsapi enable_dnsapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015028wine_fn_config_test dlls/dnsapi/tests dnsapi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015029wine_fn_config_dll dplay enable_dplay implib
15030wine_fn_config_dll dplayx enable_dplayx implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015031wine_fn_config_test dlls/dplayx/tests dplayx_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015032wine_fn_config_dll dpnaddr enable_dpnaddr
Alexandre Julliard1858f432010-12-29 14:10:47 +010015033wine_fn_config_dll dpnet enable_dpnet implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015034wine_fn_config_dll dpnhpast enable_dpnhpast
15035wine_fn_config_dll dpnlobby enable_dpnlobby
15036wine_fn_config_dll dpwsockx enable_dpwsockx
15037wine_fn_config_dll drmclien enable_drmclien
Alexandre Julliard1858f432010-12-29 14:10:47 +010015038wine_fn_config_dll dsound enable_dsound implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015039wine_fn_config_test dlls/dsound/tests dsound_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015040wine_fn_config_dll dssenh enable_dssenh
15041wine_fn_config_dll dswave enable_dswave
Alexandre Julliard1858f432010-12-29 14:10:47 +010015042wine_fn_config_dll dwmapi enable_dwmapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015043wine_fn_config_dll dxdiagn enable_dxdiagn
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015044wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015045wine_fn_config_lib dxerr8
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015046wine_fn_config_lib dxerr9
Alexandre Julliard1858f432010-12-29 14:10:47 +010015047wine_fn_config_dll dxgi enable_dxgi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015048wine_fn_config_test dlls/dxgi/tests dxgi_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015049wine_fn_config_lib dxguid
David Hedberge2cf9ad2010-07-31 20:02:45 +020015050wine_fn_config_dll explorerframe enable_explorerframe
David Hedberg87212d52010-07-31 20:02:49 +020015051wine_fn_config_test dlls/explorerframe/tests explorerframe_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015052wine_fn_config_dll faultrep enable_faultrep implib
Detlef Riekenberg53fca112010-10-26 10:11:13 +020015053wine_fn_config_test dlls/faultrep/tests faultrep_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015054wine_fn_config_dll fltlib enable_fltlib
15055wine_fn_config_dll fusion enable_fusion
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015056wine_fn_config_test dlls/fusion/tests fusion_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015057wine_fn_config_dll fwpuclnt enable_fwpuclnt
Mariusz Plucińskib3a9ce42010-07-22 23:59:34 +020015058wine_fn_config_dll gameux enable_gameux
Mariusz Plucińskicb886f42010-08-03 11:58:01 +020015059wine_fn_config_test dlls/gameux/tests gameux_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015060wine_fn_config_dll gdi.exe16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015061wine_fn_config_dll gdi32 enable_gdi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015062wine_fn_config_test dlls/gdi32/tests gdi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015063wine_fn_config_dll gdiplus enable_gdiplus implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015064wine_fn_config_test dlls/gdiplus/tests gdiplus_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015065wine_fn_config_dll glu32 enable_glu32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015066wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
15067wine_fn_config_dll gpkcsp enable_gpkcsp
15068wine_fn_config_dll hal enable_hal
Alexandre Julliardc9b52d22011-01-06 13:19:58 +010015069wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015070wine_fn_config_dll hid enable_hid implib
15071wine_fn_config_dll hlink enable_hlink implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015072wine_fn_config_test dlls/hlink/tests hlink_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015073wine_fn_config_dll hnetcfg enable_hnetcfg
15074wine_fn_config_dll httpapi enable_httpapi
Alexandre Julliard9c6444c2011-01-06 13:31:16 +010015075wine_fn_config_dll iccvid enable_iccvid po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015076wine_fn_config_dll icmp enable_icmp
15077wine_fn_config_dll ifsmgr.vxd enable_win16
15078wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
Alexandre Julliard1858f432010-12-29 14:10:47 +010015079wine_fn_config_dll imagehlp enable_imagehlp implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015080wine_fn_config_test dlls/imagehlp/tests imagehlp_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015081wine_fn_config_dll imm.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015082wine_fn_config_dll imm32 enable_imm32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015083wine_fn_config_test dlls/imm32/tests imm32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015084wine_fn_config_dll inetcomm enable_inetcomm implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015085wine_fn_config_test dlls/inetcomm/tests inetcomm_test
Alexandre Julliardbe521062011-01-12 15:49:32 +010015086wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015087wine_fn_config_dll inetmib1 enable_inetmib1
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015088wine_fn_config_test dlls/inetmib1/tests inetmib1_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015089wine_fn_config_dll infosoft enable_infosoft
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015090wine_fn_config_test dlls/infosoft/tests infosoft_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015091wine_fn_config_dll initpki enable_initpki
15092wine_fn_config_dll inkobj enable_inkobj
15093wine_fn_config_dll inseng enable_inseng
Alexandre Julliard1858f432010-12-29 14:10:47 +010015094wine_fn_config_dll iphlpapi enable_iphlpapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015095wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015096wine_fn_config_dll itircl enable_itircl
15097wine_fn_config_dll itss enable_itss
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015098wine_fn_config_test dlls/itss/tests itss_test
Alexandre Julliard0ccf1d82011-01-06 13:38:57 +010015099wine_fn_config_dll jscript enable_jscript po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015100wine_fn_config_test dlls/jscript/tests jscript_test
Alexandre Julliard417b70b2011-01-24 21:23:03 +010015101wine_fn_config_dll kernel32 enable_kernel32 mc,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015102wine_fn_config_test dlls/kernel32/tests kernel32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015103wine_fn_config_dll keyboard.drv16 enable_win16
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015104wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
Vincent Povirk8f874592010-09-26 16:38:44 -050015105wine_fn_config_dll ktmw32 enable_ktmw32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015106wine_fn_config_dll loadperf enable_loadperf implib
Alexandre Julliard7df87f32011-01-06 14:24:05 +010015107wine_fn_config_dll localspl enable_localspl po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015108wine_fn_config_test dlls/localspl/tests localspl_test
Alexandre Julliard0546dd52011-01-12 16:11:26 +010015109wine_fn_config_dll localui enable_localui po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015110wine_fn_config_test dlls/localui/tests localui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015111wine_fn_config_dll lz32 enable_lz32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015112wine_fn_config_test dlls/lz32/tests lz32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015113wine_fn_config_dll lzexpand.dll16 enable_win16
Alexandre Julliardb41fc572011-01-06 16:14:33 +010015114wine_fn_config_dll mapi32 enable_mapi32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015115wine_fn_config_test dlls/mapi32/tests mapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015116wine_fn_config_dll mapistub enable_mapistub
15117wine_fn_config_dll mciavi32 enable_mciavi32
15118wine_fn_config_dll mcicda enable_mcicda
15119wine_fn_config_dll mciqtz32 enable_mciqtz32
15120wine_fn_config_dll mciseq enable_mciseq
15121wine_fn_config_dll mciwave enable_mciwave
15122wine_fn_config_dll midimap enable_midimap
Alexandre Julliard1858f432010-12-29 14:10:47 +010015123wine_fn_config_dll mlang enable_mlang implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015124wine_fn_config_test dlls/mlang/tests mlang_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015125wine_fn_config_dll mmdevapi enable_mmdevapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015126wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015127wine_fn_config_dll mmdevldr.vxd enable_win16
15128wine_fn_config_dll mmsystem.dll16 enable_win16
15129wine_fn_config_dll monodebg.vxd enable_win16
15130wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15131wine_fn_config_dll mouse.drv16 enable_win16
Alexandre Julliard142d4162011-01-12 16:27:50 +010015132wine_fn_config_dll mpr enable_mpr po,implib
Alexandre Julliard1858f432010-12-29 14:10:47 +010015133wine_fn_config_dll mprapi enable_mprapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015134wine_fn_config_dll msacm.dll16 enable_win16
15135wine_fn_config_dll msacm32.drv enable_msacm32_drv
Alexandre Julliard1858f432010-12-29 14:10:47 +010015136wine_fn_config_dll msacm32 enable_msacm32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015137wine_fn_config_test dlls/msacm32/tests msacm32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015138wine_fn_config_dll msadp32.acm enable_msadp32_acm
15139wine_fn_config_dll mscat32 enable_mscat32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015140wine_fn_config_dll mscms enable_mscms implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015141wine_fn_config_test dlls/mscms/tests mscms_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015142wine_fn_config_dll mscoree enable_mscoree
Louis Lendersa8528702010-08-24 11:48:01 +020015143wine_fn_config_test dlls/mscoree/tests mscoree_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015144wine_fn_config_dll msctf enable_msctf
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015145wine_fn_config_test dlls/msctf/tests msctf_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015146wine_fn_config_dll msdaps enable_msdaps
Alexandre Julliard1858f432010-12-29 14:10:47 +010015147wine_fn_config_dll msdmo enable_msdmo implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015148wine_fn_config_dll msftedit enable_msftedit
15149wine_fn_config_dll msg711.acm enable_msg711_acm
15150wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15151wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
Alexandre Julliard50c23ad2011-01-12 17:12:44 +010015152wine_fn_config_dll mshtml enable_mshtml po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015153wine_fn_config_test dlls/mshtml/tests mshtml_test
Alexandre Julliard214ca2c2011-01-06 16:21:30 +010015154wine_fn_config_dll msi enable_msi po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015155wine_fn_config_test dlls/msi/tests msi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015156wine_fn_config_dll msimg32 enable_msimg32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015157wine_fn_config_dll msimtf enable_msimtf
15158wine_fn_config_dll msisip enable_msisip
15159wine_fn_config_dll msisys.ocx enable_msisys_ocx
15160wine_fn_config_dll msnet32 enable_msnet32
Alexandre Julliardad5605b2011-01-06 16:36:14 +010015161wine_fn_config_dll msrle32 enable_msrle32 po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015162wine_fn_config_dll mssign32 enable_mssign32
15163wine_fn_config_dll mssip32 enable_mssip32
15164wine_fn_config_dll mstask enable_mstask
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015165wine_fn_config_test dlls/mstask/tests mstask_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015166wine_fn_config_dll msvcirt enable_msvcirt
Piotr Caban71a49eb2010-08-23 16:36:24 +020015167wine_fn_config_dll msvcp80 enable_msvcp80
Piotr Caban9ae9d262010-07-20 23:22:16 +020015168wine_fn_config_dll msvcp90 enable_msvcp90
Piotr Caband589d952010-07-20 23:24:32 +020015169wine_fn_config_test dlls/msvcp90/tests msvcp90_test
Detlef Riekenberg1434ef42010-04-30 14:07:34 +020015170wine_fn_config_dll msvcr100 enable_msvcr100
Alexandre Julliard1858f432010-12-29 14:10:47 +010015171wine_fn_config_dll msvcr70 enable_msvcr70 implib
15172wine_fn_config_dll msvcr71 enable_msvcr71 implib
Piotr Cabanc4522492010-03-25 11:06:29 +010015173wine_fn_config_dll msvcr80 enable_msvcr80
15174wine_fn_config_dll msvcr90 enable_msvcr90
Detlef Riekenberg73e669c2010-03-20 00:32:17 +010015175wine_fn_config_test dlls/msvcr90/tests msvcr90_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015176wine_fn_config_dll msvcrt enable_msvcrt implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015177wine_fn_config_test dlls/msvcrt/tests msvcrt_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015178wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15179wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15180wine_fn_config_dll msvcrtd enable_msvcrtd implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015181wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
Alexandre Julliardf14712a2011-01-12 17:24:03 +010015182wine_fn_config_dll msvfw32 enable_msvfw32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015183wine_fn_config_test dlls/msvfw32/tests msvfw32_test
Alexandre Julliard958ecd62011-01-06 17:07:23 +010015184wine_fn_config_dll msvidc32 enable_msvidc32 po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015185wine_fn_config_dll msvideo.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015186wine_fn_config_dll mswsock enable_mswsock implib
Alexandre Julliard25ccc902010-12-21 12:03:14 +010015187wine_fn_config_dll msxml enable_msxml
Alexandre Julliard41d6a922010-12-21 13:27:20 +010015188wine_fn_config_dll msxml2 enable_msxml2
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015189wine_fn_config_dll msxml3 enable_msxml3
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015190wine_fn_config_test dlls/msxml3/tests msxml3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015191wine_fn_config_dll msxml4 enable_msxml4
Nikolay Sivov25bce452010-08-30 01:31:07 +040015192wine_fn_config_dll msxml6 enable_msxml6
Alexandre Julliard1858f432010-12-29 14:10:47 +010015193wine_fn_config_dll nddeapi enable_nddeapi implib
15194wine_fn_config_dll netapi32 enable_netapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015195wine_fn_config_test dlls/netapi32/tests netapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015196wine_fn_config_dll newdev enable_newdev implib
Thomas Mullaly858ccff2011-01-02 17:13:43 -050015197wine_fn_config_dll normaliz enable_normaliz implib
Jacek Caban4a912652010-12-02 19:15:28 +010015198wine_fn_config_dll npmshtml enable_npmshtml
Alexandre Julliard1858f432010-12-29 14:10:47 +010015199wine_fn_config_dll ntdll enable_ntdll implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015200wine_fn_config_test dlls/ntdll/tests ntdll_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015201wine_fn_config_dll ntdsapi enable_ntdsapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015202wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015203wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015204wine_fn_config_dll ntprint enable_ntprint
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015205wine_fn_config_test dlls/ntprint/tests ntprint_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015206wine_fn_config_dll objsel enable_objsel
Alexandre Julliard1858f432010-12-29 14:10:47 +010015207wine_fn_config_dll odbc32 enable_odbc32 implib
15208wine_fn_config_dll odbccp32 enable_odbccp32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015209wine_fn_config_test dlls/odbccp32/tests odbccp32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015210wine_fn_config_dll ole2.dll16 enable_win16
15211wine_fn_config_dll ole2conv.dll16 enable_win16
15212wine_fn_config_dll ole2disp.dll16 enable_win16
15213wine_fn_config_dll ole2nls.dll16 enable_win16
15214wine_fn_config_dll ole2prox.dll16 enable_win16
15215wine_fn_config_dll ole2thk.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015216wine_fn_config_dll ole32 enable_ole32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015217wine_fn_config_test dlls/ole32/tests ole32_test
Alexandre Julliard8062ec12011-01-13 16:00:53 +010015218wine_fn_config_dll oleacc enable_oleacc po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015219wine_fn_config_test dlls/oleacc/tests oleacc_test
Alexandre Julliard000bb242011-01-06 17:31:16 +010015220wine_fn_config_dll oleaut32 enable_oleaut32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015221wine_fn_config_test dlls/oleaut32/tests oleaut32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015222wine_fn_config_dll olecli.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015223wine_fn_config_dll olecli32 enable_olecli32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015224wine_fn_config_dll oledb32 enable_oledb32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015225wine_fn_config_test dlls/oledb32/tests oledb32_test
Alexandre Julliard7f595642011-01-13 16:18:24 +010015226wine_fn_config_dll oledlg enable_oledlg po,implib
Alexandre Julliard1858f432010-12-29 14:10:47 +010015227wine_fn_config_dll olepro32 enable_olepro32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015228wine_fn_config_dll olesvr.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015229wine_fn_config_dll olesvr32 enable_olesvr32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015230wine_fn_config_dll olethk32 enable_olethk32
15231wine_fn_config_dll openal32 enable_openal32
Peter Urbanec65c84d72010-12-02 23:41:48 +110015232wine_fn_config_dll opencl enable_opencl
Alexandre Julliard1858f432010-12-29 14:10:47 +010015233wine_fn_config_dll opengl32 enable_opengl32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015234wine_fn_config_test dlls/opengl32/tests opengl32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015235wine_fn_config_dll pdh enable_pdh implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015236wine_fn_config_test dlls/pdh/tests pdh_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015237wine_fn_config_dll pidgen enable_pidgen
Alexandre Julliard1858f432010-12-29 14:10:47 +010015238wine_fn_config_dll powrprof enable_powrprof implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015239wine_fn_config_dll printui enable_printui
Alexandre Julliard1858f432010-12-29 14:10:47 +010015240wine_fn_config_dll propsys enable_propsys implib
Andrew Nguyenc20908b2010-07-25 21:57:59 -050015241wine_fn_config_test dlls/propsys/tests propsys_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015242wine_fn_config_dll psapi enable_psapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015243wine_fn_config_test dlls/psapi/tests psapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015244wine_fn_config_dll pstorec enable_pstorec
15245wine_fn_config_dll qcap enable_qcap
15246wine_fn_config_dll qedit enable_qedit
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015247wine_fn_config_test dlls/qedit/tests qedit_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015248wine_fn_config_dll qmgr enable_qmgr
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015249wine_fn_config_test dlls/qmgr/tests qmgr_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015250wine_fn_config_dll qmgrprxy enable_qmgrprxy
Alexandre Julliard1858f432010-12-29 14:10:47 +010015251wine_fn_config_dll quartz enable_quartz implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015252wine_fn_config_test dlls/quartz/tests quartz_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015253wine_fn_config_dll query enable_query
15254wine_fn_config_dll rasapi16.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015255wine_fn_config_dll rasapi32 enable_rasapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015256wine_fn_config_test dlls/rasapi32/tests rasapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015257wine_fn_config_dll rasdlg enable_rasdlg implib
15258wine_fn_config_dll resutils enable_resutils implib
15259wine_fn_config_dll riched20 enable_riched20 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015260wine_fn_config_test dlls/riched20/tests riched20_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015261wine_fn_config_dll riched32 enable_riched32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015262wine_fn_config_test dlls/riched32/tests riched32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015263wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015264wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015265wine_fn_config_dll rsabase enable_rsabase
Alexandre Julliard1858f432010-12-29 14:10:47 +010015266wine_fn_config_dll rsaenh enable_rsaenh implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015267wine_fn_config_test dlls/rsaenh/tests rsaenh_test
Louis Lenders85b3f292010-08-27 11:45:11 +020015268wine_fn_config_dll rstrtmgr enable_rstrtmgr
Alexandre Julliard1858f432010-12-29 14:10:47 +010015269wine_fn_config_dll rtutils enable_rtutils implib
Louis Lenders1ae673f2010-05-11 22:59:22 +020015270wine_fn_config_dll samlib enable_samlib
Alexandre Julliard036fe882011-01-14 12:48:59 +010015271wine_fn_config_dll sane.ds enable_sane_ds po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015272wine_fn_config_dll sccbase enable_sccbase
15273wine_fn_config_dll schannel enable_schannel
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015274wine_fn_config_test dlls/schannel/tests schannel_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015275wine_fn_config_dll secur32 enable_secur32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015276wine_fn_config_test dlls/secur32/tests secur32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015277wine_fn_config_dll security enable_security
Alexandre Julliard1858f432010-12-29 14:10:47 +010015278wine_fn_config_dll sensapi enable_sensapi implib
15279wine_fn_config_dll serialui enable_serialui implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015280wine_fn_config_test dlls/serialui/tests serialui_test
Alexandre Julliardfac153b2011-01-12 17:37:02 +010015281wine_fn_config_dll setupapi enable_setupapi po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015282wine_fn_config_test dlls/setupapi/tests setupapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015283wine_fn_config_dll setupx.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015284wine_fn_config_dll sfc enable_sfc implib
15285wine_fn_config_dll sfc_os enable_sfc_os implib
Alexandre Julliardb31d2312011-01-06 17:42:05 +010015286wine_fn_config_dll shdoclc enable_shdoclc po
Alexandre Julliardd3a11312011-01-12 17:52:15 +010015287wine_fn_config_dll shdocvw enable_shdocvw po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015288wine_fn_config_test dlls/shdocvw/tests shdocvw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015289wine_fn_config_dll shell.dll16 enable_win16
Alexandre Julliarddb600062011-01-13 17:00:16 +010015290wine_fn_config_dll shell32 enable_shell32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015291wine_fn_config_test dlls/shell32/tests shell32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015292wine_fn_config_dll shfolder enable_shfolder implib
Alexandre Julliard944d2182011-01-12 17:58:54 +010015293wine_fn_config_dll shlwapi enable_shlwapi po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015294wine_fn_config_test dlls/shlwapi/tests shlwapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015295wine_fn_config_dll slbcsp enable_slbcsp
Alexandre Julliard1858f432010-12-29 14:10:47 +010015296wine_fn_config_dll slc enable_slc implib
15297wine_fn_config_dll snmpapi enable_snmpapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015298wine_fn_config_test dlls/snmpapi/tests snmpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015299wine_fn_config_dll softpub enable_softpub
15300wine_fn_config_dll sound.drv16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015301wine_fn_config_dll spoolss enable_spoolss implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015302wine_fn_config_test dlls/spoolss/tests spoolss_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015303wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15304wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
Alexandre Julliard1858f432010-12-29 14:10:47 +010015305wine_fn_config_dll sti enable_sti implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015306wine_fn_config_test dlls/sti/tests sti_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015307wine_fn_config_dll storage.dll16 enable_win16
15308wine_fn_config_dll stress.dll16 enable_win16
Aric Stewart96192102010-10-04 09:48:25 -050015309wine_fn_config_lib strmbase
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015310wine_fn_config_lib strmiids
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015311wine_fn_config_dll svrapi enable_svrapi
15312wine_fn_config_dll sxs enable_sxs
15313wine_fn_config_dll system.drv16 enable_win16
15314wine_fn_config_dll t2embed enable_t2embed
Alexandre Julliard1858f432010-12-29 14:10:47 +010015315wine_fn_config_dll tapi32 enable_tapi32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015316wine_fn_config_dll toolhelp.dll16 enable_win16
15317wine_fn_config_dll traffic enable_traffic
15318wine_fn_config_dll twain.dll16 enable_win16
15319wine_fn_config_dll twain_32 enable_twain_32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015320wine_fn_config_test dlls/twain_32/tests twain_32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015321wine_fn_config_dll typelib.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015322wine_fn_config_dll unicows enable_unicows implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015323wine_fn_config_dll updspapi enable_updspapi
Alexandre Julliard1858f432010-12-29 14:10:47 +010015324wine_fn_config_dll url enable_url implib
15325wine_fn_config_dll urlmon enable_urlmon implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015326wine_fn_config_test dlls/urlmon/tests urlmon_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015327wine_fn_config_dll usbd.sys enable_usbd_sys implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015328wine_fn_config_dll user.exe16 enable_win16
Alexandre Julliard39558f82011-01-13 17:24:15 +010015329wine_fn_config_dll user32 enable_user32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015330wine_fn_config_test dlls/user32/tests user32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015331wine_fn_config_dll userenv enable_userenv implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015332wine_fn_config_test dlls/userenv/tests userenv_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015333wine_fn_config_dll usp10 enable_usp10 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015334wine_fn_config_test dlls/usp10/tests usp10_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015335wine_fn_config_lib uuid
Alexandre Julliard1858f432010-12-29 14:10:47 +010015336wine_fn_config_dll uxtheme enable_uxtheme implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015337wine_fn_config_test dlls/uxtheme/tests uxtheme_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015338wine_fn_config_dll vdhcp.vxd enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015339wine_fn_config_dll vdmdbg enable_vdmdbg implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015340wine_fn_config_dll ver.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015341wine_fn_config_dll version enable_version implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015342wine_fn_config_test dlls/version/tests version_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015343wine_fn_config_dll vmm.vxd enable_win16
15344wine_fn_config_dll vnbt.vxd enable_win16
15345wine_fn_config_dll vnetbios.vxd enable_win16
15346wine_fn_config_dll vtdapi.vxd enable_win16
15347wine_fn_config_dll vwin32.vxd enable_win16
15348wine_fn_config_dll w32skrnl enable_win16
15349wine_fn_config_dll w32sys.dll16 enable_win16
15350wine_fn_config_dll wbemprox enable_wbemprox
Alexandre Julliard1858f432010-12-29 14:10:47 +010015351wine_fn_config_dll wer enable_wer implib
Detlef Riekenbergd8a5bc92010-10-26 11:37:17 +020015352wine_fn_config_test dlls/wer/tests wer_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015353wine_fn_config_dll wiaservc enable_wiaservc
15354wine_fn_config_dll win32s16.dll16 enable_win16
15355wine_fn_config_dll win87em.dll16 enable_win16
15356wine_fn_config_dll winaspi.dll16 enable_win16
15357wine_fn_config_dll windebug.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015358wine_fn_config_dll windowscodecs enable_windowscodecs implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015359wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015360wine_fn_config_dll winealsa.drv enable_winealsa_drv
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015361wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015362wine_fn_config_lib winecrt0
Alexandre Julliard1858f432010-12-29 14:10:47 +010015363wine_fn_config_dll wined3d enable_wined3d implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015364wine_fn_config_dll wineesd.drv enable_wineesd_drv
Aric Stewart2914d652010-10-20 13:55:16 -050015365wine_fn_config_dll winegstreamer enable_winegstreamer
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015366wine_fn_config_dll winejack.drv enable_winejack_drv
15367wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15368wine_fn_config_dll winemapi enable_winemapi
15369wine_fn_config_dll winemp3.acm enable_winemp3_acm
15370wine_fn_config_dll winenas.drv enable_winenas_drv
15371wine_fn_config_dll wineoss.drv enable_wineoss_drv
15372wine_fn_config_dll wineps.drv enable_wineps_drv
15373wine_fn_config_dll wineps16.drv16 enable_win16
Aric Stewarteefe6f62010-12-03 07:33:08 -060015374wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015375wine_fn_config_dll winequartz.drv enable_winequartz_drv
15376wine_fn_config_dll winex11.drv enable_winex11_drv
15377wine_fn_config_dll wing.dll16 enable_win16
15378wine_fn_config_dll wing32 enable_wing32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015379wine_fn_config_dll winhttp enable_winhttp implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015380wine_fn_config_test dlls/winhttp/tests winhttp_test
Alexandre Julliardec547502011-01-12 18:03:56 +010015381wine_fn_config_dll wininet enable_wininet po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015382wine_fn_config_test dlls/wininet/tests wininet_test
Alexandre Julliard8aefc902011-01-06 17:50:17 +010015383wine_fn_config_dll winmm enable_winmm po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015384wine_fn_config_test dlls/winmm/tests winmm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015385wine_fn_config_dll winnls.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015386wine_fn_config_dll winnls32 enable_winnls32 implib
15387wine_fn_config_dll winscard enable_winscard implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015388wine_fn_config_dll winsock.dll16 enable_win16
Alexandre Julliard35f3db42011-01-12 18:10:48 +010015389wine_fn_config_dll winspool.drv enable_winspool_drv po,implib winspool
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015390wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015391wine_fn_config_dll wintab.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015392wine_fn_config_dll wintab32 enable_wintab32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015393wine_fn_config_test dlls/wintab32/tests wintab32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015394wine_fn_config_dll wintrust enable_wintrust implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015395wine_fn_config_test dlls/wintrust/tests wintrust_test
Ričardas Barkauskas303079f2010-10-20 11:21:15 +030015396wine_fn_config_dll wlanapi enable_wlanapi
Alexandre Julliardd1d494b2011-01-06 17:57:43 +010015397wine_fn_config_dll wldap32 enable_wldap32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015398wine_fn_config_test dlls/wldap32/tests wldap32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015399wine_fn_config_dll wmi enable_wmi
15400wine_fn_config_dll wmiutils enable_wmiutils
Alexandre Julliard1858f432010-12-29 14:10:47 +010015401wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15402wine_fn_config_dll wow32 enable_win16 implib
15403wine_fn_config_dll ws2_32 enable_ws2_32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015404wine_fn_config_test dlls/ws2_32/tests ws2_32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015405wine_fn_config_dll wsock32 enable_wsock32 implib
15406wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015407wine_fn_config_dll wuapi enable_wuapi
15408wine_fn_config_dll wuaueng enable_wuaueng
Louis Lenders934d6762010-11-12 11:23:37 +010015409wine_fn_config_dll xapofx1_1 enable_xapofx1_1
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015410wine_fn_config_dll xinput1_1 enable_xinput1_1
15411wine_fn_config_dll xinput1_2 enable_xinput1_2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015412wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015413wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015414wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15415wine_fn_config_dll xmllite enable_xmllite
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015416wine_fn_config_test dlls/xmllite/tests xmllite_test
Alexandre Julliard03642412010-03-20 15:24:22 +010015417wine_fn_config_makefile documentation enable_documentation
15418wine_fn_config_makefile fonts enable_fonts
15419wine_fn_config_makefile include enable_include
15420wine_fn_config_makefile libs/port enable_libs_port
15421wine_fn_config_makefile libs/wine enable_libs_wine
15422wine_fn_config_makefile libs/wpp enable_libs_wpp
15423wine_fn_config_makefile loader enable_loader
Hans Leidekkerab789c62010-10-13 14:23:09 +020015424wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015425wine_fn_config_program attrib enable_attrib install
Alexandre Julliard30bdbed2011-02-02 22:44:47 +010015426wine_fn_config_program cabarc enable_cabarc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015427wine_fn_config_program cacls enable_cacls install
Alexandre Julliard367fd222011-01-04 17:05:21 +010015428wine_fn_config_program clock enable_clock po,install
Alexandre Julliard68647162011-01-04 00:03:40 +010015429wine_fn_config_program cmd enable_cmd po,install
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015430wine_fn_config_test programs/cmd/tests cmd.exe_test
Alexandre Julliardd394e042010-03-20 14:53:39 +010015431wine_fn_config_program cmdlgtst enable_cmdlgtst
15432wine_fn_config_program control enable_control install
15433wine_fn_config_program dxdiag enable_dxdiag install
15434wine_fn_config_program eject enable_eject install
15435wine_fn_config_program expand enable_expand install
15436wine_fn_config_program explorer enable_explorer install
15437wine_fn_config_program extrac32 enable_extrac32 install
15438wine_fn_config_program hh enable_hh install
15439wine_fn_config_program icinfo enable_icinfo install
15440wine_fn_config_program iexplore enable_iexplore install
Alexandre Julliard6ec2a532011-01-04 10:49:45 +010015441wine_fn_config_program ipconfig enable_ipconfig po,install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015442wine_fn_config_program lodctr enable_lodctr install
Hans Leidekkerf15aea22010-09-29 09:57:34 +020015443wine_fn_config_program mofcomp enable_mofcomp install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015444wine_fn_config_program mshta enable_mshta install
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015445wine_fn_config_program msiexec enable_msiexec install,installbin
Alexandre Julliardb8c80c92011-01-04 17:55:21 +010015446wine_fn_config_program net enable_net po,install
Hans Leidekker8ad7d2e2010-12-06 13:19:41 +010015447wine_fn_config_program netsh enable_netsh install
Vincent Povirk4d3e6f42010-04-02 10:19:18 -050015448wine_fn_config_program ngen enable_ngen install
Alexandre Julliardff71d912011-01-08 12:53:31 +010015449wine_fn_config_program notepad enable_notepad po,install,installbin
Alexandre Julliard4c934cf2011-01-13 21:45:59 +010015450wine_fn_config_program oleview enable_oleview po,install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015451wine_fn_config_program ping enable_ping install
Hans Leidekker2133b6c2011-01-31 15:26:17 +010015452wine_fn_config_program plugplay enable_plugplay install
Alexandre Julliard8a4daab2011-01-08 16:19:06 +010015453wine_fn_config_program progman enable_progman po,install
Alexandre Julliard7ca71382011-01-04 18:03:01 +010015454wine_fn_config_program reg enable_reg po,install
Alexandre Julliard30b5e222011-01-13 22:24:00 +010015455wine_fn_config_program regedit enable_regedit po,install,installbin
Andrew Eikumf3c6c622010-07-30 16:02:34 -050015456wine_fn_config_test programs/regedit/tests regedit.exe_test
Hans Leidekkerab5fbeb2010-11-12 13:07:40 +010015457wine_fn_config_program regsvcs enable_regsvcs install
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015458wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015459wine_fn_config_program rpcss enable_rpcss install
Detlef Riekenbergdf898ea2010-07-18 19:15:57 +020015460wine_fn_config_program rundll.exe16 enable_win16 install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015461wine_fn_config_program rundll32 enable_rundll32 install
Hans Leidekker544da282010-05-03 12:56:58 +020015462wine_fn_config_program sc enable_sc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015463wine_fn_config_program secedit enable_secedit install
Hans Leidekker1885c3d2010-11-18 12:09:11 +010015464wine_fn_config_program servicemodelreg enable_servicemodelreg install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015465wine_fn_config_program services enable_services install
15466wine_fn_config_program spoolsv enable_spoolsv install
Alexandre Julliard1d3ef692011-01-04 19:24:34 +010015467wine_fn_config_program start enable_start po,install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015468wine_fn_config_program svchost enable_svchost install
Alexandre Julliardf0673012011-01-04 19:30:25 +010015469wine_fn_config_program taskkill enable_taskkill po,install
Alexandre Julliarddfcd36c2011-01-08 16:43:38 +010015470wine_fn_config_program taskmgr enable_taskmgr po,install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015471wine_fn_config_program termsv enable_termsv install
Alexandre Julliard4bca3342011-01-04 19:38:45 +010015472wine_fn_config_program uninstaller enable_uninstaller po,install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015473wine_fn_config_program unlodctr enable_unlodctr install
Alexandre Julliard9d6489a2011-01-10 13:25:22 +010015474wine_fn_config_program view enable_view po
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015475wine_fn_config_program wineboot enable_wineboot install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015476wine_fn_config_program winebrowser enable_winebrowser install
Alexandre Julliarda2be59a2011-01-13 22:44:59 +010015477wine_fn_config_program winecfg enable_winecfg po,install,installbin
Alexandre Julliard389f0e72011-01-10 13:42:09 +010015478wine_fn_config_program wineconsole enable_wineconsole po,install,installbin
Alexandre Julliard4f103ef2011-01-10 13:54:23 +010015479wine_fn_config_program winedbg enable_winedbg po,install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015480wine_fn_config_program winedevice enable_winedevice install
Alexandre Julliard08b919f2011-01-10 23:37:15 +010015481wine_fn_config_program winefile enable_winefile po,install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015482wine_fn_config_program winemenubuilder enable_winemenubuilder install
Alexandre Julliard490a47e2011-01-10 19:35:32 +010015483wine_fn_config_program winemine enable_winemine po,install,installbin
Hans Leidekker13700722011-02-01 14:01:42 +010015484wine_fn_config_program winemsibuilder enable_winemsibuilder install
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015485wine_fn_config_program winepath enable_winepath install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015486wine_fn_config_program winetest enable_winetest
15487wine_fn_config_program winevdm enable_win16 install
15488wine_fn_config_program winhelp.exe16 enable_win16 install
Alexandre Julliard433e2402011-01-10 20:30:14 +010015489wine_fn_config_program winhlp32 enable_winhlp32 po,install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015490wine_fn_config_program winoldap.mod16 enable_win16 install
15491wine_fn_config_program winver enable_winver install
Louis Lenders4b281b22010-12-06 23:04:20 +010015492wine_fn_config_program wmic enable_wmic install
Alexandre Julliard88daff72011-01-11 12:41:31 +010015493wine_fn_config_program wordpad enable_wordpad po,install
Alexandre Julliard26c924e2011-01-04 19:43:36 +010015494wine_fn_config_program write enable_write po,install
Jacek Caban16bad582010-07-27 15:51:18 +020015495wine_fn_config_program wscript enable_wscript install
Jacek Cabanf5eb15a2011-02-22 19:48:37 +010015496wine_fn_config_test programs/wscript/tests wscript.exe_test
Alexandre Julliardf8be8ff2011-01-04 20:15:50 +010015497wine_fn_config_program xcopy enable_xcopy po,install
Alexandre Julliard03642412010-03-20 15:24:22 +010015498wine_fn_config_makefile server enable_server
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010015499wine_fn_config_tool tools
15500wine_fn_config_tool tools/widl
15501wine_fn_config_tool tools/winebuild
15502wine_fn_config_tool tools/winedump
15503wine_fn_config_tool tools/winegcc
15504wine_fn_config_tool tools/wmc
15505wine_fn_config_tool tools/wrc
Alexandre Julliard626f4252000-11-10 23:35:20 +000015506
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015507LINGUAS="\
Alexandre Julliardff71d912011-01-08 12:53:31 +010015508ar \
Alexandre Julliard4bca3342011-01-04 19:38:45 +010015509bg \
Alexandre Julliard39558f82011-01-13 17:24:15 +010015510ca \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015511cs \
15512da \
15513de \
Alexandre Julliardc9b52d22011-01-06 13:19:58 +010015514el \
15515en \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015516en_US \
15517eo \
15518es \
Alexandre Julliardff71d912011-01-08 12:53:31 +010015519fa \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015520fi \
15521fr \
15522he \
15523hi \
15524hu \
15525it \
15526ja \
15527ko \
15528lt \
15529ml \
15530nb_NO \
15531nl \
15532or \
15533pa \
15534pl \
15535pt_BR \
15536pt_PT \
Alexandre Julliard433e2402011-01-10 20:30:14 +010015537rm \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015538ro \
15539ru \
15540sk \
15541sl \
Alexandre Julliardc0b813f2011-01-07 12:11:41 +010015542sr_RS@cyrillic \
15543sr_RS@latin \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015544sv \
15545te \
15546th \
15547tr \
15548uk \
15549wa \
15550zh_CN \
15551zh_TW"
15552
15553
15554
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015555ac_config_commands="$ac_config_commands Makefile"
15556
15557
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020015558ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
Alexandre Julliard92b57312010-03-22 20:25:30 +010015559
15560
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015561
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015562if test "x$enable_maintainer_mode" = xyes
15563then
15564 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15565 cd \$(srcdir) && autoconf --warnings=all
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015566\$(srcdir)/include/config.h.in: include/stamp-h.in
15567\$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15568 cd \$(srcdir) && autoheader --warnings=all
Alexandre Julliard367fd222011-01-04 17:05:21 +010015569 @echo timestamp > \$@
15570
15571ALL_POT_FILES =$ALL_POT_FILES
15572all: \$(ALL_PO_FILES)
15573\$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
Alexandre Julliard945ccf52011-01-27 15:09:55 +010015574 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
Alexandre Julliard367fd222011-01-04 17:05:21 +010015575\$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15576 msgcat -o \$@ \$(ALL_POT_FILES)"
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015577fi
15578
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015579if test -n "$with_wine64"
15580then
Alexandre Julliard3c42b622010-12-27 14:37:57 +010015581wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015582fonts server:
15583 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020015584$with_wine64/loader/wine:
15585 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
Alexandre Julliard3c42b622010-12-27 14:37:57 +010015586$with_wine64/loader/wine-preloader:
15587 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015588clean::
Alexandre Julliard3c42b622010-12-27 14:37:57 +010015589 \$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015590fi
15591
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015592wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15593 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15594
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015595cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015596# This file is a shell script that caches the results of configure
15597# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015598# scripts and configure runs, see configure's option --config-cache.
15599# It is not useful on other systems. If it contains results you don't
15600# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015601#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015602# config.status only pays attention to the cache file if you give it
15603# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015604#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015605# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015606# loading this file, other *unset* `ac_cv_foo' will be assigned the
15607# following values.
15608
15609_ACEOF
15610
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015611# The following way of writing the cache mishandles newlines in values,
15612# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015613# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015614# Ultrix sh set writes to stderr and can't be redirected directly,
15615# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015616(
15617 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15618 eval ac_val=\$$ac_var
15619 case $ac_val in #(
15620 *${as_nl}*)
15621 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015622 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015623$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015624 esac
15625 case $ac_var in #(
15626 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015627 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015628 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015629 esac ;;
15630 esac
15631 done
15632
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015633 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015634 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15635 *${as_nl}ac_space=\ *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015636 # `set' does not quote correctly, so add quotes: double-quote
15637 # substitution turns \\\\ into \\, and sed turns \\ into \.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015638 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015639 "s/'/'\\\\''/g;
15640 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015641 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015642 *)
15643 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015644 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015645 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015646 esac |
15647 sort
15648) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015649 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015650 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015651 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015652 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015653 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15654 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015655 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15656 :end' >>confcache
Jeremy White0ebeb532006-06-20 13:18:41 +020015657if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15658 if test -w "$cache_file"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015659 test "x$cache_file" != "x/dev/null" &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015660 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015661$as_echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015662 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015663 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015664 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015665$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015666 fi
15667fi
15668rm -f confcache
15669
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015670test "x$prefix" = xNONE && prefix=$ac_default_prefix
15671# Let make expand exec_prefix.
15672test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15673
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015674DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015675
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015676ac_libobjs=
15677ac_ltlibobjs=
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015678U=
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015679for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15680 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015681 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015682 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015683 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15684 # will be set to the directory where LIBOBJS objects are built.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015685 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15686 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015687done
15688LIBOBJS=$ac_libobjs
15689
15690LTLIBOBJS=$ac_ltlibobjs
15691
15692
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015693
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015694: ${CONFIG_STATUS=./config.status}
Alexandre Julliardabf50482008-10-31 12:56:53 +010015695ac_write_fail=0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015696ac_clean_files_save=$ac_clean_files
15697ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015698{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015699$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015700as_write_fail=0
15701cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015702#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015703# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015704# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015705# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015706# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015707
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015708debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015709ac_cs_recheck=false
15710ac_cs_silent=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015711
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015712SHELL=\${CONFIG_SHELL-$SHELL}
15713export SHELL
15714_ASEOF
15715cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15716## -------------------- ##
15717## M4sh Initialization. ##
15718## -------------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015719
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015720# Be more Bourne compatible
15721DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015722if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015723 emulate sh
15724 NULLCMD=:
Alexandre Julliardabf50482008-10-31 12:56:53 +010015725 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015726 # is contrary to our usage. Disable this feature.
15727 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015728 setopt NO_GLOB_SUBST
15729else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015730 case `(set -o) 2>/dev/null` in #(
15731 *posix*) :
15732 set -o posix ;; #(
15733 *) :
15734 ;;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015735esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015736fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015737
15738
Alexandre Julliardabf50482008-10-31 12:56:53 +010015739as_nl='
15740'
15741export as_nl
15742# Printing a long string crashes Solaris 7 /usr/bin/printf.
15743as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15744as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15745as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015746# Prefer a ksh shell builtin over an external printf program on Solaris,
15747# but without wasting forks for bash or zsh.
15748if test -z "$BASH_VERSION$ZSH_VERSION" \
15749 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15750 as_echo='print -r --'
15751 as_echo_n='print -rn --'
15752elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015753 as_echo='printf %s\n'
15754 as_echo_n='printf %s'
15755else
15756 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15757 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15758 as_echo_n='/usr/ucb/echo -n'
15759 else
15760 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15761 as_echo_n_body='eval
15762 arg=$1;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015763 case $arg in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015764 *"$as_nl"*)
15765 expr "X$arg" : "X\\(.*\\)$as_nl";
15766 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15767 esac;
15768 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15769 '
15770 export as_echo_n_body
15771 as_echo_n='sh -c $as_echo_n_body as_echo'
15772 fi
15773 export as_echo_body
15774 as_echo='sh -c $as_echo_body as_echo'
15775fi
15776
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015777# The user is always right.
15778if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015779 PATH_SEPARATOR=:
15780 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15781 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15782 PATH_SEPARATOR=';'
15783 }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015784fi
15785
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015786
15787# IFS
15788# We need space, tab and new line, in precisely that order. Quoting is
15789# there to prevent editors from complaining about space-tab.
15790# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15791# splitting by setting IFS to empty value.)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015792IFS=" "" $as_nl"
15793
15794# Find who we are. Look in the path if we contain no directory separator.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015795case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015796 *[\\/]* ) as_myself=$0 ;;
15797 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015798for as_dir in $PATH
15799do
15800 IFS=$as_save_IFS
15801 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015802 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15803 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015804IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015805
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015806 ;;
15807esac
15808# We did not find ourselves, most probably we were run as `sh COMMAND'
15809# in which case we are not to be found in the path.
15810if test "x$as_myself" = x; then
15811 as_myself=$0
15812fi
15813if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015814 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015815 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015816fi
15817
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015818# Unset variables that we do not need and which cause bugs (e.g. in
15819# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15820# suppresses any "Segmentation fault" message there. '((' could
15821# trigger a bug in pdksh 5.2.14.
15822for as_var in BASH_ENV ENV MAIL MAILPATH
15823do eval test x\${$as_var+set} = xset \
15824 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015825done
15826PS1='$ '
15827PS2='> '
15828PS4='+ '
15829
15830# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +010015831LC_ALL=C
15832export LC_ALL
15833LANGUAGE=C
15834export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015835
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015836# CDPATH.
15837(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15838
15839
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015840# as_fn_error STATUS ERROR [LINENO LOG_FD]
15841# ----------------------------------------
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015842# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15843# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015844# script with STATUS, using 1 if that was 0.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015845as_fn_error ()
15846{
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015847 as_status=$1; test $as_status -eq 0 && as_status=1
15848 if test "$4"; then
15849 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15850 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015851 fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015852 $as_echo "$as_me: error: $2" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015853 as_fn_exit $as_status
15854} # as_fn_error
15855
15856
15857# as_fn_set_status STATUS
15858# -----------------------
15859# Set $? to STATUS, without forking.
15860as_fn_set_status ()
15861{
15862 return $1
15863} # as_fn_set_status
15864
15865# as_fn_exit STATUS
15866# -----------------
15867# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15868as_fn_exit ()
15869{
15870 set +e
15871 as_fn_set_status $1
15872 exit $1
15873} # as_fn_exit
15874
15875# as_fn_unset VAR
15876# ---------------
15877# Portably unset VAR.
15878as_fn_unset ()
15879{
15880 { eval $1=; unset $1;}
15881}
15882as_unset=as_fn_unset
15883# as_fn_append VAR VALUE
15884# ----------------------
15885# Append the text in VALUE to the end of the definition contained in VAR. Take
15886# advantage of any shell optimizations that allow amortized linear growth over
15887# repeated appends, instead of the typical quadratic growth present in naive
15888# implementations.
15889if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15890 eval 'as_fn_append ()
15891 {
15892 eval $1+=\$2
15893 }'
15894else
15895 as_fn_append ()
15896 {
15897 eval $1=\$$1\$2
15898 }
15899fi # as_fn_append
15900
15901# as_fn_arith ARG...
15902# ------------------
15903# Perform arithmetic evaluation on the ARGs, and store the result in the
15904# global $as_val. Take advantage of shells that can avoid forks. The arguments
15905# must be portable across $(()) and expr.
15906if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15907 eval 'as_fn_arith ()
15908 {
15909 as_val=$(( $* ))
15910 }'
15911else
15912 as_fn_arith ()
15913 {
15914 as_val=`expr "$@" || test $? -eq 1`
15915 }
15916fi # as_fn_arith
15917
15918
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015919if expr a : '\(a\)' >/dev/null 2>&1 &&
15920 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15921 as_expr=expr
15922else
15923 as_expr=false
15924fi
15925
15926if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15927 as_basename=basename
15928else
15929 as_basename=false
15930fi
15931
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015932if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15933 as_dirname=dirname
15934else
15935 as_dirname=false
15936fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015937
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015938as_me=`$as_basename -- "$0" ||
15939$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15940 X"$0" : 'X\(//\)$' \| \
15941 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010015942$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015943 sed '/^.*\/\([^/][^/]*\)\/*$/{
15944 s//\1/
15945 q
15946 }
15947 /^X\/\(\/\/\)$/{
15948 s//\1/
15949 q
15950 }
15951 /^X\/\(\/\).*/{
15952 s//\1/
15953 q
15954 }
15955 s/.*/./; q'`
15956
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015957# Avoid depending upon Character Ranges.
15958as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15959as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15960as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15961as_cr_digits='0123456789'
15962as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015963
15964ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015965case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015966-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015967 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015968 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015969 xy) ECHO_C='\c';;
15970 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15971 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015972 esac;;
15973*)
15974 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015975esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015976
15977rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015978if test -d conf$$.dir; then
15979 rm -f conf$$.dir/conf$$.file
15980else
15981 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +010015982 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015983fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010015984if (echo >conf$$.file) 2>/dev/null; then
15985 if ln -s conf$$.file conf$$ 2>/dev/null; then
15986 as_ln_s='ln -s'
15987 # ... but there are two gotchas:
15988 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15989 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15990 # In both cases, we have to default to `cp -p'.
15991 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15992 as_ln_s='cp -p'
15993 elif ln conf$$.file conf$$ 2>/dev/null; then
15994 as_ln_s=ln
15995 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015996 as_ln_s='cp -p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015997 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015998else
15999 as_ln_s='cp -p'
16000fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016001rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16002rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016003
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016004
16005# as_fn_mkdir_p
16006# -------------
16007# Create "$as_dir" as a directory, including parents if necessary.
16008as_fn_mkdir_p ()
16009{
16010
16011 case $as_dir in #(
16012 -*) as_dir=./$as_dir;;
16013 esac
16014 test -d "$as_dir" || eval $as_mkdir_p || {
16015 as_dirs=
16016 while :; do
16017 case $as_dir in #(
16018 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16019 *) as_qdir=$as_dir;;
16020 esac
16021 as_dirs="'$as_qdir' $as_dirs"
16022 as_dir=`$as_dirname -- "$as_dir" ||
16023$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16024 X"$as_dir" : 'X\(//\)[^/]' \| \
16025 X"$as_dir" : 'X\(//\)$' \| \
16026 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16027$as_echo X"$as_dir" |
16028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16029 s//\1/
16030 q
16031 }
16032 /^X\(\/\/\)[^/].*/{
16033 s//\1/
16034 q
16035 }
16036 /^X\(\/\/\)$/{
16037 s//\1/
16038 q
16039 }
16040 /^X\(\/\).*/{
16041 s//\1/
16042 q
16043 }
16044 s/.*/./; q'`
16045 test -d "$as_dir" && break
16046 done
16047 test -z "$as_dirs" || eval "mkdir $as_dirs"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016048 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016049
16050
16051} # as_fn_mkdir_p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016052if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016053 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016054else
Alexandre Julliard875927f2004-01-02 01:55:29 +000016055 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016056 as_mkdir_p=false
16057fi
16058
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016059if test -x / >/dev/null 2>&1; then
16060 as_test_x='test -x'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016061else
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016062 if ls -dL / >/dev/null 2>&1; then
16063 as_ls_L_option=L
16064 else
16065 as_ls_L_option=
16066 fi
16067 as_test_x='
16068 eval sh -c '\''
16069 if test -d "$1"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016070 test -d "$1/.";
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016071 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016072 case $1 in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010016073 -*)set "./$1";;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016074 esac;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016075 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016076 ???[sx]*):;;*)false;;esac;fi
16077 '\'' sh
16078 '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016079fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016080as_executable_p=$as_test_x
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016081
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016082# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000016083as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016084
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016085# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000016086as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016087
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016088
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016089exec 6>&1
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016090## ----------------------------------- ##
16091## Main body of $CONFIG_STATUS script. ##
16092## ----------------------------------- ##
16093_ASEOF
16094test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016095
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016096cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16097# Save the log message, to keep $0 and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016098# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016099# values after options handling.
16100ac_log="
Alexandre Julliarde44875b2011-03-04 19:25:23 +010016101This file was extended by Wine $as_me 1.3.15, which was
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016102generated by GNU Autoconf 2.67. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016103
16104 CONFIG_FILES = $CONFIG_FILES
16105 CONFIG_HEADERS = $CONFIG_HEADERS
16106 CONFIG_LINKS = $CONFIG_LINKS
16107 CONFIG_COMMANDS = $CONFIG_COMMANDS
16108 $ $0 $@
16109
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016110on `(hostname || uname -n) 2>/dev/null | sed 1q`
16111"
16112
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016113_ACEOF
16114
Alexandre Julliardabf50482008-10-31 12:56:53 +010016115case $ac_config_files in *"
16116"*) set x $ac_config_files; shift; ac_config_files=$*;;
16117esac
16118
16119case $ac_config_headers in *"
16120"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16121esac
16122
16123
16124cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016125# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016126config_files="$ac_config_files"
16127config_headers="$ac_config_headers"
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016128config_links="$ac_config_links"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016129config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016130
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016131_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016132
Alexandre Julliardabf50482008-10-31 12:56:53 +010016133cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016134ac_cs_usage="\
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016135\`$as_me' instantiates files and other configuration actions
16136from templates according to the current configuration. Unless the files
16137and actions are specified as TAGs, all are instantiated by default.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016138
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016139Usage: $0 [OPTION]... [TAG]...
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016140
16141 -h, --help print this help, then exit
Alexandre Julliard78bd1942006-08-14 20:42:56 +020016142 -V, --version print version number and configuration settings, then exit
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016143 --config print configuration, then exit
Alexandre Julliardabf50482008-10-31 12:56:53 +010016144 -q, --quiet, --silent
16145 do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016146 -d, --debug don't remove temporary files
16147 --recheck update $as_me by reconfiguring in the same conditions
Alexandre Julliardabf50482008-10-31 12:56:53 +010016148 --file=FILE[:TEMPLATE]
16149 instantiate the configuration file FILE
16150 --header=FILE[:TEMPLATE]
16151 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016152
16153Configuration files:
16154$config_files
16155
16156Configuration headers:
16157$config_headers
16158
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016159Configuration links:
16160$config_links
16161
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016162Configuration commands:
16163$config_commands
16164
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016165Report bugs to <wine-devel@winehq.org>.
16166Wine home page: <http://www.winehq.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000016167
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016168_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016169cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016170ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016171ac_cs_version="\\
Alexandre Julliarde44875b2011-03-04 19:25:23 +010016172Wine config.status 1.3.15
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016173configured by $0, generated by GNU Autoconf 2.67,
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016174 with options \\"\$ac_cs_config\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016175
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016176Copyright (C) 2010 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016177This config.status script is free software; the Free Software Foundation
16178gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016179
16180ac_pwd='$ac_pwd'
16181srcdir='$srcdir'
16182INSTALL='$INSTALL'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016183test -n "\$AWK" || AWK=awk
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016184_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016185
Alexandre Julliardabf50482008-10-31 12:56:53 +010016186cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16187# The default lists apply if the user does not specify any file.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016188ac_need_defaults=:
16189while test $# != 0
16190do
16191 case $1 in
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016192 --*=?*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016193 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16194 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016195 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016196 ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016197 --*=)
16198 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16199 ac_optarg=
16200 ac_shift=:
16201 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016202 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016203 ac_option=$1
16204 ac_optarg=$2
16205 ac_shift=shift
16206 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016207 esac
16208
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016209 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016210 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016211 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16212 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016213 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Alexandre Julliardabf50482008-10-31 12:56:53 +010016214 $as_echo "$ac_cs_version"; exit ;;
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016215 --config | --confi | --conf | --con | --co | --c )
16216 $as_echo "$ac_cs_config"; exit ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016217 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016218 debug=: ;;
16219 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016220 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010016221 case $ac_optarg in
16222 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016223 '') as_fn_error $? "missing file argument" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +010016224 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016225 as_fn_append CONFIG_FILES " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016226 ac_need_defaults=false;;
16227 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016228 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010016229 case $ac_optarg in
16230 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16231 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016232 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016233 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016234 --he | --h)
16235 # Conflict between --help and --header
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016236 as_fn_error $? "ambiguous option: \`$1'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016237Try \`$0 --help' for more information.";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016238 --help | --hel | -h )
Alexandre Julliardabf50482008-10-31 12:56:53 +010016239 $as_echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016240 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16241 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16242 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016243
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016244 # This is an error.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016245 -*) as_fn_error $? "unrecognized option: \`$1'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016246Try \`$0 --help' for more information." ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016247
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016248 *) as_fn_append ac_config_targets " $1"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016249 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016250
16251 esac
16252 shift
16253done
16254
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016255ac_configure_extra_args=
16256
16257if $ac_cs_silent; then
16258 exec 6>/dev/null
16259 ac_configure_extra_args="$ac_configure_extra_args --silent"
16260fi
16261
16262_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016263cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016264if \$ac_cs_recheck; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016265 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16266 shift
16267 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16268 CONFIG_SHELL='$SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016269 export CONFIG_SHELL
Alexandre Julliardabf50482008-10-31 12:56:53 +010016270 exec "\$@"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016271fi
16272
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016273_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016275exec 5>>config.log
16276{
16277 echo
16278 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16279## Running $as_me. ##
16280_ASBOX
Alexandre Julliardabf50482008-10-31 12:56:53 +010016281 $as_echo "$ac_log"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016282} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016283
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016284_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016285cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016286#
16287# INIT-COMMANDS
16288#
16289wine_fn_output_makefile ()
16290{
16291 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16292$ALL_MAKEFILE_DEPENDS
16293_WINE_EOF
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016294 as_fn_error $? "could not create Makefile" "$LINENO" 5
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016295}
16296
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016297_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016298
Alexandre Julliardabf50482008-10-31 12:56:53 +010016299cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016300
16301# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016302for ac_config_target in $ac_config_targets
16303do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016304 case $ac_config_target in
16305 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliardc4704c22006-09-22 09:33:00 +020016306 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
Alexandre Julliard40977bf2010-11-11 12:24:46 +010016307 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
Alexandre Julliarda6320522010-02-03 13:14:03 +010016308 "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 +010016309 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16310 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16311 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16312 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
Alexandre Julliard321d3882010-05-06 20:51:53 +020016313 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016314 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020016315 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16316 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020016317 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010016318 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016319 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16320 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16321 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010016322 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016323 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16324 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016325 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016326 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020016327 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016328
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016329 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016330 esac
16331done
16332
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016333
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016334# If the user did not use the arguments to specify the items to instantiate,
16335# then the envvar interface is used. Set only those that are not.
16336# We use the long form for the default assignment because of an extremely
16337# bizarre bug on SunOS 4.1.3.
16338if $ac_need_defaults; then
16339 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16340 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016341 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016342 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16343fi
16344
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016345# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016346# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016347# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016348# Hook for its removal unless debugging.
16349# Note that there is a small window in which the directory will not be cleaned:
16350# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016351$debug ||
16352{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016353 tmp=
16354 trap 'exit_status=$?
16355 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16356' 0
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016357 trap 'as_fn_exit 1' 1 2 13 15
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016358}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016359# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016360
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016361{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016362 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016363 test -n "$tmp" && test -d "$tmp"
16364} ||
16365{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016366 tmp=./conf$$-$RANDOM
16367 (umask 077 && mkdir "$tmp")
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016368} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016369
Alexandre Julliardabf50482008-10-31 12:56:53 +010016370# Set up the scripts for CONFIG_FILES section.
16371# No need to generate them if there are no CONFIG_FILES.
16372# This happens for instance with `./config.status config.h'.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016373if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016374
Alexandre Julliardabf50482008-10-31 12:56:53 +010016375if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16376 ac_cs_awk_getline=:
16377 ac_cs_awk_pipe_init=
16378 ac_cs_awk_read_file='
16379 while ((getline aline < (F[key])) > 0)
16380 print(aline)
16381 close(F[key])'
16382 ac_cs_awk_pipe_fini=
16383else
16384 ac_cs_awk_getline=false
16385 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16386 ac_cs_awk_read_file='
16387 print "|#_!!_#|"
16388 print "cat " F[key] " &&"
16389 '$ac_cs_awk_pipe_init
16390 # The final `:' finishes the AND list.
16391 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16392fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016393ac_cr=`echo X | tr X '\015'`
16394# On cygwin, bash can eat \r inside `` if the user requested igncr.
16395# But we know of no other shell where ac_cr would be empty at this
16396# point, so we can use a bashism as a fallback.
16397if test "x$ac_cr" = x; then
16398 eval ac_cr=\$\'\\r\'
16399fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016400ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16401if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016402 ac_cs_awk_cr='\\r'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016403else
16404 ac_cs_awk_cr=$ac_cr
16405fi
16406
16407echo 'BEGIN {' >"$tmp/subs1.awk" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016408_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016409
Alexandre Julliardabf50482008-10-31 12:56:53 +010016410# Create commands to substitute file output variables.
16411{
16412 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16413 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16414 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16415 echo "_ACAWK" &&
16416 echo "_ACEOF"
16417} >conf$$files.sh &&
16418. ./conf$$files.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016419 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016420rm -f conf$$files.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016421
Alexandre Julliardabf50482008-10-31 12:56:53 +010016422{
16423 echo "cat >conf$$subs.awk <<_ACEOF" &&
16424 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16425 echo "_ACEOF"
16426} >conf$$subs.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016427 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16428ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016429ac_delim='%!_!# '
16430for ac_last_try in false false false false false :; do
Alexandre Julliardabf50482008-10-31 12:56:53 +010016431 . ./conf$$subs.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016432 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016433
Alexandre Julliardabf50482008-10-31 12:56:53 +010016434 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16435 if test $ac_delim_n = $ac_delim_num; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016436 break
16437 elif $ac_last_try; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016438 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016439 else
16440 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016441 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016442done
Alexandre Julliardabf50482008-10-31 12:56:53 +010016443rm -f conf$$subs.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016444
Alexandre Julliardabf50482008-10-31 12:56:53 +010016445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16446cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016447_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016448sed -n '
16449h
16450s/^/S["/; s/!.*/"]=/
16451p
16452g
16453s/^[^!]*!//
16454:repl
16455t repl
16456s/'"$ac_delim"'$//
16457t delim
16458:nl
16459h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016460s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010016461t more1
16462s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16463p
16464n
16465b repl
16466:more1
16467s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16468p
16469g
16470s/.\{148\}//
16471t nl
16472:delim
16473h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016474s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010016475t more2
16476s/["\\]/\\&/g; s/^/"/; s/$/"/
16477p
16478b
16479:more2
16480s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16481p
16482g
16483s/.\{148\}//
16484t delim
16485' <conf$$subs.awk | sed '
16486/^[^""]/{
16487 N
16488 s/\n//
16489}
16490' >>$CONFIG_STATUS || ac_write_fail=1
16491rm -f conf$$subs.awk
16492cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16493_ACAWK
16494cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16495 for (key in S) S_is_set[key] = 1
16496 FS = ""
16497 \$ac_cs_awk_pipe_init
16498}
16499{
16500 line = $ 0
16501 nfields = split(line, field, "@")
16502 substed = 0
16503 len = length(field[1])
16504 for (i = 2; i < nfields; i++) {
16505 key = field[i]
16506 keylen = length(key)
16507 if (S_is_set[key]) {
16508 value = S[key]
16509 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16510 len += length(value) + length(field[++i])
16511 substed = 1
16512 } else
16513 len += 1 + keylen
16514 }
16515 if (nfields == 3 && !substed) {
16516 key = field[2]
16517 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16518 \$ac_cs_awk_read_file
16519 next
16520 }
16521 }
16522 print line
16523}
16524\$ac_cs_awk_pipe_fini
16525_ACAWK
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016526_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16528if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16529 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16530else
16531 cat
16532fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016533 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016534_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016535
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016536# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16537# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016538# trailing colons and then remove the whole line if VPATH becomes empty
16539# (actually we leave an empty line to preserve line numbers).
16540if test "x$srcdir" = x.; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016541 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16542h
16543s///
16544s/^/:/
16545s/[ ]*$/:/
16546s/:\$(srcdir):/:/g
16547s/:\${srcdir}:/:/g
16548s/:@srcdir@:/:/g
16549s/^:*//
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016550s/:*$//
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016551x
16552s/\(=[ ]*\).*/\1/
16553G
16554s/\n//
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016555s/^[^=]*=[ ]*$//
16556}'
16557fi
16558
Alexandre Julliardabf50482008-10-31 12:56:53 +010016559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016560fi # test -n "$CONFIG_FILES"
16561
Alexandre Julliardabf50482008-10-31 12:56:53 +010016562# Set up the scripts for CONFIG_HEADERS section.
16563# No need to generate them if there are no CONFIG_HEADERS.
16564# This happens for instance with `./config.status Makefile'.
16565if test -n "$CONFIG_HEADERS"; then
16566cat >"$tmp/defines.awk" <<\_ACAWK ||
16567BEGIN {
16568_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016569
Alexandre Julliardabf50482008-10-31 12:56:53 +010016570# Transform confdefs.h into an awk script `defines.awk', embedded as
16571# here-document in config.status, that substitutes the proper values into
16572# config.h.in to produce config.h.
16573
16574# Create a delimiter string that does not exist in confdefs.h, to ease
16575# handling of long lines.
16576ac_delim='%!_!# '
16577for ac_last_try in false false :; do
16578 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16579 if test -z "$ac_t"; then
16580 break
16581 elif $ac_last_try; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016582 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016583 else
16584 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16585 fi
16586done
16587
16588# For the awk script, D is an array of macro values keyed by name,
16589# likewise P contains macro parameters if any. Preserve backslash
16590# newline sequences.
16591
16592ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16593sed -n '
16594s/.\{148\}/&'"$ac_delim"'/g
16595t rset
16596:rset
16597s/^[ ]*#[ ]*define[ ][ ]*/ /
16598t def
16599d
16600:def
16601s/\\$//
16602t bsnl
16603s/["\\]/\\&/g
16604s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16605D["\1"]=" \3"/p
16606s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16607d
16608:bsnl
16609s/["\\]/\\&/g
16610s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16611D["\1"]=" \3\\\\\\n"\\/p
16612t cont
16613s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16614t cont
16615d
16616:cont
16617n
16618s/.\{148\}/&'"$ac_delim"'/g
16619t clear
16620:clear
16621s/\\$//
16622t bsnlc
16623s/["\\]/\\&/g; s/^/"/; s/$/"/p
16624d
16625:bsnlc
16626s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16627b cont
16628' <confdefs.h | sed '
16629s/'"$ac_delim"'/"\\\
16630"/g' >>$CONFIG_STATUS || ac_write_fail=1
16631
16632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16633 for (key in D) D_is_set[key] = 1
16634 FS = ""
16635}
16636/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16637 line = \$ 0
16638 split(line, arg, " ")
16639 if (arg[1] == "#") {
16640 defundef = arg[2]
16641 mac1 = arg[3]
16642 } else {
16643 defundef = substr(arg[1], 2)
16644 mac1 = arg[2]
16645 }
16646 split(mac1, mac2, "(") #)
16647 macro = mac2[1]
16648 prefix = substr(line, 1, index(line, defundef) - 1)
16649 if (D_is_set[macro]) {
16650 # Preserve the white space surrounding the "#".
16651 print prefix "define", macro P[macro] D[macro]
16652 next
16653 } else {
16654 # Replace #undef with comments. This is necessary, for example,
16655 # in the case of _POSIX_SOURCE, which is predefined and required
16656 # on some systems where configure will not decide to define it.
16657 if (defundef == "undef") {
16658 print "/*", prefix defundef, macro, "*/"
16659 next
16660 }
16661 }
16662}
16663{ print }
16664_ACAWK
16665_ACEOF
16666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016667 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016668fi # test -n "$CONFIG_HEADERS"
16669
16670
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016671eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
Alexandre Julliardabf50482008-10-31 12:56:53 +010016672shift
16673for ac_tag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016674do
16675 case $ac_tag in
16676 :[FHLC]) ac_mode=$ac_tag; continue;;
16677 esac
16678 case $ac_mode$ac_tag in
16679 :[FHL]*:*);;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016680 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016681 :[FH]-) ac_tag=-:-;;
16682 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16683 esac
16684 ac_save_IFS=$IFS
16685 IFS=:
16686 set x $ac_tag
16687 IFS=$ac_save_IFS
16688 shift
16689 ac_file=$1
16690 shift
16691
16692 case $ac_mode in
16693 :L) ac_source=$1;;
16694 :[FH])
16695 ac_file_inputs=
16696 for ac_f
16697 do
16698 case $ac_f in
16699 -) ac_f="$tmp/stdin";;
16700 *) # Look for the file first in the build tree, then in the source tree
16701 # (if the path is not absolute). The absolute path cannot be DOS-style,
16702 # because $ac_f cannot contain `:'.
16703 test -f "$ac_f" ||
16704 case $ac_f in
16705 [\\/$]*) false;;
16706 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16707 esac ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016708 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016709 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +010016710 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016711 as_fn_append ac_file_inputs " '$ac_f'"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016712 done
16713
16714 # Let's still pretend it is `configure' which instantiates (i.e., don't
16715 # use $as_me), people would be surprised to read:
16716 # /* config.h. Generated by config.status. */
Alexandre Julliardabf50482008-10-31 12:56:53 +010016717 configure_input='Generated from '`
16718 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16719 `' by configure.'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016720 if test x"$ac_file" != x-; then
16721 configure_input="$ac_file. $configure_input"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016722 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016723$as_echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016724 fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016725 # Neutralize special characters interpreted by sed in replacement strings.
16726 case $configure_input in #(
16727 *\&* | *\|* | *\\* )
16728 ac_sed_conf_input=`$as_echo "$configure_input" |
16729 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16730 *) ac_sed_conf_input=$configure_input;;
16731 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016732
16733 case $ac_tag in
Alexandre Julliardabf50482008-10-31 12:56:53 +010016734 *:-:* | *:-) cat >"$tmp/stdin" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016736 esac
16737 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016738 esac
16739
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016740 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016741$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016742 X"$ac_file" : 'X\(//\)[^/]' \| \
16743 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016744 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016745$as_echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16747 s//\1/
16748 q
16749 }
16750 /^X\(\/\/\)[^/].*/{
16751 s//\1/
16752 q
16753 }
16754 /^X\(\/\/\)$/{
16755 s//\1/
16756 q
16757 }
16758 /^X\(\/\).*/{
16759 s//\1/
16760 q
16761 }
16762 s/.*/./; q'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016763 as_dir="$ac_dir"; as_fn_mkdir_p
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016764 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016765
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016766case "$ac_dir" in
16767.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16768*)
Alexandre Julliardabf50482008-10-31 12:56:53 +010016769 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016770 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +010016771 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016772 case $ac_top_builddir_sub in
16773 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16774 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16775 esac ;;
16776esac
16777ac_abs_top_builddir=$ac_pwd
16778ac_abs_builddir=$ac_pwd$ac_dir_suffix
16779# for backward compatibility:
16780ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016781
16782case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016783 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016784 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016785 ac_top_srcdir=$ac_top_builddir_sub
16786 ac_abs_top_srcdir=$ac_pwd ;;
16787 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016788 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016789 ac_top_srcdir=$srcdir
16790 ac_abs_top_srcdir=$srcdir ;;
16791 *) # Relative name.
16792 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16793 ac_top_srcdir=$ac_top_build_prefix$srcdir
16794 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016795esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016796ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000016797
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016798
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016799 case $ac_mode in
16800 :F)
16801 #
16802 # CONFIG_FILE
16803 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016804
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016805 case $INSTALL in
16806 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016807 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000016808 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016809_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016810
Alexandre Julliardabf50482008-10-31 12:56:53 +010016811cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016812# If the template does not know about datarootdir, expand it.
16813# FIXME: This hack should be removed a few years after 2.60.
Jeremy White0ebeb532006-06-20 13:18:41 +020016814ac_datarootdir_hack=; ac_datarootdir_seen=
Alexandre Julliardabf50482008-10-31 12:56:53 +010016815ac_sed_dataroot='
16816/datarootdir/ {
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016817 p
16818 q
16819}
16820/@datadir@/p
16821/@docdir@/p
16822/@infodir@/p
16823/@localedir@/p
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016824/@mandir@/p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016825case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jeremy White0ebeb532006-06-20 13:18:41 +020016826*datarootdir*) ac_datarootdir_seen=yes;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016827*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016828 { $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 +010016829$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016830_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016831cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016832 ac_datarootdir_hack='
16833 s&@datadir@&$datadir&g
16834 s&@docdir@&$docdir&g
16835 s&@infodir@&$infodir&g
16836 s&@localedir@&$localedir&g
16837 s&@mandir@&$mandir&g
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016838 s&\\\${datarootdir}&$datarootdir&g' ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016839esac
16840_ACEOF
16841
16842# Neutralize VPATH when `$srcdir' = `.'.
16843# Shell code in configure.ac might set extrasub.
16844# FIXME: do we really want to maintain this feature?
Alexandre Julliardabf50482008-10-31 12:56:53 +010016845cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16846ac_sed_extra="$ac_vpsub
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016847$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016848_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016849cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016850:t
16851/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardabf50482008-10-31 12:56:53 +010016852s|@configure_input@|$ac_sed_conf_input|;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016853s&@top_builddir@&$ac_top_builddir_sub&;t t
Alexandre Julliardabf50482008-10-31 12:56:53 +010016854s&@top_build_prefix@&$ac_top_build_prefix&;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016855s&@srcdir@&$ac_srcdir&;t t
16856s&@abs_srcdir@&$ac_abs_srcdir&;t t
16857s&@top_srcdir@&$ac_top_srcdir&;t t
16858s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16859s&@builddir@&$ac_builddir&;t t
16860s&@abs_builddir@&$ac_abs_builddir&;t t
16861s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16862s&@INSTALL@&$ac_INSTALL&;t t
16863$ac_datarootdir_hack
Alexandre Julliardabf50482008-10-31 12:56:53 +010016864"
16865eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16866if $ac_cs_awk_getline; then
16867 $AWK -f "$tmp/subs.awk"
16868else
16869 $AWK -f "$tmp/subs.awk" | $SHELL
16870fi >$tmp/out \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016871 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016872
Jeremy White0ebeb532006-06-20 13:18:41 +020016873test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16874 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020016875 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016877which seems to be undefined. Please make sure it is defined" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016878$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016879which seems to be undefined. Please make sure it is defined" >&2;}
Jeremy White0ebeb532006-06-20 13:18:41 +020016880
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016881 rm -f "$tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016882 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +010016883 -) cat "$tmp/out" && rm -f "$tmp/out";;
16884 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16885 esac \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016887 ;;
16888 :H)
16889 #
16890 # CONFIG_HEADER
16891 #
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016892 if test x"$ac_file" != x-; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016893 {
16894 $as_echo "/* $configure_input */" \
16895 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16896 } >"$tmp/config.h" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016898 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016899 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016900$as_echo "$as_me: $ac_file is unchanged" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016901 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016902 rm -f "$ac_file"
16903 mv "$tmp/config.h" "$ac_file" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016904 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016905 fi
16906 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016907 $as_echo "/* $configure_input */" \
16908 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016909 || as_fn_error $? "could not create -" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016910 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016911 ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016912 :L)
16913 #
16914 # CONFIG_LINK
16915 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016916
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016917 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16918 :
16919 else
16920 # Prefer the file from the source tree if names are identical.
16921 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16922 ac_source=$srcdir/$ac_source
16923 fi
16924
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16926$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16927
16928 if test ! -r "$ac_source"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016929 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016930 fi
16931 rm -f "$ac_file"
16932
16933 # Try a relative symlink, then a hard link, then a copy.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016934 case $ac_source in
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016935 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16936 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16937 esac
16938 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16939 ln "$ac_source" "$ac_file" 2>/dev/null ||
16940 cp -p "$ac_source" "$ac_file" ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016941 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016942 fi
16943 ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016944 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016945$as_echo "$as_me: executing $ac_file commands" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016946 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016947 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016948
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016949
16950 case $ac_file$ac_mode in
Alexandre Julliardc4704c22006-09-22 09:33:00 +020016951 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
Alexandre Julliarda1c253e2010-02-11 20:26:35 +010016952 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16953$as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16954 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16955$as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16956 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16957$as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16958 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16959$as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16960 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16961$as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16962 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16963$as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016964 "Makefile":C) wine_fn_output_makefile Makefile ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016965
16966 esac
16967done # for ac_tag
16968
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000016969
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016970as_fn_exit 0
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016971_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016972ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016973
Alexandre Julliardabf50482008-10-31 12:56:53 +010016974test $ac_write_fail = 0 ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016975 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016976
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016977
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016978# configure is writing to config.log, and then calls config.status.
16979# config.status does its own redirection, appending to config.log.
16980# Unfortunately, on DOS this fails, as config.log is still kept open
16981# by configure, so config.status won't be able to write to it; its
16982# output is simply discarded. So we exec the FD to /dev/null,
16983# effectively closing config.log, so it can be properly (re)opened and
16984# appended to by config.status. When coming back to configure, we
16985# need to make the FD available again.
16986if test "$no_create" != yes; then
16987 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016988 ac_config_status_args=
16989 test "$silent" = yes &&
16990 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016991 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016992 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016993 exec 5>>config.log
16994 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16995 # would make configure fail if this is the last instruction.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016996 $ac_cs_success || as_fn_exit 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016997fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016998if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017000$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17001fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017002
Alexandre Julliarddaa28862002-04-11 21:54:01 +000017003
Alexandre Julliarde3bd1112006-09-21 11:14:38 +020017004if test "$no_create" = "yes"
17005then
17006 exit 0
17007fi
17008
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017009ac_save_IFS="$IFS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010017010if test "x$wine_notices != "x; then
17011 echo >&6
Rafał Mużyło4736c992008-10-20 21:43:21 +020017012 IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017013 for msg in $wine_notices; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020017014 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017015 if test -n "$msg"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017016 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017017$as_echo "$as_me: $msg" >&6;}
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017018 fi
17019 done
17020fi
Rafał Mużyło4736c992008-10-20 21:43:21 +020017021IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017022for msg in $wine_warnings; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020017023 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017024 if test -n "$msg"; then
17025 echo >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020017026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010017027$as_echo "$as_me: WARNING: $msg" >&2;}
Detlef Riekenberge84a3822006-08-21 05:28:17 +020017028 fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +020017029done
17030IFS="$ac_save_IFS"
Francois Gouget99d026f2005-03-19 17:08:18 +000017031
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010017032echo "
Alexandre Julliard64362ac2010-02-23 13:33:52 +010017033$as_me: Finished. Do '${ac_make}' to compile Wine.
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010017034" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000017035