blob: 89cbede0d73ae85bce0a3890f98f0ab0c5d5abb4 [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 Julliardf0296a82011-01-21 20:31:58 +01003# Generated by GNU Autoconf 2.67 for Wine 1.3.12.
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 Julliardf0296a82011-01-21 20:31:58 +0100555PACKAGE_VERSION='1.3.12'
556PACKAGE_STRING='Wine 1.3.12'
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
816with_wine_tools
Alexandre Julliard39a75d32009-08-13 19:45:31 +0200817with_wine64
Eric Pouechbc56c4e2009-08-25 19:33:28 +0200818enable_largefile
Alexandre Julliardabf50482008-10-31 12:56:53 +0100819with_x
820'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200821 ac_precious_vars='build_alias
822host_alias
823target_alias
824CC
825CFLAGS
826LDFLAGS
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100827LIBS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200828CPPFLAGS
829CXX
830CXXFLAGS
831CCC
Alexandre Julliard40664c02009-02-11 20:40:58 +0100832CPP
833XMKMF'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200834
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000835
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000836# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000837ac_init_help=
838ac_init_version=false
Alexandre Julliardabf50482008-10-31 12:56:53 +0100839ac_unrecognized_opts=
840ac_unrecognized_sep=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000841# The variables have the same names as the options, with
842# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000843cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000844exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000845no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000846no_recursion=
847prefix=NONE
848program_prefix=NONE
849program_suffix=NONE
850program_transform_name=s,x,x,
851silent=
852site=
853srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000854verbose=
855x_includes=NONE
856x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000857
858# Installation directory options.
859# These are left unexpanded so users can "make install exec_prefix=/foo"
860# and all the variables that are supposed to be based on exec_prefix
861# by default will actually change.
862# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200863# (The list follows the same order as the GNU Coding Standards.)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000864bindir='${exec_prefix}/bin'
865sbindir='${exec_prefix}/sbin'
866libexecdir='${exec_prefix}/libexec'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200867datarootdir='${prefix}/share'
868datadir='${datarootdir}'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000869sysconfdir='${prefix}/etc'
870sharedstatedir='${prefix}/com'
871localstatedir='${prefix}/var'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000872includedir='${prefix}/include'
873oldincludedir='/usr/include'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
875infodir='${datarootdir}/info'
876htmldir='${docdir}'
877dvidir='${docdir}'
878pdfdir='${docdir}'
879psdir='${docdir}'
880libdir='${exec_prefix}/lib'
881localedir='${datarootdir}/locale'
882mandir='${datarootdir}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000883
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000884ac_prev=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200885ac_dashdash=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000886for ac_option
887do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000888 # If the previous option needs an argument, assign it.
889 if test -n "$ac_prev"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200890 eval $ac_prev=\$ac_option
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000891 ac_prev=
892 continue
893 fi
894
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200895 case $ac_option in
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200896 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
897 *=) ac_optarg= ;;
898 *) ac_optarg=yes ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200899 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000900
901 # Accept the important Cygnus configure options, so we can diagnose typos.
902
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200903 case $ac_dashdash$ac_option in
904 --)
905 ac_dashdash=yes ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000906
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000907 -bindir | --bindir | --bindi | --bind | --bin | --bi)
908 ac_prev=bindir ;;
909 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000910 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000911
912 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000913 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000914 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000915 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000916
917 -cache-file | --cache-file | --cache-fil | --cache-fi \
918 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
919 ac_prev=cache_file ;;
920 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
921 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000922 cache_file=$ac_optarg ;;
923
924 --config-cache | -C)
925 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000926
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200927 -datadir | --datadir | --datadi | --datad)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000928 ac_prev=datadir ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200929 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000930 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000931
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200932 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
933 | --dataroo | --dataro | --datar)
934 ac_prev=datarootdir ;;
935 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
936 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
937 datarootdir=$ac_optarg ;;
938
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000939 -disable-* | --disable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100940 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000941 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200943 as_fn_error $? "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100944 ac_useropt_orig=$ac_useropt
945 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
947 *"
948"enable_$ac_useropt"
949"*) ;;
950 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
951 ac_unrecognized_sep=', ';;
952 esac
953 eval enable_$ac_useropt=no ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200954
955 -docdir | --docdir | --docdi | --doc | --do)
956 ac_prev=docdir ;;
957 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
958 docdir=$ac_optarg ;;
959
960 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
961 ac_prev=dvidir ;;
962 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
963 dvidir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000964
965 -enable-* | --enable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100966 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000967 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +0200969 as_fn_error $? "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974"enable_$ac_useropt"
975"*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000980
981 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
982 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
983 | --exec | --exe | --ex)
984 ac_prev=exec_prefix ;;
985 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
986 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
987 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000988 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000989
990 -gas | --gas | --ga | --g)
991 # Obsolete; use --with-gas.
992 with_gas=yes ;;
993
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000994 -help | --help | --hel | --he | -h)
995 ac_init_help=long ;;
996 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
997 ac_init_help=recursive ;;
998 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
999 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001000
1001 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001002 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001003 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001004 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001005
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001006 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1007 ac_prev=htmldir ;;
1008 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1009 | --ht=*)
1010 htmldir=$ac_optarg ;;
1011
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001012 -includedir | --includedir | --includedi | --included | --include \
1013 | --includ | --inclu | --incl | --inc)
1014 ac_prev=includedir ;;
1015 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1016 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001017 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001018
1019 -infodir | --infodir | --infodi | --infod | --info | --inf)
1020 ac_prev=infodir ;;
1021 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001022 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001023
1024 -libdir | --libdir | --libdi | --libd)
1025 ac_prev=libdir ;;
1026 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001027 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001028
1029 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1030 | --libexe | --libex | --libe)
1031 ac_prev=libexecdir ;;
1032 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1033 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001034 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001035
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001036 -localedir | --localedir | --localedi | --localed | --locale)
1037 ac_prev=localedir ;;
1038 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1039 localedir=$ac_optarg ;;
1040
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001041 -localstatedir | --localstatedir | --localstatedi | --localstated \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001042 | --localstate | --localstat | --localsta | --localst | --locals)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001043 ac_prev=localstatedir ;;
1044 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001045 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001046 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001047
1048 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1049 ac_prev=mandir ;;
1050 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001051 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001052
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001053 -nfp | --nfp | --nf)
1054 # Obsolete; use --without-fp.
1055 with_fp=no ;;
1056
1057 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001058 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001059 no_create=yes ;;
1060
1061 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1062 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1063 no_recursion=yes ;;
1064
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001065 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1066 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1067 | --oldin | --oldi | --old | --ol | --o)
1068 ac_prev=oldincludedir ;;
1069 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1070 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1071 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001072 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001073
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001074 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1075 ac_prev=prefix ;;
1076 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001077 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001078
1079 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1080 | --program-pre | --program-pr | --program-p)
1081 ac_prev=program_prefix ;;
1082 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1083 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001084 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001085
1086 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1087 | --program-suf | --program-su | --program-s)
1088 ac_prev=program_suffix ;;
1089 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1090 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001091 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001092
1093 -program-transform-name | --program-transform-name \
1094 | --program-transform-nam | --program-transform-na \
1095 | --program-transform-n | --program-transform- \
1096 | --program-transform | --program-transfor \
1097 | --program-transfo | --program-transf \
1098 | --program-trans | --program-tran \
1099 | --progr-tra | --program-tr | --program-t)
1100 ac_prev=program_transform_name ;;
1101 -program-transform-name=* | --program-transform-name=* \
1102 | --program-transform-nam=* | --program-transform-na=* \
1103 | --program-transform-n=* | --program-transform-=* \
1104 | --program-transform=* | --program-transfor=* \
1105 | --program-transfo=* | --program-transf=* \
1106 | --program-trans=* | --program-tran=* \
1107 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001108 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001109
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001110 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1111 ac_prev=pdfdir ;;
1112 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1113 pdfdir=$ac_optarg ;;
1114
1115 -psdir | --psdir | --psdi | --psd | --ps)
1116 ac_prev=psdir ;;
1117 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1118 psdir=$ac_optarg ;;
1119
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001120 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1121 | -silent | --silent | --silen | --sile | --sil)
1122 silent=yes ;;
1123
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001124 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1125 ac_prev=sbindir ;;
1126 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1127 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001128 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001129
1130 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1131 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1132 | --sharedst | --shareds | --shared | --share | --shar \
1133 | --sha | --sh)
1134 ac_prev=sharedstatedir ;;
1135 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1136 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1137 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1138 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001139 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001140
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001141 -site | --site | --sit)
1142 ac_prev=site ;;
1143 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001144 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001145
1146 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1147 ac_prev=srcdir ;;
1148 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001149 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001150
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001151 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1152 | --syscon | --sysco | --sysc | --sys | --sy)
1153 ac_prev=sysconfdir ;;
1154 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1155 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001156 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001157
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001158 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001159 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001160 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001161 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001162
1163 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1164 verbose=yes ;;
1165
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001166 -version | --version | --versio | --versi | --vers | -V)
1167 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001168
1169 -with-* | --with-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001170 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001171 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001172 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001173 as_fn_error $? "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001174 ac_useropt_orig=$ac_useropt
1175 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1176 case $ac_user_opts in
1177 *"
1178"with_$ac_useropt"
1179"*) ;;
1180 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1181 ac_unrecognized_sep=', ';;
1182 esac
1183 eval with_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001184
1185 -without-* | --without-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001186 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001187 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001189 as_fn_error $? "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194"with_$ac_useropt"
1195"*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=no ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001200
1201 --x)
1202 # Obsolete; use --with-x.
1203 with_x=yes ;;
1204
1205 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1206 | --x-incl | --x-inc | --x-in | --x-i)
1207 ac_prev=x_includes ;;
1208 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1209 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001210 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001211
1212 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1213 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1214 ac_prev=x_libraries ;;
1215 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1216 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001217 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001218
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001219 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1220Try \`$0 --help' for more information"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001221 ;;
1222
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001223 *=*)
1224 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1225 # Reject names that are not valid shell variable names.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001226 case $ac_envvar in #(
1227 '' | [0-9]* | *[!_$as_cr_alnum]* )
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001228 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001229 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001230 eval $ac_envvar=\$ac_optarg
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001231 export $ac_envvar ;;
1232
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001233 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001234 # FIXME: should be removed in autoconf 3.0.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001235 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001236 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01001237 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001238 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001239 ;;
1240
1241 esac
1242done
1243
1244if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001245 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001246 as_fn_error $? "missing argument to $ac_option"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001247fi
1248
Alexandre Julliardabf50482008-10-31 12:56:53 +01001249if test -n "$ac_unrecognized_opts"; then
1250 case $enable_option_checking in
1251 no) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001252 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +01001253 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1254 esac
1255fi
1256
1257# Check all directory arguments for consistency.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001258for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1259 datadir sysconfdir sharedstatedir localstatedir includedir \
1260 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1261 libdir localedir mandir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001262do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001263 eval ac_val=\$$ac_var
Alexandre Julliardabf50482008-10-31 12:56:53 +01001264 # Remove trailing slashes.
1265 case $ac_val in
1266 */ )
1267 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1268 eval $ac_var=\$ac_val;;
1269 esac
1270 # Be sure to have absolute directory names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001271 case $ac_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001272 [\\/$]* | ?:[\\/]* ) continue;;
1273 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001274 esac
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001275 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001276done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001277
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001278# There might be people who depend on the old broken behavior: `$host'
1279# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001280# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001281build=$build_alias
1282host=$host_alias
1283target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001284
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001285# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001286if test "x$host_alias" != x; then
1287 if test "x$build_alias" = x; then
1288 cross_compiling=maybe
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001289 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1290 If a cross compiler is detected then cross compile mode will be used" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001291 elif test "x$build_alias" != "x$host_alias"; then
1292 cross_compiling=yes
1293 fi
1294fi
1295
1296ac_tool_prefix=
1297test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298
1299test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001300
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001301
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001302ac_pwd=`pwd` && test -n "$ac_pwd" &&
1303ac_ls_di=`ls -di .` &&
1304ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001305 as_fn_error $? "working directory cannot be determined"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001306test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001307 as_fn_error $? "pwd does not report name of working directory"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001308
1309
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001310# Find the source files, if location was not specified.
1311if test -z "$srcdir"; then
1312 ac_srcdir_defaulted=yes
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001313 # Try the directory containing this script, then the parent directory.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001314 ac_confdir=`$as_dirname -- "$as_myself" ||
1315$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1316 X"$as_myself" : 'X\(//\)[^/]' \| \
1317 X"$as_myself" : 'X\(//\)$' \| \
1318 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1319$as_echo X"$as_myself" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001320 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\/\)[^/].*/{
1325 s//\1/
1326 q
1327 }
1328 /^X\(\/\/\)$/{
1329 s//\1/
1330 q
1331 }
1332 /^X\(\/\).*/{
1333 s//\1/
1334 q
1335 }
1336 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001337 srcdir=$ac_confdir
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001338 if test ! -r "$srcdir/$ac_unique_file"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001339 srcdir=..
1340 fi
1341else
1342 ac_srcdir_defaulted=no
1343fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001344if test ! -r "$srcdir/$ac_unique_file"; then
1345 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001346 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001347fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001348ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1349ac_abs_confdir=`(
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001350 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001351 pwd)`
1352# When building in place, set srcdir=.
1353if test "$ac_abs_confdir" = "$ac_pwd"; then
1354 srcdir=.
1355fi
1356# Remove unnecessary trailing slashes from srcdir.
1357# Double slashes in file names in object file debugging info
1358# mess up M-x gdb in Emacs.
1359case $srcdir in
1360*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1361esac
1362for ac_var in $ac_precious_vars; do
1363 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1364 eval ac_env_${ac_var}_value=\$${ac_var}
1365 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1366 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1367done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001368
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001369#
1370# Report the --help message.
1371#
1372if test "$ac_init_help" = "long"; then
1373 # Omit some internal or obsolete options to make the list less imposing.
1374 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001375 cat <<_ACEOF
Alexandre Julliardf0296a82011-01-21 20:31:58 +01001376\`configure' configures Wine 1.3.12 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001377
1378Usage: $0 [OPTION]... [VAR=VALUE]...
1379
1380To assign environment variables (e.g., CC, CFLAGS...), specify them as
1381VAR=VALUE. See below for descriptions of some of the useful variables.
1382
1383Defaults for the options are specified in brackets.
1384
1385Configuration:
1386 -h, --help display this help and exit
1387 --help=short display options specific to this package
1388 --help=recursive display the short help of all the included packages
1389 -V, --version display version information and exit
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001390 -q, --quiet, --silent do not print \`checking ...' messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001391 --cache-file=FILE cache test results in FILE [disabled]
1392 -C, --config-cache alias for \`--cache-file=config.cache'
1393 -n, --no-create do not create output files
1394 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001396Installation directories:
1397 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001398 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001399 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001400 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001401
1402By default, \`make install' will install all the files in
1403\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1404an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1405for instance \`--prefix=\$HOME'.
1406
1407For better control, use the options below.
1408
1409Fine tuning of the installation directories:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001410 --bindir=DIR user executables [EPREFIX/bin]
1411 --sbindir=DIR system admin executables [EPREFIX/sbin]
1412 --libexecdir=DIR program executables [EPREFIX/libexec]
1413 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1414 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1415 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1416 --libdir=DIR object code libraries [EPREFIX/lib]
1417 --includedir=DIR C header files [PREFIX/include]
1418 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1419 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1420 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1421 --infodir=DIR info documentation [DATAROOTDIR/info]
1422 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1423 --mandir=DIR man documentation [DATAROOTDIR/man]
1424 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1425 --htmldir=DIR html documentation [DOCDIR]
1426 --dvidir=DIR dvi documentation [DOCDIR]
1427 --pdfdir=DIR pdf documentation [DOCDIR]
1428 --psdir=DIR ps documentation [DOCDIR]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001429_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001430
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001431 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001432
1433X features:
1434 --x-includes=DIR X include files are in DIR
1435 --x-libraries=DIR X library files are in DIR
1436
1437System types:
1438 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001440_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001441fi
1442
1443if test -n "$ac_init_help"; then
1444 case $ac_init_help in
Alexandre Julliardf0296a82011-01-21 20:31:58 +01001445 short | recursive ) echo "Configuration of Wine 1.3.12:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001446 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001447 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001448
1449Optional Features:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001450 --disable-option-checking ignore unrecognized --enable/--with options
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +00001453 --disable-win16 do not include Win16 support
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001454 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1455 binaries)
Alexandre Julliard35078f42008-11-21 10:16:12 +01001456 --disable-tests do not build the regression tests
Alexandre Julliard9d037222008-03-20 13:00:12 +01001457 --enable-maintainer-mode
1458 enable maintainer-specific build rules
Eric Pouechbc56c4e2009-08-25 19:33:28 +02001459 --disable-largefile omit support for large files
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001460
1461Optional Packages:
1462 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1463 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001464 --without-alsa do not use the Alsa sound support
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001465 --without-capi do not use CAPI (ISDN support)
1466 --without-cms do not use CMS (color management support)
1467 --without-coreaudio do not use the CoreAudio sound support
1468 --without-cups do not use CUPS
1469 --without-curses do not use (n)curses
1470 --without-esd do not use the EsounD sound support
1471 --without-fontconfig do not use fontconfig
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02001472 --without-freetype do not use the FreeType library
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01001473 --without-gettextpo do not use the GetTextPO library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001474 --without-gphoto do not use gphoto (Digital Camera support)
Alexandre Julliardad798732008-05-01 13:29:02 +02001475 --without-glu do not use the GLU library
Henri Verbeet874c9ef2008-09-22 22:13:19 +02001476 --without-gnutls do not use GnuTLS (schannel support)
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02001477 --without-gsm do not use libgsm (GSM 06.10 codec support)
Aric Stewart2914d652010-10-20 13:55:16 -05001478 --without-gstreamer do not use GStreamer (codecs support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001479 --without-hal do not use HAL (dynamic device support)
1480 --without-jack do not use the Jack sound support
1481 --without-jpeg do not use JPEG
1482 --without-ldap do not use LDAP
Aric Stewartdb71d7c2009-08-19 09:37:48 -05001483 --without-mpg123 do not use the mpg123 library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001484 --without-nas do not use the NAS sound support
Chris Robinson862965f2009-08-25 03:26:35 -07001485 --without-openal do not use OpenAL
Peter Urbanec65c84d72010-12-02 23:41:48 +11001486 --without-opencl do not use OpenCL
Eric Pouech53fa0d52004-02-05 01:27:38 +00001487 --without-opengl do not use OpenGL
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001488 --without-openssl do not use OpenSSL
1489 --without-oss do not use the OSS sound support
1490 --without-png do not use PNG
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01001491 --without-pthread do not use the pthread library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001492 --without-sane do not use SANE (scanner support)
Vincent Povirk73cd5692010-03-08 17:07:29 -06001493 --without-tiff do not use TIFF
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01001494 --without-v4l do not use v4l1 (v4l support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001495 --without-xcomposite do not use the Xcomposite extension
1496 --without-xcursor do not use the Xcursor extension
1497 --without-xinerama do not use Xinerama (multi-monitor support)
1498 --without-xinput do not use the Xinput extension
1499 --without-xml do not use XML
1500 --without-xrandr do not use Xrandr (resolution changes)
1501 --without-xrender do not use the Xrender extension
1502 --without-xshape do not use the Xshape extension
1503 --without-xshm do not use XShm (shared memory extension)
1504 --without-xslt do not use XSLT
Francois Gougeta49beb42008-06-26 14:02:17 +02001505 --without-xxf86vm do not use XFree video mode extension
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001506 --with-wine-tools=DIR use Wine tools from directory DIR
Alexandre Julliard39a75d32009-08-13 19:45:31 +02001507 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001508 --with-x use the X Window System
1509
1510Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +00001511 CC C compiler command
1512 CFLAGS C compiler flags
1513 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1514 nonstandard directory <lib dir>
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01001515 LIBS libraries to pass to the linker, e.g. -l<library>
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001516 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001517 you have headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00001518 CXX C++ compiler command
1519 CXXFLAGS C++ compiler flags
Eric Pouech53fa0d52004-02-05 01:27:38 +00001520 CPP C preprocessor
Alexandre Julliard40664c02009-02-11 20:40:58 +01001521 XMKMF Path to xmkmf, Makefile generator for X Window System
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001522
1523Use these variables to override the choices made by `configure' or to help
1524it to find libraries and programs with nonstandard names/locations.
1525
Alexandre Julliard875927f2004-01-02 01:55:29 +00001526Report bugs to <wine-devel@winehq.org>.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001527Wine home page: <http://www.winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001528_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001529ac_status=$?
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001530fi
1531
1532if test "$ac_init_help" = "recursive"; then
1533 # If there are subdirs, report their specific --help.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001534 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Alexandre Julliardabf50482008-10-31 12:56:53 +01001535 test -d "$ac_dir" ||
1536 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1537 continue
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001538 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001539
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001540case "$ac_dir" in
1541.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001543 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001544 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001545 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001546 case $ac_top_builddir_sub in
1547 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1548 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1549 esac ;;
1550esac
1551ac_abs_top_builddir=$ac_pwd
1552ac_abs_builddir=$ac_pwd$ac_dir_suffix
1553# for backward compatibility:
1554ac_top_builddir=$ac_top_build_prefix
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001555
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001556case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001557 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001558 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001559 ac_top_srcdir=$ac_top_builddir_sub
1560 ac_abs_top_srcdir=$ac_pwd ;;
1561 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001562 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001563 ac_top_srcdir=$srcdir
1564 ac_abs_top_srcdir=$srcdir ;;
1565 *) # Relative name.
1566 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1567 ac_top_srcdir=$ac_top_build_prefix$srcdir
1568 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001569esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001570ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +00001571
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001572 cd "$ac_dir" || { ac_status=$?; continue; }
1573 # Check for guested configure.
Jeremy White0ebeb532006-06-20 13:18:41 +02001574 if test -f "$ac_srcdir/configure.gnu"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001575 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001576 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1577 elif test -f "$ac_srcdir/configure"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001578 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001579 $SHELL "$ac_srcdir/configure" --help=recursive
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001580 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01001581 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001582 fi || ac_status=$?
1583 cd "$ac_pwd" || { ac_status=$?; break; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001584 done
1585fi
1586
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001587test -n "$ac_init_help" && exit $ac_status
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001588if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001589 cat <<\_ACEOF
Alexandre Julliardf0296a82011-01-21 20:31:58 +01001590Wine configure 1.3.12
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001591generated by GNU Autoconf 2.67
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001592
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001593Copyright (C) 2010 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001594This configure script is free software; the Free Software Foundation
1595gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001596_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001597 exit
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001598fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001599
1600## ------------------------ ##
1601## Autoconf initialization. ##
1602## ------------------------ ##
1603
1604# ac_fn_c_try_compile LINENO
1605# --------------------------
1606# Try to compile conftest.$ac_ext, and return whether this succeeded.
1607ac_fn_c_try_compile ()
1608{
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 rm -f conftest.$ac_objext
1611 if { { ac_try="$ac_compile"
1612case "(($ac_try" in
1613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1614 *) ac_try_echo=$ac_try;;
1615esac
1616eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1617$as_echo "$ac_try_echo"; } >&5
1618 (eval "$ac_compile") 2>conftest.err
1619 ac_status=$?
1620 if test -s conftest.err; then
1621 grep -v '^ *+' conftest.err >conftest.er1
1622 cat conftest.er1 >&5
1623 mv -f conftest.er1 conftest.err
1624 fi
1625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1626 test $ac_status = 0; } && {
1627 test -z "$ac_c_werror_flag" ||
1628 test ! -s conftest.err
1629 } && test -s conftest.$ac_objext; then :
1630 ac_retval=0
1631else
1632 $as_echo "$as_me: failed program was:" >&5
1633sed 's/^/| /' conftest.$ac_ext >&5
1634
1635 ac_retval=1
1636fi
1637 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001638 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001639
1640} # ac_fn_c_try_compile
1641
1642# ac_fn_cxx_try_compile LINENO
1643# ----------------------------
1644# Try to compile conftest.$ac_ext, and return whether this succeeded.
1645ac_fn_cxx_try_compile ()
1646{
1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648 rm -f conftest.$ac_objext
1649 if { { ac_try="$ac_compile"
1650case "(($ac_try" in
1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1652 *) ac_try_echo=$ac_try;;
1653esac
1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1655$as_echo "$ac_try_echo"; } >&5
1656 (eval "$ac_compile") 2>conftest.err
1657 ac_status=$?
1658 if test -s conftest.err; then
1659 grep -v '^ *+' conftest.err >conftest.er1
1660 cat conftest.er1 >&5
1661 mv -f conftest.er1 conftest.err
1662 fi
1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1664 test $ac_status = 0; } && {
1665 test -z "$ac_cxx_werror_flag" ||
1666 test ! -s conftest.err
1667 } && test -s conftest.$ac_objext; then :
1668 ac_retval=0
1669else
1670 $as_echo "$as_me: failed program was:" >&5
1671sed 's/^/| /' conftest.$ac_ext >&5
1672
1673 ac_retval=1
1674fi
1675 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001676 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001677
1678} # ac_fn_cxx_try_compile
1679
1680# ac_fn_c_try_link LINENO
1681# -----------------------
1682# Try to link conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_c_try_link ()
1684{
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext conftest$ac_exeext
1687 if { { ac_try="$ac_link"
1688case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_link") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1700 fi
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest$ac_exeext && {
1706 test "$cross_compiling" = yes ||
1707 $as_test_x conftest$ac_exeext
1708 }; then :
1709 ac_retval=0
1710else
1711 $as_echo "$as_me: failed program was:" >&5
1712sed 's/^/| /' conftest.$ac_ext >&5
1713
1714 ac_retval=1
1715fi
1716 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1717 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1718 # interfere with the next link command; also delete a directory that is
1719 # left behind by Apple's compiler. We do this before executing the actions.
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001722 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001723
1724} # ac_fn_c_try_link
1725
1726# ac_fn_c_try_cpp LINENO
1727# ----------------------
1728# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729ac_fn_c_try_cpp ()
1730{
1731 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732 if { { ac_try="$ac_cpp conftest.$ac_ext"
1733case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740 ac_status=$?
1741 if test -s conftest.err; then
1742 grep -v '^ *+' conftest.err >conftest.er1
1743 cat conftest.er1 >&5
1744 mv -f conftest.er1 conftest.err
1745 fi
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001747 test $ac_status = 0; } > conftest.i && {
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1749 test ! -s conftest.err
1750 }; then :
1751 ac_retval=0
1752else
1753 $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756 ac_retval=1
1757fi
1758 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001759 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001760
1761} # ac_fn_c_try_cpp
1762
1763# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1764# -------------------------------------------------------
1765# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1766# the include files in INCLUDES and setting the cache variable VAR
1767# accordingly.
1768ac_fn_c_check_header_mongrel ()
1769{
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001771 if eval "test \"\${$3+set}\"" = set; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773$as_echo_n "checking for $2... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001774if eval "test \"\${$3+set}\"" = set; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001775 $as_echo_n "(cached) " >&6
1776fi
1777eval ac_res=\$$3
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779$as_echo "$ac_res" >&6; }
1780else
1781 # Is the header compilable?
1782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1783$as_echo_n "checking $2 usability... " >&6; }
1784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h. */
1786$4
1787#include <$2>
1788_ACEOF
1789if ac_fn_c_try_compile "$LINENO"; then :
1790 ac_header_compiler=yes
1791else
1792 ac_header_compiler=no
1793fi
1794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1796$as_echo "$ac_header_compiler" >&6; }
1797
1798# Is the header present?
1799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1800$as_echo_n "checking $2 presence... " >&6; }
1801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802/* end confdefs.h. */
1803#include <$2>
1804_ACEOF
1805if ac_fn_c_try_cpp "$LINENO"; then :
1806 ac_header_preproc=yes
1807else
1808 ac_header_preproc=no
1809fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001810rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1812$as_echo "$ac_header_preproc" >&6; }
1813
1814# So? What about this header?
1815case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1816 yes:no: )
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1818$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821 ;;
1822 no:yes:* )
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1824$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1826$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1828$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1830$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001833( $as_echo "## ------------------------------------ ##
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001834## Report this to wine-devel@winehq.org ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001835## ------------------------------------ ##"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001836 ) | sed "s/^/$as_me: WARNING: /" >&2
1837 ;;
1838esac
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840$as_echo_n "checking for $2... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001841if eval "test \"\${$3+set}\"" = set; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001842 $as_echo_n "(cached) " >&6
1843else
1844 eval "$3=\$ac_header_compiler"
1845fi
1846eval ac_res=\$$3
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
1849fi
1850 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1851
1852} # ac_fn_c_check_header_mongrel
1853
1854# ac_fn_c_try_run LINENO
1855# ----------------------
1856# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857# that executables *can* be run.
1858ac_fn_c_try_run ()
1859{
1860 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861 if { { ac_try="$ac_link"
1862case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865esac
1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867$as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_link") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872 { { case "(($ac_try" in
1873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874 *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878 (eval "$ac_try") 2>&5
1879 ac_status=$?
1880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881 test $ac_status = 0; }; }; then :
1882 ac_retval=0
1883else
1884 $as_echo "$as_me: program exited with status $ac_status" >&5
1885 $as_echo "$as_me: failed program was:" >&5
1886sed 's/^/| /' conftest.$ac_ext >&5
1887
1888 ac_retval=$ac_status
1889fi
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001892 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001893
1894} # ac_fn_c_try_run
1895
1896# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1897# -------------------------------------------------------
1898# Tests whether HEADER exists and can be compiled using the include files in
1899# INCLUDES, setting the cache variable VAR accordingly.
1900ac_fn_c_check_header_compile ()
1901{
1902 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904$as_echo_n "checking for $2... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001905if eval "test \"\${$3+set}\"" = set; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001906 $as_echo_n "(cached) " >&6
1907else
1908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h. */
1910$4
1911#include <$2>
1912_ACEOF
1913if ac_fn_c_try_compile "$LINENO"; then :
1914 eval "$3=yes"
1915else
1916 eval "$3=no"
1917fi
1918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919fi
1920eval ac_res=\$$3
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922$as_echo "$ac_res" >&6; }
1923 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1924
1925} # ac_fn_c_check_header_compile
1926
1927# ac_fn_c_check_func LINENO FUNC VAR
1928# ----------------------------------
1929# Tests whether FUNC exists, setting the cache variable VAR accordingly
1930ac_fn_c_check_func ()
1931{
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1934$as_echo_n "checking for $2... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02001935if eval "test \"\${$3+set}\"" = set; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001936 $as_echo_n "(cached) " >&6
1937else
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939/* end confdefs.h. */
1940/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1942#define $2 innocuous_$2
1943
1944/* System header to define __stub macros and hopefully few prototypes,
1945 which can conflict with char $2 (); below.
1946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1947 <limits.h> exists even on freestanding compilers. */
1948
1949#ifdef __STDC__
1950# include <limits.h>
1951#else
1952# include <assert.h>
1953#endif
1954
1955#undef $2
1956
1957/* Override any GCC internal prototype to avoid an error.
1958 Use char because int might match the return type of a GCC
1959 builtin and then its argument prototype would still apply. */
1960#ifdef __cplusplus
1961extern "C"
1962#endif
1963char $2 ();
1964/* The GNU C library defines this for functions which it implements
1965 to always fail with ENOSYS. Some functions are actually named
1966 something starting with __ and the normal name is an alias. */
1967#if defined __stub_$2 || defined __stub___$2
1968choke me
1969#endif
1970
1971int
1972main ()
1973{
1974return $2 ();
1975 ;
1976 return 0;
1977}
1978_ACEOF
1979if ac_fn_c_try_link "$LINENO"; then :
1980 eval "$3=yes"
1981else
1982 eval "$3=no"
1983fi
1984rm -f core conftest.err conftest.$ac_objext \
1985 conftest$ac_exeext conftest.$ac_ext
1986fi
1987eval ac_res=\$$3
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1989$as_echo "$ac_res" >&6; }
1990 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1991
1992} # ac_fn_c_check_func
1993
1994# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1995# ----------------------------------------------------
1996# Tries to find if the field MEMBER exists in type AGGR, after including
1997# INCLUDES, setting cache variable VAR accordingly.
1998ac_fn_c_check_member ()
1999{
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2002$as_echo_n "checking for $2.$3... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002003if eval "test \"\${$4+set}\"" = set; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002004 $as_echo_n "(cached) " >&6
2005else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007/* end confdefs.h. */
2008$5
2009int
2010main ()
2011{
2012static $2 ac_aggr;
2013if (ac_aggr.$3)
2014return 0;
2015 ;
2016 return 0;
2017}
2018_ACEOF
2019if ac_fn_c_try_compile "$LINENO"; then :
2020 eval "$4=yes"
2021else
2022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2023/* end confdefs.h. */
2024$5
2025int
2026main ()
2027{
2028static $2 ac_aggr;
2029if (sizeof ac_aggr.$3)
2030return 0;
2031 ;
2032 return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
2036 eval "$4=yes"
2037else
2038 eval "$4=no"
2039fi
2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2041fi
2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043fi
2044eval ac_res=\$$4
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046$as_echo "$ac_res" >&6; }
2047 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2048
2049} # ac_fn_c_check_member
2050
2051# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2052# -------------------------------------------
2053# Tests whether TYPE exists after having included INCLUDES, setting cache
2054# variable VAR accordingly.
2055ac_fn_c_check_type ()
2056{
2057 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059$as_echo_n "checking for $2... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002060if eval "test \"\${$3+set}\"" = set; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002061 $as_echo_n "(cached) " >&6
2062else
2063 eval "$3=no"
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065/* end confdefs.h. */
2066$4
2067int
2068main ()
2069{
2070if (sizeof ($2))
2071 return 0;
2072 ;
2073 return 0;
2074}
2075_ACEOF
2076if ac_fn_c_try_compile "$LINENO"; then :
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078/* end confdefs.h. */
2079$4
2080int
2081main ()
2082{
2083if (sizeof (($2)))
2084 return 0;
2085 ;
2086 return 0;
2087}
2088_ACEOF
2089if ac_fn_c_try_compile "$LINENO"; then :
2090
2091else
2092 eval "$3=yes"
2093fi
2094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2097fi
2098eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100$as_echo "$ac_res" >&6; }
2101 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2102
2103} # ac_fn_c_check_type
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002104cat >config.log <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002105This file contains any messages produced by compilers while
2106running configure, to aid debugging if configure makes a mistake.
2107
Alexandre Julliardf0296a82011-01-21 20:31:58 +01002108It was created by Wine $as_me 1.3.12, which was
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002109generated by GNU Autoconf 2.67. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002110
2111 $ $0 $@
2112
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002113_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002114exec 5>>config.log
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002115{
2116cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002117## --------- ##
2118## Platform. ##
2119## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002120
2121hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2122uname -m = `(uname -m) 2>/dev/null || echo unknown`
2123uname -r = `(uname -r) 2>/dev/null || echo unknown`
2124uname -s = `(uname -s) 2>/dev/null || echo unknown`
2125uname -v = `(uname -v) 2>/dev/null || echo unknown`
2126
2127/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2128/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2129
2130/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2131/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2132/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002133/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002134/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2135/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2136/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2137
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002138_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002139
2140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2141for as_dir in $PATH
2142do
2143 IFS=$as_save_IFS
2144 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002145 $as_echo "PATH: $as_dir"
2146 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002147IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002148
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002149} >&5
2150
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002151cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002152
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002153
2154## ----------- ##
2155## Core tests. ##
2156## ----------- ##
2157
2158_ACEOF
2159
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002160
2161# Keep a trace of the command line.
2162# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002163# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002164# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002165# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002166ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002167ac_configure_args0=
2168ac_configure_args1=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002169ac_must_keep_next=false
2170for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002171do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002172 for ac_arg
2173 do
2174 case $ac_arg in
2175 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2176 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2177 | -silent | --silent | --silen | --sile | --sil)
2178 continue ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002179 *\'*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01002180 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002181 esac
2182 case $ac_pass in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002183 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002184 2)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002185 as_fn_append ac_configure_args1 " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002186 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00002187 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002188 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00002189 case $ac_arg in
2190 *=* | --config-cache | -C | -disable-* | --disable-* \
2191 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2192 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2193 | -with-* | --with-* | -without-* | --without-* | --x)
2194 case "$ac_configure_args0 " in
2195 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2196 esac
2197 ;;
2198 -* ) ac_must_keep_next=true ;;
2199 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002200 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002201 as_fn_append ac_configure_args " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002202 ;;
2203 esac
2204 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002205done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002206{ ac_configure_args0=; unset ac_configure_args0;}
2207{ ac_configure_args1=; unset ac_configure_args1;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002208
2209# When interrupted or exit'd, cleanup temporary files, and complete
2210# config.log. We remove comments because anyway the quotes in there
2211# would cause problems or look ugly.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002212# WARNING: Use '\'' to represent an apostrophe within the trap.
2213# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002214trap 'exit_status=$?
2215 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002216 {
2217 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002218
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002219 $as_echo "## ---------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002220## Cache variables. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002221## ---------------- ##"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002222 echo
2223 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002224(
2225 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2226 eval ac_val=\$$ac_var
2227 case $ac_val in #(
2228 *${as_nl}*)
2229 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002230 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002231$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002232 esac
2233 case $ac_var in #(
2234 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +01002235 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002236 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002237 esac ;;
2238 esac
2239 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002240 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002241 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2242 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002243 sed -n \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002244 "s/'\''/'\''\\\\'\'''\''/g;
2245 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2246 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002247 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002248 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002249 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002250 esac |
2251 sort
2252)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002253 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002254
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002255 $as_echo "## ----------------- ##
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002256## Output variables. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002257## ----------------- ##"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002258 echo
2259 for ac_var in $ac_subst_vars
2260 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002261 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002262 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002263 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002264 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002265 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002266 done | sort
2267 echo
2268
2269 if test -n "$ac_subst_files"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002270 $as_echo "## ------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002271## File substitutions. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002272## ------------------- ##"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002273 echo
2274 for ac_var in $ac_subst_files
2275 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002276 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002277 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002278 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002279 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002280 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002281 done | sort
2282 echo
2283 fi
2284
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002285 if test -s confdefs.h; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002286 $as_echo "## ----------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002287## confdefs.h. ##
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002288## ----------- ##"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002289 echo
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002290 cat confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002291 echo
2292 fi
2293 test "$ac_signal" != 0 &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01002294 $as_echo "$as_me: caught signal $ac_signal"
2295 $as_echo "$as_me: exit $exit_status"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002296 } >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002297 rm -f core *.core core.conftest.* &&
2298 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002299 exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002300' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002301for ac_signal in 1 2 13 15; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002302 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002303done
2304ac_signal=0
2305
2306# confdefs.h avoids OS command line length limits that DEFS can exceed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002307rm -f -r conftest* confdefs.h
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002308
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002309$as_echo "/* confdefs.h */" > confdefs.h
2310
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002311# Predefined preprocessor variables.
2312
2313cat >>confdefs.h <<_ACEOF
2314#define PACKAGE_NAME "$PACKAGE_NAME"
2315_ACEOF
2316
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002317cat >>confdefs.h <<_ACEOF
2318#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2319_ACEOF
2320
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002321cat >>confdefs.h <<_ACEOF
2322#define PACKAGE_VERSION "$PACKAGE_VERSION"
2323_ACEOF
2324
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002325cat >>confdefs.h <<_ACEOF
2326#define PACKAGE_STRING "$PACKAGE_STRING"
2327_ACEOF
2328
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002329cat >>confdefs.h <<_ACEOF
2330#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2331_ACEOF
2332
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002333cat >>confdefs.h <<_ACEOF
2334#define PACKAGE_URL "$PACKAGE_URL"
2335_ACEOF
2336
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002337
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002338# Let the site file select an alternate cache file if it wants to.
Alexandre Julliardabf50482008-10-31 12:56:53 +01002339# Prefer an explicitly selected file to automatically selected ones.
2340ac_site_file1=NONE
2341ac_site_file2=NONE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002342if test -n "$CONFIG_SITE"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002343 # We do not want a PATH search for config.site.
2344 case $CONFIG_SITE in #((
2345 -*) ac_site_file1=./$CONFIG_SITE;;
2346 */*) ac_site_file1=$CONFIG_SITE;;
2347 *) ac_site_file1=./$CONFIG_SITE;;
2348 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002349elif test "x$prefix" != xNONE; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002350 ac_site_file1=$prefix/share/config.site
2351 ac_site_file2=$prefix/etc/config.site
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002352else
Alexandre Julliardabf50482008-10-31 12:56:53 +01002353 ac_site_file1=$ac_default_prefix/share/config.site
2354 ac_site_file2=$ac_default_prefix/etc/config.site
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002355fi
Alexandre Julliardabf50482008-10-31 12:56:53 +01002356for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002357do
Alexandre Julliardabf50482008-10-31 12:56:53 +01002358 test "x$ac_site_file" = xNONE && continue
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002359 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002360 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002361$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002362 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002363 . "$ac_site_file" \
2364 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2366as_fn_error $? "failed to load site script $ac_site_file
2367See \`config.log' for more details" "$LINENO" 5 ; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002368 fi
2369done
2370
2371if test -r "$cache_file"; then
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002372 # Some versions of bash will fail to source /dev/null (special files
2373 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2374 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002375 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002376$as_echo "$as_me: loading cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002377 case $cache_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02002378 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2379 *) . "./$cache_file";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002380 esac
2381 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002382else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002383 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002384$as_echo "$as_me: creating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002385 >$cache_file
2386fi
2387
2388# Check that the precious variables saved in the cache have kept the same
2389# value.
2390ac_cache_corrupted=false
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002391for ac_var in $ac_precious_vars; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002392 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2393 eval ac_new_set=\$ac_env_${ac_var}_set
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002394 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2395 eval ac_new_val=\$ac_env_${ac_var}_value
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002396 case $ac_old_set,$ac_new_set in
2397 set,)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002398 { $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 +01002399$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 +00002400 ac_cache_corrupted=: ;;
2401 ,set)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002402 { $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 +01002403$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002404 ac_cache_corrupted=: ;;
2405 ,);;
2406 *)
2407 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002408 # differences in whitespace do not lead to failure.
2409 ac_old_val_w=`echo x $ac_old_val`
2410 ac_new_val_w=`echo x $ac_new_val`
2411 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002413$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2414 ac_cache_corrupted=:
2415 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002416 { $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 +01002417$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2418 eval $ac_var=\$ac_old_val
2419 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002420 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002421$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002422 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002423$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002424 fi;;
2425 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002426 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002427 if test "$ac_new_set" = set; then
2428 case $ac_new_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002429 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002430 *) ac_arg=$ac_var=$ac_new_val ;;
2431 esac
2432 case " $ac_configure_args " in
2433 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002434 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002435 esac
2436 fi
2437done
2438if $ac_cache_corrupted; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002441 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002442$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002443 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002444fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002445## -------------------- ##
2446## Main body of script. ##
2447## -------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002448
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002449ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002450ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2453ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002454
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002455
2456
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002457ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00002458
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002459ac_aux_dir=
Jeremy White0ebeb532006-06-20 13:18:41 +02002460for ac_dir in tools "$srcdir"/tools; do
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002461 if test -f "$ac_dir/install-sh"; then
2462 ac_aux_dir=$ac_dir
2463 ac_install_sh="$ac_aux_dir/install-sh -c"
2464 break
2465 elif test -f "$ac_dir/install.sh"; then
2466 ac_aux_dir=$ac_dir
2467 ac_install_sh="$ac_aux_dir/install.sh -c"
2468 break
2469 elif test -f "$ac_dir/shtool"; then
2470 ac_aux_dir=$ac_dir
2471 ac_install_sh="$ac_aux_dir/shtool install -c"
2472 break
2473 fi
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002474done
2475if test -z "$ac_aux_dir"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002476 as_fn_error $? "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002477fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002478
2479# These three variables are undocumented and unsupported,
2480# and are intended to be withdrawn in a future Autoconf release.
2481# They can cause serious problems if a builder's source tree is in a directory
2482# whose full name contains unusual characters.
2483ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2484ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2485ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2486
Howard Abrams13277481999-07-10 13:16:29 +00002487
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002488
2489
Alexandre Julliardd59227e2010-02-20 12:36:04 +01002490
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002491# Check whether --enable-win16 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002492if test "${enable_win16+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002493 enableval=$enable_win16;
2494fi
Alexandre Julliardc728efc2002-10-02 02:34:09 +00002495
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002496# Check whether --enable-win64 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002497if test "${enable_win64+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002498 enableval=$enable_win64;
2499fi
Alexandre Julliardb8074992002-11-21 21:51:24 +00002500
Alexandre Julliard35078f42008-11-21 10:16:12 +01002501# Check whether --enable-tests was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002502if test "${enable_tests+set}" = set; then :
Alexandre Julliard35078f42008-11-21 10:16:12 +01002503 enableval=$enable_tests;
2504fi
2505
Alexandre Julliard9d037222008-03-20 13:00:12 +01002506# Check whether --enable-maintainer-mode was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002507if test "${enable_maintainer_mode+set}" = set; then :
Alexandre Julliard9d037222008-03-20 13:00:12 +01002508 enableval=$enable_maintainer_mode;
Alexandre Julliard9d037222008-03-20 13:00:12 +01002509fi
2510
Alexandre Julliardb8074992002-11-21 21:51:24 +00002511
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002512
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002513# Check whether --with-alsa was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002514if test "${with_alsa+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002515 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2516fi
2517
2518
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002519# Check whether --with-capi was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002520if test "${with_capi+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002521 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2522fi
2523
2524
2525# Check whether --with-cms was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002526if test "${with_cms+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002527 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2528fi
2529
2530
2531# Check whether --with-coreaudio was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002532if test "${with_coreaudio+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002533 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2534fi
2535
2536
2537# Check whether --with-cups was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002538if test "${with_cups+set}" = set; then :
Francois Gouget289ea332008-07-24 16:09:07 +02002539 withval=$with_cups;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002540fi
2541
2542
2543# Check whether --with-curses was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002544if test "${with_curses+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002545 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2546fi
2547
2548
2549# Check whether --with-esd was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002550if test "${with_esd+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002551 withval=$with_esd;
2552fi
2553
2554
2555# Check whether --with-fontconfig was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002556if test "${with_fontconfig+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002557 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2558fi
2559
2560
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002561# Check whether --with-freetype was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002562if test "${with_freetype+set}" = set; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002563 withval=$with_freetype;
2564fi
2565
2566
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01002567# Check whether --with-gettextpo was given.
2568if test "${with_gettextpo+set}" = set; then :
2569 withval=$with_gettextpo; if test "x$withval" = "xno"; then ac_cv_header_gettext_po_h=no; fi
2570fi
2571
2572
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002573# Check whether --with-gphoto was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002574if test "${with_gphoto+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002575 withval=$with_gphoto;
2576fi
2577
2578
Alexandre Julliardad798732008-05-01 13:29:02 +02002579# Check whether --with-glu was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002580if test "${with_glu+set}" = set; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02002581 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2582fi
2583
2584
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002585# Check whether --with-gnutls was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002586if test "${with_gnutls+set}" = set; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002587 withval=$with_gnutls;
2588fi
2589
2590
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02002591# Check whether --with-gsm was given.
2592if test "${with_gsm+set}" = set; then :
2593 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 +02002594fi
2595
2596
Aric Stewart2914d652010-10-20 13:55:16 -05002597# Check whether --with-gstreamer was given.
2598if test "${with_gstreamer+set}" = set; then :
2599 withval=$with_gstreamer;
2600fi
2601
2602
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002603# Check whether --with-hal was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002604if test "${with_hal+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002605 withval=$with_hal;
2606fi
2607
2608
2609# Check whether --with-jack was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002610if test "${with_jack+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002611 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2612fi
2613
2614
2615# Check whether --with-jpeg was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002616if test "${with_jpeg+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002617 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2618fi
2619
2620
2621# Check whether --with-ldap was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002622if test "${with_ldap+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002623 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2624fi
2625
2626
Aric Stewartdb71d7c2009-08-19 09:37:48 -05002627# Check whether --with-mpg123 was given.
2628if test "${with_mpg123+set}" = set; then :
2629 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2630fi
2631
2632
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002633# Check whether --with-nas was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002634if test "${with_nas+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002635 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2636fi
2637
2638
Chris Robinson862965f2009-08-25 03:26:35 -07002639# Check whether --with-openal was given.
2640if test "${with_openal+set}" = set; then :
Ken Thomases0b08f192009-09-09 22:23:35 -05002641 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 -07002642fi
2643
2644
Peter Urbanec65c84d72010-12-02 23:41:48 +11002645# Check whether --with-opencl was given.
2646if test "${with_opencl+set}" = set; then :
Adam Martinson2eb2f712010-12-28 12:46:09 -06002647 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 +11002648fi
2649
2650
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002651# Check whether --with-opengl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002652if test "${with_opengl+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002653 withval=$with_opengl;
2654fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002655
Alexandre Julliardf90efa91998-06-14 15:24:15 +00002656
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002657# Check whether --with-openssl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002658if test "${with_openssl+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002659 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2660fi
2661
2662
2663# Check whether --with-oss was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002664if test "${with_oss+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002665 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
2666fi
2667
2668
2669# Check whether --with-png was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002670if test "${with_png+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002671 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2672fi
2673
2674
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002675# Check whether --with-pthread was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002676if test "${with_pthread+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002677 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2678fi
2679
2680
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002681# Check whether --with-sane was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002682if test "${with_sane+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002683 withval=$with_sane;
2684fi
2685
2686
Vincent Povirk73cd5692010-03-08 17:07:29 -06002687# Check whether --with-tiff was given.
2688if test "${with_tiff+set}" = set; then :
2689 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2690fi
2691
2692
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01002693# Check whether --with-v4l was given.
2694if test "${with_v4l+set}" = set; then :
2695 withval=$with_v4l;
2696fi
2697
2698
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002699# Check whether --with-xcomposite was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002700if test "${with_xcomposite+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002701 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2702fi
2703
2704
2705# Check whether --with-xcursor was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002706if test "${with_xcursor+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002707 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2708fi
2709
2710
2711# Check whether --with-xinerama was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002712if test "${with_xinerama+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002713 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2714fi
2715
2716
2717# Check whether --with-xinput was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002718if test "${with_xinput+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002719 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2720fi
2721
2722
2723# Check whether --with-xml was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002724if test "${with_xml+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002725 withval=$with_xml;
2726fi
2727
2728
2729# Check whether --with-xrandr was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002730if test "${with_xrandr+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002731 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2732fi
2733
2734
2735# Check whether --with-xrender was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002736if test "${with_xrender+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002737 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2738fi
2739
2740
2741# Check whether --with-xshape was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002742if test "${with_xshape+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002743 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2744fi
2745
2746
2747# Check whether --with-xshm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002748if test "${with_xshm+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002749 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2750fi
2751
2752
2753# Check whether --with-xslt was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002754if test "${with_xslt+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002755 withval=$with_xslt;
2756fi
2757
2758
Francois Gougeta49beb42008-06-26 14:02:17 +02002759# Check whether --with-xxf86vm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002760if test "${with_xxf86vm+set}" = set; then :
André Hentschel7b285a42009-09-19 19:08:09 +02002761 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 +01002762fi
2763
2764
2765
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002766# Check whether --with-wine-tools was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002767if test "${with_wine_tools+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002768 withval=$with_wine_tools;
2769fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002770
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002771
Alexandre Julliard39a75d32009-08-13 19:45:31 +02002772# Check whether --with-wine64 was given.
2773if test "${with_wine64+set}" = set; then :
2774 withval=$with_wine64;
2775fi
2776
2777
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002778# Make sure we can run config.sub.
Jeremy White0ebeb532006-06-20 13:18:41 +02002779$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002780 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00002781
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002783$as_echo_n "checking build system type... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002784if test "${ac_cv_build+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002785 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002786else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002787 ac_build_alias=$build_alias
2788test "x$ac_build_alias" = x &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002789 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002790test "x$ac_build_alias" = x &&
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002791 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Jeremy White0ebeb532006-06-20 13:18:41 +02002792ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002793 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002794
2795fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002797$as_echo "$ac_cv_build" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002798case $ac_cv_build in
2799*-*-*) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002800*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002801esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002802build=$ac_cv_build
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002803ac_save_IFS=$IFS; IFS='-'
2804set x $ac_cv_build
2805shift
2806build_cpu=$1
2807build_vendor=$2
2808shift; shift
2809# Remember, the first character of IFS is used to create $*,
2810# except with old shells:
2811build_os=$*
2812IFS=$ac_save_IFS
2813case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002814
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002815
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002817$as_echo_n "checking host system type... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002818if test "${ac_cv_host+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002819 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002820else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002821 if test "x$host_alias" = x; then
2822 ac_cv_host=$ac_cv_build
2823else
Jeremy White0ebeb532006-06-20 13:18:41 +02002824 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002825 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002826fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002827
2828fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002830$as_echo "$ac_cv_host" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002831case $ac_cv_host in
2832*-*-*) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002833*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002834esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002835host=$ac_cv_host
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002836ac_save_IFS=$IFS; IFS='-'
2837set x $ac_cv_host
2838shift
2839host_cpu=$1
2840host_vendor=$2
2841shift; shift
2842# Remember, the first character of IFS is used to create $*,
2843# except with old shells:
2844host_os=$*
2845IFS=$ac_save_IFS
2846case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002847
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002848
Alexandre Julliard71440f32005-05-19 14:28:17 +00002849
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002850case "$srcdir" in
2851 .) ;;
2852 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002853 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 +02002854You need to run 'make distclean' in the source tree first." "$LINENO" 5
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002855 fi ;;
2856esac
2857
Alexandre Julliard71440f32005-05-19 14:28:17 +00002858
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002860$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2861set x ${MAKE-make}
2862ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002863if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002864 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002865else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002866 cat >conftest.make <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002867SHELL = /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002868all:
Jeremy White0ebeb532006-06-20 13:18:41 +02002869 @echo '@@@%%%=$(MAKE)=@@@%%%'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002870_ACEOF
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02002871# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02002872case `${MAKE-make} -f conftest.make 2>/dev/null` in
2873 *@@@%%%=?*=@@@%%%*)
2874 eval ac_cv_prog_make_${ac_make}_set=yes;;
2875 *)
2876 eval ac_cv_prog_make_${ac_make}_set=no;;
2877esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002878rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002879fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002880if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002882$as_echo "yes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002883 SET_MAKE=
2884else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002886$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002887 SET_MAKE="MAKE=${MAKE-make}"
2888fi
2889
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002890ac_ext=c
2891ac_cpp='$CPP $CPPFLAGS'
2892ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2893ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2894ac_compiler_gnu=$ac_cv_c_compiler_gnu
2895if test -n "$ac_tool_prefix"; then
2896 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2897set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002899$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002900if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002901 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002902else
2903 if test -n "$CC"; then
2904 ac_cv_prog_CC="$CC" # Let the user override the test.
2905else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002906as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2907for as_dir in $PATH
2908do
2909 IFS=$as_save_IFS
2910 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002911 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002912 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 +00002913 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002915 break 2
2916 fi
2917done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002918 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002919IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002920
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002921fi
2922fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002923CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002924if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002926$as_echo "$CC" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002927else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002929$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002930fi
2931
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002932
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002933fi
2934if test -z "$ac_cv_prog_CC"; then
2935 ac_ct_CC=$CC
2936 # Extract the first word of "gcc", so it can be a program name with args.
2937set dummy gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002939$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002940if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002941 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002942else
2943 if test -n "$ac_ct_CC"; then
2944 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2945else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002951 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002952 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 +00002953 ac_cv_prog_ac_ct_CC="gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002955 break 2
2956 fi
2957done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002958 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002959IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002960
2961fi
2962fi
2963ac_ct_CC=$ac_cv_prog_ac_ct_CC
2964if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002966$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002967else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002969$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002970fi
2971
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002972 if test "x$ac_ct_CC" = x; then
2973 CC=""
2974 else
2975 case $cross_compiling:$ac_tool_warned in
2976yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002977{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002978$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002979ac_tool_warned=yes ;;
2980esac
2981 CC=$ac_ct_CC
2982 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002983else
2984 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002985fi
2986
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002987if test -z "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002988 if test -n "$ac_tool_prefix"; then
2989 # 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 +00002990set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002992$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002993if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002994 $as_echo_n "(cached) " >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002995else
2996 if test -n "$CC"; then
2997 ac_cv_prog_CC="$CC" # Let the user override the test.
2998else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3000for as_dir in $PATH
3001do
3002 IFS=$as_save_IFS
3003 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003004 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003005 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 +00003006 ac_cv_prog_CC="${ac_tool_prefix}cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003008 break 2
3009 fi
3010done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003011 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003012IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003013
3014fi
3015fi
3016CC=$ac_cv_prog_CC
3017if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003019$as_echo "$CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003020else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003022$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003023fi
3024
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003025
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003026 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003027fi
3028if test -z "$CC"; then
3029 # Extract the first word of "cc", so it can be a program name with args.
3030set dummy cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003032$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003033if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003034 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003035else
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3038else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003039 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003040as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3041for as_dir in $PATH
3042do
3043 IFS=$as_save_IFS
3044 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003045 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003046 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 +00003047 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3048 ac_prog_rejected=yes
3049 continue
3050 fi
3051 ac_cv_prog_CC="cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003053 break 2
3054 fi
3055done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003056 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003057IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003058
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003059if test $ac_prog_rejected = yes; then
3060 # We found a bogon in the path, so make sure we never use it.
3061 set dummy $ac_cv_prog_CC
3062 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003063 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003064 # We chose a different compiler from the bogus one.
3065 # However, it has the same basename, so the bogon will be chosen
3066 # first if we set CC to just the basename; use the full file name.
3067 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003068 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003069 fi
3070fi
3071fi
3072fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003073CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003074if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003076$as_echo "$CC" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003077else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003079$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003080fi
3081
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003082
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003083fi
3084if test -z "$CC"; then
3085 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003086 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003087 do
3088 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3089set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003091$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003092if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003093 $as_echo_n "(cached) " >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00003094else
3095 if test -n "$CC"; then
3096 ac_cv_prog_CC="$CC" # Let the user override the test.
3097else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3099for as_dir in $PATH
3100do
3101 IFS=$as_save_IFS
3102 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003103 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003104 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 +00003105 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003107 break 2
3108 fi
3109done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003110 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003111IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003112
Eric Pouech18ad24a2000-01-16 22:16:33 +00003113fi
3114fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003115CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00003116if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003118$as_echo "$CC" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003119else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003121$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003122fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003123
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003124
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003125 test -n "$CC" && break
3126 done
3127fi
3128if test -z "$CC"; then
3129 ac_ct_CC=$CC
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003130 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003131do
3132 # Extract the first word of "$ac_prog", so it can be a program name with args.
3133set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003135$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003136if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003137 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003138else
3139 if test -n "$ac_ct_CC"; then
3140 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3141else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3143for as_dir in $PATH
3144do
3145 IFS=$as_save_IFS
3146 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003147 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003148 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 +00003149 ac_cv_prog_ac_ct_CC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003151 break 2
3152 fi
3153done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003154 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003155IFS=$as_save_IFS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003156
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003157fi
3158fi
3159ac_ct_CC=$ac_cv_prog_ac_ct_CC
3160if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003162$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003163else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003165$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003166fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003167
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003168
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003169 test -n "$ac_ct_CC" && break
3170done
Eric Pouech18ad24a2000-01-16 22:16:33 +00003171
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003172 if test "x$ac_ct_CC" = x; then
3173 CC=""
3174 else
3175 case $cross_compiling:$ac_tool_warned in
3176yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003177{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003178$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003179ac_tool_warned=yes ;;
3180esac
3181 CC=$ac_ct_CC
3182 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003183fi
3184
3185fi
3186
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003187
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003188test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003189$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003190as_fn_error $? "no acceptable C compiler found in \$PATH
3191See \`config.log' for more details" "$LINENO" 5 ; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003192
3193# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003194$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003195set X $ac_compile
3196ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003197for ac_option in --version -v -V -qversion; do
3198 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003199case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003203eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204$as_echo "$ac_try_echo"; } >&5
3205 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003206 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003207 if test -s conftest.err; then
3208 sed '10a\
3209... rest of stderr output deleted ...
3210 10q' conftest.err >conftest.er1
3211 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003212 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003213 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3215 test $ac_status = 0; }
3216done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003217
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003218cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003219/* end confdefs.h. */
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003220
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003221int
3222main ()
3223{
3224
3225 ;
3226 return 0;
3227}
3228_ACEOF
3229ac_clean_files_save=$ac_clean_files
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003230ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003231# Try to create an executable without -o first, disregard a.out.
3232# It will help us diagnose broken compilers, and finding out an intuition
3233# of exeext.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3235$as_echo_n "checking whether the C compiler works... " >&6; }
Alexandre Julliardabf50482008-10-31 12:56:53 +01003236ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3237
3238# The possible output files:
3239ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3240
Jeremy White0ebeb532006-06-20 13:18:41 +02003241ac_rmfiles=
3242for ac_file in $ac_files
3243do
3244 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003245 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003246 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3247 esac
3248done
3249rm -f $ac_rmfiles
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003250
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003251if { { ac_try="$ac_link_default"
Jeremy White0ebeb532006-06-20 13:18:41 +02003252case "(($ac_try" in
3253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3254 *) ac_try_echo=$ac_try;;
3255esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003256eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3257$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003258 (eval "$ac_link_default") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003259 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3261 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003262 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3263# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3264# in a Makefile. We should not override ac_cv_exeext if it was cached,
3265# so that the user can short-circuit this test for compilers unknown to
3266# Autoconf.
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003267for ac_file in $ac_files ''
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003268do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003269 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003270 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jeremy White0ebeb532006-06-20 13:18:41 +02003272 ;;
3273 [ab].out )
3274 # We found the default executable, but exeext='' is most
3275 # certainly right.
3276 break;;
3277 *.* )
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003278 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jeremy White0ebeb532006-06-20 13:18:41 +02003279 then :; else
3280 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3281 fi
3282 # We set ac_cv_exeext here because the later test for it is not
3283 # safe: cross compilers may not add the suffix if given an `-o'
3284 # argument, so we may need to know it at that point already.
3285 # Even if this section looks crufty: it has the advantage of
3286 # actually working.
3287 break;;
3288 * )
3289 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003290 esac
3291done
Jeremy White0ebeb532006-06-20 13:18:41 +02003292test "$ac_cv_exeext" = no && ac_cv_exeext=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003293
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003294else
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003295 ac_file=''
3296fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003297if test -z "$ac_file"; then :
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299$as_echo "no" >&6; }
3300$as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003301sed 's/^/| /' conftest.$ac_ext >&5
3302
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003303{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003304$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003305as_fn_error 77 "C compiler cannot create executables
3306See \`config.log' for more details" "$LINENO" 5 ; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003307else
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3309$as_echo "yes" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003310fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3312$as_echo_n "checking for C compiler default output file name... " >&6; }
3313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3314$as_echo "$ac_file" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003315ac_exeext=$ac_cv_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02003316
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003317rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jeremy White0ebeb532006-06-20 13:18:41 +02003318ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003320$as_echo_n "checking for suffix of executables... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003321if { { ac_try="$ac_link"
Jeremy White0ebeb532006-06-20 13:18:41 +02003322case "(($ac_try" in
3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3324 *) ac_try_echo=$ac_try;;
3325esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3327$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003328 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003329 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3331 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003332 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3333# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3334# work properly (i.e., refer to `conftest.exe'), while it won't with
3335# `rm'.
3336for ac_file in conftest.exe conftest conftest.*; do
3337 test -f "$ac_file" || continue
3338 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003340 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3341 break;;
3342 * ) break;;
3343 esac
3344done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003345else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003346 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003347$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003348as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3349See \`config.log' for more details" "$LINENO" 5 ; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003350fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003351rm -f conftest conftest$ac_cv_exeext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003353$as_echo "$ac_cv_exeext" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003354
3355rm -f conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003356EXEEXT=$ac_cv_exeext
3357ac_exeext=$EXEEXT
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359/* end confdefs.h. */
3360#include <stdio.h>
3361int
3362main ()
3363{
3364FILE *f = fopen ("conftest.out", "w");
3365 return ferror (f) || fclose (f) != 0;
3366
3367 ;
3368 return 0;
3369}
3370_ACEOF
3371ac_clean_files="$ac_clean_files conftest.out"
3372# Check that the compiler produces executables we can run. If not, either
3373# the compiler is broken, or we cross compile.
3374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3375$as_echo_n "checking whether we are cross compiling... " >&6; }
3376if test "$cross_compiling" != yes; then
3377 { { ac_try="$ac_link"
3378case "(($ac_try" in
3379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3380 *) ac_try_echo=$ac_try;;
3381esac
3382eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3383$as_echo "$ac_try_echo"; } >&5
3384 (eval "$ac_link") 2>&5
3385 ac_status=$?
3386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3387 test $ac_status = 0; }
3388 if { ac_try='./conftest$ac_cv_exeext'
3389 { { case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392esac
3393eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394$as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_try") 2>&5
3396 ac_status=$?
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; }; then
3399 cross_compiling=no
3400 else
3401 if test "$cross_compiling" = maybe; then
3402 cross_compiling=yes
3403 else
3404 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003406as_fn_error $? "cannot run C compiled programs.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003407If you meant to cross compile, use \`--host'.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003408See \`config.log' for more details" "$LINENO" 5 ; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003409 fi
3410 fi
3411fi
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3413$as_echo "$cross_compiling" >&6; }
3414
3415rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3416ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003418$as_echo_n "checking for suffix of object files... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003419if test "${ac_cv_objext+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003420 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003421else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jeremy White0ebeb532006-06-20 13:18:41 +02003423/* end confdefs.h. */
3424
3425int
3426main ()
3427{
3428
3429 ;
3430 return 0;
3431}
3432_ACEOF
3433rm -f conftest.o conftest.obj
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003434if { { ac_try="$ac_compile"
Jeremy White0ebeb532006-06-20 13:18:41 +02003435case "(($ac_try" in
3436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3437 *) ac_try_echo=$ac_try;;
3438esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003439eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3440$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003441 (eval "$ac_compile") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003442 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3444 test $ac_status = 0; }; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003445 for ac_file in conftest.o conftest.obj conftest.*; do
3446 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003447 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003448 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003449 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3450 break;;
3451 esac
3452done
3453else
Alexandre Julliardabf50482008-10-31 12:56:53 +01003454 $as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003455sed 's/^/| /' conftest.$ac_ext >&5
3456
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003457{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02003459as_fn_error $? "cannot compute suffix of object files: cannot compile
3460See \`config.log' for more details" "$LINENO" 5 ; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003461fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003462rm -f conftest.$ac_cv_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003463fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003465$as_echo "$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003466OBJEXT=$ac_cv_objext
3467ac_objext=$OBJEXT
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003469$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003470if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003471 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003472else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003474/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003475
3476int
3477main ()
3478{
3479#ifndef __GNUC__
3480 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003481#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003482
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003483 ;
3484 return 0;
3485}
3486_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003487if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003488 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00003489else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003490 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00003491fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003493ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00003494
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003495fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003497$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3498if test $ac_compiler_gnu = yes; then
3499 GCC=yes
3500else
3501 GCC=
3502fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003503ac_test_CFLAGS=${CFLAGS+set}
3504ac_save_CFLAGS=$CFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003506$as_echo_n "checking whether $CC accepts -g... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003507if test "${ac_cv_prog_cc_g+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003508 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003509else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003510 ac_save_c_werror_flag=$ac_c_werror_flag
3511 ac_c_werror_flag=yes
3512 ac_cv_prog_cc_g=no
3513 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003515/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003516
3517int
3518main ()
3519{
3520
3521 ;
3522 return 0;
3523}
3524_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003525if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003526 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003527else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003528 CFLAGS=""
3529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003530/* end confdefs.h. */
3531
3532int
3533main ()
3534{
3535
3536 ;
3537 return 0;
3538}
3539_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003540if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003541
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003542else
3543 ac_c_werror_flag=$ac_save_c_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003544 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003546/* end confdefs.h. */
3547
3548int
3549main ()
3550{
3551
3552 ;
3553 return 0;
3554}
3555_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003556if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003557 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003558fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003560fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003562fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003564 ac_c_werror_flag=$ac_save_c_werror_flag
3565fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003567$as_echo "$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003568if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003569 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003570elif test $ac_cv_prog_cc_g = yes; then
3571 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003572 CFLAGS="-g -O2"
3573 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003574 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003575 fi
3576else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003577 if test "$GCC" = yes; then
3578 CFLAGS="-O2"
3579 else
3580 CFLAGS=
3581 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003582fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003584$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003585if test "${ac_cv_prog_cc_c89+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003586 $as_echo_n "(cached) " >&6
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003587else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003588 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003589ac_save_CC=$CC
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003590cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003591/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003592#include <stdarg.h>
3593#include <stdio.h>
3594#include <sys/types.h>
3595#include <sys/stat.h>
3596/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3597struct buf { int x; };
3598FILE * (*rcsopen) (struct buf *, struct stat *, int);
3599static char *e (p, i)
3600 char **p;
3601 int i;
3602{
3603 return p[i];
3604}
3605static char *f (char * (*g) (char **, int), char **p, ...)
3606{
3607 char *s;
3608 va_list v;
3609 va_start (v,p);
3610 s = g (p, va_arg (v,int));
3611 va_end (v);
3612 return s;
3613}
Alexandre Julliard875927f2004-01-02 01:55:29 +00003614
3615/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3616 function prototypes and stuff, but not '\xHH' hex character constants.
3617 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003618 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00003619 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3620 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003621 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003622int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3623
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02003624/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3625 inside strings and character constants. */
3626#define FOO(x) 'x'
3627int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3628
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003629int test (int i, double x);
3630struct s1 {int (*f) (int a);};
3631struct s2 {int (*f) (double a);};
3632int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3633int argc;
3634char **argv;
3635int
3636main ()
3637{
3638return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3639 ;
3640 return 0;
3641}
3642_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003643for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3644 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003645do
3646 CC="$ac_save_CC $ac_arg"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003647 if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003648 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003649fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003650rm -f core conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003651 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003652done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003653rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003654CC=$ac_save_CC
3655
3656fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003657# AC_CACHE_VAL
3658case "x$ac_cv_prog_cc_c89" in
3659 x)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003661$as_echo "none needed" >&6; } ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003662 xno)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003664$as_echo "unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003665 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003666 CC="$CC $ac_cv_prog_cc_c89"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003668$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003669esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003670if test "x$ac_cv_prog_cc_c89" != xno; then :
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003671
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003672fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003673
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003674ac_ext=c
3675ac_cpp='$CPP $CPPFLAGS'
3676ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3677ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3678ac_compiler_gnu=$ac_cv_c_compiler_gnu
3679
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003680ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003681ac_cpp='$CXXCPP $CPPFLAGS'
3682ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3683ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3684ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003685if test -z "$CXX"; then
3686 if test -n "$CCC"; then
3687 CXX=$CCC
3688 else
3689 if test -n "$ac_tool_prefix"; then
3690 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 +00003691 do
3692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3693set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003695$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003696if test "${ac_cv_prog_CXX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003697 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003698else
3699 if test -n "$CXX"; then
3700 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3701else
3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703for as_dir in $PATH
3704do
3705 IFS=$as_save_IFS
3706 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003707 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003708 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 +00003709 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003711 break 2
3712 fi
3713done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003714 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003715IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003716
3717fi
3718fi
3719CXX=$ac_cv_prog_CXX
3720if test -n "$CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003722$as_echo "$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003723else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003725$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003726fi
3727
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003728
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003729 test -n "$CXX" && break
3730 done
3731fi
3732if test -z "$CXX"; then
3733 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003734 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 +00003735do
3736 # Extract the first word of "$ac_prog", so it can be a program name with args.
3737set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003739$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003740if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003741 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003742else
3743 if test -n "$ac_ct_CXX"; then
3744 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3745else
3746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3747for as_dir in $PATH
3748do
3749 IFS=$as_save_IFS
3750 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003751 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003752 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 +00003753 ac_cv_prog_ac_ct_CXX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003755 break 2
3756 fi
3757done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003758 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003759IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003760
3761fi
3762fi
3763ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3764if test -n "$ac_ct_CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003766$as_echo "$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003767else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003769$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003770fi
3771
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003772
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003773 test -n "$ac_ct_CXX" && break
3774done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003775
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003776 if test "x$ac_ct_CXX" = x; then
3777 CXX="g++"
3778 else
3779 case $cross_compiling:$ac_tool_warned in
3780yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003781{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003782$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003783ac_tool_warned=yes ;;
3784esac
3785 CXX=$ac_ct_CXX
3786 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003787fi
3788
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003789 fi
3790fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003791# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003792$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003793set X $ac_compile
3794ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003795for ac_option in --version -v -V -qversion; do
3796 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003797case "(($ac_try" in
3798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3799 *) ac_try_echo=$ac_try;;
3800esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3802$as_echo "$ac_try_echo"; } >&5
3803 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003804 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003805 if test -s conftest.err; then
3806 sed '10a\
3807... rest of stderr output deleted ...
3808 10q' conftest.err >conftest.er1
3809 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003810 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003811 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3813 test $ac_status = 0; }
3814done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003815
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003817$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003818if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003819 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003820else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003822/* end confdefs.h. */
3823
3824int
3825main ()
3826{
3827#ifndef __GNUC__
3828 choke me
3829#endif
3830
3831 ;
3832 return 0;
3833}
3834_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003835if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003836 ac_compiler_gnu=yes
3837else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003838 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003839fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003841ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3842
3843fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003845$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3846if test $ac_compiler_gnu = yes; then
3847 GXX=yes
3848else
3849 GXX=
3850fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003851ac_test_CXXFLAGS=${CXXFLAGS+set}
3852ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003854$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003855if test "${ac_cv_prog_cxx_g+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003856 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003857else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003858 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3859 ac_cxx_werror_flag=yes
3860 ac_cv_prog_cxx_g=no
3861 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003863/* end confdefs.h. */
3864
3865int
3866main ()
3867{
3868
3869 ;
3870 return 0;
3871}
3872_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003873if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003874 ac_cv_prog_cxx_g=yes
3875else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003876 CXXFLAGS=""
3877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003878/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003879
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003880int
3881main ()
3882{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003883
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003884 ;
3885 return 0;
3886}
3887_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003888if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003889
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003890else
3891 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003892 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003894/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003895
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003896int
3897main ()
3898{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003899
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003900 ;
3901 return 0;
3902}
3903_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003904if ac_fn_cxx_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003905 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003906fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003908fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003910fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003912 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3913fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003914{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003915$as_echo "$ac_cv_prog_cxx_g" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003916if test "$ac_test_CXXFLAGS" = set; then
3917 CXXFLAGS=$ac_save_CXXFLAGS
3918elif test $ac_cv_prog_cxx_g = yes; then
3919 if test "$GXX" = yes; then
3920 CXXFLAGS="-g -O2"
3921 else
3922 CXXFLAGS="-g"
3923 fi
3924else
3925 if test "$GXX" = yes; then
3926 CXXFLAGS="-O2"
3927 else
3928 CXXFLAGS=
3929 fi
3930fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003931ac_ext=c
3932ac_cpp='$CPP $CPPFLAGS'
3933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003937if test -n "$ac_tool_prefix"; then
3938 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3939set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003941$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003942if test "${ac_cv_prog_CPPBIN+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003943 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003944else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003945 if test -n "$CPPBIN"; then
3946 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003947else
3948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949for as_dir in $PATH
3950do
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003953 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003954 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 +00003955 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003957 break 2
3958 fi
3959done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003960 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003961IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003962
3963fi
3964fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003965CPPBIN=$ac_cv_prog_CPPBIN
3966if test -n "$CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003968$as_echo "$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003969else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003971$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003972fi
3973
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003974
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003975fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003976if test -z "$ac_cv_prog_CPPBIN"; then
3977 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003978 # Extract the first word of "cpp", so it can be a program name with args.
3979set dummy cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003981$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003982if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003983 $as_echo_n "(cached) " >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003984else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003985 if test -n "$ac_ct_CPPBIN"; then
3986 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003987else
3988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989for as_dir in $PATH
3990do
3991 IFS=$as_save_IFS
3992 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003993 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003994 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 +00003995 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003997 break 2
3998 fi
3999done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004000 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004001IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004002
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004003fi
4004fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004005ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
4006if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004008$as_echo "$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004009else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004011$as_echo "no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004012fi
4013
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004014 if test "x$ac_ct_CPPBIN" = x; then
4015 CPPBIN="cpp"
4016 else
4017 case $cross_compiling:$ac_tool_warned in
4018yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004019{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004020$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004021ac_tool_warned=yes ;;
4022esac
4023 CPPBIN=$ac_ct_CPPBIN
4024 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004025else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004026 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004027fi
4028
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004029
Alexandre Julliard1aea4ef2009-08-27 13:35:46 +02004030cat >>confdefs.h <<_ACEOF
4031#define EXEEXT "$ac_exeext"
4032_ACEOF
4033
4034
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004035case $host in
Ken Thomases42664332009-05-01 22:59:52 -05004036 *-darwin*)
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004037 if test "x$enable_win64" = "xyes"
Ken Thomases42664332009-05-01 22:59:52 -05004038 then
4039 CC="$CC -m64"
4040 CXX="$CXX -m64"
4041 LD="${LD:-ld} -arch x86_64"
4042 AS="${AS:-as} -arch x86_64"
4043 host_cpu="x86_64"
4044 notice_platform="64-bit "
4045 TARGETFLAGS="-m64"
4046
4047 else
4048 CC="$CC -m32"
4049 CXX="$CXX -m32"
4050 LD="${LD:-ld} -arch i386"
4051 AS="${AS:-as} -arch i386"
4052 host_cpu="i386"
4053 notice_platform="32-bit "
4054 TARGETFLAGS="-m32"
4055
4056 enable_win16=${enable_win16:-yes}
4057 fi
4058 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004059 x86_64*)
Alexandre Julliard6b4ed0f2009-01-12 19:29:43 +01004060 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004061 then
4062 CC="$CC -m32"
4063 CXX="$CXX -m32"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004065$as_echo_n "checking whether $CC works... " >&6; }
4066
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004068/* end confdefs.h. */
4069
4070int
4071main ()
4072{
4073
4074 ;
4075 return 0;
4076}
4077_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004078if ac_fn_c_try_link "$LINENO"; then :
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004080$as_echo "yes" >&6; }
4081else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004083$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004084 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 +01004085fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004086rm -f core conftest.err conftest.$ac_objext \
4087 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004088 LD="${LD:-ld} -m elf_i386"
4089 AS="${AS:-as} --32"
4090 host_cpu="i386"
4091 notice_platform="32-bit "
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004092 TARGETFLAGS="-m32"
4093
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004094 enable_win16=${enable_win16:-yes}
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004095 else
Alexandre Julliard8812d242009-06-14 11:19:54 +02004096 if test "x${GCC}" = "xyes"
4097 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004099$as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard8812d242009-06-14 11:19:54 +02004101/* end confdefs.h. */
4102#include <stdarg.h>
4103int
4104main ()
4105{
4106void func(__builtin_ms_va_list *args);
4107 ;
4108 return 0;
4109}
4110_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004111if ac_fn_c_try_compile "$LINENO"; then :
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004113$as_echo "yes" >&6; }
4114else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004116$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004117 as_fn_error $? "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004118fi
Alexandre Julliard8812d242009-06-14 11:19:54 +02004119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4120 fi
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004121 TARGETFLAGS="-m64"
4122
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004123 fi
4124 ;;
Alexandre Julliard391fce62009-04-02 12:59:52 +02004125 *-mingw32*|*-cygwin*)
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004126 enable_win16=${enable_win16:-no}
Alexandre Goujonac0a38c2010-03-01 21:39:40 +01004127 CFLAGS="$CFLAGS -D_WIN32"
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004128 ;;
4129 i[3456789]86*)
4130 enable_win16=${enable_win16:-yes}
4131 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004132esac
4133
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004134enable_win16=${enable_win16:-no}
Alexandre Julliard776820e2009-02-23 17:46:33 +01004135
Alexandre Julliard95081552010-02-09 19:08:17 +01004136enable_winetest=${enable_winetest:-$enable_tests}
4137
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004138if test -n "$with_wine64"
4139then
4140 if test "x$enable_win64" = "xyes"
4141 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004142 as_fn_error $? "--enable-win64 and --with-wine64 are mutually exclusive.
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004143--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4144 fi
Alexandre Julliard90647772009-08-13 19:48:42 +02004145 WOW64_DISABLE=\#
4146
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004147 enable_fonts=${enable_fonts:-no}
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004148 enable_server=${enable_server:-no}
4149 enable_tools=${enable_tools:-no}
Alexandre Julliardb3265322010-04-21 12:28:22 +02004150elif test "x$enable_win64" = "xyes"
4151then
4152 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004153fi
4154
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004156$as_echo_n "checking for the directory containing the Wine tools... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004157if test "${wine_cv_toolsdir+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004158 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004159else
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004160 wine_cv_toolsdir="$with_wine_tools"
4161 if test -z "$with_wine_tools"; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004162 if test "$cross_compiling" = "yes"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004163 as_fn_error $? "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004164 elif test -n "$with_wine64"; then
4165 wine_cv_toolsdir="$with_wine64"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004166 fi
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004167 fi
4168 if test -z "$wine_cv_toolsdir"; then
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004169 wine_cv_toolsdir="\$(top_builddir)"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004170 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4171 case "$wine_cv_toolsdir" in
4172 /*) ;;
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004173 *) wine_cv_toolsdir="\$(top_builddir)/$wine_cv_toolsdir" ;;
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004174 esac
4175 else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004176 as_fn_error $? "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004177 fi
4178fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004180$as_echo "$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004181TOOLSDIR=$wine_cv_toolsdir
4182
Alexandre Julliard4d135d92009-02-16 13:08:44 +01004183if test -n "$host_alias" -a "$host_alias" != "$build_alias"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004184then
Alexandre Julliard0fea4a52009-02-12 10:28:23 +01004185 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004186
4187fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004188
Alexandre Julliard40916272007-03-08 13:19:50 +01004189for ac_prog in flex
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004190do
4191 # Extract the first word of "$ac_prog", so it can be a program name with args.
4192set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004194$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004195if test "${ac_cv_prog_FLEX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004196 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004197else
Alexandre Julliard40916272007-03-08 13:19:50 +01004198 if test -n "$FLEX"; then
4199 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004200else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4202for as_dir in $PATH
4203do
4204 IFS=$as_save_IFS
4205 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004206 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004207 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 +01004208 ac_cv_prog_FLEX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004210 break 2
4211 fi
4212done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004213 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004214IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004215
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004216fi
4217fi
Alexandre Julliard40916272007-03-08 13:19:50 +01004218FLEX=$ac_cv_prog_FLEX
4219if test -n "$FLEX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004221$as_echo "$FLEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004222else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004224$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004225fi
4226
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004227
Alexandre Julliard40916272007-03-08 13:19:50 +01004228 test -n "$FLEX" && break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004229done
Alexandre Julliard40916272007-03-08 13:19:50 +01004230test -n "$FLEX" || FLEX="none"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004231
Alexandre Julliard40916272007-03-08 13:19:50 +01004232if test "$FLEX" = "none"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004233then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004234 as_fn_error $? "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004235fi
Michael Stefaniucce307332009-12-29 18:07:02 +01004236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4237$as_echo_n "checking whether flex is recent enough... " >&6; }
4238cat >conftest.l <<EOF
4239%top{
4240#include "prediluvian.h"
4241}
4242%%
4243EOF
Alexandre Julliard27816c72010-07-28 11:04:46 +02004244if $FLEX -t conftest.l >/dev/null 2>&5
Michael Stefaniucce307332009-12-29 18:07:02 +01004245then
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4247$as_echo "yes" >&6; }
4248else
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4250$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004251 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 +01004252fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004253
Mike McCormackc068f672004-03-16 03:11:39 +00004254for ac_prog in bison
4255do
4256 # Extract the first word of "$ac_prog", so it can be a program name with args.
4257set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004259$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004260if test "${ac_cv_prog_BISON+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004261 $as_echo_n "(cached) " >&6
Mike McCormackc068f672004-03-16 03:11:39 +00004262else
4263 if test -n "$BISON"; then
4264 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4265else
4266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4267for as_dir in $PATH
4268do
4269 IFS=$as_save_IFS
4270 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004271 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004272 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 +00004273 ac_cv_prog_BISON="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackc068f672004-03-16 03:11:39 +00004275 break 2
4276 fi
4277done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004278 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004279IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00004280
4281fi
4282fi
4283BISON=$ac_cv_prog_BISON
4284if test -n "$BISON"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004286$as_echo "$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004287else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004289$as_echo "no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004290fi
4291
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004292
Mike McCormackc068f672004-03-16 03:11:39 +00004293 test -n "$BISON" && break
4294done
4295test -n "$BISON" || BISON="none"
4296
4297if test "$BISON" = "none"
4298then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004299 as_fn_error $? "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
Mike McCormackc068f672004-03-16 03:11:39 +00004300fi
4301
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004302if test -n "$ac_tool_prefix"; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004303 for ac_prog in ar gar
4304 do
4305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4306set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004308$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004309if test "${ac_cv_prog_AR+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004310 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004311else
4312 if test -n "$AR"; then
4313 ac_cv_prog_AR="$AR" # Let the user override the test.
4314else
4315as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4316for as_dir in $PATH
4317do
4318 IFS=$as_save_IFS
4319 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004320 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004321 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 +02004322 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004324 break 2
4325 fi
4326done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004327 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004328IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004329
4330fi
4331fi
4332AR=$ac_cv_prog_AR
4333if test -n "$AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004335$as_echo "$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004336else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004338$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004339fi
4340
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004341
Francois Gouget86bd0462008-06-26 14:05:57 +02004342 test -n "$AR" && break
4343 done
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004344fi
Francois Gouget86bd0462008-06-26 14:05:57 +02004345if test -z "$AR"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004346 ac_ct_AR=$AR
Francois Gouget86bd0462008-06-26 14:05:57 +02004347 for ac_prog in ar gar
4348do
4349 # Extract the first word of "$ac_prog", so it can be a program name with args.
4350set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004352$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004353if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004354 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004355else
4356 if test -n "$ac_ct_AR"; then
4357 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4358else
4359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4360for as_dir in $PATH
4361do
4362 IFS=$as_save_IFS
4363 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004364 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004365 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 +02004366 ac_cv_prog_ac_ct_AR="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004368 break 2
4369 fi
4370done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004371 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004372IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004373
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004374fi
4375fi
4376ac_ct_AR=$ac_cv_prog_ac_ct_AR
4377if test -n "$ac_ct_AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004379$as_echo "$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004380else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004382$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004383fi
4384
Francois Gouget86bd0462008-06-26 14:05:57 +02004385
4386 test -n "$ac_ct_AR" && break
4387done
4388
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004389 if test "x$ac_ct_AR" = x; then
4390 AR="ar"
4391 else
4392 case $cross_compiling:$ac_tool_warned in
4393yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004394{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004395$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004396ac_tool_warned=yes ;;
4397esac
4398 AR=$ac_ct_AR
4399 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004400fi
4401
Rob Shearman0c694d72008-03-04 15:53:41 +00004402ARFLAGS=rc
4403
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004404if test -n "$ac_tool_prefix"; then
4405 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4406set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004408$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004409if test "${ac_cv_prog_RANLIB+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004410 $as_echo_n "(cached) " >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004411else
4412 if test -n "$RANLIB"; then
4413 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4414else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004415as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416for as_dir in $PATH
4417do
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004420 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004421 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 +00004422 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004424 break 2
4425 fi
4426done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004427 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004428IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004429
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004430fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004431fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004432RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004433if test -n "$RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004435$as_echo "$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004436else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004438$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004439fi
4440
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004441
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004442fi
4443if test -z "$ac_cv_prog_RANLIB"; then
4444 ac_ct_RANLIB=$RANLIB
4445 # Extract the first word of "ranlib", so it can be a program name with args.
4446set dummy ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004448$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004449if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004450 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004451else
4452 if test -n "$ac_ct_RANLIB"; then
4453 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4454else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004455as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456for as_dir in $PATH
4457do
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004460 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004461 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 +00004462 ac_cv_prog_ac_ct_RANLIB="ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004464 break 2
4465 fi
4466done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004467 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004468IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004469
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004470fi
4471fi
4472ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4473if test -n "$ac_ct_RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004475$as_echo "$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004476else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004478$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004479fi
4480
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004481 if test "x$ac_ct_RANLIB" = x; then
4482 RANLIB=":"
4483 else
4484 case $cross_compiling:$ac_tool_warned in
4485yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004488ac_tool_warned=yes ;;
4489esac
4490 RANLIB=$ac_ct_RANLIB
4491 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004492else
4493 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004494fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004495
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004496if test -n "$ac_tool_prefix"; then
4497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4498set dummy ${ac_tool_prefix}strip; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004500$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004501if test "${ac_cv_prog_STRIP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004502 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004503else
4504 if test -n "$STRIP"; then
4505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4506else
4507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4508for as_dir in $PATH
4509do
4510 IFS=$as_save_IFS
4511 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004512 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004513 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 +00004514 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004516 break 2
4517 fi
4518done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004519 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004520IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004521
4522fi
4523fi
4524STRIP=$ac_cv_prog_STRIP
4525if test -n "$STRIP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004527$as_echo "$STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004528else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004530$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004531fi
4532
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004533
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004534fi
4535if test -z "$ac_cv_prog_STRIP"; then
4536 ac_ct_STRIP=$STRIP
4537 # Extract the first word of "strip", so it can be a program name with args.
4538set dummy strip; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004540$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004541if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004542 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004543else
4544 if test -n "$ac_ct_STRIP"; then
4545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4546else
4547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548for as_dir in $PATH
4549do
4550 IFS=$as_save_IFS
4551 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004552 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004553 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 +00004554 ac_cv_prog_ac_ct_STRIP="strip"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004556 break 2
4557 fi
4558done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004559 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004560IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004561
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004562fi
4563fi
4564ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4565if test -n "$ac_ct_STRIP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004567$as_echo "$ac_ct_STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004568else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004570$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004571fi
4572
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004573 if test "x$ac_ct_STRIP" = x; then
4574 STRIP="strip"
4575 else
4576 case $cross_compiling:$ac_tool_warned in
4577yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004580ac_tool_warned=yes ;;
4581esac
4582 STRIP=$ac_ct_STRIP
4583 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004584else
4585 STRIP="$ac_cv_prog_STRIP"
4586fi
4587
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004589$as_echo_n "checking whether ln -s works... " >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004590LN_S=$as_ln_s
4591if test "$LN_S" = "ln -s"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004593$as_echo "yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004594else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004596$as_echo "no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004597fi
4598
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004600$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004601if test "${ac_cv_path_GREP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004602 $as_echo_n "(cached) " >&6
Alexandre Julliardc6264912004-08-16 20:09:37 +00004603else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004604 if test -z "$GREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004605 ac_path_GREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004606 # Loop through the user's path and test for each of PROGNAME-LIST
4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004608for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4609do
4610 IFS=$as_save_IFS
4611 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004612 for ac_prog in grep ggrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004613 for ac_exec_ext in '' $ac_executable_extensions; do
4614 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4615 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4616# Check for GNU ac_path_GREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004617 # Check for GNU $ac_path_GREP
4618case `"$ac_path_GREP" --version 2>&1` in
4619*GNU*)
4620 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4621*)
4622 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004623 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004624 while :
4625 do
4626 cat "conftest.in" "conftest.in" >"conftest.tmp"
4627 mv "conftest.tmp" "conftest.in"
4628 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004629 $as_echo 'GREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004630 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4631 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004632 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004633 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4634 # Best one so far, save it but keep looking for a better one
4635 ac_cv_path_GREP="$ac_path_GREP"
4636 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00004637 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004638 # 10*(2^10) chars as input seems more than enough
4639 test $ac_count -gt 10 && break
4640 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004641 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004642esac
4643
Alexandre Julliardabf50482008-10-31 12:56:53 +01004644 $ac_path_GREP_found && break 3
4645 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004646 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004647 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004648IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004649 if test -z "$ac_cv_path_GREP"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004650 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 +01004651 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004652else
4653 ac_cv_path_GREP=$GREP
4654fi
4655
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004656fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004658$as_echo "$ac_cv_path_GREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004659 GREP="$ac_cv_path_GREP"
4660
4661
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004663$as_echo_n "checking for egrep... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004664if test "${ac_cv_path_EGREP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004665 $as_echo_n "(cached) " >&6
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004666else
4667 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4668 then ac_cv_path_EGREP="$GREP -E"
4669 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004670 if test -z "$EGREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004671 ac_path_EGREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004672 # Loop through the user's path and test for each of PROGNAME-LIST
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004674for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4675do
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004678 for ac_prog in egrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4681 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4682# Check for GNU ac_path_EGREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004683 # Check for GNU $ac_path_EGREP
4684case `"$ac_path_EGREP" --version 2>&1` in
4685*GNU*)
4686 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4687*)
4688 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004689 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004690 while :
4691 do
4692 cat "conftest.in" "conftest.in" >"conftest.tmp"
4693 mv "conftest.tmp" "conftest.in"
4694 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004695 $as_echo 'EGREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004696 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4697 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004698 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004699 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4700 # Best one so far, save it but keep looking for a better one
4701 ac_cv_path_EGREP="$ac_path_EGREP"
4702 ac_path_EGREP_max=$ac_count
4703 fi
4704 # 10*(2^10) chars as input seems more than enough
4705 test $ac_count -gt 10 && break
4706 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004707 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004708esac
4709
Alexandre Julliardabf50482008-10-31 12:56:53 +01004710 $ac_path_EGREP_found && break 3
4711 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004712 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004713 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004714IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004715 if test -z "$ac_cv_path_EGREP"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02004716 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 +01004717 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004718else
4719 ac_cv_path_EGREP=$EGREP
4720fi
4721
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004722 fi
4723fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004725$as_echo "$ac_cv_path_EGREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004726 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00004727
4728
James Juranffe6b761999-06-12 08:21:57 +00004729# Extract the first word of "ldconfig", so it can be a program name with args.
4730set dummy ldconfig; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004732$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004733if test "${ac_cv_path_LDCONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004734 $as_echo_n "(cached) " >&6
James Juranffe6b761999-06-12 08:21:57 +00004735else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004736 case $LDCONFIG in
4737 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004738 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4739 ;;
4740 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004742for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004743do
4744 IFS=$as_save_IFS
4745 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004746 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004747 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 +00004748 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004750 break 2
4751 fi
4752done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004753 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004754IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004755
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004756 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004757 ;;
4758esac
4759fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004760LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00004761if test -n "$LDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004763$as_echo "$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004764else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004766$as_echo "no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004767fi
4768
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004769
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004770# Find a good install program. We prefer a C program (faster),
4771# so one script is as good as another. But avoid the broken or
4772# incompatible versions:
4773# SysV /etc/install, /usr/sbin/install
4774# SunOS /usr/etc/install
4775# IRIX /sbin/install
4776# AIX /bin/install
4777# AmigaOS /C/install, which installs bootblocks on floppy discs
4778# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4779# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4780# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00004781# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004782# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardabf50482008-10-31 12:56:53 +01004783# Reject install programs that cannot install multiple files.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004785$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004786if test -z "$INSTALL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004787if test "${ac_cv_path_install+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004788 $as_echo_n "(cached) " >&6
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004789else
4790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4791for as_dir in $PATH
4792do
4793 IFS=$as_save_IFS
4794 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004795 # Account for people who put trailing slashes in PATH elements.
4796case $as_dir/ in #((
4797 ./ | .// | /[cC]/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004798 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004799 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004800 /usr/ucb/* ) ;;
4801 *)
4802 # OSF1 and SCO ODT 3.0 have their own names for install.
4803 # Don't use installbsd from OSF since it installs stuff as root
4804 # by default.
4805 for ac_prog in ginstall scoinst install; do
4806 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004807 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 +00004808 if test $ac_prog = install &&
4809 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4810 # AIX install. It has an incompatible calling convention.
4811 :
4812 elif test $ac_prog = install &&
4813 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4814 # program-specific install script used by HP pwplus--don't use.
4815 :
4816 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004817 rm -rf conftest.one conftest.two conftest.dir
4818 echo one > conftest.one
4819 echo two > conftest.two
4820 mkdir conftest.dir
4821 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4822 test -s conftest.one && test -s conftest.two &&
4823 test -s conftest.dir/conftest.one &&
4824 test -s conftest.dir/conftest.two
4825 then
4826 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4827 break 3
4828 fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004829 fi
4830 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004831 done
4832 done
4833 ;;
4834esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01004835
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004836 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004837IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004838
Alexandre Julliardabf50482008-10-31 12:56:53 +01004839rm -rf conftest.one conftest.two conftest.dir
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004840
4841fi
4842 if test "${ac_cv_path_install+set}" = set; then
4843 INSTALL=$ac_cv_path_install
4844 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004845 # As a last resort, use the slow shell script. Don't cache a
4846 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004847 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004848 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004849 INSTALL=$ac_install_sh
4850 fi
4851fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004853$as_echo "$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004854
4855# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4856# It thinks the first close brace ends the variable substitution.
4857test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4858
4859test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4860
4861test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4862
4863case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00004864 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02004865 *) INSTALL="\\\$(top_srcdir)/$INSTALL" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004866esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004867
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004868for ac_prog in lclint lint
4869do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004870 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004871set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004873$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004874if test "${ac_cv_prog_LINT+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004875 $as_echo_n "(cached) " >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004876else
4877 if test -n "$LINT"; then
4878 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4879else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4881for as_dir in $PATH
4882do
4883 IFS=$as_save_IFS
4884 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004885 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004886 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 +00004887 ac_cv_prog_LINT="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004889 break 2
4890 fi
4891done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004892 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004893IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004894
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004895fi
4896fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004897LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004898if test -n "$LINT"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004900$as_echo "$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004901else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004903$as_echo "no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004904fi
4905
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004906
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004907 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004908done
4909
4910if test "$LINT" = "lint"
4911then
4912 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4913 fi
4914
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004915
4916
Huw Davies00acb5f2004-08-17 22:33:14 +00004917for ac_prog in fontforge
4918do
4919 # Extract the first word of "$ac_prog", so it can be a program name with args.
4920set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004922$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004923if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004924 $as_echo_n "(cached) " >&6
Huw Davies00acb5f2004-08-17 22:33:14 +00004925else
4926 if test -n "$FONTFORGE"; then
4927 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4928else
4929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930for as_dir in $PATH
4931do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004934 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004935 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 +00004936 ac_cv_prog_FONTFORGE="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Huw Davies00acb5f2004-08-17 22:33:14 +00004938 break 2
4939 fi
4940done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004941 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004942IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00004943
4944fi
4945fi
4946FONTFORGE=$ac_cv_prog_FONTFORGE
4947if test -n "$FONTFORGE"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004949$as_echo "$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004950else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004952$as_echo "no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004953fi
4954
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004955
Huw Davies00acb5f2004-08-17 22:33:14 +00004956 test -n "$FONTFORGE" && break
4957done
4958test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00004959
Mike McCormack90c75bd2005-08-08 18:36:53 +00004960for ac_prog in pkg-config
4961do
4962 # Extract the first word of "$ac_prog", so it can be a program name with args.
4963set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004965$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004966if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004967 $as_echo_n "(cached) " >&6
Mike McCormack90c75bd2005-08-08 18:36:53 +00004968else
4969 if test -n "$PKG_CONFIG"; then
4970 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4971else
4972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973for as_dir in $PATH
4974do
4975 IFS=$as_save_IFS
4976 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004977 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004978 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 +00004979 ac_cv_prog_PKG_CONFIG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormack90c75bd2005-08-08 18:36:53 +00004981 break 2
4982 fi
4983done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004984 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004985IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00004986
4987fi
4988fi
4989PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4990if test -n "$PKG_CONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004992$as_echo "$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004993else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004995$as_echo "no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004996fi
4997
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004998
Mike McCormack90c75bd2005-08-08 18:36:53 +00004999 test -n "$PKG_CONFIG" && break
5000done
5001test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5002
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005003for ac_prog in rsvg
5004do
5005 # Extract the first word of "$ac_prog", so it can be a program name with args.
5006set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005008$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005009if test "${ac_cv_prog_RSVG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005010 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005011else
5012 if test -n "$RSVG"; then
5013 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5014else
5015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016for as_dir in $PATH
5017do
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005020 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_RSVG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005024 break 2
5025 fi
5026done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005027 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005028IFS=$as_save_IFS
5029
5030fi
5031fi
5032RSVG=$ac_cv_prog_RSVG
5033if test -n "$RSVG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005035$as_echo "$RSVG" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005036else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005038$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005039fi
5040
5041
5042 test -n "$RSVG" && break
5043done
5044test -n "$RSVG" || RSVG="false"
5045
Joel Holdsworth476a2be2010-04-05 11:15:03 +01005046for ac_prog in convert
5047do
5048 # Extract the first word of "$ac_prog", so it can be a program name with args.
5049set dummy $ac_prog; ac_word=$2
5050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5051$as_echo_n "checking for $ac_word... " >&6; }
5052if test "${ac_cv_prog_CONVERT+set}" = set; then :
5053 $as_echo_n "(cached) " >&6
5054else
5055 if test -n "$CONVERT"; then
5056 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5057else
5058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5059for as_dir in $PATH
5060do
5061 IFS=$as_save_IFS
5062 test -z "$as_dir" && as_dir=.
5063 for ac_exec_ext in '' $ac_executable_extensions; do
5064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5065 ac_cv_prog_CONVERT="$ac_prog"
5066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 break 2
5068 fi
5069done
5070 done
5071IFS=$as_save_IFS
5072
5073fi
5074fi
5075CONVERT=$ac_cv_prog_CONVERT
5076if test -n "$CONVERT"; then
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5078$as_echo "$CONVERT" >&6; }
5079else
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5081$as_echo "no" >&6; }
5082fi
5083
5084
5085 test -n "$CONVERT" && break
5086done
5087test -n "$CONVERT" || CONVERT="false"
5088
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005089for ac_prog in icotool
5090do
5091 # Extract the first word of "$ac_prog", so it can be a program name with args.
5092set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005094$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005095if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005096 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005097else
5098 if test -n "$ICOTOOL"; then
5099 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5100else
5101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102for as_dir in $PATH
5103do
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005106 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_ICOTOOL="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005110 break 2
5111 fi
5112done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005113 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005114IFS=$as_save_IFS
5115
5116fi
5117fi
5118ICOTOOL=$ac_cv_prog_ICOTOOL
5119if test -n "$ICOTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005121$as_echo "$ICOTOOL" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005122else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005124$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005125fi
5126
5127
5128 test -n "$ICOTOOL" && break
5129done
5130test -n "$ICOTOOL" || ICOTOOL="false"
5131
5132
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005133if test "x$enable_maintainer_mode" != "xyes"
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005134then
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005135 MAINTAINER_MODE=\#
5136
5137else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005138 if test "$FONTFORGE" = "false"; then as_fn_error $? "You need fontforge to rebuild fonts in maintainer mode." "$LINENO" 5 ; fi
5139 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 +01005140
5141 if test "$CONVERT" = false
5142 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005143 as_fn_error $? "You need imagemagick to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5146$as_echo_n "checking for recent enough imagemagick... " >&6; }
5147 convert_version=`convert --version | head -n1`
5148 if test "x$convert_version" != "x"
5149 then
5150 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5151 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5152 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5153 then
5154 CONVERT=false
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005155 fi
5156 fi
5157 if test "$CONVERT" = false
5158 then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5160$as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005161 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 +01005162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5164$as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5165 fi
5166 fi
Joel Holdsworth425f1382010-04-05 11:14:47 +01005167
5168 if test "$ICOTOOL" = false
5169 then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005170 as_fn_error $? "You need icotool to rebuild icons in maintainer mode." "$LINENO" 5
Joel Holdsworth425f1382010-04-05 11:14:47 +01005171 else
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5173$as_echo_n "checking for recent enough icotool... " >&6; }
5174 icotool_version=`icotool --version | head -n1`
5175 if test "x$icotool_version" != "x"
5176 then
Joel Holdsworth9571f782010-05-16 23:07:33 +01005177 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5178 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
Joel Holdsworth425f1382010-04-05 11:14:47 +01005179 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5180 then
5181 ICOTOOL=false
5182 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5183 fi
5184 fi
5185 if test "$ICOTOOL" = false
5186 then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5188$as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005189 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 +01005190 else
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5192$as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5193 fi
5194 fi
5195
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005196fi
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005197
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005198
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005200$as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005201if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005202 $as_echo_n "(cached) " >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005203else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005204 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005205LIBS="-li386 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005207/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005208
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005209/* Override any GCC internal prototype to avoid an error.
5210 Use char because int might match the return type of a GCC
5211 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005212#ifdef __cplusplus
5213extern "C"
5214#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005215char i386_set_ldt ();
5216int
5217main ()
5218{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005219return i386_set_ldt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005220 ;
5221 return 0;
5222}
5223_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005224if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005225 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005226else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005227 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005228fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005229rm -f core conftest.err conftest.$ac_objext \
5230 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005231LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005232fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005234$as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005235if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005236 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005237#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005238_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005239
5240 LIBS="-li386 $LIBS"
5241
Alexandre Julliard02e90081998-01-04 17:49:09 +00005242fi
5243
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005245$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005246if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005247 $as_echo_n "(cached) " >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005248else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005249 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005250LIBS="-lossaudio $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005251cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005252/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005253
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005254/* Override any GCC internal prototype to avoid an error.
5255 Use char because int might match the return type of a GCC
5256 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005257#ifdef __cplusplus
5258extern "C"
5259#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005260char _oss_ioctl ();
5261int
5262main ()
5263{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005264return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005265 ;
5266 return 0;
5267}
5268_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005269if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005270 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005271else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005272 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005273fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005274rm -f core conftest.err conftest.$ac_objext \
5275 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005276LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005277fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005279$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005280if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005281 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005282#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005283_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005284
5285 LIBS="-lossaudio $LIBS"
5286
Todd Vierlingecc76691998-12-15 17:49:02 +00005287fi
5288
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005289
Alexandre Julliard82776022005-08-08 11:17:25 +00005290XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005291
Huw Daviese82dfab2004-08-04 19:10:26 +00005292OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005293
Rein Klazes7ff12562004-11-09 20:16:35 +00005294
Alexandre Julliard82776022005-08-08 11:17:25 +00005295
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005296# Check whether --enable-largefile was given.
5297if test "${enable_largefile+set}" = set; then :
5298 enableval=$enable_largefile;
5299fi
5300
5301if test "$enable_largefile" != no; then
5302
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5304$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5305if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5306 $as_echo_n "(cached) " >&6
5307else
5308 ac_cv_sys_largefile_CC=no
5309 if test "$GCC" != yes; then
5310 ac_save_CC=$CC
5311 while :; do
5312 # IRIX 6.2 and later do not support large files by default,
5313 # so use the C compiler's -n32 option if that helps.
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315/* end confdefs.h. */
5316#include <sys/types.h>
5317 /* Check that off_t can represent 2**63 - 1 correctly.
5318 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5319 since some C++ compilers masquerading as C compilers
5320 incorrectly reject 9223372036854775807. */
5321#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5322 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5323 && LARGE_OFF_T % 2147483647 == 1)
5324 ? 1 : -1];
5325int
5326main ()
5327{
5328
5329 ;
5330 return 0;
5331}
5332_ACEOF
5333 if ac_fn_c_try_compile "$LINENO"; then :
5334 break
5335fi
5336rm -f core conftest.err conftest.$ac_objext
5337 CC="$CC -n32"
5338 if ac_fn_c_try_compile "$LINENO"; then :
5339 ac_cv_sys_largefile_CC=' -n32'; break
5340fi
5341rm -f core conftest.err conftest.$ac_objext
5342 break
5343 done
5344 CC=$ac_save_CC
5345 rm -f conftest.$ac_ext
5346 fi
5347fi
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5349$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5350 if test "$ac_cv_sys_largefile_CC" != no; then
5351 CC=$CC$ac_cv_sys_largefile_CC
5352 fi
5353
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5355$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5356if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5357 $as_echo_n "(cached) " >&6
5358else
5359 while :; do
5360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5361/* end confdefs.h. */
5362#include <sys/types.h>
5363 /* Check that off_t can represent 2**63 - 1 correctly.
5364 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5365 since some C++ compilers masquerading as C compilers
5366 incorrectly reject 9223372036854775807. */
5367#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5368 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5369 && LARGE_OFF_T % 2147483647 == 1)
5370 ? 1 : -1];
5371int
5372main ()
5373{
5374
5375 ;
5376 return 0;
5377}
5378_ACEOF
5379if ac_fn_c_try_compile "$LINENO"; then :
5380 ac_cv_sys_file_offset_bits=no; break
5381fi
5382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384/* end confdefs.h. */
5385#define _FILE_OFFSET_BITS 64
5386#include <sys/types.h>
5387 /* Check that off_t can represent 2**63 - 1 correctly.
5388 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5389 since some C++ compilers masquerading as C compilers
5390 incorrectly reject 9223372036854775807. */
5391#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5392 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5393 && LARGE_OFF_T % 2147483647 == 1)
5394 ? 1 : -1];
5395int
5396main ()
5397{
5398
5399 ;
5400 return 0;
5401}
5402_ACEOF
5403if ac_fn_c_try_compile "$LINENO"; then :
5404 ac_cv_sys_file_offset_bits=64; break
5405fi
5406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5407 ac_cv_sys_file_offset_bits=unknown
5408 break
5409done
5410fi
5411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5412$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5413case $ac_cv_sys_file_offset_bits in #(
5414 no | unknown) ;;
5415 *)
5416cat >>confdefs.h <<_ACEOF
5417#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5418_ACEOF
5419;;
5420esac
5421rm -rf conftest*
5422 if test $ac_cv_sys_file_offset_bits = unknown; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5424$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5425if test "${ac_cv_sys_large_files+set}" = set; then :
5426 $as_echo_n "(cached) " >&6
5427else
5428 while :; do
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430/* end confdefs.h. */
5431#include <sys/types.h>
5432 /* Check that off_t can represent 2**63 - 1 correctly.
5433 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5434 since some C++ compilers masquerading as C compilers
5435 incorrectly reject 9223372036854775807. */
5436#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5437 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5438 && LARGE_OFF_T % 2147483647 == 1)
5439 ? 1 : -1];
5440int
5441main ()
5442{
5443
5444 ;
5445 return 0;
5446}
5447_ACEOF
5448if ac_fn_c_try_compile "$LINENO"; then :
5449 ac_cv_sys_large_files=no; break
5450fi
5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5453/* end confdefs.h. */
5454#define _LARGE_FILES 1
5455#include <sys/types.h>
5456 /* Check that off_t can represent 2**63 - 1 correctly.
5457 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5458 since some C++ compilers masquerading as C compilers
5459 incorrectly reject 9223372036854775807. */
5460#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5461 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5462 && LARGE_OFF_T % 2147483647 == 1)
5463 ? 1 : -1];
5464int
5465main ()
5466{
5467
5468 ;
5469 return 0;
5470}
5471_ACEOF
5472if ac_fn_c_try_compile "$LINENO"; then :
5473 ac_cv_sys_large_files=1; break
5474fi
5475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5476 ac_cv_sys_large_files=unknown
5477 break
5478done
5479fi
5480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5481$as_echo "$ac_cv_sys_large_files" >&6; }
5482case $ac_cv_sys_large_files in #(
5483 no | unknown) ;;
5484 *)
5485cat >>confdefs.h <<_ACEOF
5486#define _LARGE_FILES $ac_cv_sys_large_files
5487_ACEOF
5488;;
5489esac
5490rm -rf conftest*
5491 fi
5492fi
5493
5494
Alexandre Julliard40664c02009-02-11 20:40:58 +01005495ac_ext=c
5496ac_cpp='$CPP $CPPFLAGS'
5497ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005501$as_echo_n "checking how to run the C preprocessor... " >&6; }
5502# On Suns, sometimes $CPP names a directory.
5503if test -n "$CPP" && test -d "$CPP"; then
5504 CPP=
5505fi
5506if test -z "$CPP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005507 if test "${ac_cv_prog_CPP+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005508 $as_echo_n "(cached) " >&6
5509else
5510 # Double quotes because CPP needs to be expanded
5511 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5512 do
5513 ac_preproc_ok=false
5514for ac_c_preproc_warn_flag in '' yes
5515do
5516 # Use a header file that comes with gcc, so configuring glibc
5517 # with a fresh cross-compiler works.
5518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5519 # <limits.h> exists even on freestanding compilers.
5520 # On the NeXT, cc -E runs the code through the compiler's parser,
5521 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005523/* end confdefs.h. */
5524#ifdef __STDC__
5525# include <limits.h>
5526#else
5527# include <assert.h>
5528#endif
5529 Syntax error
5530_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005531if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005532
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005533else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005534 # Broken: fails on valid input.
5535continue
5536fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005537rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005538
5539 # OK, works on sane cases. Now check whether nonexistent headers
5540 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005542/* end confdefs.h. */
5543#include <ac_nonexistent.h>
5544_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005545if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005546 # Broken: success on invalid input.
5547continue
5548else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005549 # Passes both tests.
5550ac_preproc_ok=:
5551break
5552fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005553rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005554
5555done
5556# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005557rm -f conftest.i conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005558if $ac_preproc_ok; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005559 break
5560fi
5561
5562 done
5563 ac_cv_prog_CPP=$CPP
5564
5565fi
5566 CPP=$ac_cv_prog_CPP
5567else
5568 ac_cv_prog_CPP=$CPP
5569fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005571$as_echo "$CPP" >&6; }
5572ac_preproc_ok=false
5573for ac_c_preproc_warn_flag in '' yes
5574do
5575 # Use a header file that comes with gcc, so configuring glibc
5576 # with a fresh cross-compiler works.
5577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5578 # <limits.h> exists even on freestanding compilers.
5579 # On the NeXT, cc -E runs the code through the compiler's parser,
5580 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005582/* end confdefs.h. */
5583#ifdef __STDC__
5584# include <limits.h>
5585#else
5586# include <assert.h>
5587#endif
5588 Syntax error
5589_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005590if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005591
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005592else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005593 # Broken: fails on valid input.
5594continue
5595fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005596rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005597
5598 # OK, works on sane cases. Now check whether nonexistent headers
5599 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005601/* end confdefs.h. */
5602#include <ac_nonexistent.h>
5603_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005604if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005605 # Broken: success on invalid input.
5606continue
5607else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005608 # Passes both tests.
5609ac_preproc_ok=:
5610break
5611fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005612rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005613
5614done
5615# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005616rm -f conftest.i conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005617if $ac_preproc_ok; then :
5618
Alexandre Julliard40664c02009-02-11 20:40:58 +01005619else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005620 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005621$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005622as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5623See \`config.log' for more details" "$LINENO" 5 ; }
Alexandre Julliard40664c02009-02-11 20:40:58 +01005624fi
5625
5626ac_ext=c
5627ac_cpp='$CPP $CPPFLAGS'
5628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5630ac_compiler_gnu=$ac_cv_c_compiler_gnu
5631
5632
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005634$as_echo_n "checking for ANSI C header files... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005635if test "${ac_cv_header_stdc+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005636 $as_echo_n "(cached) " >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005637else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005639/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005640#include <stdlib.h>
5641#include <stdarg.h>
5642#include <string.h>
5643#include <float.h>
5644
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005645int
5646main ()
5647{
5648
5649 ;
5650 return 0;
5651}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005652_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005653if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005654 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005655else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005656 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005657fi
Jeremy White0ebeb532006-06-20 13:18:41 +02005658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005659
5660if test $ac_cv_header_stdc = yes; then
5661 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005663/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005664#include <string.h>
5665
5666_ACEOF
5667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005668 $EGREP "memchr" >/dev/null 2>&1; then :
5669
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005670else
5671 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005672fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005673rm -f conftest*
5674
5675fi
5676
5677if test $ac_cv_header_stdc = yes; then
5678 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005680/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005681#include <stdlib.h>
5682
5683_ACEOF
5684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005685 $EGREP "free" >/dev/null 2>&1; then :
5686
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005687else
5688 ac_cv_header_stdc=no
5689fi
5690rm -f conftest*
5691
5692fi
5693
5694if test $ac_cv_header_stdc = yes; then
5695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005696 if test "$cross_compiling" = yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005697 :
5698else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005700/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005701#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005702#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005703#if ((' ' & 0x0FF) == 0x020)
5704# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5705# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5706#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005707# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005708 (('a' <= (c) && (c) <= 'i') \
5709 || ('j' <= (c) && (c) <= 'r') \
5710 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005711# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5712#endif
5713
5714#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5715int
5716main ()
5717{
5718 int i;
5719 for (i = 0; i < 256; i++)
5720 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00005721 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005722 return 2;
5723 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005724}
5725_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005726if ac_fn_c_try_run "$LINENO"; then :
5727
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005728else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005729 ac_cv_header_stdc=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005730fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5732 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005733fi
5734
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005735fi
5736fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005738$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005739if test $ac_cv_header_stdc = yes; then
5740
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005741$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005742
5743fi
5744
5745# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005746for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005747 inttypes.h stdint.h unistd.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005748do :
5749 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5750ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5751"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005752if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005753 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005754#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005755_ACEOF
5756
5757fi
5758
5759done
5760
5761
Rein Klazes7ff12562004-11-09 20:16:35 +00005762for ac_header in \
Chris Robinson862965f2009-08-25 03:26:35 -07005763 AL/al.h \
Ken Thomases21137cd2011-01-05 07:25:23 -06005764 ApplicationServices/ApplicationServices.h \
Aric Stewart4430ab42010-03-17 10:58:32 -05005765 AudioToolbox/AudioConverter.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005766 AudioUnit/AudioUnit.h \
Charles Davis459d9422011-01-29 16:45:53 -07005767 AudioUnit/AudioComponent.h \
Adam Martinson2eb2f712010-12-28 12:46:09 -06005768 CL/cl.h \
Pierre d'Herbemont08884512006-10-24 15:26:33 +02005769 Carbon/Carbon.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005770 CoreAudio/CoreAudio.h \
Alexandre Julliard66f45a52006-11-06 13:33:16 +01005771 DiskArbitration/DiskArbitration.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00005772 IOKit/IOKitLib.h \
Aric Stewart225a4942009-03-10 14:59:20 -05005773 IOKit/hid/IOHIDLib.h \
Ken Thomases0b08f192009-09-09 22:23:35 -05005774 OpenAL/al.h \
Peter Urbanec65c84d72010-12-02 23:41:48 +11005775 OpenCL/opencl.h \
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +01005776 QuickTime/ImageCompression.h \
Eric Durbin020b0ef2008-06-24 22:45:51 -05005777 alias.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005778 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005779 arpa/inet.h \
5780 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00005781 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005782 capi20.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005783 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005784 direct.h \
Rob Shearman87175c62008-10-03 12:55:21 +01005785 dirent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005786 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005787 elf.h \
5788 float.h \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +02005789 fnmatch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005790 fontconfig/fontconfig.h \
5791 getopt.h \
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +01005792 gettext-po.h \
Alexandre Julliard46678dc2008-12-09 17:09:42 +01005793 grp.h \
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +02005794 gsm.h \
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +02005795 gsm/gsm.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005796 ieeefp.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005797 inet/mib2.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005798 io.h \
5799 jack/jack.h \
5800 jpeglib.h \
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +01005801 kstat.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005802 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005803 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005804 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005805 ldap.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005806 link.h \
5807 linux/cdrom.h \
5808 linux/compiler.h \
5809 linux/hdreg.h \
5810 linux/input.h \
5811 linux/ioctl.h \
5812 linux/joystick.h \
5813 linux/major.h \
5814 linux/param.h \
5815 linux/serial.h \
Francois Gougetda1a3522008-12-28 10:35:02 +01005816 linux/types.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005817 linux/ucdrom.h \
Ken Thomasesd35c0e82009-03-11 09:05:53 -05005818 mach-o/nlist.h \
Austin English95740b32010-10-08 00:33:52 -07005819 mach-o/loader.h \
Alexandre Julliard150b5dc2006-12-29 20:02:02 +01005820 mach/mach.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005821 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005822 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005823 machine/limits.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005824 machine/soundcard.h \
Austin English40b3d2e2010-05-23 21:18:17 -05005825 machine/sysarch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005826 mntent.h \
Aric Stewartdb71d7c2009-08-19 09:37:48 -05005827 mpg123.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005828 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005829 netdb.h \
5830 netinet/in.h \
5831 netinet/in_systm.h \
5832 netinet/tcp.h \
5833 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01005834 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005835 openssl/ssl.h \
Alexandre Julliard00302152007-07-02 19:54:00 +02005836 png.h \
Steven Edwards57279182005-03-04 12:38:36 +00005837 poll.h \
Albert Lee01b972d2009-11-20 18:35:26 -05005838 port.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005839 process.h \
5840 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005841 pwd.h \
5842 regex.h \
5843 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005844 scsi/scsi.h \
5845 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005846 scsi/sg.h \
5847 soundcard.h \
Austin English2d7ccb32009-06-13 18:01:24 -05005848 stdbool.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005849 stdint.h \
5850 strings.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005851 stropts.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005852 sys/asoundlib.h \
Charles Davis4e44e152011-01-18 13:09:44 -07005853 sys/attr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005854 sys/cdio.h \
5855 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005856 sys/epoll.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005857 sys/errno.h \
Alexandre Julliardc8278922006-08-04 22:11:00 +02005858 sys/event.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005859 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005860 sys/filio.h \
Alexandre Julliard61a70362009-06-26 15:45:03 +02005861 sys/inotify.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005862 sys/ioctl.h \
5863 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00005864 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005865 sys/link.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005866 sys/mman.h \
5867 sys/modem.h \
5868 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01005869 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005870 sys/param.h \
5871 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02005872 sys/prctl.h \
Austin English94021a12009-01-20 17:42:53 -06005873 sys/protosw.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005874 sys/ptrace.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09005875 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005876 sys/scsiio.h \
5877 sys/shm.h \
5878 sys/signal.h \
5879 sys/socket.h \
Mark Adams25696352007-07-10 23:39:21 -04005880 sys/socketvar.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005881 sys/sockio.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005882 sys/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005883 sys/statvfs.h \
5884 sys/strtio.h \
5885 sys/syscall.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005886 sys/tihdr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005887 sys/time.h \
Austin English8b195912009-01-21 21:59:11 -06005888 sys/timeout.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005889 sys/times.h \
5890 sys/uio.h \
5891 sys/un.h \
Alexandre Julliard66eb4bd2008-12-09 19:33:06 +01005892 sys/utsname.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005893 sys/vm86.h \
5894 sys/wait.h \
5895 syscall.h \
5896 termios.h \
Vincent Povirk73cd5692010-03-08 17:07:29 -06005897 tiffio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005898 unistd.h \
5899 utime.h \
John Reiser0a2c94e2008-07-24 13:31:53 -07005900 valgrind/memcheck.h \
Jacek Caban11ca05f2009-05-29 23:35:13 +02005901 valgrind/valgrind.h \
5902 zlib.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005903
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005904do :
5905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5906ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005907if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005908 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005909#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Rein Klazes7ff12562004-11-09 20:16:35 +00005910_ACEOF
5911
5912fi
5913
5914done
5915
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005917$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005918if test "${ac_cv_header_stat_broken+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005919 $as_echo_n "(cached) " >&6
Rein Klazes7ff12562004-11-09 20:16:35 +00005920else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005922/* end confdefs.h. */
5923#include <sys/types.h>
5924#include <sys/stat.h>
5925
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005926#if defined S_ISBLK && defined S_IFDIR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005927extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005928#endif
5929
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005930#if defined S_ISBLK && defined S_IFCHR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005931extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005932#endif
5933
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005934#if defined S_ISLNK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005935extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005936#endif
5937
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005938#if defined S_ISSOCK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005939extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005940#endif
5941
5942_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005943if ac_fn_c_try_compile "$LINENO"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005944 ac_cv_header_stat_broken=no
Phil Krylovf0ca5862006-11-05 23:03:46 +03005945else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005946 ac_cv_header_stat_broken=yes
Phil Krylovf0ca5862006-11-05 23:03:46 +03005947fi
Phil Krylovf0ca5862006-11-05 23:03:46 +03005948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005949fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005951$as_echo "$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00005952if test $ac_cv_header_stat_broken = yes; then
5953
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005954$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005955
5956fi
5957
5958
5959
Austin English51094be2008-12-27 14:53:53 -06005960for 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 +02005961do :
5962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5963ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005964 #ifdef HAVE_SYS_PARAM_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005965 # include <sys/param.h>
5966 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005967"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02005968if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005969 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005970#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005971_ACEOF
5972
5973fi
5974
5975done
5976
5977
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005978for ac_header in \
5979 netinet/ip.h \
5980 net/if.h \
5981 net/if_arp.h \
5982 net/if_dl.h \
5983 net/if_types.h \
5984 net/route.h \
5985 netinet/if_ether.h \
Austin English337067a2009-01-22 10:44:06 -06005986 netinet/if_inarp.h \
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005987 netinet/in_pcb.h \
5988 netinet/ip_icmp.h \
5989 netinet/ip_var.h \
5990 netinet/udp.h \
5991 netipx/ipx.h \
5992
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005993do :
5994 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5995ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005996 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005997 # include <sys/socket.h>
5998 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005999 #ifdef HAVE_SYS_SOCKETVAR_H
Ken Thomasesa609fee2007-10-19 16:18:17 -05006000 # include <sys/socketvar.h>
6001 #endif
Austin Englishbb3f2582009-01-26 23:34:42 -06006002 #ifdef HAVE_NET_ROUTE_H
6003 # include <net/route.h>
6004 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006005 #ifdef HAVE_NETINET_IN_H
Ken Thomasesffd78b12007-10-19 16:18:27 -05006006 # include <netinet/in.h>
6007 #endif
Austin English03173932009-01-23 13:29:42 -06006008 #ifdef HAVE_NETINET_IN_SYSTM_H
6009 # include <netinet/in_systm.h>
6010 #endif
Alexandre Julliardd7e846c2009-01-30 14:01:12 +01006011 #ifdef HAVE_NET_IF_H
6012 # include <net/if.h>
6013 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006014 #ifdef HAVE_NETINET_IP_H
6015 # include <netinet/ip.h>
6016 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006017"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006018if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006019 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01006020#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006021_ACEOF
6022
6023fi
6024
6025done
6026
Mark Adams25696352007-07-10 23:39:21 -04006027
Austin English03173932009-01-23 13:29:42 -06006028for 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 +02006029do :
6030 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6031ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Eric Durbin020b0ef2008-06-24 22:45:51 -05006032 #ifdef HAVE_ALIAS_H
6033 # include <alias.h>
6034 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006035 #ifdef HAVE_SYS_SOCKET_H
Mark Adams25696352007-07-10 23:39:21 -04006036 # include <sys/socket.h>
6037 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006038 #ifdef HAVE_SYS_SOCKETVAR_H
Mark Adams25696352007-07-10 23:39:21 -04006039 # include <sys/socketvar.h>
6040 #endif
Austin English53d3c462009-01-26 23:47:49 -06006041 #ifdef HAVE_SYS_TIMEOUT_H
6042 # include <sys/timeout.h>
6043 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006044 #ifdef HAVE_NETINET_IN_H
Mark Adams25696352007-07-10 23:39:21 -04006045 # include <netinet/in.h>
6046 #endif
Austin English03173932009-01-23 13:29:42 -06006047 #ifdef HAVE_NETINET_IN_SYSTM_H
6048 # include <netinet/in_systm.h>
6049 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006050 #ifdef HAVE_NETINET_IP_H
6051 # include <netinet/ip.h>
6052 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006053 #ifdef HAVE_NETINET_IP_VAR_H
6054 # include <netinet/ip_var.h>
6055 #endif
Eric Durbin020b0ef2008-06-24 22:45:51 -05006056 #ifdef HAVE_NETINET_IP_ICMP_H
6057 # include <netinet/ip_icmp.h>
6058 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006059 #ifdef HAVE_NETINET_UDP_H
6060 # include <netinet/udp.h>
6061 #endif
Mark Adams25696352007-07-10 23:39:21 -04006062 #ifdef HAVE_NETINET_TCP_H
6063 # include <netinet/tcp.h>
6064 #endif
Austin English03173932009-01-23 13:29:42 -06006065 #ifdef HAVE_NETINET_TCP_TIMER_H
6066 #include <netinet/tcp_timer.h>
6067 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006068"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006069if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mark Adams25696352007-07-10 23:39:21 -04006070 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01006071#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mark Adams25696352007-07-10 23:39:21 -04006072_ACEOF
6073
6074fi
6075
6076done
6077
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006078
Juan Lang0ce420d2009-08-12 09:14:16 -07006079for ac_header in linux/ipx.h linux/irda.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006080do :
Juan Lang0ce420d2009-08-12 09:14:16 -07006081 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6082ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gougetfaf05df2006-08-07 21:52:36 +02006083 #ifdef HAVE_ASM_TYPES_H
6084 # include <asm/types.h>
6085 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006086 #ifdef HAVE_SYS_SOCKET_H
Francois Gougetfaf05df2006-08-07 21:52:36 +02006087 # include <sys/socket.h>
6088 #endif
Francois Gougetda1a3522008-12-28 10:35:02 +01006089 #ifdef HAVE_LINUX_TYPES_H
6090 # include <linux/types.h>
6091 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006092"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006093if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Francois Gougetfaf05df2006-08-07 21:52:36 +02006094 cat >>confdefs.h <<_ACEOF
Juan Lang0ce420d2009-08-12 09:14:16 -07006095#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Francois Gougetfaf05df2006-08-07 21:52:36 +02006096_ACEOF
6097
6098fi
6099
6100done
6101
6102
Austin English2d7ccb32009-06-13 18:01:24 -05006103for ac_header in mach-o/dyld_images.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006104do :
6105 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 -05006106 # include <stdbool.h>
6107 #endif
6108 #ifdef HAVE_STDINT_H
6109 # include <stdint.h>
6110 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006111"
6112if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
Austin English2d7ccb32009-06-13 18:01:24 -05006113 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006114#define HAVE_MACH_O_DYLD_IMAGES_H 1
Austin English2d7ccb32009-06-13 18:01:24 -05006115_ACEOF
6116
6117fi
6118
6119done
6120
6121
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006122for ac_header in resolv.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006123do :
6124 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 +01006125 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006126 # include <sys/socket.h>
6127 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006128 #ifdef HAVE_NETINET_IN_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006129 # include <netinet/in.h>
6130 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006131 #ifdef HAVE_ARPA_NAMESER_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006132 # include <arpa/nameser.h>
6133 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006134"
6135if test "x$ac_cv_header_resolv_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006136 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006137#define HAVE_RESOLV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006138_ACEOF
6139
6140fi
6141
6142done
6143
6144
Juan Lange3c0e302010-03-11 18:36:46 -08006145for ac_header in ifaddrs.h
6146do :
6147 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6148"
6149if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6150 cat >>confdefs.h <<_ACEOF
6151#define HAVE_IFADDRS_H 1
6152_ACEOF
6153
6154fi
6155
6156done
6157
6158
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006159for ac_header in ucontext.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006160do :
6161 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6162"
6163if test "x$ac_cv_header_ucontext_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006164 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006165#define HAVE_UCONTEXT_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006166_ACEOF
6167
6168fi
6169
6170done
6171
6172
Tijl Coosemans60833da2007-08-08 00:25:24 +02006173for ac_header in sys/thr.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006174do :
6175 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 +01006176#ifdef HAVE_UCONTEXT_H
Tijl Coosemans60833da2007-08-08 00:25:24 +02006177#include <ucontext.h>
6178#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006179"
6180if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
Tijl Coosemans60833da2007-08-08 00:25:24 +02006181 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006182#define HAVE_SYS_THR_H 1
Tijl Coosemans60833da2007-08-08 00:25:24 +02006183_ACEOF
6184
6185fi
6186
6187done
6188
6189
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006190for ac_header in pthread_np.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006191do :
6192 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 +02006193#include <pthread.h>
6194#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006195"
6196if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006197 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006198#define HAVE_PTHREAD_NP_H 1
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006199_ACEOF
6200
6201fi
6202
6203done
6204
6205
Francois Gougetfaf05df2006-08-07 21:52:36 +02006206for ac_header in linux/videodev.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006207do :
6208 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 +02006209#include <sys/time.h>
6210#endif
6211#include <sys/types.h>
6212#ifdef HAVE_ASM_TYPES_H
6213#include <asm/types.h>
6214#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006215"
6216if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006217 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006218#define HAVE_LINUX_VIDEODEV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006219_ACEOF
6220
6221fi
6222
6223done
6224
6225
Alexandre Julliardb079add2006-02-24 11:46:17 +01006226for ac_header in linux/capi.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006227do :
6228 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6229"
6230if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
Alexandre Julliardb079add2006-02-24 11:46:17 +01006231 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006232#define HAVE_LINUX_CAPI_H 1
Alexandre Julliardb079add2006-02-24 11:46:17 +01006233_ACEOF
6234
6235fi
6236
6237done
6238
6239
6240
Alexandre Julliarda3097622007-07-02 17:27:48 +02006241DLLEXT=""
6242
6243DLLFLAGS="-D_REENTRANT"
6244
6245LDSHARED=""
6246
6247LDDLLFLAGS=""
6248
6249LIBEXT="so"
6250
6251IMPLIBEXT="def"
6252
6253LDRPATH_INSTALL=""
6254
6255LDRPATH_LOCAL=""
6256
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006257STATIC_IMPLIBEXT="def.a"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006258# Extract the first word of "ldd", so it can be a program name with args.
6259set dummy ldd; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006261$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006262if test "${ac_cv_path_LDD+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006263 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006264else
6265 case $LDD in
6266 [\\/]* | ?:[\\/]*)
6267 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6268 ;;
6269 *)
6270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6271as_dummy="/sbin:/usr/sbin:$PATH"
6272for as_dir in $as_dummy
6273do
6274 IFS=$as_save_IFS
6275 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006276 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6278 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006280 break 2
6281 fi
6282done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006283 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006284IFS=$as_save_IFS
6285
6286 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6287 ;;
6288esac
6289fi
6290LDD=$ac_cv_path_LDD
6291if test -n "$LDD"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006293$as_echo "$LDD" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006294else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006296$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006297fi
6298
6299
6300
6301case $host_os in
6302 cygwin*|mingw32*)
6303 if test -n "$ac_tool_prefix"; then
6304 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6305set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006307$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006308if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006309 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006310else
6311 if test -n "$DLLTOOL"; then
6312 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6313else
6314as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315for as_dir in $PATH
6316do
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006319 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6321 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006323 break 2
6324 fi
6325done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006326 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006327IFS=$as_save_IFS
6328
6329fi
6330fi
6331DLLTOOL=$ac_cv_prog_DLLTOOL
6332if test -n "$DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006334$as_echo "$DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006335else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006337$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006338fi
6339
6340
6341fi
6342if test -z "$ac_cv_prog_DLLTOOL"; then
6343 ac_ct_DLLTOOL=$DLLTOOL
6344 # Extract the first word of "dlltool", so it can be a program name with args.
6345set dummy dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006347$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006348if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006349 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006350else
6351 if test -n "$ac_ct_DLLTOOL"; then
6352 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6353else
6354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6355for as_dir in $PATH
6356do
6357 IFS=$as_save_IFS
6358 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006359 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006363 break 2
6364 fi
6365done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006366 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006367IFS=$as_save_IFS
6368
6369fi
6370fi
6371ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6372if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006374$as_echo "$ac_ct_DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006375else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006377$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006378fi
6379
6380 if test "x$ac_ct_DLLTOOL" = x; then
6381 DLLTOOL="false"
6382 else
6383 case $cross_compiling:$ac_tool_warned in
6384yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006385{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006386$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006387ac_tool_warned=yes ;;
6388esac
6389 DLLTOOL=$ac_ct_DLLTOOL
6390 fi
6391else
6392 DLLTOOL="$ac_cv_prog_DLLTOOL"
6393fi
6394
6395 if test -n "$ac_tool_prefix"; then
6396 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6397set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006399$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006400if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006401 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006402else
6403 if test -n "$DLLWRAP"; then
6404 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6405else
6406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407for as_dir in $PATH
6408do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006411 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6413 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006415 break 2
6416 fi
6417done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006418 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006419IFS=$as_save_IFS
6420
6421fi
6422fi
6423DLLWRAP=$ac_cv_prog_DLLWRAP
6424if test -n "$DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006426$as_echo "$DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006427else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006429$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006430fi
6431
6432
6433fi
6434if test -z "$ac_cv_prog_DLLWRAP"; then
6435 ac_ct_DLLWRAP=$DLLWRAP
6436 # Extract the first word of "dllwrap", so it can be a program name with args.
6437set dummy dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006439$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006440if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006441 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006442else
6443 if test -n "$ac_ct_DLLWRAP"; then
6444 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6445else
6446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447for as_dir in $PATH
6448do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006451 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6453 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006455 break 2
6456 fi
6457done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006458 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006459IFS=$as_save_IFS
6460
6461fi
6462fi
6463ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6464if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006466$as_echo "$ac_ct_DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006467else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006469$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006470fi
6471
6472 if test "x$ac_ct_DLLWRAP" = x; then
6473 DLLWRAP="false"
6474 else
6475 case $cross_compiling:$ac_tool_warned in
6476yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006479ac_tool_warned=yes ;;
6480esac
6481 DLLWRAP=$ac_ct_DLLWRAP
6482 fi
6483else
6484 DLLWRAP="$ac_cv_prog_DLLWRAP"
6485fi
6486
Alexandre Julliarda3097622007-07-02 17:27:48 +02006487 if test "$DLLWRAP" = "false"; then
6488 LIBEXT="a"
6489 else
6490 LIBEXT="dll"
6491 fi
6492 IMPLIBEXT="a"
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006493 STATIC_IMPLIBEXT="a"
Alexandre Julliardec1ebfb2008-09-04 12:29:07 +02006494 enable_iphlpapi=${enable_iphlpapi:-no}
6495 enable_kernel32=${enable_kernel32:-no}
6496 enable_msvcrt=${enable_msvcrt:-no}
6497 enable_ntdll=${enable_ntdll:-no}
6498 enable_ws2_32=${enable_ws2_32:-no}
6499 enable_loader=${enable_loader:-no}
6500 enable_server=${enable_server:-no}
Alexandre Julliard40664c02009-02-11 20:40:58 +01006501 with_x=${with_x:-no}
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01006502 with_pthread=${with_pthread:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006503 ;;
6504 darwin*|macosx*)
6505 DLLEXT=".so"
6506 LIBEXT="dylib"
6507 DLLFLAGS="$DLLFLAGS -fPIC"
6508 LDDLLFLAGS="-bundle -multiply_defined suppress"
6509 LIBWINE_LDFLAGS="-multiply_defined suppress"
6510 LDSHARED="\$(CC) -dynamiclib"
6511 STRIP="$STRIP -x"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006512 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 +00006513 SECURITYLIB="-framework Security -framework CoreFoundation"
6514
6515 COREFOUNDATIONLIB="-framework CoreFoundation"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006516
6517 IOKITLIB="-framework IOKit -framework CoreFoundation"
6518
Ken Thomases21137cd2011-01-05 07:25:23 -06006519 APPLICATIONSERVICESLIB="-framework ApplicationServices"
6520
Alexandre Julliard691bdbd2009-06-23 20:51:37 +02006521 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006522
6523 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6524 then
6525 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6526
6527 fi
6528 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6529 then
Charles Davis459d9422011-01-29 16:45:53 -07006530 if test "$ac_cv_header_AudioUnit_AudioComponent_h" = "yes"
6531 then
6532 COREAUDIO="-framework CoreFoundation -framework CoreAudio -framework AudioUnit -framework AudioToolbox -framework CoreMIDI"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006533
Charles Davis459d9422011-01-29 16:45:53 -07006534 else
6535 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6536
6537 fi
Charles Davisb149d7b2011-01-29 16:45:54 -07006538 ac_save_LIBS="$LIBS"
6539 LIBS="$LIBS $COREAUDIO"
6540 for ac_func in AUGraphAddNode
6541do :
6542 ac_fn_c_check_func "$LINENO" "AUGraphAddNode" "ac_cv_func_AUGraphAddNode"
6543if test "x$ac_cv_func_AUGraphAddNode" = x""yes; then :
6544 cat >>confdefs.h <<_ACEOF
6545#define HAVE_AUGRAPHADDNODE 1
6546_ACEOF
6547
6548fi
6549done
6550
6551 LIBS="$ac_save_LIBS"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006552 fi
Ken Thomases0b08f192009-09-09 22:23:35 -05006553 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6554 then
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006555 FRAMEWORK_OPENAL="-framework OpenAL"
Ken Thomases0b08f192009-09-09 22:23:35 -05006556
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006557
6558cat >>confdefs.h <<_ACEOF
6559#define HAVE_OPENAL 1
6560_ACEOF
6561
6562 ac_cv_lib_openal=yes
Ken Thomases0b08f192009-09-09 22:23:35 -05006563 fi
Alexandre Julliardfac67412010-12-03 14:16:55 +01006564 if test "$ac_cv_header_OpenCL_opencl_h" = "yes"
6565 then
6566 LIBOPENCL="-framework OpenCL"
6567
6568 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
6569 fi
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006570 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6571 then
6572 ac_save_LIBS="$LIBS"
6573 LIBS="$LIBS $IOKITLIB"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006574 for ac_func in IOHIDManagerCreate
6575do :
6576 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6577if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006578 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006579#define HAVE_IOHIDMANAGERCREATE 1
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006580_ACEOF
6581
6582fi
6583done
6584
6585 LIBS="$ac_save_LIBS"
6586 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006587 case $host_cpu in
6588 *powerpc*)
6589 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6590 esac
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +01006591 if test "$ac_cv_header_QuickTime_ImageCompression_h" = "yes"
6592 then
6593 QUICKTIMELIB="-framework QuickTime -framework ApplicationServices -framework CoreVideo"
6594
6595 enable_wineqtdecoder=${enable_wineqtdecoder:-yes}
6596 else
6597 as_fn_append wine_notices "|QuickTime ${notice_platform}development files not found, video decoding won't be supported."
6598 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006599 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6600 then
6601 CARBONLIB="-framework Carbon"
6602
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02006603 enable_winequartz_drv=${enable_winequartz_drv:-yes}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006604 fi
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006605 if test "x$enable_win16" = "xyes"
6606 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006608$as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006609 if test "$cross_compiling" = yes; then :
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006611$as_echo "cross-compiling, assuming yes" >&6; }
6612else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006614/* end confdefs.h. */
6615asm(".text\n"
6616 "bad:\tnop;nop\n"
6617 "good:\tnop;nop\n\t"
6618 ".globl _testfunc\n"
6619 "_testfunc:\tcallw good");
6620 extern void testfunc();
6621int
6622main ()
6623{
6624unsigned short *p = (unsigned short *)testfunc;
6625 return p[0] != 0xe866 || p[1] != 0xfffa
6626 ;
6627 return 0;
6628}
6629_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006630if ac_fn_c_try_run "$LINENO"; then :
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006632$as_echo "yes" >&6; }
6633else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006635$as_echo "no" >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006636 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 +02006637fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6639 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006640fi
6641
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006642 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006643 ;;
6644 *)
6645 DLLFLAGS="$DLLFLAGS -fPIC"
6646 DLLEXT=".so"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006647 { $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 +01006648$as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006649if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006650 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006651else
6652 ac_wine_try_cflags_saved=$CFLAGS
6653CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006654cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6655/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006656void myfunc() {}
6657_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006658if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006659 ac_cv_c_dll_gnuelf="yes"
6660else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006661 ac_cv_c_dll_gnuelf="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006662fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006663rm -f core conftest.err conftest.$ac_objext \
6664 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006665CFLAGS=$ac_wine_try_cflags_saved
6666fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006668$as_echo "$ac_cv_c_dll_gnuelf" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006669 if test "$ac_cv_c_dll_gnuelf" = "yes"
6670 then
6671 LDSHARED="\$(CC) -shared"
6672 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006673 { $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 +01006674$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006675if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006676 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006677else
6678 ac_wine_try_cflags_saved=$CFLAGS
6679CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006681/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006682int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006683_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006684if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006685 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6686else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006687 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006688fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006689rm -f core conftest.err conftest.$ac_objext \
6690 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006691CFLAGS=$ac_wine_try_cflags_saved
6692fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006693{ $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 +01006694$as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006695if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006696 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6697else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006698 { $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 +01006699$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006700if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006701 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006702else
6703 ac_wine_try_cflags_saved=$CFLAGS
6704CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006706/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006707int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006708_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006709if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006710 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6711else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006712 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006713fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006714rm -f core conftest.err conftest.$ac_objext \
6715 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006716CFLAGS=$ac_wine_try_cflags_saved
6717fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006718{ $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 +01006719$as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006720if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006721 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6722fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006723fi
6724
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006725 { $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 +01006726$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006727if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006728 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006729else
6730 ac_wine_try_cflags_saved=$CFLAGS
6731CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006732cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006733/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006734int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006735_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006736if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006737 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6738else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006739 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006740fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006741rm -f core conftest.err conftest.$ac_objext \
6742 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006743CFLAGS=$ac_wine_try_cflags_saved
6744fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006745{ $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 +01006746$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006747if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006748 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6749fi
6750
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006751 { $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 +01006752$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 +02006753if 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 +01006754 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006755else
6756 ac_wine_try_cflags_saved=$CFLAGS
6757CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006759/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006760int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006761_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006762if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006763 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6764else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006765 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006766fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006767rm -f core conftest.err conftest.$ac_objext \
6768 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006769CFLAGS=$ac_wine_try_cflags_saved
6770fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006771{ $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 +01006772$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 +02006773if 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 +02006774 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6775fi
6776
Alexandre Julliarda3097622007-07-02 17:27:48 +02006777 echo '{ global: *; };' >conftest.map
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006778 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -shared -Wl,--version-script=conftest.map" | $as_tr_sh`
6779{ $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 +01006780$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006781if eval "test \"\${$as_ac_var+set}\"" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006782 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006783else
6784 ac_wine_try_cflags_saved=$CFLAGS
6785CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006786cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006787/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006788int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006789_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006790if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006791 eval "$as_ac_var=yes"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006792else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006793 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006794fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006795rm -f core conftest.err conftest.$ac_objext \
6796 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006797CFLAGS=$ac_wine_try_cflags_saved
6798fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006799eval ac_res=\$$as_ac_var
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6801$as_echo "$ac_res" >&6; }
6802if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006803 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6804fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006805 rm -f conftest.map
6806
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006808$as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006809if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006810 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006811else
6812 ac_wine_try_cflags_saved=$CFLAGS
6813CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006815/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006816int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006817_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006818if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006819 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6820else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006821 ac_cv_cflags__fPIC__Wl___export_dynamic=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006822fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006823rm -f core conftest.err conftest.$ac_objext \
6824 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006825CFLAGS=$ac_wine_try_cflags_saved
6826fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006828$as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006829if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006830 LDEXECFLAGS="-Wl,--export-dynamic"
6831
6832fi
6833
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006834 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6835{ $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 +01006836$as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006837if eval "test \"\${$as_ac_var+set}\"" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006838 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006839else
6840 ac_wine_try_cflags_saved=$CFLAGS
6841CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006842cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006843/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006844int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006845_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006846if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006847 eval "$as_ac_var=yes"
6848else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006849 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006850fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006851rm -f core conftest.err conftest.$ac_objext \
6852 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006853CFLAGS=$ac_wine_try_cflags_saved
6854fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006855eval ac_res=\$$as_ac_var
6856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006857$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006858if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006859 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006860 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006861else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006862 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6863{ $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 +01006864$as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006865if eval "test \"\${$as_ac_var+set}\"" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006866 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006867else
6868 ac_wine_try_cflags_saved=$CFLAGS
6869CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006871/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006872int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006873_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006874if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006875 eval "$as_ac_var=yes"
6876else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006877 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006878fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006879rm -f core conftest.err conftest.$ac_objext \
6880 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006881CFLAGS=$ac_wine_try_cflags_saved
6882fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006883eval ac_res=\$$as_ac_var
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006885$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006886if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006887 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
Alexandre Julliardbd9852c2010-09-19 12:40:12 +02006888 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(top_builddir)/libs/wine"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006889fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006890fi
6891
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006893$as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006894if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006895 $as_echo_n "(cached) " >&6
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006896else
6897 ac_wine_try_cflags_saved=$CFLAGS
6898CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006900/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006901int main(int argc, char **argv) { return 0; }
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006902_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006903if ac_fn_c_try_link "$LINENO"; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006904 ac_cv_cflags__Wl___enable_new_dtags=yes
6905else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006906 ac_cv_cflags__Wl___enable_new_dtags=no
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006907fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006908rm -f core conftest.err conftest.$ac_objext \
6909 conftest$ac_exeext conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006910CFLAGS=$ac_wine_try_cflags_saved
6911fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006913$as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006914if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006915 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6916fi
6917
Alexandre Julliarda3097622007-07-02 17:27:48 +02006918 case $host_cpu in
6919 *i[3456789]86* | x86_64)
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006920 as_ac_var=`$as_echo "ac_cv_cflags_-Wl,--section-start,.interp=0x7bf00400" | $as_tr_sh`
6921{ $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 +01006922$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006923if eval "test \"\${$as_ac_var+set}\"" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006924 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006925else
6926 ac_wine_try_cflags_saved=$CFLAGS
6927CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006928cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006929/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006930int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006931_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006932if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006933 eval "$as_ac_var=yes"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006934else
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006935 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006936fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006937rm -f core conftest.err conftest.$ac_objext \
6938 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006939CFLAGS=$ac_wine_try_cflags_saved
6940fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02006941eval ac_res=\$$as_ac_var
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6943$as_echo "$ac_res" >&6; }
6944if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Francois Gouget5f694dd2010-11-26 16:18:32 +01006945 case $host_os in
6946 freebsd*) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x60000400" ;;
6947 *) LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400" ;;
6948 esac
6949
Alexandre Julliarda3097622007-07-02 17:27:48 +02006950fi
Alexandre Julliardb5d824b2010-08-24 13:42:10 +02006951 # Extract the first word of "prelink", so it can be a program name with args.
6952set dummy prelink; ac_word=$2
6953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6954$as_echo_n "checking for $ac_word... " >&6; }
6955if test "${ac_cv_path_PRELINK+set}" = set; then :
6956 $as_echo_n "(cached) " >&6
6957else
6958 case $PRELINK in
6959 [\\/]* | ?:[\\/]*)
6960 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6961 ;;
6962 *)
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964for as_dir in /sbin /usr/sbin $PATH
6965do
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6970 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6973 fi
6974done
6975 done
6976IFS=$as_save_IFS
6977
6978 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6979 ;;
6980esac
6981fi
6982PRELINK=$ac_cv_path_PRELINK
6983if test -n "$PRELINK"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6985$as_echo "$PRELINK" >&6; }
6986else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988$as_echo "no" >&6; }
6989fi
6990
6991
6992 if test "x$PRELINK" = xfalse
6993 then
6994 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6995 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006996 ;;
6997 esac
6998
6999 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007001$as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007002if test "${ac_cv_c_dll_unixware+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007003 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007004else
7005 ac_wine_try_cflags_saved=$CFLAGS
7006CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007007cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7008/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02007009void myfunc() {}
7010_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007011if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02007012 ac_cv_c_dll_unixware="yes"
7013else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007014 ac_cv_c_dll_unixware="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007015fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007016rm -f core conftest.err conftest.$ac_objext \
7017 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02007018CFLAGS=$ac_wine_try_cflags_saved
7019fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007021$as_echo "$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007022 if test "$ac_cv_c_dll_unixware" = "yes"
7023 then
7024 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
7025 LDDLLFLAGS="-Wl,-G,-B,symbolic"
7026
7027 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007029$as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007030if test "${ac_cv_c_dll_hpux+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007031 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007032else
7033 ac_wine_try_cflags_saved=$CFLAGS
7034CFLAGS="$CFLAGS -shared"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02007037void myfunc() {}
7038_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007039if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02007040 ac_cv_c_dll_hpux="yes"
7041else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007042 ac_cv_c_dll_hpux="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007043fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007044rm -f core conftest.err conftest.$ac_objext \
7045 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02007046CFLAGS=$ac_wine_try_cflags_saved
7047fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007049$as_echo "$ac_cv_c_dll_hpux" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007050 if test "$ac_cv_c_dll_hpux" = "yes"
7051 then
7052 LIBEXT="sl"
7053 DLLEXT=".sl"
7054 LDDLLFLAGS="-shared -fPIC"
7055 LDSHARED="\$(CC) -shared"
7056 fi
7057 fi
7058 fi
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007059 ;;
7060esac
Alexandre Julliarda3097622007-07-02 17:27:48 +02007061
Aric Stewarteefe6f62010-12-03 07:33:08 -06007062enable_wineqtdecoder=${enable_wineqtdecoder:-no}
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007063enable_winequartz_drv=${enable_winequartz_drv:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02007064
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007065if test "$LIBEXT" = "a"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007066 as_fn_error $? "could not find a way to build shared libraries.
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007067It is currently not possible to build Wine without shared library
7068(.so) support to allow transparent switch between .so and .dll files.
7069If you are using Linux, you will need a newer binutils.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007070" "$LINENO" 5
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007071fi
7072
Alexandre Julliard7d2e7722010-07-26 12:13:47 +02007073CROSSTEST_DISABLE=\#
7074
7075if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007076then
Alexandre Julliarda91fb212009-12-07 15:36:09 +01007077 case "$host_cpu" in
7078 i[3456789]86*)
Jacek Caban0b6bfad2010-12-21 18:08:38 +01007079 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 +01007080 x86_64)
Vincent Povirkd2103752010-10-11 15:55:40 -05007081 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 +01007082 *)
7083 ac_prefix_list="" ;;
7084esac
7085for ac_prog in $ac_prefix_list
Alexandre Julliarda3097622007-07-02 17:27:48 +02007086do
7087 # Extract the first word of "$ac_prog", so it can be a program name with args.
7088set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007090$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007091if test "${ac_cv_prog_CROSSCC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007092 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007093else
7094 if test -n "$CROSSCC"; then
7095 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7096else
7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7098for as_dir in $PATH
7099do
7100 IFS=$as_save_IFS
7101 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007102 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02007103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7104 ac_cv_prog_CROSSCC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02007106 break 2
7107 fi
7108done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007109 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02007110IFS=$as_save_IFS
7111
7112fi
7113fi
7114CROSSCC=$ac_cv_prog_CROSSCC
7115if test -n "$CROSSCC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007117$as_echo "$CROSSCC" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007118else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007120$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007121fi
7122
7123
7124 test -n "$CROSSCC" && break
7125done
7126test -n "$CROSSCC" || CROSSCC="false"
7127
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007128 if test "$CROSSCC" != "false"
7129 then
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007130 ac_save_CC="$CC"
7131 CC="$CROSSCC"
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7133$as_echo_n "checking whether $CROSSCC works... " >&6; }
7134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7135/* end confdefs.h. */
Alexandre Julliarda2d88ab2009-05-30 17:08:06 +02007136
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007137int
7138main ()
7139{
7140
7141 ;
7142 return 0;
7143}
7144_ACEOF
7145if ac_fn_c_try_compile "$LINENO"; then :
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7147$as_echo "yes" >&6; }
7148 set x $CROSSCC
7149 shift
7150 target=""
7151 while test $# -ge 1
7152 do
7153 case "$1" in
7154 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7155 esac
7156 shift
7157 done
7158 if test -n "$target"
7159 then
7160 CROSSTEST_DISABLE=""
7161 CROSSTARGET="$target"
7162
7163 fi
7164else
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7166$as_echo "no" >&6; }
7167fi
7168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7169 CC="$ac_save_CC"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007170 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007171fi
7172
7173
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007174if test "$ac_cv_header_pthread_h" = "yes"
7175then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007177$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007178if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007179 $as_echo_n "(cached) " >&6
7180else
7181 ac_check_lib_save_LIBS=$LIBS
7182LIBS="-lpthread $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007184/* end confdefs.h. */
7185
7186/* Override any GCC internal prototype to avoid an error.
7187 Use char because int might match the return type of a GCC
7188 builtin and then its argument prototype would still apply. */
7189#ifdef __cplusplus
7190extern "C"
7191#endif
7192char pthread_create ();
7193int
7194main ()
7195{
7196return pthread_create ();
7197 ;
7198 return 0;
7199}
7200_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007201if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007202 ac_cv_lib_pthread_pthread_create=yes
7203else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007204 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007205fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007206rm -f core conftest.err conftest.$ac_objext \
7207 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007208LIBS=$ac_check_lib_save_LIBS
7209fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007211$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007212if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007213 LIBPTHREAD="-lpthread"
7214
7215fi
7216
7217fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007218if test "x$LIBPTHREAD" = "x"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007219 case "x$with_pthread" in
7220 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007221 *) as_fn_error $? "pthread ${notice_platform}development files not found.
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007222Wine cannot support threads without libpthread.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007223Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007224esac
7225fi
7226
7227
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007229$as_echo_n "checking for X... " >&6; }
7230
7231
7232# Check whether --with-x was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007233if test "${with_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007234 withval=$with_x;
7235fi
7236
7237# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7238if test "x$with_x" = xno; then
7239 # The user explicitly disabled X.
7240 have_x=disabled
7241else
7242 case $x_includes,$x_libraries in #(
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007243 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007244 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007245 $as_echo_n "(cached) " >&6
7246else
7247 # One or both of the vars are not set, and there is no cached value.
7248ac_x_includes=no ac_x_libraries=no
7249rm -f -r conftest.dir
7250if mkdir conftest.dir; then
7251 cd conftest.dir
7252 cat >Imakefile <<'_ACEOF'
7253incroot:
7254 @echo incroot='${INCROOT}'
7255usrlibdir:
7256 @echo usrlibdir='${USRLIBDIR}'
7257libdir:
7258 @echo libdir='${LIBDIR}'
7259_ACEOF
7260 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007261 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Alexandre Julliard40664c02009-02-11 20:40:58 +01007262 for ac_var in incroot usrlibdir libdir; do
7263 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7264 done
7265 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7266 for ac_extension in a so sl dylib la dll; do
7267 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7268 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7269 ac_im_usrlibdir=$ac_im_libdir; break
7270 fi
7271 done
7272 # Screen out bogus values from the imake configuration. They are
7273 # bogus both because they are the default anyway, and because
7274 # using them would break gcc on systems where it needs fixed includes.
7275 case $ac_im_incroot in
7276 /usr/include) ac_x_includes= ;;
7277 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7278 esac
7279 case $ac_im_usrlibdir in
7280 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7281 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7282 esac
7283 fi
7284 cd ..
7285 rm -f -r conftest.dir
7286fi
7287
7288# Standard set of common directories for X headers.
7289# Check X11 before X11Rn because it is often a symlink to the current release.
7290ac_x_header_dirs='
7291/usr/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007292/usr/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007293/usr/X11R6/include
7294/usr/X11R5/include
7295/usr/X11R4/include
7296
7297/usr/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007298/usr/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007299/usr/include/X11R6
7300/usr/include/X11R5
7301/usr/include/X11R4
7302
7303/usr/local/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007304/usr/local/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007305/usr/local/X11R6/include
7306/usr/local/X11R5/include
7307/usr/local/X11R4/include
7308
7309/usr/local/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007310/usr/local/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007311/usr/local/include/X11R6
7312/usr/local/include/X11R5
7313/usr/local/include/X11R4
7314
7315/usr/X386/include
7316/usr/x386/include
7317/usr/XFree86/include/X11
7318
7319/usr/include
7320/usr/local/include
7321/usr/unsupported/include
7322/usr/athena/include
7323/usr/local/x11r5/include
7324/usr/lpp/Xamples/include
7325
7326/usr/openwin/include
7327/usr/openwin/share/include'
7328
7329if test "$ac_x_includes" = no; then
7330 # Guess where to find include files, by looking for Xlib.h.
7331 # First, try using that file with no special directory specified.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007333/* end confdefs.h. */
7334#include <X11/Xlib.h>
7335_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007336if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007337 # We can compile using X headers with no special include directory.
7338ac_x_includes=
7339else
Alexandre Julliard40664c02009-02-11 20:40:58 +01007340 for ac_dir in $ac_x_header_dirs; do
7341 if test -r "$ac_dir/X11/Xlib.h"; then
7342 ac_x_includes=$ac_dir
7343 break
7344 fi
7345done
7346fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02007347rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007348fi # $ac_x_includes = no
7349
7350if test "$ac_x_libraries" = no; then
7351 # Check for the libraries.
7352 # See if we find them without any special options.
7353 # Don't add to $LIBS permanently.
7354 ac_save_LIBS=$LIBS
7355 LIBS="-lX11 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007357/* end confdefs.h. */
7358#include <X11/Xlib.h>
7359int
7360main ()
7361{
7362XrmInitialize ()
7363 ;
7364 return 0;
7365}
7366_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007367if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007368 LIBS=$ac_save_LIBS
7369# We can link X programs with no special library path.
7370ac_x_libraries=
7371else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007372 LIBS=$ac_save_LIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +01007373for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7374do
7375 # Don't even attempt the hair of trying to link an X program!
7376 for ac_extension in a so sl dylib la dll; do
7377 if test -r "$ac_dir/libX11.$ac_extension"; then
7378 ac_x_libraries=$ac_dir
7379 break 2
7380 fi
7381 done
7382done
7383fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007384rm -f core conftest.err conftest.$ac_objext \
7385 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007386fi # $ac_x_libraries = no
7387
7388case $ac_x_includes,$ac_x_libraries in #(
7389 no,* | *,no | *\'*)
7390 # Didn't find X, or a directory has "'" in its name.
7391 ac_cv_have_x="have_x=no";; #(
7392 *)
7393 # Record where we found X for the cache.
7394 ac_cv_have_x="have_x=yes\
7395 ac_x_includes='$ac_x_includes'\
7396 ac_x_libraries='$ac_x_libraries'"
7397esac
7398fi
7399;; #(
7400 *) have_x=yes;;
7401 esac
7402 eval "$ac_cv_have_x"
7403fi # $with_x != no
7404
7405if test "$have_x" != yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007407$as_echo "$have_x" >&6; }
7408 no_x=yes
7409else
7410 # If each of the values was on the command line, it overrides each guess.
7411 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7412 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7413 # Update the cache value to reflect the command line values.
7414 ac_cv_have_x="have_x=yes\
7415 ac_x_includes='$x_includes'\
7416 ac_x_libraries='$x_libraries'"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007418$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7419fi
7420
7421if test "$no_x" = yes; then
7422 # Not all programs may use this symbol, but it does not hurt to define it.
7423
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007424$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
Alexandre Julliard40664c02009-02-11 20:40:58 +01007425
7426 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7427else
7428 if test -n "$x_includes"; then
7429 X_CFLAGS="$X_CFLAGS -I$x_includes"
7430 fi
7431
7432 # It would also be nice to do this for all -L options, not just this one.
7433 if test -n "$x_libraries"; then
7434 X_LIBS="$X_LIBS -L$x_libraries"
7435 # For Solaris; some versions of Sun CC require a space after -R and
7436 # others require no space. Words are not sufficient . . . .
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007438$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7439 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7440 ac_xsave_c_werror_flag=$ac_c_werror_flag
7441 ac_c_werror_flag=yes
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007443/* end confdefs.h. */
7444
7445int
7446main ()
7447{
7448
7449 ;
7450 return 0;
7451}
7452_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007453if ac_fn_c_try_link "$LINENO"; then :
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007455$as_echo "no" >&6; }
7456 X_LIBS="$X_LIBS -R$x_libraries"
7457else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007458 LIBS="$ac_xsave_LIBS -R $x_libraries"
7459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007460/* end confdefs.h. */
7461
7462int
7463main ()
7464{
7465
7466 ;
7467 return 0;
7468}
7469_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007470if ac_fn_c_try_link "$LINENO"; then :
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007472$as_echo "yes" >&6; }
7473 X_LIBS="$X_LIBS -R $x_libraries"
7474else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007476$as_echo "neither works" >&6; }
7477fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007478rm -f core conftest.err conftest.$ac_objext \
7479 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007480fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007481rm -f core conftest.err conftest.$ac_objext \
7482 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007483 ac_c_werror_flag=$ac_xsave_c_werror_flag
7484 LIBS=$ac_xsave_LIBS
7485 fi
7486
7487 # Check for system-dependent libraries X programs must link with.
7488 # Do this before checking for the system-independent R6 libraries
7489 # (-lICE), since we may need -lsocket or whatever for X linking.
7490
7491 if test "$ISC" = yes; then
7492 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7493 else
7494 # Martyn Johnson says this is needed for Ultrix, if the X
7495 # libraries were built with DECnet support. And Karl Berry says
7496 # the Alpha needs dnet_stub (dnet does not exist).
7497 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007499/* end confdefs.h. */
7500
7501/* Override any GCC internal prototype to avoid an error.
7502 Use char because int might match the return type of a GCC
7503 builtin and then its argument prototype would still apply. */
7504#ifdef __cplusplus
7505extern "C"
7506#endif
7507char XOpenDisplay ();
7508int
7509main ()
7510{
7511return XOpenDisplay ();
7512 ;
7513 return 0;
7514}
7515_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007516if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007517
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007518else
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007520$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007521if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007522 $as_echo_n "(cached) " >&6
7523else
7524 ac_check_lib_save_LIBS=$LIBS
7525LIBS="-ldnet $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007527/* end confdefs.h. */
7528
7529/* Override any GCC internal prototype to avoid an error.
7530 Use char because int might match the return type of a GCC
7531 builtin and then its argument prototype would still apply. */
7532#ifdef __cplusplus
7533extern "C"
7534#endif
7535char dnet_ntoa ();
7536int
7537main ()
7538{
7539return dnet_ntoa ();
7540 ;
7541 return 0;
7542}
7543_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007544if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007545 ac_cv_lib_dnet_dnet_ntoa=yes
7546else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007547 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007548fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007549rm -f core conftest.err conftest.$ac_objext \
7550 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007551LIBS=$ac_check_lib_save_LIBS
7552fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007554$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007555if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007556 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7557fi
7558
7559 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007561$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007562if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007563 $as_echo_n "(cached) " >&6
7564else
7565 ac_check_lib_save_LIBS=$LIBS
7566LIBS="-ldnet_stub $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007568/* end confdefs.h. */
7569
7570/* Override any GCC internal prototype to avoid an error.
7571 Use char because int might match the return type of a GCC
7572 builtin and then its argument prototype would still apply. */
7573#ifdef __cplusplus
7574extern "C"
7575#endif
7576char dnet_ntoa ();
7577int
7578main ()
7579{
7580return dnet_ntoa ();
7581 ;
7582 return 0;
7583}
7584_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007585if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007586 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7587else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007588 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007589fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007590rm -f core conftest.err conftest.$ac_objext \
7591 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007592LIBS=$ac_check_lib_save_LIBS
7593fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007595$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007596if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007597 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7598fi
7599
7600 fi
7601fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007602rm -f core conftest.err conftest.$ac_objext \
7603 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007604 LIBS="$ac_xsave_LIBS"
7605
7606 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7607 # to get the SysV transport functions.
7608 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7609 # needs -lnsl.
7610 # The nsl library prevents programs from opening the X display
7611 # on Irix 5.2, according to T.E. Dickey.
7612 # The functions gethostbyname, getservbyname, and inet_addr are
7613 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007614 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7615if test "x$ac_cv_func_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007616
Alexandre Julliard40664c02009-02-11 20:40:58 +01007617fi
7618
Alexandre Julliard40664c02009-02-11 20:40:58 +01007619 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007621$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007622if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007623 $as_echo_n "(cached) " >&6
7624else
7625 ac_check_lib_save_LIBS=$LIBS
7626LIBS="-lnsl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007628/* end confdefs.h. */
7629
7630/* Override any GCC internal prototype to avoid an error.
7631 Use char because int might match the return type of a GCC
7632 builtin and then its argument prototype would still apply. */
7633#ifdef __cplusplus
7634extern "C"
7635#endif
7636char gethostbyname ();
7637int
7638main ()
7639{
7640return gethostbyname ();
7641 ;
7642 return 0;
7643}
7644_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007645if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007646 ac_cv_lib_nsl_gethostbyname=yes
7647else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007648 ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007649fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007650rm -f core conftest.err conftest.$ac_objext \
7651 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007652LIBS=$ac_check_lib_save_LIBS
7653fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007655$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007656if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007657 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7658fi
7659
7660 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007662$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007663if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007664 $as_echo_n "(cached) " >&6
7665else
7666 ac_check_lib_save_LIBS=$LIBS
7667LIBS="-lbsd $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007668cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007669/* end confdefs.h. */
7670
7671/* Override any GCC internal prototype to avoid an error.
7672 Use char because int might match the return type of a GCC
7673 builtin and then its argument prototype would still apply. */
7674#ifdef __cplusplus
7675extern "C"
7676#endif
7677char gethostbyname ();
7678int
7679main ()
7680{
7681return gethostbyname ();
7682 ;
7683 return 0;
7684}
7685_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007686if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007687 ac_cv_lib_bsd_gethostbyname=yes
7688else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007689 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007690fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007691rm -f core conftest.err conftest.$ac_objext \
7692 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007693LIBS=$ac_check_lib_save_LIBS
7694fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007696$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007697if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007698 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7699fi
7700
7701 fi
7702 fi
7703
7704 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7705 # socket/setsockopt and other routines are undefined under SCO ODT
7706 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7707 # on later versions), says Simon Leinen: it contains gethostby*
7708 # variants that don't use the name server (or something). -lsocket
7709 # must be given before -lnsl if both are needed. We assume that
7710 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007711 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7712if test "x$ac_cv_func_connect" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007713
Alexandre Julliard40664c02009-02-11 20:40:58 +01007714fi
7715
Alexandre Julliard40664c02009-02-11 20:40:58 +01007716 if test $ac_cv_func_connect = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007718$as_echo_n "checking for connect in -lsocket... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007719if test "${ac_cv_lib_socket_connect+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007720 $as_echo_n "(cached) " >&6
7721else
7722 ac_check_lib_save_LIBS=$LIBS
7723LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007724cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007725/* end confdefs.h. */
7726
7727/* Override any GCC internal prototype to avoid an error.
7728 Use char because int might match the return type of a GCC
7729 builtin and then its argument prototype would still apply. */
7730#ifdef __cplusplus
7731extern "C"
7732#endif
7733char connect ();
7734int
7735main ()
7736{
7737return connect ();
7738 ;
7739 return 0;
7740}
7741_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007742if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007743 ac_cv_lib_socket_connect=yes
7744else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007745 ac_cv_lib_socket_connect=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007746fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007747rm -f core conftest.err conftest.$ac_objext \
7748 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007749LIBS=$ac_check_lib_save_LIBS
7750fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007752$as_echo "$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007753if test "x$ac_cv_lib_socket_connect" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007754 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7755fi
7756
7757 fi
7758
7759 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007760 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7761if test "x$ac_cv_func_remove" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007762
Alexandre Julliard40664c02009-02-11 20:40:58 +01007763fi
7764
Alexandre Julliard40664c02009-02-11 20:40:58 +01007765 if test $ac_cv_func_remove = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007767$as_echo_n "checking for remove in -lposix... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007768if test "${ac_cv_lib_posix_remove+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007769 $as_echo_n "(cached) " >&6
7770else
7771 ac_check_lib_save_LIBS=$LIBS
7772LIBS="-lposix $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007774/* end confdefs.h. */
7775
7776/* Override any GCC internal prototype to avoid an error.
7777 Use char because int might match the return type of a GCC
7778 builtin and then its argument prototype would still apply. */
7779#ifdef __cplusplus
7780extern "C"
7781#endif
7782char remove ();
7783int
7784main ()
7785{
7786return remove ();
7787 ;
7788 return 0;
7789}
7790_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007791if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007792 ac_cv_lib_posix_remove=yes
7793else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007794 ac_cv_lib_posix_remove=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007795fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007796rm -f core conftest.err conftest.$ac_objext \
7797 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007798LIBS=$ac_check_lib_save_LIBS
7799fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007801$as_echo "$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007802if test "x$ac_cv_lib_posix_remove" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007803 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7804fi
7805
7806 fi
7807
7808 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007809 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7810if test "x$ac_cv_func_shmat" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007811
Alexandre Julliard40664c02009-02-11 20:40:58 +01007812fi
7813
Alexandre Julliard40664c02009-02-11 20:40:58 +01007814 if test $ac_cv_func_shmat = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007816$as_echo_n "checking for shmat in -lipc... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007817if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007818 $as_echo_n "(cached) " >&6
7819else
7820 ac_check_lib_save_LIBS=$LIBS
7821LIBS="-lipc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007823/* end confdefs.h. */
7824
7825/* Override any GCC internal prototype to avoid an error.
7826 Use char because int might match the return type of a GCC
7827 builtin and then its argument prototype would still apply. */
7828#ifdef __cplusplus
7829extern "C"
7830#endif
7831char shmat ();
7832int
7833main ()
7834{
7835return shmat ();
7836 ;
7837 return 0;
7838}
7839_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007840if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007841 ac_cv_lib_ipc_shmat=yes
7842else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007843 ac_cv_lib_ipc_shmat=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007844fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007845rm -f core conftest.err conftest.$ac_objext \
7846 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007847LIBS=$ac_check_lib_save_LIBS
7848fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007850$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007851if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007852 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7853fi
7854
7855 fi
7856 fi
7857
7858 # Check for libraries that X11R6 Xt/Xaw programs need.
7859 ac_save_LDFLAGS=$LDFLAGS
7860 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7861 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7862 # check for ICE first), but we must link in the order -lSM -lICE or
7863 # we get undefined symbols. So assume we have SM if we have ICE.
7864 # These have to be linked with before -lX11, unlike the other
7865 # libraries we check for below, so use a different variable.
7866 # John Interrante, Karl Berry
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007868$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007869if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007870 $as_echo_n "(cached) " >&6
7871else
7872 ac_check_lib_save_LIBS=$LIBS
7873LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007875/* end confdefs.h. */
7876
7877/* Override any GCC internal prototype to avoid an error.
7878 Use char because int might match the return type of a GCC
7879 builtin and then its argument prototype would still apply. */
7880#ifdef __cplusplus
7881extern "C"
7882#endif
7883char IceConnectionNumber ();
7884int
7885main ()
7886{
7887return IceConnectionNumber ();
7888 ;
7889 return 0;
7890}
7891_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007892if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007893 ac_cv_lib_ICE_IceConnectionNumber=yes
7894else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007895 ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007896fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007897rm -f core conftest.err conftest.$ac_objext \
7898 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007899LIBS=$ac_check_lib_save_LIBS
7900fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007902$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007903if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007904 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7905fi
7906
7907 LDFLAGS=$ac_save_LDFLAGS
7908
7909fi
7910
7911
Rein Klazes7ff12562004-11-09 20:16:35 +00007912if test "$have_x" = "yes"
7913then
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007914 XLIB="-lX11"
Rein Klazes7ff12562004-11-09 20:16:35 +00007915 ac_save_CPPFLAGS="$CPPFLAGS"
7916 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7917
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007919$as_echo_n "checking for -lX11... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007920if test "${ac_cv_lib_soname_X11+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007921 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007922else
7923 ac_check_soname_save_LIBS=$LIBS
7924LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007926/* end confdefs.h. */
7927
7928/* Override any GCC internal prototype to avoid an error.
7929 Use char because int might match the return type of a GCC
7930 builtin and then its argument prototype would still apply. */
7931#ifdef __cplusplus
7932extern "C"
7933#endif
7934char XCreateWindow ();
7935int
7936main ()
7937{
7938return XCreateWindow ();
7939 ;
7940 return 0;
7941}
7942_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007943if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007944 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007945 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 +02007946 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'` ;;
7947 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7948 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007949fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007950rm -f core conftest.err conftest.$ac_objext \
7951 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007952 LIBS=$ac_check_soname_save_LIBS
7953fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007954if test "x$ac_cv_lib_soname_X11" = "x"; then :
7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007956$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007957
7958else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007960$as_echo "$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007961
7962cat >>confdefs.h <<_ACEOF
7963#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7964_ACEOF
7965
7966
7967fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007969$as_echo_n "checking for -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007970if test "${ac_cv_lib_soname_Xext+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007971 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007972else
7973 ac_check_soname_save_LIBS=$LIBS
7974LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007976/* end confdefs.h. */
7977
7978/* Override any GCC internal prototype to avoid an error.
7979 Use char because int might match the return type of a GCC
7980 builtin and then its argument prototype would still apply. */
7981#ifdef __cplusplus
7982extern "C"
7983#endif
7984char XextCreateExtension ();
7985int
7986main ()
7987{
7988return XextCreateExtension ();
7989 ;
7990 return 0;
7991}
7992_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007993if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007994 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007995 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 +02007996 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'` ;;
7997 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7998 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007999fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008000rm -f core conftest.err conftest.$ac_objext \
8001 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02008002 LIBS=$ac_check_soname_save_LIBS
8003fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008004if test "x$ac_cv_lib_soname_Xext" = "x"; then :
8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008006$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02008007
8008else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008010$as_echo "$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02008011
8012cat >>confdefs.h <<_ACEOF
8013#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
8014_ACEOF
8015
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008016 XLIB="-lXext $XLIB"
Alexandre Julliarda8518542007-07-09 22:43:45 +02008017fi
8018
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008019 for ac_header in X11/Xlib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008020 X11/XKBlib.h \
8021 X11/Xutil.h \
Andrew Riedi23e2cb12007-03-22 12:06:19 -07008022 X11/Xcursor/Xcursor.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008023 X11/extensions/shape.h \
8024 X11/extensions/XInput.h \
8025 X11/extensions/XShm.h \
Chris Robinson42584652007-09-22 18:19:08 -07008026 X11/extensions/Xcomposite.h \
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008027 X11/extensions/Xinerama.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00008028 X11/extensions/Xrandr.h \
8029 X11/extensions/Xrender.h \
André Hentschel7b285a42009-09-19 19:08:09 +02008030 X11/extensions/xf86vmode.h \
8031 X11/extensions/xf86vmproto.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008032do :
8033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8034ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
Alexandre Julliard73482142005-08-03 19:21:04 +00008035# include <X11/Xlib.h>
8036#endif
8037#ifdef HAVE_X11_XUTIL_H
8038# include <X11/Xutil.h>
8039#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008040"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008041if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008042 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01008043#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008044_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00008045
8046fi
8047
8048done
8049
8050
8051 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
8052 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008054$as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008055if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008056 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008057else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008058 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008059LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008061/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008062
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008063/* Override any GCC internal prototype to avoid an error.
8064 Use char because int might match the return type of a GCC
8065 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008066#ifdef __cplusplus
8067extern "C"
8068#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008069char XkbQueryExtension ();
8070int
8071main ()
8072{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008073return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008074 ;
8075 return 0;
8076}
8077_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008078if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008079 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008080else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008081 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008082fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008083rm -f core conftest.err conftest.$ac_objext \
8084 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008085LIBS=$ac_check_lib_save_LIBS
8086fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008088$as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008089if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
Patrik Stridvall24110281999-02-04 10:09:54 +00008090
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008091$as_echo "#define HAVE_XKB 1" >>confdefs.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008092
Patrik Stridvall24110281999-02-04 10:09:54 +00008093fi
8094
Alexandre Julliard255b4862003-10-15 04:09:55 +00008095 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008096
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008097 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8098 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008100$as_echo_n "checking for -lXcursor... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008101if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008102 $as_echo_n "(cached) " >&6
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008103else
8104 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008105LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008107/* end confdefs.h. */
8108
8109/* Override any GCC internal prototype to avoid an error.
8110 Use char because int might match the return type of a GCC
8111 builtin and then its argument prototype would still apply. */
8112#ifdef __cplusplus
8113extern "C"
8114#endif
8115char XcursorImageLoadCursor ();
8116int
8117main ()
8118{
8119return XcursorImageLoadCursor ();
8120 ;
8121 return 0;
8122}
8123_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008124if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008125 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008126 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 +02008127 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'` ;;
8128 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8129 esac
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008130fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008131rm -f core conftest.err conftest.$ac_objext \
8132 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008133 LIBS=$ac_check_soname_save_LIBS
8134fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008135if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008137$as_echo "not found" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008138
8139else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008141$as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008142
8143cat >>confdefs.h <<_ACEOF
8144#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8145_ACEOF
8146
8147
8148fi
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008149 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008150 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008151 case "x$with_xcursor" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008152 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 +01008153 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008154 *) as_fn_error $? "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8155This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008156esac
8157fi
8158
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008159 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8160 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008162$as_echo_n "checking for -lXi... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008163if test "${ac_cv_lib_soname_Xi+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008164 $as_echo_n "(cached) " >&6
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008165else
8166 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008167LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008169/* end confdefs.h. */
8170
8171/* Override any GCC internal prototype to avoid an error.
8172 Use char because int might match the return type of a GCC
8173 builtin and then its argument prototype would still apply. */
8174#ifdef __cplusplus
8175extern "C"
8176#endif
8177char XOpenDevice ();
8178int
8179main ()
8180{
8181return XOpenDevice ();
8182 ;
8183 return 0;
8184}
8185_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008186if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008187 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008188 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 +02008189 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'` ;;
8190 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8191 esac
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008192fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008193rm -f core conftest.err conftest.$ac_objext \
8194 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008195 LIBS=$ac_check_soname_save_LIBS
8196fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008197if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008199$as_echo "not found" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008200
8201else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008203$as_echo "$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008204
8205cat >>confdefs.h <<_ACEOF
8206#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8207_ACEOF
8208
8209
8210fi
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008211 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008212 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008213 case "x$with_xinput" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008214 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 +01008215 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008216 *) as_fn_error $? "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8217This is an error since --with-xinput was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008218esac
8219fi
8220
Alexandre Julliard255b4862003-10-15 04:09:55 +00008221 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8222 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008224$as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008225if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008226 $as_echo_n "(cached) " >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00008227else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008228 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008229LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008231/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008232
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008233/* Override any GCC internal prototype to avoid an error.
8234 Use char because int might match the return type of a GCC
8235 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008236#ifdef __cplusplus
8237extern "C"
8238#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008239char XShmQueryExtension ();
8240int
8241main ()
8242{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008243return XShmQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008244 ;
8245 return 0;
8246}
8247_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008248if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008249 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00008250else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008251 ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00008252fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008253rm -f core conftest.err conftest.$ac_objext \
8254 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008255LIBS=$ac_check_lib_save_LIBS
8256fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008258$as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008259if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
Francois Jacques5b6879c2000-07-28 23:04:54 +00008260
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008261$as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00008262
Francois Jacques5b6879c2000-07-28 23:04:54 +00008263fi
8264
Alexandre Julliard255b4862003-10-15 04:09:55 +00008265 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008266 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008267 case "x$with_xshm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008268 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 +01008269 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008270 *) as_fn_error $? "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8271This is an error since --with-xshm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008272esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008273fi
8274
Alexandre Julliard255b4862003-10-15 04:09:55 +00008275 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8276 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008278$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008279if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008280 $as_echo_n "(cached) " >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00008281else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008282 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008283LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008285/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008286
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008287/* Override any GCC internal prototype to avoid an error.
8288 Use char because int might match the return type of a GCC
8289 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008290#ifdef __cplusplus
8291extern "C"
8292#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008293char XShapeQueryExtension ();
8294int
8295main ()
8296{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008297return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008298 ;
8299 return 0;
8300}
8301_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008302if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008303 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00008304else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008305 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00008306fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008307rm -f core conftest.err conftest.$ac_objext \
8308 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008309LIBS=$ac_check_lib_save_LIBS
8310fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008312$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008313if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
Ove Kaavenc90fb252001-01-02 22:39:14 +00008314
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008315$as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00008316
Ove Kaavenc90fb252001-01-02 22:39:14 +00008317fi
8318
Alexandre Julliard255b4862003-10-15 04:09:55 +00008319 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008320 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008321 case "x$with_xshape" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008322 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 +01008323 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008324 *) as_fn_error $? "XShape ${notice_platform}development files not found, XShape won't be supported.
8325This is an error since --with-xshape was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008326esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008327fi
8328
André Hentschel7b285a42009-09-19 19:08:09 +02008329 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 +00008330 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008332$as_echo_n "checking for -lXxf86vm... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008333if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008334 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008335else
Francois Gougeta49beb42008-06-26 14:02:17 +02008336 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008337LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008339/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008340
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008341/* Override any GCC internal prototype to avoid an error.
8342 Use char because int might match the return type of a GCC
8343 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008344#ifdef __cplusplus
8345extern "C"
8346#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008347char XF86VidModeQueryExtension ();
8348int
8349main ()
8350{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008351return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008352 ;
8353 return 0;
8354}
8355_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008356if ac_fn_c_try_link "$LINENO"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008357 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008358 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 +02008359 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'` ;;
8360 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8361 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008362fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008363rm -f core conftest.err conftest.$ac_objext \
8364 conftest$ac_exeext conftest.$ac_ext
Francois Gougeta49beb42008-06-26 14:02:17 +02008365 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008366fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008367if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008369$as_echo "not found" >&6; }
Patrik Stridvall24110281999-02-04 10:09:54 +00008370
Francois Gougeta49beb42008-06-26 14:02:17 +02008371else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008373$as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
Francois Gougeta49beb42008-06-26 14:02:17 +02008374
8375cat >>confdefs.h <<_ACEOF
8376#define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008377_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008378
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008379
Patrik Stridvall24110281999-02-04 10:09:54 +00008380fi
Alexandre Julliard255b4862003-10-15 04:09:55 +00008381 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008382 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008383 case "x$with_xxf86vm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008384 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 +01008385 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008386 *) as_fn_error $? "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8387This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008388esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008389fi
8390
Alexandre Julliarda8518542007-07-09 22:43:45 +02008391 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 +02008392 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008394$as_echo_n "checking for -lXrender... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008395if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008396 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008397else
8398 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008399LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008401/* end confdefs.h. */
8402
8403/* Override any GCC internal prototype to avoid an error.
8404 Use char because int might match the return type of a GCC
8405 builtin and then its argument prototype would still apply. */
8406#ifdef __cplusplus
8407extern "C"
8408#endif
8409char XRenderQueryExtension ();
8410int
8411main ()
8412{
8413return XRenderQueryExtension ();
8414 ;
8415 return 0;
8416}
8417_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008418if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008419 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008420 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 +02008421 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'` ;;
8422 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8423 esac
Alexandre Julliard629639e2007-07-04 12:47:57 +02008424fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008425rm -f core conftest.err conftest.$ac_objext \
8426 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008427 LIBS=$ac_check_soname_save_LIBS
8428fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008429if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008431$as_echo "not found" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008432
8433else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008435$as_echo "$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008436
8437cat >>confdefs.h <<_ACEOF
8438#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8439_ACEOF
8440
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008442$as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008443if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008444 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008445else
8446 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008447LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008448cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008449/* end confdefs.h. */
8450
8451/* Override any GCC internal prototype to avoid an error.
8452 Use char because int might match the return type of a GCC
8453 builtin and then its argument prototype would still apply. */
8454#ifdef __cplusplus
8455extern "C"
8456#endif
8457char XRenderSetPictureTransform ();
8458int
8459main ()
8460{
8461return XRenderSetPictureTransform ();
8462 ;
8463 return 0;
8464}
8465_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008466if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008467 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8468else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008469 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Alexandre Julliard629639e2007-07-04 12:47:57 +02008470fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008471rm -f core conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008473LIBS=$ac_check_lib_save_LIBS
8474fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008476$as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008477if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008478
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008479$as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
Alexandre Julliard629639e2007-07-04 12:47:57 +02008480
8481fi
8482
8483fi
8484
Alexandre Julliard629639e2007-07-04 12:47:57 +02008485 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008486 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008487 case "x$with_xrender" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008488 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 +01008489 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008490 *) as_fn_error $? "libxrender ${notice_platform}development files not found, XRender won't be supported.
8491This is an error since --with-xrender was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008492esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008493fi
8494
Alexandre Julliard629639e2007-07-04 12:47:57 +02008495 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 +00008496 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008498/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008499#include <X11/Xlib.h>
8500#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008501int
8502main ()
8503{
Mike McCormackc7c9f932004-04-07 03:57:35 +00008504static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008505 ;
8506 return 0;
8507}
8508_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008509if ac_fn_c_try_compile "$LINENO"; then :
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008511$as_echo_n "checking for -lXrandr... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008512if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008513 $as_echo_n "(cached) " >&6
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008514else
8515 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008516LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008518/* end confdefs.h. */
8519
8520/* Override any GCC internal prototype to avoid an error.
8521 Use char because int might match the return type of a GCC
8522 builtin and then its argument prototype would still apply. */
8523#ifdef __cplusplus
8524extern "C"
8525#endif
8526char XRRQueryExtension ();
8527int
8528main ()
8529{
8530return XRRQueryExtension ();
8531 ;
8532 return 0;
8533}
8534_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008535if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008536 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008537 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 +02008538 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'` ;;
8539 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8540 esac
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008541fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008542rm -f core conftest.err conftest.$ac_objext \
8543 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008544 LIBS=$ac_check_soname_save_LIBS
8545fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008546if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008548$as_echo "not found" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008549
8550else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008552$as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008553
8554cat >>confdefs.h <<_ACEOF
8555#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8556_ACEOF
8557
8558
8559fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008560fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008561rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00008562 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008563 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008564 case "x$with_xrandr" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008565 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 +01008566 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008567 *) as_fn_error $? "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8568This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008569esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008570fi
8571
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008572 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8573 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008575/* end confdefs.h. */
8576#include <X11/Xlib.h>
8577#include <X11/extensions/Xinerama.h>
8578int
8579main ()
8580{
8581static typeof(XineramaQueryScreens) * func;
8582 ;
8583 return 0;
8584}
8585_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008586if ac_fn_c_try_compile "$LINENO"; then :
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008588$as_echo_n "checking for -lXinerama... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008589if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008590 $as_echo_n "(cached) " >&6
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008591else
8592 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008593LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008595/* end confdefs.h. */
8596
8597/* Override any GCC internal prototype to avoid an error.
8598 Use char because int might match the return type of a GCC
8599 builtin and then its argument prototype would still apply. */
8600#ifdef __cplusplus
8601extern "C"
8602#endif
8603char XineramaQueryScreens ();
8604int
8605main ()
8606{
8607return XineramaQueryScreens ();
8608 ;
8609 return 0;
8610}
8611_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008612if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008613 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008614 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 +02008615 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'` ;;
8616 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8617 esac
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008618fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008619rm -f core conftest.err conftest.$ac_objext \
8620 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008621 LIBS=$ac_check_soname_save_LIBS
8622fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008623if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008625$as_echo "not found" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008626
8627else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008629$as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008630
8631cat >>confdefs.h <<_ACEOF
8632#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8633_ACEOF
8634
8635
8636fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008637fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8639 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008640 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008641 case "x$with_xinerama" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008642 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 +01008643 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008644 *) as_fn_error $? "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8645This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008646esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008647fi
8648
Chris Robinson42584652007-09-22 18:19:08 -07008649 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8650 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008652$as_echo_n "checking for -lXcomposite... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008653if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008654 $as_echo_n "(cached) " >&6
Chris Robinson42584652007-09-22 18:19:08 -07008655else
8656 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008657LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008659/* end confdefs.h. */
8660
8661/* Override any GCC internal prototype to avoid an error.
8662 Use char because int might match the return type of a GCC
8663 builtin and then its argument prototype would still apply. */
8664#ifdef __cplusplus
8665extern "C"
8666#endif
8667char XCompositeRedirectWindow ();
8668int
8669main ()
8670{
8671return XCompositeRedirectWindow ();
8672 ;
8673 return 0;
8674}
8675_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008676if ac_fn_c_try_link "$LINENO"; then :
Chris Robinson42584652007-09-22 18:19:08 -07008677 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008678 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 -07008679 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'` ;;
8680 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8681 esac
Chris Robinson42584652007-09-22 18:19:08 -07008682fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008683rm -f core conftest.err conftest.$ac_objext \
8684 conftest$ac_exeext conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008685 LIBS=$ac_check_soname_save_LIBS
8686fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008687if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008689$as_echo "not found" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008690
8691else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008693$as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008694
8695cat >>confdefs.h <<_ACEOF
8696#define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8697_ACEOF
8698
8699
8700fi
Chris Robinson42584652007-09-22 18:19:08 -07008701 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008702 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008703 case "x$with_xcomposite" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008704 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 +01008705 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008706 *) as_fn_error $? "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8707This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008708esac
Chris Robinson42584652007-09-22 18:19:08 -07008709fi
8710
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008711 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 +09008712#include <X11/Xlib.h>
8713#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008714"
8715if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008716
8717cat >>confdefs.h <<_ACEOF
8718#define HAVE_XICCALLBACK_CALLBACK 1
8719_ACEOF
8720
8721
8722fi
8723
8724
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008725
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008726 opengl_msg=""
8727 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008728 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008729 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8730do :
8731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8732ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
Alexandre Julliard73482142005-08-03 19:21:04 +00008733# include <GL/glx.h>
8734#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008735"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008736if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008737 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01008738#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008739_ACEOF
8740
8741fi
8742
8743done
8744
Alexandre Julliard73482142005-08-03 19:21:04 +00008745 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8746 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008748$as_echo_n "checking for up-to-date OpenGL version... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008749if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008750 $as_echo_n "(cached) " >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008751else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008753/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008754#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008755int
8756main ()
8757{
Lionel Ulmer5c085701999-02-28 19:48:53 +00008758GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008759 ;
8760 return 0;
8761}
8762_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008763if ac_fn_c_try_compile "$LINENO"; then :
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008764 wine_cv_opengl_header_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008765else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008766 wine_cv_opengl_header_version_OK="no"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008767fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008769fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008771$as_echo "$wine_cv_opengl_header_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008772
Alexandre Julliardcc6a08c2006-08-24 14:34:22 +02008773 if test "$wine_cv_opengl_header_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008774 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008776$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008777if test "${ac_cv_lib_soname_GL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008778 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008779else
Alexandre Julliard31353e12007-07-04 12:44:12 +02008780 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008781LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008783/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008784
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008785/* Override any GCC internal prototype to avoid an error.
8786 Use char because int might match the return type of a GCC
8787 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008788#ifdef __cplusplus
8789extern "C"
8790#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008791char glXCreateContext ();
8792int
8793main ()
8794{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008795return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008796 ;
8797 return 0;
8798}
8799_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008800if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard31353e12007-07-04 12:44:12 +02008801 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008802 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 +02008803 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'` ;;
8804 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8805 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008806fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008807rm -f core conftest.err conftest.$ac_objext \
8808 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard31353e12007-07-04 12:44:12 +02008809 LIBS=$ac_check_soname_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008810fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008811if test "x$ac_cv_lib_soname_GL" = "x"; then :
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008813$as_echo "not found" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008815$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008816if test "${ac_cv_lib_soname_GL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008817 $as_echo_n "(cached) " >&6
Francois Gougetd701ee22007-12-18 10:17:20 +01008818else
8819 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008820LIBS="-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 +02008821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008822/* end confdefs.h. */
8823
8824/* Override any GCC internal prototype to avoid an error.
8825 Use char because int might match the return type of a GCC
8826 builtin and then its argument prototype would still apply. */
8827#ifdef __cplusplus
8828extern "C"
8829#endif
8830char glXCreateContext ();
8831int
8832main ()
8833{
8834return glXCreateContext ();
8835 ;
8836 return 0;
8837}
8838_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008839if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetd701ee22007-12-18 10:17:20 +01008840 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008841 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 +01008842 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'` ;;
8843 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8844 esac
Francois Gougetd701ee22007-12-18 10:17:20 +01008845fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008846rm -f core conftest.err conftest.$ac_objext \
8847 conftest$ac_exeext conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008848 LIBS=$ac_check_soname_save_LIBS
8849fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008850if test "x$ac_cv_lib_soname_GL" = "x"; then :
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008852$as_echo "not found" >&6; }
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008853 if test -f /usr/X11R6/lib/libGL.a
Francois Gougetd701ee22007-12-18 10:17:20 +01008854 then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008855 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008856This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
Francois Gougetd701ee22007-12-18 10:17:20 +01008857 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008858 opengl_msg="No OpenGL library found on this system."
Francois Gougetd701ee22007-12-18 10:17:20 +01008859 fi
8860else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008862$as_echo "$ac_cv_lib_soname_GL" >&6; }
Francois Gougetd701ee22007-12-18 10:17:20 +01008863
8864cat >>confdefs.h <<_ACEOF
8865#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8866_ACEOF
8867
8868 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 +01008869
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008870$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Francois Gougetd701ee22007-12-18 10:17:20 +01008871
8872fi
Alexandre Julliard31353e12007-07-04 12:44:12 +02008873else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008875$as_echo "$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard31353e12007-07-04 12:44:12 +02008876
8877cat >>confdefs.h <<_ACEOF
8878#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8879_ACEOF
8880
8881 OPENGL_LIBS="-lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008882
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008883$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008884
Alexandre Julliardc84c4782006-09-22 09:36:12 +02008885fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008886 if test "$ac_cv_header_GL_glu_h" = "yes"
8887 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008889$as_echo_n "checking for -lGLU... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008890if test "${ac_cv_lib_soname_GLU+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008891 $as_echo_n "(cached) " >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008892else
Alexandre Julliardad798732008-05-01 13:29:02 +02008893 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008894LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008896/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008897
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008898/* Override any GCC internal prototype to avoid an error.
8899 Use char because int might match the return type of a GCC
8900 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008901#ifdef __cplusplus
8902extern "C"
8903#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008904char gluLookAt ();
8905int
8906main ()
8907{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008908return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008909 ;
8910 return 0;
8911}
8912_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008913if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008914 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008915 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 +02008916 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'` ;;
8917 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8918 esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008919fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008920rm -f core conftest.err conftest.$ac_objext \
8921 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardad798732008-05-01 13:29:02 +02008922 LIBS=$ac_check_soname_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008923fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008924if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008926$as_echo "not found" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008927
Alexandre Julliardad798732008-05-01 13:29:02 +02008928else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008930$as_echo "$ac_cv_lib_soname_GLU" >&6; }
Alexandre Julliardad798732008-05-01 13:29:02 +02008931
8932cat >>confdefs.h <<_ACEOF
8933#define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8934_ACEOF
8935
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02008936
Alexandre Julliardad798732008-05-01 13:29:02 +02008937fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008938 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008939 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008940 case "x$with_glu" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008941 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 +02008942 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008943 *) as_fn_error $? "libGLU ${notice_platform}development files not found, GLU won't be supported.
8944This is an error since --with-glu was requested." "$LINENO" 5 ;;
Alexandre Julliardad798732008-05-01 13:29:02 +02008945esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008946fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008947 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008948 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008949 fi
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008950 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008951 opengl_msg="OpenGL development headers not found."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008952 fi
Alexandre Julliard8e9504d2008-09-24 13:11:11 +02008953 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8954 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8955 else
8956 enable_opengl32=${enable_opengl32:-no}
8957 enable_glu32=${enable_glu32:-no}
Patrik Stridvall24110281999-02-04 10:09:54 +00008958 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008959 if test -n "$opengl_msg"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008960 case "x$with_opengl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008961 x) as_fn_append wine_warnings "|$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008962OpenGL and Direct3D won't be supported." ;;
8963 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008964 *) as_fn_error $? "$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008965OpenGL and Direct3D won't be supported.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02008966This is an error since --with-opengl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008967esac
8968fi
8969
Francois Gouget6f670b12002-10-10 17:54:27 +00008970 NASLIBS=""
8971
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008972 for ac_header in audio/audiolib.h
8973do :
8974 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8975if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008976 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008977#define HAVE_AUDIO_AUDIOLIB_H 1
Francois Gouget6f670b12002-10-10 17:54:27 +00008978_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008979 for ac_header in audio/soundlib.h
8980do :
8981 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8982"
8983if test "x$ac_cv_header_audio_soundlib_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_SOUNDLIB_H 1
Francois Gouget6f670b12002-10-10 17:54:27 +00008986_ACEOF
8987
8988fi
8989
8990done
8991
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008993$as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008994if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008995 $as_echo_n "(cached) " >&6
Francois Gouget6f670b12002-10-10 17:54:27 +00008996else
8997 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008998LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008999cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009000/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009001
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009002/* Override any GCC internal prototype to avoid an error.
9003 Use char because int might match the return type of a GCC
9004 builtin and then its argument prototype would still apply. */
Francois Gouget6f670b12002-10-10 17:54:27 +00009005#ifdef __cplusplus
9006extern "C"
9007#endif
Francois Gouget6f670b12002-10-10 17:54:27 +00009008char AuCreateFlow ();
9009int
9010main ()
9011{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009012return AuCreateFlow ();
Francois Gouget6f670b12002-10-10 17:54:27 +00009013 ;
9014 return 0;
9015}
9016_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009017if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00009018 ac_cv_lib_audio_AuCreateFlow=yes
9019else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009020 ac_cv_lib_audio_AuCreateFlow=no
Francois Gouget6f670b12002-10-10 17:54:27 +00009021fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009022rm -f core conftest.err conftest.$ac_objext \
9023 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00009024LIBS=$ac_check_lib_save_LIBS
9025fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009027$as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009028if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00009029
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009030$as_echo "#define HAVE_NAS 1" >>confdefs.h
Francois Gouget6f670b12002-10-10 17:54:27 +00009031
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009033$as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009034if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009035 $as_echo_n "(cached) " >&6
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009036else
9037 ac_check_lib_save_LIBS=$LIBS
9038LIBS="-lXau $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009039cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009040/* end confdefs.h. */
9041
9042/* Override any GCC internal prototype to avoid an error.
9043 Use char because int might match the return type of a GCC
9044 builtin and then its argument prototype would still apply. */
9045#ifdef __cplusplus
9046extern "C"
9047#endif
9048char XauGetBestAuthByAddr ();
9049int
9050main ()
9051{
9052return XauGetBestAuthByAddr ();
9053 ;
9054 return 0;
9055}
9056_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009057if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009058 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
9059else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009060 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009061fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009062rm -f core conftest.err conftest.$ac_objext \
9063 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009064LIBS=$ac_check_lib_save_LIBS
9065fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009067$as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009068if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
Alexandre Julliardfd03c502009-08-17 15:11:08 +02009069 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009070else
Alexandre Julliardfd03c502009-08-17 15:11:08 +02009071 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009072fi
9073
9074
Francois Gouget6f670b12002-10-10 17:54:27 +00009075fi
9076
9077fi
9078
9079done
9080
9081
Ove Kaaven1eb593c1999-02-14 09:34:46 +00009082 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00009083else
9084 XLIB=""
9085 X_CFLAGS=""
9086 X_LIBS=""
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02009087 enable_winex11_drv=${enable_winex11_drv:-no}
9088 enable_opengl32=${enable_opengl32:-no}
9089 enable_glu32=${enable_glu32:-no}
Patrik Stridvallea584721998-11-01 16:22:07 +00009090fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009091if test "x$XLIB" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009092 case "x$with_x" in
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009093 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009094 *) as_fn_error $? "X ${notice_platform}development files not found. Wine will be built
Gerald Pfeifer5805d8b2010-09-19 21:10:13 +02009095without X support, which probably isn't what you want. You will need
9096to install ${notice_platform}development packages of Xlib/Xfree86 at the very least.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009097Use the --without-x option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009098esac
9099fi
9100
Adam Martinson2eb2f712010-12-28 12:46:09 -06009101if test "$ac_cv_header_CL_cl_h" = "yes"
Peter Urbanec65c84d72010-12-02 23:41:48 +11009102then
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clGetPlatformInfo in -lOpenCL" >&5
9104$as_echo_n "checking for clGetPlatformInfo in -lOpenCL... " >&6; }
9105if test "${ac_cv_lib_OpenCL_clGetPlatformInfo+set}" = set; then :
9106 $as_echo_n "(cached) " >&6
9107else
9108 ac_check_lib_save_LIBS=$LIBS
9109LIBS="-lOpenCL $LIBS"
9110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9111/* end confdefs.h. */
9112
9113/* Override any GCC internal prototype to avoid an error.
9114 Use char because int might match the return type of a GCC
9115 builtin and then its argument prototype would still apply. */
9116#ifdef __cplusplus
9117extern "C"
9118#endif
9119char clGetPlatformInfo ();
9120int
9121main ()
9122{
9123return clGetPlatformInfo ();
9124 ;
9125 return 0;
9126}
9127_ACEOF
9128if ac_fn_c_try_link "$LINENO"; then :
9129 ac_cv_lib_OpenCL_clGetPlatformInfo=yes
9130else
9131 ac_cv_lib_OpenCL_clGetPlatformInfo=no
9132fi
9133rm -f core conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9135LIBS=$ac_check_lib_save_LIBS
9136fi
9137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_OpenCL_clGetPlatformInfo" >&5
9138$as_echo "$ac_cv_lib_OpenCL_clGetPlatformInfo" >&6; }
9139if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" = x""yes; then :
9140 LIBOPENCL="-lOpenCL"
9141
9142fi
9143
9144fi
9145if test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes; then :
9146 case "x$with_opencl" in
9147 x) as_fn_append wine_notices "|OpenCL ${notice_platform}development files not found, OpenCL won't be supported." ;;
9148 xno) ;;
9149 *) as_fn_error $? "OpenCL ${notice_platform}development files not found, OpenCL won't be supported.
9150This is an error since --with-opencl was requested." "$LINENO" 5 ;;
9151esac
9152fi
9153test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes && enable_opencl=${enable_opencl:-no}
9154
Alexandre Julliard902da691995-11-05 14:39:02 +00009155
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009156XML2LIBS=""
9157
9158XML2INCL=""
9159
Mike McCormackf3719a82005-09-03 09:39:38 +00009160XSLTINCL=""
9161
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009162if test "x$with_xml" != "xno"
Mike McCormack90c75bd2005-08-08 18:36:53 +00009163then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009164 ac_save_CPPFLAGS="$CPPFLAGS"
9165 if test "$PKG_CONFIG" != "false"
9166 then
9167 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9168 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9169 else
9170 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9171 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9172 fi
9173 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009174 for ac_header in libxml/parser.h
9175do :
9176 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9177if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009178 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009179#define HAVE_LIBXML_PARSER_H 1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009180_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009182$as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009183if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009184 $as_echo_n "(cached) " >&6
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009185else
9186 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +00009187LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009189/* end confdefs.h. */
9190
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009191/* Override any GCC internal prototype to avoid an error.
9192 Use char because int might match the return type of a GCC
9193 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009194#ifdef __cplusplus
9195extern "C"
9196#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +00009197char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009198int
9199main ()
9200{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009201return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009202 ;
9203 return 0;
9204}
9205_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009206if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack90c75bd2005-08-08 18:36:53 +00009207 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009208else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009209 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009210fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009211rm -f core conftest.err conftest.$ac_objext \
9212 conftest$ac_exeext conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009213LIBS=$ac_check_lib_save_LIBS
9214fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009216$as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009217if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009218
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009219$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009220
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009221 XML2LIBS="$ac_xml_libs"
9222 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009223fi
9224
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009226$as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009227if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009228 $as_echo_n "(cached) " >&6
Mike McCormack70adb8f2005-08-12 10:35:17 +00009229else
9230 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009231LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009233/* end confdefs.h. */
9234
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009235/* Override any GCC internal prototype to avoid an error.
9236 Use char because int might match the return type of a GCC
9237 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +00009238#ifdef __cplusplus
9239extern "C"
9240#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +00009241char xmlReadMemory ();
9242int
9243main ()
9244{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009245return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +00009246 ;
9247 return 0;
9248}
9249_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009250if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009251 ac_cv_lib_xml2_xmlReadMemory=yes
9252else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009253 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +00009254fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009255rm -f core conftest.err conftest.$ac_objext \
9256 conftest$ac_exeext conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009257LIBS=$ac_check_lib_save_LIBS
9258fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009260$as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009261if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009262
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009263$as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
Mike McCormack70adb8f2005-08-12 10:35:17 +00009264
9265fi
9266
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009268$as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009269if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009270 $as_echo_n "(cached) " >&6
Lei Zhang6a530ab2006-11-29 15:59:03 -08009271else
9272 ac_check_lib_save_LIBS=$LIBS
9273LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009274cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009275/* end confdefs.h. */
9276
9277/* Override any GCC internal prototype to avoid an error.
9278 Use char because int might match the return type of a GCC
9279 builtin and then its argument prototype would still apply. */
9280#ifdef __cplusplus
9281extern "C"
9282#endif
9283char xmlNewDocPI ();
9284int
9285main ()
9286{
9287return xmlNewDocPI ();
9288 ;
9289 return 0;
9290}
9291_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009292if ac_fn_c_try_link "$LINENO"; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009293 ac_cv_lib_xml2_xmlNewDocPI=yes
9294else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009295 ac_cv_lib_xml2_xmlNewDocPI=no
Lei Zhang6a530ab2006-11-29 15:59:03 -08009296fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009297rm -f core conftest.err conftest.$ac_objext \
9298 conftest$ac_exeext conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009299LIBS=$ac_check_lib_save_LIBS
9300fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009302$as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009303if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009304
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009305$as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
Lei Zhang6a530ab2006-11-29 15:59:03 -08009306
9307fi
9308
Adam Martinson6ee22312010-11-22 20:54:54 -06009309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetParserStructuredErrors in -lxml2" >&5
9310$as_echo_n "checking for xmlSchemaSetParserStructuredErrors in -lxml2... " >&6; }
9311if test "${ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors+set}" = set; then :
9312 $as_echo_n "(cached) " >&6
9313else
9314 ac_check_lib_save_LIBS=$LIBS
9315LIBS="-lxml2 $ac_xml_libs $LIBS"
9316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317/* end confdefs.h. */
9318
9319/* Override any GCC internal prototype to avoid an error.
9320 Use char because int might match the return type of a GCC
9321 builtin and then its argument prototype would still apply. */
9322#ifdef __cplusplus
9323extern "C"
9324#endif
9325char xmlSchemaSetParserStructuredErrors ();
9326int
9327main ()
9328{
9329return xmlSchemaSetParserStructuredErrors ();
9330 ;
9331 return 0;
9332}
9333_ACEOF
9334if ac_fn_c_try_link "$LINENO"; then :
9335 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=yes
9336else
9337 ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors=no
9338fi
9339rm -f core conftest.err conftest.$ac_objext \
9340 conftest$ac_exeext conftest.$ac_ext
9341LIBS=$ac_check_lib_save_LIBS
9342fi
9343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&5
9344$as_echo "$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" >&6; }
9345if test "x$ac_cv_lib_xml2_xmlSchemaSetParserStructuredErrors" = x""yes; then :
9346
9347$as_echo "#define HAVE_XMLSCHEMASSETPARSERSTRUCTUREDERRORS 1" >>confdefs.h
9348
9349fi
9350
Adam Martinsonbe4d0e92010-11-01 14:11:16 -05009351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSchemaSetValidStructuredErrors in -lxml2" >&5
9352$as_echo_n "checking for xmlSchemaSetValidStructuredErrors in -lxml2... " >&6; }
9353if test "${ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors+set}" = set; then :
9354 $as_echo_n "(cached) " >&6
9355else
9356 ac_check_lib_save_LIBS=$LIBS
9357LIBS="-lxml2 $ac_xml_libs $LIBS"
9358cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9359/* end confdefs.h. */
9360
9361/* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
9363 builtin and then its argument prototype would still apply. */
9364#ifdef __cplusplus
9365extern "C"
9366#endif
9367char xmlSchemaSetValidStructuredErrors ();
9368int
9369main ()
9370{
9371return xmlSchemaSetValidStructuredErrors ();
9372 ;
9373 return 0;
9374}
9375_ACEOF
9376if ac_fn_c_try_link "$LINENO"; then :
9377 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=yes
9378else
9379 ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors=no
9380fi
9381rm -f core conftest.err conftest.$ac_objext \
9382 conftest$ac_exeext conftest.$ac_ext
9383LIBS=$ac_check_lib_save_LIBS
9384fi
9385{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&5
9386$as_echo "$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" >&6; }
9387if test "x$ac_cv_lib_xml2_xmlSchemaSetValidStructuredErrors" = x""yes; then :
9388
9389$as_echo "#define HAVE_XMLSCHEMASSETVALIDSTRUCTUREDERRORS 1" >>confdefs.h
9390
9391fi
9392
Adam Martinson82f73c82010-11-11 15:16:24 -06009393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlFirstElementChild in -lxml2" >&5
9394$as_echo_n "checking for xmlFirstElementChild in -lxml2... " >&6; }
9395if test "${ac_cv_lib_xml2_xmlFirstElementChild+set}" = set; then :
9396 $as_echo_n "(cached) " >&6
9397else
9398 ac_check_lib_save_LIBS=$LIBS
9399LIBS="-lxml2 $ac_xml_libs $LIBS"
9400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9401/* end confdefs.h. */
9402
9403/* Override any GCC internal prototype to avoid an error.
9404 Use char because int might match the return type of a GCC
9405 builtin and then its argument prototype would still apply. */
9406#ifdef __cplusplus
9407extern "C"
9408#endif
9409char xmlFirstElementChild ();
9410int
9411main ()
9412{
9413return xmlFirstElementChild ();
9414 ;
9415 return 0;
9416}
9417_ACEOF
9418if ac_fn_c_try_link "$LINENO"; then :
9419 ac_cv_lib_xml2_xmlFirstElementChild=yes
9420else
9421 ac_cv_lib_xml2_xmlFirstElementChild=no
9422fi
9423rm -f core conftest.err conftest.$ac_objext \
9424 conftest$ac_exeext conftest.$ac_ext
9425LIBS=$ac_check_lib_save_LIBS
9426fi
9427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlFirstElementChild" >&5
9428$as_echo "$ac_cv_lib_xml2_xmlFirstElementChild" >&6; }
9429if test "x$ac_cv_lib_xml2_xmlFirstElementChild" = x""yes; then :
9430
9431$as_echo "#define HAVE_XMLFIRSTELEMENTCHILD 1" >>confdefs.h
9432
9433fi
9434
Adam Martinson9408b492010-11-02 17:20:08 -05009435 ac_fn_c_check_type "$LINENO" "xmlDocProperties" "ac_cv_type_xmlDocProperties" "#include <libxml/tree.h>
9436"
9437if test "x$ac_cv_type_xmlDocProperties" = x""yes; then :
9438
9439$as_echo "#define HAVE_XMLDOC_PROPERTIES 1" >>confdefs.h
9440
9441fi
9442
Mike McCormack70adb8f2005-08-12 10:35:17 +00009443
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009444fi
9445
9446done
9447
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009448 CPPFLAGS="$ac_save_CPPFLAGS"
9449fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009450if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009451 case "x$with_xml" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009452 x) as_fn_append wine_warnings "|libxml2 ${notice_platform}development files not found, XML won't be supported." ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009453 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009454 *) as_fn_error $? "libxml2 ${notice_platform}development files not found, XML won't be supported.
9455This is an error since --with-xml was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009456esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009457fi
9458
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009459if test "x$with_xslt" != "xno"
Emmanuel Maillard2a98b402007-06-22 02:58:39 +02009460then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009461 if test "$PKG_CONFIG" != "false"
9462 then
9463 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9464 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9465 else
9466 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9467 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9468 fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009469 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009470 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009471 for ac_header in libxslt/pattern.h libxslt/transform.h
9472do :
9473 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9474ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
Vincent Bérond7f64242005-09-15 09:39:09 +00009475# include <libxslt/pattern.h>
9476#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009477"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009478if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Mike McCormackf3719a82005-09-03 09:39:38 +00009479 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009480#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackf3719a82005-09-03 09:39:38 +00009481_ACEOF
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009482
9483fi
9484
9485done
9486
9487 CPPFLAGS="$ac_save_CPPFLAGS"
9488 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9489 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009491$as_echo_n "checking for -lxslt... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009492if test "${ac_cv_lib_soname_xslt+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009493 $as_echo_n "(cached) " >&6
Mike McCormackf3719a82005-09-03 09:39:38 +00009494else
Francois Gouget3d384f12008-11-17 19:29:32 +01009495 ac_check_soname_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009496LIBS="-lxslt $ac_xslt_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +00009498/* end confdefs.h. */
9499
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009500/* Override any GCC internal prototype to avoid an error.
9501 Use char because int might match the return type of a GCC
9502 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +00009503#ifdef __cplusplus
9504extern "C"
9505#endif
Mike McCormackf3719a82005-09-03 09:39:38 +00009506char xsltCompilePattern ();
9507int
9508main ()
9509{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009510return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +00009511 ;
9512 return 0;
9513}
9514_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009515if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget3d384f12008-11-17 19:29:32 +01009516 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009517 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 +01009518 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'` ;;
9519 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9520 esac
Mike McCormackf3719a82005-09-03 09:39:38 +00009521fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009522rm -f core conftest.err conftest.$ac_objext \
9523 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3d384f12008-11-17 19:29:32 +01009524 LIBS=$ac_check_soname_save_LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009525fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009526if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009528$as_echo "not found" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +00009529
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009530else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009532$as_echo "$ac_cv_lib_soname_xslt" >&6; }
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009533
Francois Gouget3d384f12008-11-17 19:29:32 +01009534cat >>confdefs.h <<_ACEOF
9535#define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009536_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +00009537
Francois Gouget3d384f12008-11-17 19:29:32 +01009538 XSLTINCL="$ac_xslt_cflags"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009539fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009540 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009541fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009542if test "x$ac_cv_lib_soname_xslt" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009543 case "x$with_xslt" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009544 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 +01009545 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009546 *) as_fn_error $? "libxslt ${notice_platform}development files not found, xslt won't be supported.
9547This is an error since --with-xslt was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009548esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009549fi
9550
Alexandre Julliard00068982006-04-18 16:47:53 +02009551HALINCL=""
9552
Francois Gouget295a0cd2009-01-09 20:22:22 +01009553if test "x$with_hal" != "xno"
Alexandre Julliard00068982006-04-18 16:47:53 +02009554then
9555 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009556 if test "$PKG_CONFIG" != "false"
9557 then
9558 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9559 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9560 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9561 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009562 for ac_header in dbus/dbus.h hal/libhal.h
9563do :
9564 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9565ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009566if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliard00068982006-04-18 16:47:53 +02009567 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009568#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliard00068982006-04-18 16:47:53 +02009569_ACEOF
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009570
9571fi
9572
9573done
9574
9575 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9576 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009578$as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009579if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009580 $as_echo_n "(cached) " >&6
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009581else
9582 ac_check_lib_save_LIBS=$LIBS
9583LIBS="-ldbus-1 $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009585/* end confdefs.h. */
9586
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009587/* Override any GCC internal prototype to avoid an error.
9588 Use char because int might match the return type of a GCC
9589 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009590#ifdef __cplusplus
9591extern "C"
9592#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009593char dbus_connection_close ();
9594int
9595main ()
9596{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009597return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009598 ;
9599 return 0;
9600}
9601_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009602if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009603 ac_cv_lib_dbus_1_dbus_connection_close=yes
9604else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009605 ac_cv_lib_dbus_1_dbus_connection_close=no
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009606fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009607rm -f core conftest.err conftest.$ac_objext \
9608 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009609LIBS=$ac_check_lib_save_LIBS
9610fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009612$as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009613if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009615$as_echo_n "checking for -lhal... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009616if test "${ac_cv_lib_soname_hal+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009617 $as_echo_n "(cached) " >&6
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009618else
9619 ac_check_soname_save_LIBS=$LIBS
9620LIBS="-lhal $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009622/* end confdefs.h. */
Alexandre Julliard00068982006-04-18 16:47:53 +02009623
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009624/* Override any GCC internal prototype to avoid an error.
9625 Use char because int might match the return type of a GCC
9626 builtin and then its argument prototype would still apply. */
9627#ifdef __cplusplus
9628extern "C"
9629#endif
9630char libhal_ctx_new ();
9631int
9632main ()
9633{
9634return libhal_ctx_new ();
9635 ;
9636 return 0;
9637}
9638_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009639if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009640 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009641 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 +02009642 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'` ;;
9643 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9644 esac
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009645fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009646rm -f core conftest.err conftest.$ac_objext \
9647 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009648 LIBS=$ac_check_soname_save_LIBS
9649fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009650if test "x$ac_cv_lib_soname_hal" = "x"; then :
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009652$as_echo "not found" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009653
9654else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009656$as_echo "$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009657
9658cat >>confdefs.h <<_ACEOF
9659#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
Alexandre Julliard00068982006-04-18 16:47:53 +02009660_ACEOF
9661
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009662 HALINCL="$ac_hal_cflags"
Alexandre Julliard00068982006-04-18 16:47:53 +02009663fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009664fi
9665
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009666 fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009667 CPPFLAGS="$ac_save_CPPFLAGS"
9668fi
Alexandre Julliardd8062732010-04-26 06:57:49 -05009669if 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 +01009670 case "x$with_hal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009671 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 +01009672 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009673 *) as_fn_error $? "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9674This is an error since --with-hal was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009675esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009676fi
9677
Francois Gouget295a0cd2009-01-09 20:22:22 +01009678if test "x$with_gnutls" != "xno"
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009679then
9680 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009681 if test "$PKG_CONFIG" != "false"
9682 then
9683 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9684 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9685 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9686 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009687 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9688if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gouget3aae9542008-10-24 11:24:58 +02009690/* end confdefs.h. */
9691#include <gnutls/gnutls.h>
9692int
9693main ()
9694{
Henri Verbeet8c4a2972008-12-30 09:45:20 +01009695typeof(gnutls_mac_get_key_size) *pfunc;
Francois Gouget3aae9542008-10-24 11:24:58 +02009696 ;
9697 return 0;
9698}
9699_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009700if ac_fn_c_try_compile "$LINENO"; then :
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009702$as_echo_n "checking for -lgnutls... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009703if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009704 $as_echo_n "(cached) " >&6
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009705else
9706 ac_check_soname_save_LIBS=$LIBS
9707LIBS="-lgnutls $ac_gnutls_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009709/* end confdefs.h. */
9710
9711/* Override any GCC internal prototype to avoid an error.
9712 Use char because int might match the return type of a GCC
9713 builtin and then its argument prototype would still apply. */
9714#ifdef __cplusplus
9715extern "C"
9716#endif
9717char gnutls_global_init ();
9718int
9719main ()
9720{
9721return gnutls_global_init ();
9722 ;
9723 return 0;
9724}
9725_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009726if ac_fn_c_try_link "$LINENO"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009727 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009728 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 +02009729 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'` ;;
9730 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9731 esac
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009732fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009733rm -f core conftest.err conftest.$ac_objext \
9734 conftest$ac_exeext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009735 LIBS=$ac_check_soname_save_LIBS
9736fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009737if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009739$as_echo "not found" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009740
9741else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009743$as_echo "$ac_cv_lib_soname_gnutls" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009744
9745cat >>confdefs.h <<_ACEOF
9746#define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9747_ACEOF
9748
9749 GNUTLSINCL="$ac_gnutls_cflags"
9750
9751fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009752fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009754fi
9755
9756
9757 CPPFLAGS="$ac_save_CPPFLAGS"
9758fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009759if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009760 case "x$with_gnutls" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009761 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009762 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009763 *) as_fn_error $? "libgnutls ${notice_platform}development files not found, no schannel support.
9764This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009765esac
9766fi
9767
Alexandre Julliard48957682001-12-26 23:08:31 +00009768CURSESLIBS=""
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009769if test "$ac_cv_header_ncurses_h" = "yes"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00009770then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009772$as_echo_n "checking for -lncurses... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009773if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009774 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009775else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009776 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009777LIBS="-lncurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009779/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009780
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009781/* Override any GCC internal prototype to avoid an error.
9782 Use char because int might match the return type of a GCC
9783 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009784#ifdef __cplusplus
9785extern "C"
9786#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009787char waddch ();
9788int
9789main ()
9790{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009791return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009792 ;
9793 return 0;
9794}
9795_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009796if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009797 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009798 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 +02009799 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'` ;;
9800 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9801 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009802fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009803rm -f core conftest.err conftest.$ac_objext \
9804 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009805 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009806fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009807if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009809$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009810
9811else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009813$as_echo "$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009814
9815cat >>confdefs.h <<_ACEOF
9816#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9817_ACEOF
9818
9819 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009820fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009821elif test "$ac_cv_header_curses_h" = "yes"
9822then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009824$as_echo_n "checking for -lcurses... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009825if test "${ac_cv_lib_soname_curses+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009826 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009827else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009828 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009829LIBS="-lcurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009831/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009832
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009833/* Override any GCC internal prototype to avoid an error.
9834 Use char because int might match the return type of a GCC
9835 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009836#ifdef __cplusplus
9837extern "C"
9838#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009839char waddch ();
9840int
9841main ()
9842{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009843return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009844 ;
9845 return 0;
9846}
9847_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009848if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009849 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009850 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 +02009851 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'` ;;
9852 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9853 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009854fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009855rm -f core conftest.err conftest.$ac_objext \
9856 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009857 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009858fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009859if test "x$ac_cv_lib_soname_curses" = "x"; then :
9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009861$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009862
9863else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009865$as_echo "$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009866
9867cat >>confdefs.h <<_ACEOF
9868#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9869_ACEOF
9870
9871 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009872fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009873fi
9874ac_save_LIBS="$LIBS"
9875LIBS="$LIBS $CURSESLIBS"
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009876for ac_func in mousemask
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009877do :
9878 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9879if test "x$ac_cv_func_mousemask" = x""yes; then :
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009880 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009881#define HAVE_MOUSEMASK 1
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009882_ACEOF
9883
9884fi
9885done
9886
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009887LIBS="$ac_save_LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009888if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009889 case "x$with_curses" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009890 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 +01009891 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +02009892 *) as_fn_error $? "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9893This is an error since --with-curses was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009894esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009895fi
9896
Francois Gouget3fe5d802009-01-14 14:16:06 +01009897if test "x$with_sane" != "xno"
9898then
9899 ac_save_CPPFLAGS="$CPPFLAGS"
9900 # Extract the first word of "sane-config", so it can be a program name with args.
Shi Quan He6b0720f2002-03-21 02:58:39 +00009901set dummy sane-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009903$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009904if test "${ac_cv_prog_sane_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009905 $as_echo_n "(cached) " >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009906else
9907 if test -n "$sane_devel"; then
9908 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9909else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9911for as_dir in $PATH
9912do
9913 IFS=$as_save_IFS
9914 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009915 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009916 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 +00009917 ac_cv_prog_sane_devel="sane-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009919 break 2
9920 fi
9921done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009922 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009923IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +00009924
9925 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9926fi
9927fi
9928sane_devel=$ac_cv_prog_sane_devel
9929if test -n "$sane_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009931$as_echo "$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009932else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009934$as_echo "no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009935fi
9936
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009937
Francois Gouget3fe5d802009-01-14 14:16:06 +01009938 if test "$sane_devel" != "no"
9939 then
9940 ac_sane_incl="`$sane_devel --cflags`"
9941 ac_sane_libs="`$sane_devel --ldflags`"
9942 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9943 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009944 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9945if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009947$as_echo_n "checking for -lsane... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009948if test "${ac_cv_lib_soname_sane+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009949 $as_echo_n "(cached) " >&6
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009950else
9951 ac_check_soname_save_LIBS=$LIBS
Francois Gougeta9d7bab2008-07-20 22:41:41 +02009952LIBS="-lsane $ac_sane_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009954/* end confdefs.h. */
9955
9956/* Override any GCC internal prototype to avoid an error.
9957 Use char because int might match the return type of a GCC
9958 builtin and then its argument prototype would still apply. */
9959#ifdef __cplusplus
9960extern "C"
9961#endif
9962char sane_init ();
9963int
9964main ()
9965{
9966return sane_init ();
9967 ;
9968 return 0;
9969}
9970_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009971if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009972 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009973 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 +02009974 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'` ;;
9975 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9976 esac
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009977fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009978rm -f core conftest.err conftest.$ac_objext \
9979 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009980 LIBS=$ac_check_soname_save_LIBS
9981fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009982if test "x$ac_cv_lib_soname_sane" = "x"; then :
9983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009984$as_echo "not found" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009985
9986else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009988$as_echo "$ac_cv_lib_soname_sane" >&6; }
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009989
9990cat >>confdefs.h <<_ACEOF
9991#define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9992_ACEOF
9993
9994 SANEINCL="$ac_sane_incl"
9995
9996fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009997fi
9998
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009999
Shi Quan He6b0720f2002-03-21 02:58:39 +000010000 CPPFLAGS="$ac_save_CPPFLAGS"
10001fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010002if test "x$ac_cv_lib_soname_sane" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010003 case "x$with_sane" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010004 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 +010010005 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010006 *) as_fn_error $? "libsane ${notice_platform}development files not found, scanners won't be supported.
10007This is an error since --with-sane was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010008esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010009fi
10010
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +010010011if test "x$with_v4l" != "xno"
10012then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
10014$as_echo_n "checking for -lv4l1... " >&6; }
10015if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
10016 $as_echo_n "(cached) " >&6
10017else
10018 ac_check_soname_save_LIBS=$LIBS
10019LIBS="-lv4l1 $LIBS"
10020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10021/* end confdefs.h. */
10022
10023/* Override any GCC internal prototype to avoid an error.
10024 Use char because int might match the return type of a GCC
10025 builtin and then its argument prototype would still apply. */
10026#ifdef __cplusplus
10027extern "C"
10028#endif
10029char v4l1_open ();
10030int
10031main ()
10032{
10033return v4l1_open ();
10034 ;
10035 return 0;
10036}
10037_ACEOF
10038if ac_fn_c_try_link "$LINENO"; then :
10039 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010040 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 +010010041 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'` ;;
10042 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10043 esac
10044fi
10045rm -f core conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
10047 LIBS=$ac_check_soname_save_LIBS
10048fi
10049if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
10051$as_echo "not found" >&6; }
10052
10053else
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
10055$as_echo "$ac_cv_lib_soname_v4l1" >&6; }
10056
10057cat >>confdefs.h <<_ACEOF
10058#define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
10059_ACEOF
10060
10061
10062fi
10063fi
10064if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
10065 case "x$with_v4l" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010066 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +010010067 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010068 *) as_fn_error $? "libv4l ${notice_platform}development files not found.
10069This is an error since --with-v4l was requested." "$LINENO" 5 ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +010010070esac
10071fi
10072
Francois Gouget3fe5d802009-01-14 14:16:06 +010010073if test "x$with_gphoto" != "xno"
10074then
10075 ac_save_CPPFLAGS="$CPPFLAGS"
10076 # Extract the first word of "gphoto2-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010077set dummy gphoto2-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010079$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010080if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010081 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010082else
10083 if test -n "$gphoto2_devel"; then
10084 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
10085else
10086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087for as_dir in $PATH
10088do
10089 IFS=$as_save_IFS
10090 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010091 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010092 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 +020010093 ac_cv_prog_gphoto2_devel="gphoto2-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010095 break 2
10096 fi
10097done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010098 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010099IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010100
10101 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
10102fi
10103fi
10104gphoto2_devel=$ac_cv_prog_gphoto2_devel
10105if test -n "$gphoto2_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010107$as_echo "$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010108else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010110$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010111fi
10112
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010113
Francois Gouget3fe5d802009-01-14 14:16:06 +010010114 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010115set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010117$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010118if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010119 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010120else
10121 if test -n "$gphoto2port_devel"; then
10122 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
10123else
10124as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10125for as_dir in $PATH
10126do
10127 IFS=$as_save_IFS
10128 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010129 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010130 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 +020010131 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010133 break 2
10134 fi
10135done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010136 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010137IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010138
10139 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
10140fi
10141fi
10142gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
10143if test -n "$gphoto2port_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010145$as_echo "$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010146else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010148$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010149fi
10150
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010151
Francois Gouget3fe5d802009-01-14 14:16:06 +010010152 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
10153 then
10154 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
10155 ac_gphoto2_libs=""
10156 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
10157 do
10158 case "$i" in
10159 -L/usr/lib|-L/usr/lib64) ;;
10160 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
10161 esac
10162 done
10163 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
10164 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010165 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010166 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
10167if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010169$as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010170if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010171 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010172else
10173 ac_check_lib_save_LIBS=$LIBS
Francois Gouget4bc03fe2008-07-21 17:10:45 +020010174LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010176/* end confdefs.h. */
10177
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010178/* Override any GCC internal prototype to avoid an error.
10179 Use char because int might match the return type of a GCC
10180 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010181#ifdef __cplusplus
10182extern "C"
10183#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010184char gp_camera_new ();
10185int
10186main ()
10187{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010188return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010189 ;
10190 return 0;
10191}
10192_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010193if ac_fn_c_try_link "$LINENO"; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010194 ac_cv_lib_gphoto2_gp_camera_new=yes
10195else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010196 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010197fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010198rm -f core conftest.err conftest.$ac_objext \
10199 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010200LIBS=$ac_check_lib_save_LIBS
10201fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010203$as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010204if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010205
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010206$as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010207
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010208 GPHOTO2LIBS="$ac_gphoto2_libs"
10209
10210 GPHOTO2INCL="$ac_gphoto2_incl"
10211
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010212fi
10213
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010214fi
10215
10216
Marcus Meissner40e7ef32006-05-08 20:09:37 +020010217 CPPFLAGS="$ac_save_CPPFLAGS"
10218fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010219if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010220 case "x$with_gphoto" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010221 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 +010010222 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010223 *) as_fn_error $? "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
10224This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010225esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010226fi
10227
10228
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010229if test "$ac_cv_header_resolv_h" = "yes"
10230then
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010231 ac_save_LIBS="$LIBS"
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010232 for lib in '' -lresolv
10233 do
10234 LIBS="$lib $ac_save_LIBS"
10235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010236/* end confdefs.h. */
Rob Shearmanba349212009-01-02 12:12:06 +000010237#ifdef HAVE_NETINET_IN_H
10238#include <netinet/in.h>
10239#endif
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010240#include <resolv.h>
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010241int
10242main ()
10243{
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010244res_query("foo",ns_c_in,0,0,0);
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010245 ;
10246 return 0;
10247}
10248_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010249if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010250
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010251$as_echo "#define HAVE_RESOLV 1" >>confdefs.h
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010252
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010253 RESOLVLIBS="$lib"
10254
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010255fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010256rm -f core conftest.err conftest.$ac_objext \
10257 conftest$ac_exeext conftest.$ac_ext
Tijl Coosemanse7ec1642010-09-23 18:20:31 +020010258 if test "${RESOLVLIBS+set}" = set; then
10259 break
10260 fi
10261 done
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010262 LIBS="$ac_save_LIBS"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010263fi
10264
Hans Leidekkerd3447022005-07-15 10:09:43 +000010265LCMSLIBS=""
10266
10267if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10268then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010270$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010271if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010272 $as_echo_n "(cached) " >&6
Hans Leidekkerd3447022005-07-15 10:09:43 +000010273else
10274 ac_check_lib_save_LIBS=$LIBS
10275LIBS="-llcms $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010277/* end confdefs.h. */
10278
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010279/* Override any GCC internal prototype to avoid an error.
10280 Use char because int might match the return type of a GCC
10281 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +000010282#ifdef __cplusplus
10283extern "C"
10284#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +000010285char cmsOpenProfileFromFile ();
10286int
10287main ()
10288{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010289return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000010290 ;
10291 return 0;
10292}
10293_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010294if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010295 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10296else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010297 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000010298fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010299rm -f core conftest.err conftest.$ac_objext \
10300 conftest$ac_exeext conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010301LIBS=$ac_check_lib_save_LIBS
10302fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010304$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010305if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010306
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010307$as_echo "#define HAVE_LCMS 1" >>confdefs.h
Hans Leidekkerd3447022005-07-15 10:09:43 +000010308
10309 LCMSLIBS="-llcms"
10310fi
10311
10312fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010313if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010314 case "x$with_cms" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010315 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 +010010316 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010317 *) as_fn_error $? "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10318This is an error since --with-cms was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010319esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010320fi
10321
Francois Gouget3fe5d802009-01-14 14:16:06 +010010322if test "x$with_freetype" != "xno"
10323then
10324 for ac_prog in freetype-config freetype2-config
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010325do
10326 # Extract the first word of "$ac_prog", so it can be a program name with args.
10327set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010329$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010330if test "${ac_cv_prog_ft_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010331 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010332else
10333 if test -n "$ft_devel"; then
10334 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10335else
10336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10337for as_dir in $PATH
10338do
10339 IFS=$as_save_IFS
10340 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010341 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010342 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 +020010343 ac_cv_prog_ft_devel="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010345 break 2
10346 fi
10347done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010348 done
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010349IFS=$as_save_IFS
10350
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010351fi
10352fi
10353ft_devel=$ac_cv_prog_ft_devel
10354if test -n "$ft_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010356$as_echo "$ft_devel" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010357else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010359$as_echo "no" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010360fi
10361
10362
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010363 test -n "$ft_devel" && break
10364done
Francois Gouget3fe5d802009-01-14 14:16:06 +010010365test -n "$ft_devel" || ft_devel="no"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010366
Francois Gouget3fe5d802009-01-14 14:16:06 +010010367 if test "$ft_devel" != "no"
10368 then
10369 ac_freetype_incl=`$ft_devel --cflags`
10370 ac_freetype_libs=`$ft_devel --libs`
10371 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010372 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010374$as_echo_n "checking for -lfreetype... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010375if test "${ac_cv_lib_soname_freetype+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010376 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010377else
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010378 ac_check_soname_save_LIBS=$LIBS
10379LIBS="-lfreetype $ac_freetype_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010381/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010382
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010383/* Override any GCC internal prototype to avoid an error.
10384 Use char because int might match the return type of a GCC
10385 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010386#ifdef __cplusplus
10387extern "C"
10388#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010389char FT_Init_FreeType ();
10390int
10391main ()
10392{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010393return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010394 ;
10395 return 0;
10396}
10397_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010398if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010399 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010400 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 +020010401 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'` ;;
10402 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10403 esac
Ian Pilcher563598d2001-05-16 20:56:05 +000010404fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010405rm -f core conftest.err conftest.$ac_objext \
10406 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010407 LIBS=$ac_check_soname_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010408fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010409if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010411$as_echo "not found" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010412 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010413else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010415$as_echo "$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010416
10417cat >>confdefs.h <<_ACEOF
10418#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10419_ACEOF
10420
10421 ft_lib=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010422fi
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010423 if test "$ft_lib" = "yes"
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010424 then
Ian Pilcher40432fe2001-06-06 21:05:23 +000010425 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010426 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010427 for ac_header in ft2build.h \
Rein Klazese617a9c2003-11-19 02:18:13 +000010428 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010429 freetype/ftglyph.h \
Dmitry Timoshkovb0d15902007-09-20 19:10:31 +090010430 freetype/fttypes.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010431 freetype/tttables.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010432 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010433 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010434 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010435 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010010436 freetype/ftmodapi.h \
ByeongSik Jeon028617b2008-12-10 23:50:44 +090010437 freetype/ftlcdfil.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010438 freetype/internal/sfnt.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010439do :
10440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10441ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
Francois Gouget9e67edf2008-03-06 12:34:48 +010010442 # include <ft2build.h>
Rein Klazes9c269172003-11-20 04:17:33 +000010443 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010444"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010445if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010446 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010447#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010448_ACEOF
10449
10450fi
10451
Ian Pilcher40432fe2001-06-06 21:05:23 +000010452done
10453
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010455/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010456#include <ft2build.h>
10457 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010458_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010459if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010460
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010461$as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
Alexandre Julliard18d75732002-01-29 03:02:50 +000010462
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010463 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010464else
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010465 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010466fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010467rm -f conftest.err conftest.i conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010468 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10469"
10470if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
Huw Daviesd8a6c272006-02-22 12:24:25 +000010471
10472cat >>confdefs.h <<_ACEOF
10473#define HAVE_FT_TRUETYPEENGINETYPE 1
10474_ACEOF
10475
10476
10477fi
10478
Huw Davies35bca772006-04-12 12:14:27 +010010479 ac_save_CFLAGS="$CFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010480 CFLAGS="$CFLAGS $ac_freetype_libs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010481 for ac_func in FT_Load_Sfnt_Table
10482do :
10483 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10484if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
Huw Davies35bca772006-04-12 12:14:27 +010010485 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010486#define HAVE_FT_LOAD_SFNT_TABLE 1
Huw Davies35bca772006-04-12 12:14:27 +010010487_ACEOF
10488
10489fi
10490done
10491
10492 CFLAGS="$ac_save_CFLAGS"
Ian Pilcher40432fe2001-06-06 21:05:23 +000010493 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010494 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010495 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010496
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010497$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010498
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010499 FREETYPELIBS="$ac_freetype_libs"
10500
10501 FREETYPEINCL="$ac_freetype_incl"
10502
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010503 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010504 fi
10505fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010506if test "x$FREETYPELIBS" = "x"; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010507 case "x$with_freetype" in
10508 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010509 *) as_fn_error $? "FreeType ${notice_platform}development files not found. Fonts will not be built.
10510Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010511esac
Huw Davies00acb5f2004-08-17 22:33:14 +000010512fi
Alexandre Julliard6de0af12008-08-25 14:41:03 +020010513test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010514
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010516$as_echo_n "checking for parport header/ppdev.h... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010517if test "${ac_cv_c_ppdev+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010518 $as_echo_n "(cached) " >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010519else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010521/* end confdefs.h. */
Yann Droneauddd33ee92010-03-08 14:46:46 +010010522#ifdef HAVE_SYS_IOCTL_H
10523# include <sys/ioctl.h>
10524#endif
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010525#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010526int
10527main ()
10528{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010529ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010530 ;
10531 return 0;
10532}
10533_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010534if ac_fn_c_try_compile "$LINENO"; then :
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010535 ac_cv_c_ppdev="yes"
10536else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010537 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010538fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010540fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010542$as_echo "$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010543if test "$ac_cv_c_ppdev" = "yes"
10544then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010545
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010546$as_echo "#define HAVE_PPDEV 1" >>confdefs.h
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010547
10548fi
10549
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010550ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010551LIBS="$LIBS $LIBPTHREAD"
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010552for ac_func in \
Tijl Coosemansfc8172f2006-08-05 23:31:07 +020010553 pthread_attr_get_np \
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010554 pthread_getattr_np \
10555 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010556 pthread_get_stacksize_np
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010557do :
10558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10559ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020010560if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Alexandre Julliard821ab862003-11-12 22:44:56 +000010561 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010562#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010563_ACEOF
10564
10565fi
10566done
10567
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010568LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010569
Jacek Caban11ca05f2009-05-29 23:35:13 +020010570if test "$ac_cv_header_zlib_h" = "yes"
10571then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010573$as_echo_n "checking for inflate in -lz... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010574if test "${ac_cv_lib_z_inflate+set}" = set; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010575 $as_echo_n "(cached) " >&6
10576else
10577 ac_check_lib_save_LIBS=$LIBS
10578LIBS="-lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010580/* end confdefs.h. */
10581
10582/* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
10585#ifdef __cplusplus
10586extern "C"
10587#endif
10588char inflate ();
10589int
10590main ()
10591{
10592return inflate ();
10593 ;
10594 return 0;
10595}
10596_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010597if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010598 ac_cv_lib_z_inflate=yes
10599else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010600 ac_cv_lib_z_inflate=no
Jacek Caban11ca05f2009-05-29 23:35:13 +020010601fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010602rm -f core conftest.err conftest.$ac_objext \
10603 conftest$ac_exeext conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010604LIBS=$ac_check_lib_save_LIBS
10605fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010607$as_echo "$ac_cv_lib_z_inflate" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010608if test "x$ac_cv_lib_z_inflate" = x""yes; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010609
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010610$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
Jacek Caban11ca05f2009-05-29 23:35:13 +020010611
10612 ZLIB="-lz"
10613
10614fi
10615
10616fi
10617
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010618if test "x$enable_tools" != xno
10619then
10620 if test "$ac_cv_header_gettext_po_h" = "yes"
10621 then
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for po_message_msgctxt in -lgettextpo" >&5
10623$as_echo_n "checking for po_message_msgctxt in -lgettextpo... " >&6; }
10624if test "${ac_cv_lib_gettextpo_po_message_msgctxt+set}" = set; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010625 $as_echo_n "(cached) " >&6
10626else
10627 ac_check_lib_save_LIBS=$LIBS
10628LIBS="-lgettextpo $LIBS"
10629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630/* end confdefs.h. */
10631
10632/* Override any GCC internal prototype to avoid an error.
10633 Use char because int might match the return type of a GCC
10634 builtin and then its argument prototype would still apply. */
10635#ifdef __cplusplus
10636extern "C"
10637#endif
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010638char po_message_msgctxt ();
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010639int
10640main ()
10641{
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010642return po_message_msgctxt ();
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010643 ;
10644 return 0;
10645}
10646_ACEOF
10647if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010648 ac_cv_lib_gettextpo_po_message_msgctxt=yes
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010649else
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010650 ac_cv_lib_gettextpo_po_message_msgctxt=no
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010651fi
10652rm -f core conftest.err conftest.$ac_objext \
10653 conftest$ac_exeext conftest.$ac_ext
10654LIBS=$ac_check_lib_save_LIBS
10655fi
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gettextpo_po_message_msgctxt" >&5
10657$as_echo "$ac_cv_lib_gettextpo_po_message_msgctxt" >&6; }
10658if test "x$ac_cv_lib_gettextpo_po_message_msgctxt" = x""yes; then :
Alexandre Julliard0e79c5c2011-01-04 11:16:50 +010010659
10660$as_echo "#define HAVE_LIBGETTEXTPO 1" >>confdefs.h
10661
10662 LIBGETTEXTPO="-lgettextpo"
10663
10664fi
10665
10666 fi
10667 if test "x$LIBGETTEXTPO" = "x"; then :
10668 case "x$with_gettextpo" in
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010669 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 +010010670 xno) ;;
Alexandre Julliard88155ca2011-01-08 15:53:26 +010010671 *) 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 +010010672This is an error since --with-gettextpo was requested." "$LINENO" 5 ;;
10673esac
10674fi
10675fi
10676
Francois Gouget3fe5d802009-01-14 14:16:06 +010010677if test "x$with_esd" != xno
10678then
10679 save_CFLAGS="$CFLAGS"
10680 # Extract the first word of "esd-config", so it can be a program name with args.
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010681set dummy esd-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010683$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010684if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010685 $as_echo_n "(cached) " >&6
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010686else
10687 case $ESDCONFIG in
10688 [\\/]* | ?:[\\/]*)
10689 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10690 ;;
10691 *)
10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693for as_dir in $PATH
10694do
10695 IFS=$as_save_IFS
10696 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010697 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010698 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 +000010699 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010701 break 2
10702 fi
10703done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010704 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010705IFS=$as_save_IFS
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010706
Francois Gouget3fe5d802009-01-14 14:16:06 +010010707 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010708 ;;
10709esac
10710fi
10711ESDCONFIG=$ac_cv_path_ESDCONFIG
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010712if test -n "$ESDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010714$as_echo "$ESDCONFIG" >&6; }
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010715else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010717$as_echo "no" >&6; }
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010718fi
10719
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010720
Francois Gouget3fe5d802009-01-14 14:16:06 +010010721 if test "x$ESDCONFIG" != "xno"
10722 then
10723 ac_esd_incl=""
10724 for i in `$ESDCONFIG --cflags`
10725 do
10726 case "$i" in
10727 -I*) ac_esd_incl="$ac_esd_incl $i";;
10728 esac
10729 done
10730 ac_esd_libs=`$ESDCONFIG --libs`
10731 CFLAGS="$CFLAGS $ac_esd_incl"
10732 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010733 ac_esd_libs=${ac_esd_libs:-"-lesd"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010734 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10735if test "x$ac_cv_header_esd_h" = x""yes; then :
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010737$as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010738if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010739 $as_echo_n "(cached) " >&6
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010740else
10741 ac_check_lib_save_LIBS=$LIBS
Francois Gougete9b1a402008-07-21 23:41:21 +020010742LIBS="-lesd $ac_esd_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010744/* end confdefs.h. */
10745
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010746/* Override any GCC internal prototype to avoid an error.
10747 Use char because int might match the return type of a GCC
10748 builtin and then its argument prototype would still apply. */
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010749#ifdef __cplusplus
10750extern "C"
10751#endif
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010752char esd_open_sound ();
10753int
10754main ()
10755{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010756return esd_open_sound ();
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010757 ;
10758 return 0;
10759}
10760_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010761if ac_fn_c_try_link "$LINENO"; then :
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010762 ac_cv_lib_esd_esd_open_sound=yes
10763else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010764 ac_cv_lib_esd_esd_open_sound=no
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010765fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010766rm -f core conftest.err conftest.$ac_objext \
10767 conftest$ac_exeext conftest.$ac_ext
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010768LIBS=$ac_check_lib_save_LIBS
10769fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010771$as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010772if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
Francois Gougete9b1a402008-07-21 23:41:21 +020010773 ESDINCL="$ac_esd_incl"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010774
Francois Gouget3fe5d802009-01-14 14:16:06 +010010775 ESDLIBS="$ac_esd_libs"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010776
10777
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010778$as_echo "#define HAVE_ESD 1" >>confdefs.h
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010779
10780fi
10781
Francois Gouget3fe5d802009-01-14 14:16:06 +010010782fi
10783
10784
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010785 CFLAGS="$save_CFLAGS"
10786fi
10787
Aric Stewart2914d652010-10-20 13:55:16 -050010788if test "x$with_gstreamer" != "xno"
10789then
10790 ac_save_CPPFLAGS="$CPPFLAGS"
10791 if test "$PKG_CONFIG" != "false"; then
10792 ac_gst_incl=""
10793 for i in `$PKG_CONFIG --cflags gstreamer-app-0.10 2>/dev/null`
10794 do
10795 case "$i" in
10796 -I*) ac_gst_incl="$ac_gst_incl $i";;
10797 esac
10798 done
10799 ac_gst_libs="`$PKG_CONFIG --libs gstreamer-app-0.10 2>/dev/null`"
10800 CPPFLAGS="$CPPFLAGS $ac_gst_incl"
Andrew Nguyende417972010-10-29 00:26:04 -050010801 ac_fn_c_check_header_mongrel "$LINENO" "gst/gstpad.h" "ac_cv_header_gst_gstpad_h" "$ac_includes_default"
10802if test "x$ac_cv_header_gst_gstpad_h" = x""yes; then :
10803 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 -050010804if test "x$ac_cv_header_gst_app_gstappsink_h" = x""yes; then :
Andrew Nguyende417972010-10-29 00:26:04 -050010805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_pad_get_caps_reffed in -lgstreamer-0.10" >&5
10806$as_echo_n "checking for gst_pad_get_caps_reffed in -lgstreamer-0.10... " >&6; }
10807if test "${ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed+set}" = set; then :
10808 $as_echo_n "(cached) " >&6
10809else
10810 ac_check_lib_save_LIBS=$LIBS
10811LIBS="-lgstreamer-0.10 $LIBS"
10812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10813/* end confdefs.h. */
10814
10815/* Override any GCC internal prototype to avoid an error.
10816 Use char because int might match the return type of a GCC
10817 builtin and then its argument prototype would still apply. */
10818#ifdef __cplusplus
10819extern "C"
10820#endif
10821char gst_pad_get_caps_reffed ();
10822int
10823main ()
10824{
10825return gst_pad_get_caps_reffed ();
10826 ;
10827 return 0;
10828}
10829_ACEOF
10830if ac_fn_c_try_link "$LINENO"; then :
10831 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=yes
10832else
10833 ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed=no
10834fi
10835rm -f core conftest.err conftest.$ac_objext \
10836 conftest$ac_exeext conftest.$ac_ext
10837LIBS=$ac_check_lib_save_LIBS
10838fi
10839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&5
10840$as_echo "$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" >&6; }
10841if test "x$ac_cv_lib_gstreamer_0_10_gst_pad_get_caps_reffed" = x""yes; then :
Aric Stewart2914d652010-10-20 13:55:16 -050010842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gst_app_buffer_new in -lgstapp-0.10" >&5
10843$as_echo_n "checking for gst_app_buffer_new in -lgstapp-0.10... " >&6; }
10844if test "${ac_cv_lib_gstapp_0_10_gst_app_buffer_new+set}" = set; then :
10845 $as_echo_n "(cached) " >&6
10846else
10847 ac_check_lib_save_LIBS=$LIBS
10848LIBS="-lgstapp-0.10 $ac_gst_libs $LIBS"
10849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850/* end confdefs.h. */
10851
10852/* Override any GCC internal prototype to avoid an error.
10853 Use char because int might match the return type of a GCC
10854 builtin and then its argument prototype would still apply. */
10855#ifdef __cplusplus
10856extern "C"
10857#endif
10858char gst_app_buffer_new ();
10859int
10860main ()
10861{
10862return gst_app_buffer_new ();
10863 ;
10864 return 0;
10865}
10866_ACEOF
10867if ac_fn_c_try_link "$LINENO"; then :
10868 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=yes
10869else
10870 ac_cv_lib_gstapp_0_10_gst_app_buffer_new=no
10871fi
10872rm -f core conftest.err conftest.$ac_objext \
10873 conftest$ac_exeext conftest.$ac_ext
10874LIBS=$ac_check_lib_save_LIBS
10875fi
10876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&5
10877$as_echo "$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" >&6; }
10878if test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = x""yes; then :
10879 GSTREAMER_LIBS="$ac_gst_libs"
10880
Andrew Nguyende417972010-10-29 00:26:04 -050010881 GSTREAMER_INCL="$ac_gst_incl"
Aric Stewart2914d652010-10-20 13:55:16 -050010882
10883fi
10884
10885fi
10886
Andrew Nguyende417972010-10-29 00:26:04 -050010887fi
10888
10889
10890fi
10891
Aric Stewart2914d652010-10-20 13:55:16 -050010892
10893 fi
10894 CPPFLAGS="$ac_save_CPPFLAGS"
10895fi
Alexandre Julliardfa3ddd82011-01-14 15:59:51 +010010896if 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 -050010897 case "x$with_gstreamer" in
Detlef Riekenberg654bb4a2010-12-12 22:48:56 +010010898 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 -050010899 xno) ;;
Detlef Riekenberg654bb4a2010-12-12 22:48:56 +010010900 *) as_fn_error $? "gstreamer-0.10 base plugins ${notice_platform}development files not found, gstreamer support disabled
Aric Stewart2914d652010-10-20 13:55:16 -050010901This is an error since --with-gstreamer was requested." "$LINENO" 5 ;;
10902esac
10903fi
10904test "x$ac_cv_lib_gstapp_0_10_gst_app_buffer_new" = xyes || enable_winegstreamer=${enable_winegstreamer:-no}
10905
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010906ALSALIBS=""
10907
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010908if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010909then
Austin Englishaeb78cb2011-01-12 01:43:46 -080010910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access_mask in -lasound" >&5
10911$as_echo_n "checking for snd_pcm_hw_params_get_access_mask in -lasound... " >&6; }
10912if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010913 $as_echo_n "(cached) " >&6
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010914else
10915 ac_check_lib_save_LIBS=$LIBS
10916LIBS="-lasound $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010918/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010919
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010920/* Override any GCC internal prototype to avoid an error.
10921 Use char because int might match the return type of a GCC
10922 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010923#ifdef __cplusplus
10924extern "C"
10925#endif
Austin Englishaeb78cb2011-01-12 01:43:46 -080010926char snd_pcm_hw_params_get_access_mask ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010927int
10928main ()
10929{
Austin Englishaeb78cb2011-01-12 01:43:46 -080010930return snd_pcm_hw_params_get_access_mask ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010931 ;
10932 return 0;
10933}
10934_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010935if ac_fn_c_try_link "$LINENO"; then :
Austin Englishaeb78cb2011-01-12 01:43:46 -080010936 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010937else
Austin Englishaeb78cb2011-01-12 01:43:46 -080010938 ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010939fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010940rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010942LIBS=$ac_check_lib_save_LIBS
10943fi
Austin Englishaeb78cb2011-01-12 01:43:46 -080010944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&5
10945$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" >&6; }
10946if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access_mask" = x""yes; then :
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Vincent Béron151015f2005-01-10 13:26:33 +000010948/* end confdefs.h. */
10949#ifdef HAVE_ALSA_ASOUNDLIB_H
10950#include <alsa/asoundlib.h>
10951#elif defined(HAVE_SYS_ASOUNDLIB_H)
10952#include <sys/asoundlib.h>
10953#endif
10954int
10955main ()
10956{
Austin Englishaeb78cb2011-01-12 01:43:46 -080010957int ret = snd_pcm_hw_params_get_access_mask(NULL, NULL)
Vincent Béron151015f2005-01-10 13:26:33 +000010958 ;
10959 return 0;
10960}
10961_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010962if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010963
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010964$as_echo "#define HAVE_ALSA 1" >>confdefs.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010965
Vincent Béron151015f2005-01-10 13:26:33 +000010966 ALSALIBS="-lasound"
Vincent Béron151015f2005-01-10 13:26:33 +000010967fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010968rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010969fi
10970
10971fi
10972
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010973
Alexandre Julliard73482142005-08-03 19:21:04 +000010974if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10975then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010977$as_echo_n "checking for -lcapi20... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010978if test "${ac_cv_lib_soname_capi20+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010979 $as_echo_n "(cached) " >&6
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010980else
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010981 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010982LIBS="-lcapi20 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010984/* end confdefs.h. */
10985
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010986/* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010989#ifdef __cplusplus
10990extern "C"
10991#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010992char capi20_register ();
10993int
10994main ()
10995{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010996return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010997 ;
10998 return 0;
10999}
11000_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011001if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020011002 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011003 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 +020011004 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'` ;;
11005 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11006 esac
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011007fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011008rm -f core conftest.err conftest.$ac_objext \
11009 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020011010 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011011fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011012if test "x$ac_cv_lib_soname_capi20" = "x"; then :
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011014$as_echo "not found" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011015
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020011016else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011018$as_echo "$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020011019
11020cat >>confdefs.h <<_ACEOF
11021#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011022_ACEOF
11023
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020011024
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011025fi
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000011026fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011027if test "x$ac_cv_lib_soname_capi20" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011028 case "x$with_capi" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011029 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 +010011030 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011031 *) as_fn_error $? "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
11032This is an error since --with-capi was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011033esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020011034fi
11035
Francois Gouget289ea332008-07-24 16:09:07 +020011036CUPSINCL=""
11037
11038if test "x$with_cups" != "xno"
Alexandre Julliard702d3552007-07-02 17:30:44 +020011039then
Francois Gouget289ea332008-07-24 16:09:07 +020011040 ac_save_CPPFLAGS="$CPPFLAGS"
11041 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
Alexandre Julliarda991a562008-07-28 12:04:46 +020011042 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
Francois Gouget289ea332008-07-24 16:09:07 +020011043 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011044 for ac_header in cups/cups.h
11045do :
11046 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
11047if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
Francois Gouget289ea332008-07-24 16:09:07 +020011048 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011049#define HAVE_CUPS_CUPS_H 1
Francois Gouget289ea332008-07-24 16:09:07 +020011050_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011052$as_echo_n "checking for -lcups... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011053if test "${ac_cv_lib_soname_cups+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011054 $as_echo_n "(cached) " >&6
Alexandre Julliard702d3552007-07-02 17:30:44 +020011055else
11056 ac_check_soname_save_LIBS=$LIBS
Francois Gouget289ea332008-07-24 16:09:07 +020011057LIBS="-lcups $ac_cups_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020011059/* end confdefs.h. */
11060
11061/* Override any GCC internal prototype to avoid an error.
11062 Use char because int might match the return type of a GCC
11063 builtin and then its argument prototype would still apply. */
11064#ifdef __cplusplus
11065extern "C"
11066#endif
11067char cupsGetDefault ();
11068int
11069main ()
11070{
11071return cupsGetDefault ();
11072 ;
11073 return 0;
11074}
11075_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011076if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard702d3552007-07-02 17:30:44 +020011077 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011078 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 +020011079 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'` ;;
11080 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11081 esac
Alexandre Julliard702d3552007-07-02 17:30:44 +020011082fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011083rm -f core conftest.err conftest.$ac_objext \
11084 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020011085 LIBS=$ac_check_soname_save_LIBS
11086fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011087if test "x$ac_cv_lib_soname_cups" = "x"; then :
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011089$as_echo "not found" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020011090
11091else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011093$as_echo "$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020011094
11095cat >>confdefs.h <<_ACEOF
11096#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
11097_ACEOF
11098
Francois Gouget289ea332008-07-24 16:09:07 +020011099 CUPSINCL="$ac_cups_cflags"
11100fi
Alexandre Julliard702d3552007-07-02 17:30:44 +020011101fi
11102
Francois Gouget289ea332008-07-24 16:09:07 +020011103done
11104
11105 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliard702d3552007-07-02 17:30:44 +020011106fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011107if test "x$ac_cv_lib_soname_cups" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011108 case "x$with_cups" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011109 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 +010011110 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011111 *) as_fn_error $? "libcups ${notice_platform}development files not found, CUPS won't be supported.
11112This is an error since --with-cups was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011113esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020011114fi
11115
Alexandre Julliard34200c32007-07-02 17:31:19 +020011116if test "$ac_cv_header_jack_jack_h" = "yes"
11117then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011119$as_echo_n "checking for -ljack... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011120if test "${ac_cv_lib_soname_jack+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011121 $as_echo_n "(cached) " >&6
Alexandre Julliard34200c32007-07-02 17:31:19 +020011122else
11123 ac_check_soname_save_LIBS=$LIBS
11124LIBS="-ljack $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard34200c32007-07-02 17:31:19 +020011126/* end confdefs.h. */
11127
11128/* Override any GCC internal prototype to avoid an error.
11129 Use char because int might match the return type of a GCC
11130 builtin and then its argument prototype would still apply. */
11131#ifdef __cplusplus
11132extern "C"
11133#endif
11134char jack_client_new ();
11135int
11136main ()
11137{
11138return jack_client_new ();
11139 ;
11140 return 0;
11141}
11142_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011143if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard34200c32007-07-02 17:31:19 +020011144 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011145 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 +020011146 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'` ;;
11147 *) 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 +020011148 esac
Alexandre Julliard34200c32007-07-02 17:31:19 +020011149fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011150rm -f core conftest.err conftest.$ac_objext \
11151 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard34200c32007-07-02 17:31:19 +020011152 LIBS=$ac_check_soname_save_LIBS
11153fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011154if test "x$ac_cv_lib_soname_jack" = "x"; then :
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011156$as_echo "not found" >&6; }
Alexandre Julliard34200c32007-07-02 17:31:19 +020011157
11158else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011160$as_echo "$ac_cv_lib_soname_jack" >&6; }
Alexandre Julliard34200c32007-07-02 17:31:19 +020011161
11162cat >>confdefs.h <<_ACEOF
11163#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
11164_ACEOF
11165
11166
11167fi
Alexandre Julliard34200c32007-07-02 17:31:19 +020011168fi
11169
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011170if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11171then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011173$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011174if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011175 $as_echo_n "(cached) " >&6
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011176else
11177 ac_check_soname_save_LIBS=$LIBS
11178LIBS="-lfontconfig $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011180/* end confdefs.h. */
11181
11182/* Override any GCC internal prototype to avoid an error.
11183 Use char because int might match the return type of a GCC
11184 builtin and then its argument prototype would still apply. */
11185#ifdef __cplusplus
11186extern "C"
11187#endif
11188char FcInit ();
11189int
11190main ()
11191{
11192return FcInit ();
11193 ;
11194 return 0;
11195}
11196_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011197if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011198 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011199 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 +020011200 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'` ;;
11201 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11202 esac
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011203fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011204rm -f core conftest.err conftest.$ac_objext \
11205 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011206 LIBS=$ac_check_soname_save_LIBS
11207fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011208if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011210$as_echo "not found" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011211
11212else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011214$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011215
11216cat >>confdefs.h <<_ACEOF
11217#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11218_ACEOF
11219
11220
11221fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011222elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
Alexandre Julliard5c076732007-10-17 17:04:01 +020011223then
11224 ac_save_CPPFLAGS="$CPPFLAGS"
11225 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11226 $as_unset ac_cv_header_fontconfig_fontconfig_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011227 for ac_header in fontconfig/fontconfig.h
11228do :
11229 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
11230if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020011231 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011232#define HAVE_FONTCONFIG_FONTCONFIG_H 1
Alexandre Julliard5c076732007-10-17 17:04:01 +020011233_ACEOF
11234
11235fi
11236
11237done
11238
11239 CPPFLAGS="$ac_save_CPPFLAGS"
11240 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
11241 then
11242 FONTCONFIGINCL="$X_CFLAGS"
11243
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011245$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011246if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011247 $as_echo_n "(cached) " >&6
Alexandre Julliard5c076732007-10-17 17:04:01 +020011248else
11249 ac_check_soname_save_LIBS=$LIBS
11250LIBS="-lfontconfig $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020011252/* end confdefs.h. */
11253
11254/* Override any GCC internal prototype to avoid an error.
11255 Use char because int might match the return type of a GCC
11256 builtin and then its argument prototype would still apply. */
11257#ifdef __cplusplus
11258extern "C"
11259#endif
11260char FcInit ();
11261int
11262main ()
11263{
11264return FcInit ();
11265 ;
11266 return 0;
11267}
11268_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011269if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020011270 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011271 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 +020011272 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'` ;;
11273 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11274 esac
Alexandre Julliard5c076732007-10-17 17:04:01 +020011275fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011276rm -f core conftest.err conftest.$ac_objext \
11277 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020011278 LIBS=$ac_check_soname_save_LIBS
11279fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011280if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011282$as_echo "not found" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020011283
11284else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011286$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020011287
11288cat >>confdefs.h <<_ACEOF
11289#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
11290_ACEOF
11291
11292
11293fi
Alexandre Julliard5c076732007-10-17 17:04:01 +020011294 fi
Alexandre Julliardccd5f282007-07-02 17:31:48 +020011295fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011296if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011297 case "x$with_fontconfig" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011298 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 +010011299 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011300 *) as_fn_error $? "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
11301This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011302esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011303fi
11304
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011305if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
11306then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011308$as_echo_n "checking for -lssl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011309if test "${ac_cv_lib_soname_ssl+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011310 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011311else
11312 ac_check_soname_save_LIBS=$LIBS
11313LIBS="-lssl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011315/* end confdefs.h. */
11316
11317/* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
11320#ifdef __cplusplus
11321extern "C"
11322#endif
11323char SSL_library_init ();
11324int
11325main ()
11326{
11327return SSL_library_init ();
11328 ;
11329 return 0;
11330}
11331_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011332if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011333 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011334 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 +020011335 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'` ;;
11336 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11337 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011338fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011339rm -f core conftest.err conftest.$ac_objext \
11340 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011341 LIBS=$ac_check_soname_save_LIBS
11342fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011343if test "x$ac_cv_lib_soname_ssl" = "x"; then :
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011345$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011346
11347else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011349$as_echo "$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011350
11351cat >>confdefs.h <<_ACEOF
11352#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
11353_ACEOF
11354
11355
11356fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011358$as_echo_n "checking for -lcrypto... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011359if test "${ac_cv_lib_soname_crypto+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011360 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011361else
11362 ac_check_soname_save_LIBS=$LIBS
11363LIBS="-lcrypto $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011365/* end confdefs.h. */
11366
11367/* Override any GCC internal prototype to avoid an error.
11368 Use char because int might match the return type of a GCC
11369 builtin and then its argument prototype would still apply. */
11370#ifdef __cplusplus
11371extern "C"
11372#endif
11373char BIO_new_socket ();
11374int
11375main ()
11376{
11377return BIO_new_socket ();
11378 ;
11379 return 0;
11380}
11381_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011382if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011383 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011384 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 +020011385 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'` ;;
11386 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11387 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011388fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011389rm -f core conftest.err conftest.$ac_objext \
11390 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011391 LIBS=$ac_check_soname_save_LIBS
11392fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011393if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011395$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011396
11397else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011399$as_echo "$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011400
11401cat >>confdefs.h <<_ACEOF
11402#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11403_ACEOF
11404
11405
11406fi
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011407fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011408if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011409 case "x$with_openssl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011410 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 +010011411 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011412 *) as_fn_error $? "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11413This is an error since --with-openssl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011414esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011415fi
11416
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +020011417if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011418then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011420$as_echo_n "checking for -lgsm... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011421if test "${ac_cv_lib_soname_gsm+set}" = set; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011422 $as_echo_n "(cached) " >&6
11423else
11424 ac_check_soname_save_LIBS=$LIBS
11425LIBS="-lgsm $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011427/* end confdefs.h. */
11428
11429/* Override any GCC internal prototype to avoid an error.
11430 Use char because int might match the return type of a GCC
11431 builtin and then its argument prototype would still apply. */
11432#ifdef __cplusplus
11433extern "C"
11434#endif
11435char gsm_create ();
11436int
11437main ()
11438{
11439return gsm_create ();
11440 ;
11441 return 0;
11442}
11443_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011444if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011445 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011446 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 +020011447 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'` ;;
11448 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11449 esac
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011450fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011451rm -f core conftest.err conftest.$ac_objext \
11452 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011453 LIBS=$ac_check_soname_save_LIBS
11454fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011455if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011457$as_echo "not found" >&6; }
11458
11459else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011461$as_echo "$ac_cv_lib_soname_gsm" >&6; }
11462
11463cat >>confdefs.h <<_ACEOF
11464#define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11465_ACEOF
11466
11467
11468fi
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011469fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011470if test "x$ac_cv_lib_soname_gsm" = "x"; then :
Alexandre Julliard6ce32e02009-08-19 15:53:04 +020011471 case "x$with_gsm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011472 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 +020011473 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011474 *) as_fn_error $? "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
11475This is an error since --with-gsm was requested." "$LINENO" 5 ;;
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011476esac
11477fi
11478
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011479if test "$ac_cv_header_jpeglib_h" = "yes"
11480then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011482$as_echo_n "checking for -ljpeg... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011483if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011484 $as_echo_n "(cached) " >&6
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011485else
11486 ac_check_soname_save_LIBS=$LIBS
11487LIBS="-ljpeg $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011489/* end confdefs.h. */
11490
11491/* Override any GCC internal prototype to avoid an error.
11492 Use char because int might match the return type of a GCC
11493 builtin and then its argument prototype would still apply. */
11494#ifdef __cplusplus
11495extern "C"
11496#endif
11497char jpeg_start_decompress ();
11498int
11499main ()
11500{
11501return jpeg_start_decompress ();
11502 ;
11503 return 0;
11504}
11505_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011506if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011507 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011508 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 +020011509 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'` ;;
11510 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11511 esac
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011512fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011513rm -f core conftest.err conftest.$ac_objext \
11514 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011515 LIBS=$ac_check_soname_save_LIBS
11516fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011517if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011519$as_echo "not found" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011520
11521else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011523$as_echo "$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011524
11525cat >>confdefs.h <<_ACEOF
11526#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11527_ACEOF
11528
11529
11530fi
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011531fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011532if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011533 case "x$with_jpeg" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011534 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 +010011535 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011536 *) as_fn_error $? "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11537This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011538esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011539fi
11540
Alexandre Julliard00302152007-07-02 19:54:00 +020011541if test "$ac_cv_header_png_h" = "yes"
11542then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011544$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011545if test "${ac_cv_lib_soname_png+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011546 $as_echo_n "(cached) " >&6
Alexandre Julliard00302152007-07-02 19:54:00 +020011547else
11548 ac_check_soname_save_LIBS=$LIBS
Austin Englishfe8879e2008-12-28 19:10:19 -060011549LIBS="-lpng -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011551/* end confdefs.h. */
11552
11553/* Override any GCC internal prototype to avoid an error.
11554 Use char because int might match the return type of a GCC
11555 builtin and then its argument prototype would still apply. */
11556#ifdef __cplusplus
11557extern "C"
11558#endif
11559char png_create_read_struct ();
11560int
11561main ()
11562{
11563return png_create_read_struct ();
11564 ;
11565 return 0;
11566}
11567_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011568if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard00302152007-07-02 19:54:00 +020011569 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011570 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 +020011571 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'` ;;
11572 *) 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'` ;;
11573 esac
Alexandre Julliard00302152007-07-02 19:54:00 +020011574fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011575rm -f core conftest.err conftest.$ac_objext \
11576 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011577 LIBS=$ac_check_soname_save_LIBS
11578fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011579if test "x$ac_cv_lib_soname_png" = "x"; then :
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011581$as_echo "not found" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011582
11583else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011585$as_echo "$ac_cv_lib_soname_png" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011586
11587cat >>confdefs.h <<_ACEOF
11588#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11589_ACEOF
11590
11591
11592fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11594$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11595if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11596 $as_echo_n "(cached) " >&6
11597else
11598 ac_check_lib_save_LIBS=$LIBS
11599LIBS="-lpng -lm -lz $LIBS"
11600cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11601/* end confdefs.h. */
11602
11603/* Override any GCC internal prototype to avoid an error.
11604 Use char because int might match the return type of a GCC
11605 builtin and then its argument prototype would still apply. */
11606#ifdef __cplusplus
11607extern "C"
11608#endif
11609char png_set_expand_gray_1_2_4_to_8 ();
11610int
11611main ()
11612{
11613return png_set_expand_gray_1_2_4_to_8 ();
11614 ;
11615 return 0;
11616}
11617_ACEOF
11618if ac_fn_c_try_link "$LINENO"; then :
11619 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11620else
11621 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11622fi
11623rm -f core conftest.err conftest.$ac_objext \
11624 conftest$ac_exeext conftest.$ac_ext
11625LIBS=$ac_check_lib_save_LIBS
11626fi
11627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11628$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11629if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11630
11631$as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11632
11633
11634fi
11635
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011636elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11637then
11638 ac_save_CPPFLAGS="$CPPFLAGS"
11639 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11640 $as_unset ac_cv_header_png_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011641 for ac_header in png.h
11642do :
11643 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11644if test "x$ac_cv_header_png_h" = x""yes; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011645 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011646#define HAVE_PNG_H 1
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011647_ACEOF
11648
11649fi
11650
11651done
11652
11653 CPPFLAGS="$ac_save_CPPFLAGS"
11654 if test "$ac_cv_header_png_h" = "yes"
11655 then
11656 PNGINCL="$X_CFLAGS"
11657
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011659$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011660if test "${ac_cv_lib_soname_png+set}" = set; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011661 $as_echo_n "(cached) " >&6
11662else
11663 ac_check_soname_save_LIBS=$LIBS
11664LIBS="-lpng $X_LIBS -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011666/* end confdefs.h. */
11667
11668/* Override any GCC internal prototype to avoid an error.
11669 Use char because int might match the return type of a GCC
11670 builtin and then its argument prototype would still apply. */
11671#ifdef __cplusplus
11672extern "C"
11673#endif
11674char png_create_read_struct ();
11675int
11676main ()
11677{
11678return png_create_read_struct ();
11679 ;
11680 return 0;
11681}
11682_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011683if ac_fn_c_try_link "$LINENO"; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011684 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011685 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 +020011686 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'` ;;
11687 *) 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'` ;;
11688 esac
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011689fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011690rm -f core conftest.err conftest.$ac_objext \
11691 conftest$ac_exeext conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011692 LIBS=$ac_check_soname_save_LIBS
11693fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011694if test "x$ac_cv_lib_soname_png" = "x"; then :
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011696$as_echo "not found" >&6; }
11697
11698else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011699 { $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 +020011700$as_echo "$ac_cv_lib_soname_png" >&6; }
11701
11702cat >>confdefs.h <<_ACEOF
11703#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11704_ACEOF
11705
11706
11707fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11709$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11710if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11711 $as_echo_n "(cached) " >&6
11712else
11713 ac_check_lib_save_LIBS=$LIBS
11714LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11716/* end confdefs.h. */
11717
11718/* Override any GCC internal prototype to avoid an error.
11719 Use char because int might match the return type of a GCC
11720 builtin and then its argument prototype would still apply. */
11721#ifdef __cplusplus
11722extern "C"
11723#endif
11724char png_set_expand_gray_1_2_4_to_8 ();
11725int
11726main ()
11727{
11728return png_set_expand_gray_1_2_4_to_8 ();
11729 ;
11730 return 0;
11731}
11732_ACEOF
11733if ac_fn_c_try_link "$LINENO"; then :
11734 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11735else
11736 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11737fi
11738rm -f core conftest.err conftest.$ac_objext \
11739 conftest$ac_exeext conftest.$ac_ext
11740LIBS=$ac_check_lib_save_LIBS
11741fi
11742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11743$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11744if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11745 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11746
11747fi
11748
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011749 fi
Alexandre Julliard00302152007-07-02 19:54:00 +020011750fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011751if test "x$ac_cv_lib_soname_png" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011752 case "x$with_png" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011753 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 +010011754 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011755 *) as_fn_error $? "libpng ${notice_platform}development files not found, PNG won't be supported.
11756This is an error since --with-png was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011757esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011758fi
11759
Vincent Povirk73cd5692010-03-08 17:07:29 -060011760if test "$ac_cv_header_tiffio_h" = "yes"
11761then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11763$as_echo_n "checking for -ltiff... " >&6; }
11764if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11765 $as_echo_n "(cached) " >&6
11766else
11767 ac_check_soname_save_LIBS=$LIBS
11768LIBS="-ltiff $LIBS"
11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770/* end confdefs.h. */
11771
11772/* Override any GCC internal prototype to avoid an error.
11773 Use char because int might match the return type of a GCC
11774 builtin and then its argument prototype would still apply. */
11775#ifdef __cplusplus
11776extern "C"
11777#endif
11778char TIFFClientOpen ();
11779int
11780main ()
11781{
11782return TIFFClientOpen ();
11783 ;
11784 return 0;
11785}
11786_ACEOF
11787if ac_fn_c_try_link "$LINENO"; then :
11788 case "$LIBEXT" in
11789 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11790 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'` ;;
11791 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11792 esac
11793fi
11794rm -f core conftest.err conftest.$ac_objext \
11795 conftest$ac_exeext conftest.$ac_ext
11796 LIBS=$ac_check_soname_save_LIBS
11797fi
11798if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11800$as_echo "not found" >&6; }
11801
11802else
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11804$as_echo "$ac_cv_lib_soname_tiff" >&6; }
11805
11806cat >>confdefs.h <<_ACEOF
11807#define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11808_ACEOF
11809
11810
11811fi
11812fi
11813if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11814 case "x$with_tiff" in
11815 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11816 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011817 *) as_fn_error $? "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11818This is an error since --with-tiff was requested." "$LINENO" 5 ;;
Vincent Povirk73cd5692010-03-08 17:07:29 -060011819esac
11820fi
11821
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011822if test "$ac_cv_header_mpg123_h" = "yes"
11823then
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11825$as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11826if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011827 $as_echo_n "(cached) " >&6
11828else
11829 ac_check_lib_save_LIBS=$LIBS
11830LIBS="-lmpg123 $LIBS"
11831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11832/* end confdefs.h. */
11833
11834/* Override any GCC internal prototype to avoid an error.
11835 Use char because int might match the return type of a GCC
11836 builtin and then its argument prototype would still apply. */
11837#ifdef __cplusplus
11838extern "C"
11839#endif
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011840char mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011841int
11842main ()
11843{
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011844return mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011845 ;
11846 return 0;
11847}
11848_ACEOF
11849if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011850 ac_cv_lib_mpg123_mpg123_feed=yes
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011851else
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011852 ac_cv_lib_mpg123_mpg123_feed=no
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011853fi
11854rm -f core conftest.err conftest.$ac_objext \
11855 conftest$ac_exeext conftest.$ac_ext
11856LIBS=$ac_check_lib_save_LIBS
11857fi
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11859$as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11860if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011861 LIBMPG123="-lmpg123"
11862
11863fi
11864
11865fi
Aric Stewart4430ab42010-03-17 10:58:32 -050011866if 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 -050011867 case "x$with_mpg123" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011868 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 -050011869 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011870 *) as_fn_error $? "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
11871This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011872esac
11873fi
Kristofer Henrikssonc58eff62010-05-24 15:04:42 -040011874test "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 -050011875
Chris Robinson862965f2009-08-25 03:26:35 -070011876if test "$ac_cv_header_AL_al_h" = "yes"
11877then
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11879$as_echo_n "checking for -lopenal... " >&6; }
11880if test "${ac_cv_lib_soname_openal+set}" = set; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011881 $as_echo_n "(cached) " >&6
11882else
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011883 ac_check_soname_save_LIBS=$LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011884LIBS="-lopenal $LIBS"
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson862965f2009-08-25 03:26:35 -070011886/* end confdefs.h. */
11887
11888/* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11891#ifdef __cplusplus
11892extern "C"
11893#endif
11894char alGetSource3i ();
11895int
11896main ()
11897{
11898return alGetSource3i ();
11899 ;
11900 return 0;
11901}
11902_ACEOF
11903if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011904 case "$LIBEXT" in
11905 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11906 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'` ;;
11907 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11908 esac
Chris Robinson862965f2009-08-25 03:26:35 -070011909fi
11910rm -f core conftest.err conftest.$ac_objext \
11911 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011912 LIBS=$ac_check_soname_save_LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011913fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011914if test "x$ac_cv_lib_soname_openal" = "x"; then :
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11916$as_echo "not found" >&6; }
11917
11918else
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11920$as_echo "$ac_cv_lib_soname_openal" >&6; }
11921
11922cat >>confdefs.h <<_ACEOF
11923#define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11924_ACEOF
11925
11926 LIBOPENAL="-lopenal"
11927
11928 ac_cv_lib_openal=yes
11929
11930cat >>confdefs.h <<_ACEOF
11931#define HAVE_OPENAL 1
11932_ACEOF
Chris Robinson862965f2009-08-25 03:26:35 -070011933
11934fi
Chris Robinson862965f2009-08-25 03:26:35 -070011935fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011936if test "x$ac_cv_lib_openal" != xyes; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011937 case "x$with_openal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011938 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 -070011939 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020011940 *) as_fn_error $? "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11941This is an error since --with-openal was requested." "$LINENO" 5 ;;
Chris Robinson862965f2009-08-25 03:26:35 -070011942esac
11943fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011944test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
Chris Robinson862965f2009-08-25 03:26:35 -070011945
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011946if test "$ac_cv_header_kstat_h" = "yes"
11947then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011949$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011950if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011951 $as_echo_n "(cached) " >&6
11952else
11953 ac_check_lib_save_LIBS=$LIBS
11954LIBS="-lkstat $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011956/* end confdefs.h. */
11957
11958/* Override any GCC internal prototype to avoid an error.
11959 Use char because int might match the return type of a GCC
11960 builtin and then its argument prototype would still apply. */
11961#ifdef __cplusplus
11962extern "C"
11963#endif
11964char kstat_open ();
11965int
11966main ()
11967{
11968return kstat_open ();
11969 ;
11970 return 0;
11971}
11972_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011973if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011974 ac_cv_lib_kstat_kstat_open=yes
11975else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011976 ac_cv_lib_kstat_kstat_open=no
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011977fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011978rm -f core conftest.err conftest.$ac_objext \
11979 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011980LIBS=$ac_check_lib_save_LIBS
11981fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011983$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011984if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011985
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011986$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011987
11988 LIBKSTAT="-lkstat"
11989
11990fi
11991
11992fi
11993
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011995$as_echo_n "checking for -lodbc... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011996if test "${ac_cv_lib_soname_odbc+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011997 $as_echo_n "(cached) " >&6
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011998else
11999 ac_check_soname_save_LIBS=$LIBS
12000LIBS="-lodbc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012002/* end confdefs.h. */
12003
12004/* Override any GCC internal prototype to avoid an error.
12005 Use char because int might match the return type of a GCC
12006 builtin and then its argument prototype would still apply. */
12007#ifdef __cplusplus
12008extern "C"
12009#endif
12010char SQLConnect ();
12011int
12012main ()
12013{
12014return SQLConnect ();
12015 ;
12016 return 0;
12017}
12018_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012019if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012020 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010012021 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 +010012022 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'` ;;
12023 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
12024 esac
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012025fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012026rm -f core conftest.err conftest.$ac_objext \
12027 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012028 LIBS=$ac_check_soname_save_LIBS
12029fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012030if test "x$ac_cv_lib_soname_odbc" = "x"; then :
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012032$as_echo "not found" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012033 cat >>confdefs.h <<_ACEOF
12034#define SONAME_LIBODBC "libodbc.$LIBEXT"
12035_ACEOF
12036
12037else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012039$as_echo "$ac_cv_lib_soname_odbc" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010012040
12041cat >>confdefs.h <<_ACEOF
12042#define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
12043_ACEOF
12044
12045
12046fi
12047
Michael Stefaniuca2f07502010-12-17 11:11:42 +010012048if test "x$ALSALIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010012049 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
12050 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
12051 "$ac_cv_header_soundcard_h" != "yes" -a \
Michael Stefaniuca2f07502010-12-17 11:11:42 +010012052 "x$with_alsa$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnononononono
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010012053then
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010012054 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
Alexandre Julliardf9dec942007-07-10 15:14:15 +020012055fi
12056
12057
Alexandre Julliardfc094232003-04-14 21:46:41 +000012058EXTRACFLAGS=""
12059
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012060if test "x${GCC}" = "xyes"
12061then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000012062 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000012063
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012065$as_echo_n "checking for gcc strength-reduce bug... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012066if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012067 $as_echo_n "(cached) " >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012068else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012069 if test "$cross_compiling" = yes; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012070 ac_cv_c_gcc_strength_bug="yes"
12071else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012073/* end confdefs.h. */
Alexandre Julliardad356de2007-06-08 20:23:16 +020012074int L[4] = {0,1,2,3};
12075int
12076main ()
12077{
12078static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012079 unsigned int B = 3;
12080 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000012081 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000012082 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
12083 L[i] = 4;
Alexandre Julliard95251a72009-02-16 12:46:58 +010012084 return (Array[1] != -2 || L[2] != 3)
Alexandre Julliardad356de2007-06-08 20:23:16 +020012085 ;
12086 return 0;
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012087}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012088_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012089if ac_fn_c_try_run "$LINENO"; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012090 ac_cv_c_gcc_strength_bug="no"
12091else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012092 ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012093fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012094rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12095 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012096fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012097
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012098fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012099{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012100$as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012101 if test "$ac_cv_c_gcc_strength_bug" = "yes"
12102 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012103 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012104 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000012105
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012107$as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012108if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012109 $as_echo_n "(cached) " >&6
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012110else
12111 ac_wine_try_cflags_saved=$CFLAGS
12112CFLAGS="$CFLAGS -fno-builtin"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012113cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012114/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012115int main(int argc, char **argv) { return 0; }
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012116_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012117if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012118 ac_cv_cflags__fno_builtin=yes
12119else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012120 ac_cv_cflags__fno_builtin=no
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012121fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012122rm -f core conftest.err conftest.$ac_objext \
12123 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012124CFLAGS=$ac_wine_try_cflags_saved
12125fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012127$as_echo "$ac_cv_cflags__fno_builtin" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012128if test $ac_cv_cflags__fno_builtin = yes; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020012129 BUILTINFLAG="-fno-builtin"
12130
12131fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012133$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012134if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012135 $as_echo_n "(cached) " >&6
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012136else
12137 ac_wine_try_cflags_saved=$CFLAGS
12138CFLAGS="$CFLAGS -fno-strict-aliasing"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012140/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012141int main(int argc, char **argv) { return 0; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012142_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012143if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012144 ac_cv_cflags__fno_strict_aliasing=yes
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012145else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012146 ac_cv_cflags__fno_strict_aliasing=no
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012147fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012148rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000012150CFLAGS=$ac_wine_try_cflags_saved
12151fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012153$as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012154if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012155 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
12156fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012158$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012159if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012160 $as_echo_n "(cached) " >&6
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012161else
12162 ac_wine_try_cflags_saved=$CFLAGS
12163CFLAGS="$CFLAGS -Wdeclaration-after-statement"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012164cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012165/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012166int main(int argc, char **argv) { return 0; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012167_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012168if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012169 ac_cv_cflags__Wdeclaration_after_statement=yes
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012170else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012171 ac_cv_cflags__Wdeclaration_after_statement=no
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012172fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012173rm -f core conftest.err conftest.$ac_objext \
12174 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000012175CFLAGS=$ac_wine_try_cflags_saved
12176fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012178$as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012179if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020012180 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
12181fi
Alexandre Julliard295806f2009-10-07 13:46:06 +020012182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
12183$as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
12184if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
12185 $as_echo_n "(cached) " >&6
12186else
12187 ac_wine_try_cflags_saved=$CFLAGS
12188CFLAGS="$CFLAGS -Wstrict-prototypes"
12189cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012191int main(int argc, char **argv) { return 0; }
Alexandre Julliard295806f2009-10-07 13:46:06 +020012192_ACEOF
12193if ac_fn_c_try_link "$LINENO"; then :
12194 ac_cv_cflags__Wstrict_prototypes=yes
12195else
12196 ac_cv_cflags__Wstrict_prototypes=no
12197fi
12198rm -f core conftest.err conftest.$ac_objext \
12199 conftest$ac_exeext conftest.$ac_ext
12200CFLAGS=$ac_wine_try_cflags_saved
12201fi
12202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
12203$as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
12204if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
12205 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
12206fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012208$as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012209if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012210 $as_echo_n "(cached) " >&6
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012211else
12212 ac_wine_try_cflags_saved=$CFLAGS
12213CFLAGS="$CFLAGS -Wtype-limits"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012214cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012215/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012216int main(int argc, char **argv) { return 0; }
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012217_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012218if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012219 ac_cv_cflags__Wtype_limits=yes
12220else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012221 ac_cv_cflags__Wtype_limits=no
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012222fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012223rm -f core conftest.err conftest.$ac_objext \
12224 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012225CFLAGS=$ac_wine_try_cflags_saved
12226fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012228$as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012229if test $ac_cv_cflags__Wtype_limits = yes; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012230 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
12231fi
Gerald Pfeifereae58292010-01-02 15:13:43 +010012232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
12233$as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
12234if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
12235 $as_echo_n "(cached) " >&6
12236else
12237 ac_wine_try_cflags_saved=$CFLAGS
12238CFLAGS="$CFLAGS -Wwrite-strings"
12239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012241int main(int argc, char **argv) { return 0; }
Gerald Pfeifereae58292010-01-02 15:13:43 +010012242_ACEOF
12243if ac_fn_c_try_link "$LINENO"; then :
12244 ac_cv_cflags__Wwrite_strings=yes
12245else
12246 ac_cv_cflags__Wwrite_strings=no
12247fi
12248rm -f core conftest.err conftest.$ac_objext \
12249 conftest$ac_exeext conftest.$ac_ext
12250CFLAGS=$ac_wine_try_cflags_saved
12251fi
12252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
12253$as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
12254if test $ac_cv_cflags__Wwrite_strings = yes; then :
12255 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
12256fi
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010012257
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012258 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012259 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wpointer-arith" >&5
12261$as_echo_n "checking for broken string.h that generates warnings with -Wpointer-arith... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012262if test "${ac_cv_c_string_h_warnings+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012263 $as_echo_n "(cached) " >&6
Mike McCormackc509bc42003-02-25 04:01:58 +000012264else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012266/* end confdefs.h. */
12267#include <string.h>
12268int
12269main ()
12270{
12271
12272 ;
12273 return 0;
12274}
12275_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012276if ac_fn_c_try_compile "$LINENO"; then :
Mike McCormackc509bc42003-02-25 04:01:58 +000012277 ac_cv_c_string_h_warnings=no
12278else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012279 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000012280fi
Jeremy White0ebeb532006-06-20 13:18:41 +020012281rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000012282fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012284$as_echo "$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000012285 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000012286 if test "$ac_cv_c_string_h_warnings" = "no"
12287 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000012288 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000012289 fi
Alexandre Julliard12753c52009-10-02 14:39:49 +020012290
Marcus Meissnerf825f0d2010-12-17 21:29:20 +010012291 saved_CFLAGS="$CFLAGS"
12292 CFLAGS="$CFLAGS -Wlogical-op -Werror"
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings with -Wlogical-op" >&5
12294$as_echo_n "checking for broken string.h that generates warnings with -Wlogical-op... " >&6; }
12295if test "${ac_cv_c_logicalop_noisy+set}" = set; then :
12296 $as_echo_n "(cached) " >&6
12297else
12298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12299/* end confdefs.h. */
12300#include <string.h>
12301int
12302main ()
12303{
12304char*f(const char *h,char n) {return strchr(h,n);}
12305 ;
12306 return 0;
12307}
12308_ACEOF
12309if ac_fn_c_try_compile "$LINENO"; then :
12310 ac_cv_c_logicalop_noisy=no
12311else
12312 ac_cv_c_logicalop_noisy=yes
12313fi
12314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12315fi
12316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_logicalop_noisy" >&5
12317$as_echo "$ac_cv_c_logicalop_noisy" >&6; }
12318 CFLAGS="$saved_CFLAGS"
12319 if test "$ac_cv_c_logicalop_noisy" = "no"
12320 then
12321 EXTRACFLAGS="$EXTRACFLAGS -Wlogical-op"
12322 fi
12323
Andrew Nguyen2eda9c72010-05-25 22:20:14 -050012324 if test "x$enable_maintainer_mode" = "xyes"
Alexandre Julliard12753c52009-10-02 14:39:49 +020012325 then
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12327$as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12328if test "${ac_cv_cflags__Werror+set}" = set; then :
12329 $as_echo_n "(cached) " >&6
12330else
12331 ac_wine_try_cflags_saved=$CFLAGS
12332CFLAGS="$CFLAGS -Werror"
12333cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12334/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012335int main(int argc, char **argv) { return 0; }
Alexandre Julliard12753c52009-10-02 14:39:49 +020012336_ACEOF
12337if ac_fn_c_try_link "$LINENO"; then :
12338 ac_cv_cflags__Werror=yes
12339else
12340 ac_cv_cflags__Werror=no
12341fi
12342rm -f core conftest.err conftest.$ac_objext \
12343 conftest$ac_exeext conftest.$ac_ext
12344CFLAGS=$ac_wine_try_cflags_saved
12345fi
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12347$as_echo "$ac_cv_cflags__Werror" >&6; }
12348if test $ac_cv_cflags__Werror = yes; then :
12349 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12350fi
12351 fi
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020012352
12353 saved_CFLAGS="$CFLAGS"
12354 CFLAGS="$CFLAGS -Werror"
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12356$as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12357if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12358 $as_echo_n "(cached) " >&6
12359else
12360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12361/* end confdefs.h. */
12362int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12363int
12364main ()
12365{
12366
12367 ;
12368 return 0;
12369}
12370_ACEOF
12371if ac_fn_c_try_compile "$LINENO"; then :
12372 ac_cv_have_ms_hook_prologue="yes"
12373else
12374 ac_cv_have_ms_hook_prologue="no"
12375fi
12376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12377fi
12378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12379$as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12380 CFLAGS="$saved_CFLAGS"
12381 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12382 then
12383
12384$as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12385
12386 else
12387 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12388
12389 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012390fi
12391
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012392
Alexandre Julliard105793b2010-10-22 17:13:57 +020012393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the need to disable Fortify" >&5
12394$as_echo_n "checking for the need to disable Fortify... " >&6; }
12395if test "${ac_cv_c_fortify_enabled+set}" = set; then :
12396 $as_echo_n "(cached) " >&6
12397else
12398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399/* end confdefs.h. */
12400#include <string.h>
12401int
12402main ()
12403{
12404#if defined(__USE_FORTIFY_LEVEL) && __USE_FORTIFY_LEVEL > 0
12405#error Fortify enabled
12406#endif
12407 ;
12408 return 0;
12409}
12410_ACEOF
12411if ac_fn_c_try_compile "$LINENO"; then :
12412 ac_cv_c_fortify_enabled=no
12413else
12414 ac_cv_c_fortify_enabled=yes
12415fi
12416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12417fi
12418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_fortify_enabled" >&5
12419$as_echo "$ac_cv_c_fortify_enabled" >&6; }
12420if test "$ac_cv_c_fortify_enabled" = yes
12421then
Alexandre Julliardb10fb862010-10-29 14:25:01 +020012422 CFLAGS="$CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0"
Alexandre Julliard105793b2010-10-22 17:13:57 +020012423fi
12424
12425
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012427$as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012428if test "${ac_cv_c_extern_prefix+set}" = set; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012429 $as_echo_n "(cached) " >&6
12430else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012432/* end confdefs.h. */
12433extern int ac_test;
12434int
12435main ()
12436{
12437asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12438 ;
12439 return 0;
12440}
12441_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012442if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012443 ac_cv_c_extern_prefix="yes"
12444else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012445 ac_cv_c_extern_prefix="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012446fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012447rm -f core conftest.err conftest.$ac_objext \
12448 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012449fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012451$as_echo "$ac_cv_c_extern_prefix" >&6; }
12452
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012453case $host_cpu in
12454 *i[3456789]86*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012456$as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012457if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012458 $as_echo_n "(cached) " >&6
12459else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012461/* end confdefs.h. */
12462#ifndef _MSC_VER
12463#define __stdcall __attribute__((__stdcall__))
12464#endif
12465int __stdcall ac_test(int i) { return i; }
12466int
12467main ()
12468{
12469asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12470 ;
12471 return 0;
12472}
12473_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012474if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012475 ac_cv_c_stdcall_suffix="yes"
12476else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012477 ac_cv_c_stdcall_suffix="no"
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012478fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012479rm -f core conftest.err conftest.$ac_objext \
12480 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012481fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012483$as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12484 *) ac_cv_c_stdcall_suffix="no" ;;
12485esac
12486
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012487
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012488if test "$ac_cv_c_extern_prefix" = "yes"
12489then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012490 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012491
12492 asm_name_prefix="_"
12493else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012494 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012495
12496 asm_name_prefix=""
12497fi
12498
12499
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012500if test "$ac_cv_c_stdcall_suffix" = "yes"
12501then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012502 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012503
12504else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012505 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012506
12507fi
12508
12509
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012511$as_echo_n "checking how to define a function in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012512if test "${ac_cv_asm_func_def+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012513 $as_echo_n "(cached) " >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012514else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012516/* end confdefs.h. */
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012517
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012518int
12519main ()
12520{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012521asm("\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 +000012522 ;
12523 return 0;
12524}
12525_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012526if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012527 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012528else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012530/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012531
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012532int
12533main ()
12534{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012535asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012536 ;
12537 return 0;
12538}
12539_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012540if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012541 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012542else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012544/* end confdefs.h. */
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012545
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012546int
12547main ()
12548{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012549asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012550 ;
12551 return 0;
12552}
12553_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012554if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012555 ac_cv_asm_func_def=".type 2"
12556else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012557 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012558fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012559rm -f core conftest.err conftest.$ac_objext \
12560 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012561fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012562rm -f core conftest.err conftest.$ac_objext \
12563 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012564fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012565rm -f core conftest.err conftest.$ac_objext \
12566 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012567fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012569$as_echo "$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012570
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012571
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012572case "$ac_cv_asm_func_def" in
12573 ".def")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012574 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012575
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012576 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012577 ".type @function")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012578 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012579
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012580 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012581 ".type 2")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012582 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012583
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012584 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012585 *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012586 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012587
12588 asm_func_header="" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012589esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012590
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012592$as_echo_n "checking whether asm() works outside of functions... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012593if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012594 $as_echo_n "(cached) " >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012595else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012597/* end confdefs.h. */
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012598asm(".text\n\t.long 0");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012599int
12600main ()
12601{
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012602
12603 ;
12604 return 0;
12605}
12606_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012607if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012608 ac_cv_c_asm_outside_funcs="yes"
12609else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012610 ac_cv_c_asm_outside_funcs="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012611fi
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12613fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012615$as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12616
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012618$as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012619if test "${ac_cv_c_dot_previous+set}" = set; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012620 $as_echo_n "(cached) " >&6
12621else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012623/* end confdefs.h. */
12624
12625int
12626main ()
12627{
12628asm(".text\nac_test:\t.long 0\n\t.previous");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012629 ;
12630 return 0;
12631}
12632_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012633if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012634 ac_cv_c_dot_previous="yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012635else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012636 ac_cv_c_dot_previous="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012637fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012638rm -f core conftest.err conftest.$ac_objext \
12639 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012640fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012642$as_echo "$ac_cv_c_dot_previous" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012643
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012645$as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012646if test "${ac_cv_c_cfi_support+set}" = set; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012647 $as_echo_n "(cached) " >&6
12648else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012650/* end confdefs.h. */
12651asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12652int
12653main ()
12654{
12655
12656 ;
12657 return 0;
12658}
12659_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012660if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012661 ac_cv_c_cfi_support="yes"
12662else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012663 ac_cv_c_cfi_support="no"
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012664fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12666fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012668$as_echo "$ac_cv_c_cfi_support" >&6; }
12669
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012670asm_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 +020012671asm_func_trailer=""
12672if test "$ac_cv_c_dot_previous" = "yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012673then
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012674 asm_func_trailer="\\n\\t.previous"
12675fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012676if test "$ac_cv_c_cfi_support" = "yes"
12677then
12678 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12679 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012680
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012681$as_echo "#define __ASM_CFI(str) str" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012682
Alexandre Julliard6c142382010-04-11 12:47:30 +020012683 UNWINDFLAGS=-fasynchronous-unwind-tables
12684
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012685else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012686 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012687
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012688fi
12689
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012690asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12691
12692
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012693if test "$ac_cv_c_asm_outside_funcs" = "yes"
12694then
12695 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012696#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 +000012697_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012698
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012699else
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012700 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012701#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 +000012702_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012703
12704fi
12705
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012706$as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012707
12708
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012709$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 +020012710
12711
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012712
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012713LDPATH=""
12714
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012715case $build_os in
12716 cygwin*|mingw32*)
Alexandre Julliardb860c4a2009-09-01 22:36:13 +020012717 TOOLSEXT=".exe"
12718
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012719 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012720 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000012721 darwin*|macosx*)
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012722 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012723 *)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012724 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012725 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012726esac
12727
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012728case $host_os in
12729 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000012730 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012731
Alexandre Julliardbd9852c2010-09-19 12:40:12 +020012732 SOCKETLIBS="-L\$(top_builddir)/dlls/ws2_32 -lws2_32"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012733
12734 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000012735esac
12736
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012737MAIN_BINARY="wine"
12738
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020012739test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012740
Alexandre Julliard0a086202010-12-16 16:54:15 +010012741case $host_os in
12742 linux*)
12743 case $host_cpu in
12744 *i[3456789]86*) EXTRA_BINARIES="wine-preloader"
12745 ;;
12746 x86_64*) EXTRA_BINARIES="wine64-preloader"
Tijl Coosemans9f5c69c2007-08-24 15:46:36 +020012747 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010012748 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000012749 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012750esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012751
12752
Alexandre Julliard95251a72009-02-16 12:46:58 +010012753ac_save_CFLAGS="$CFLAGS"
12754CFLAGS="$CFLAGS $BUILTINFLAG"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012755for ac_func in \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012756 _pclose \
12757 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012758 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000012759 _spawnvp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012760 _strdup \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012761 _stricmp \
12762 _strnicmp \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012763 _strtoi64 \
12764 _strtoui64 \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012765 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010012766 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012767 chsize \
Alexandre Julliarde533e972006-08-15 12:11:30 +020012768 dlopen \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000012769 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000012770 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012771 finite \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +020012772 fnmatch \
Hans Leidekkerbed38422004-10-14 03:08:57 +000012773 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012774 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000012775 fstatfs \
12776 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012777 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000012778 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000012779 futimesat \
Charles Davis4e44e152011-01-18 13:09:44 -070012780 getattrlist \
Alexandre Julliarda9f214c2006-11-13 15:42:48 +010012781 getdirentries \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000012782 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012783 getpagesize \
Alexandre Julliard142dab82002-07-01 18:17:30 +000012784 getpwuid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000012785 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000012786 getuid \
Alexandre Julliardc8278922006-08-04 22:11:00 +020012787 kqueue \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000012788 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012789 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000012790 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012791 pclose \
Alexandre Julliard6f68b772009-07-01 12:13:34 +020012792 pipe2 \
Alexandre Julliard10892602006-08-15 11:41:59 +020012793 poll \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012794 popen \
Albert Lee01b972d2009-11-20 18:35:26 -050012795 port_create \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020012796 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012797 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000012798 pwrite \
Rob Shearman87175c62008-10-03 12:55:21 +010012799 readdir \
Alexandre Julliarde2930742004-01-08 05:07:05 +000012800 readlink \
Juan Lang474b2e42009-09-29 09:17:30 -070012801 sched_setaffinity \
Jeremy White08c0f692004-10-09 02:26:29 +000012802 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012803 select \
Gerald Pfeifer39f67272008-01-20 21:23:08 +010012804 setproctitle \
Paul Millardf10b7d2006-07-16 15:06:28 +010012805 setrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012806 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012807 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000012808 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012809 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000012810 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012811 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000012812 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012813 strcasecmp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012814 strdup \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012815 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012816 strncasecmp \
Louis Lenders6c04a182006-12-17 17:56:50 +000012817 strtold \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012818 strtoll \
12819 strtoull \
Alexandre Julliard0fbd5562008-12-22 10:47:16 +010012820 symlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012821 tcgetattr \
Tijl Coosemans0c4f1522007-08-23 14:12:37 +020012822 thr_kill2 \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012823 timegm \
12824 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012825 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012826 wait4 \
12827 waitpid \
12828
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012829do :
12830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12831ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020012832if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012833 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012834#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012835_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012836
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012837fi
12838done
12839
Alexandre Julliard95251a72009-02-16 12:46:58 +010012840CFLAGS="$ac_save_CFLAGS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012841
Alexandre Julliarde533e972006-08-15 12:11:30 +020012842if test "$ac_cv_func_dlopen" = no
12843then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012845$as_echo_n "checking for dlopen in -ldl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012846if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012847 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012848else
12849 ac_check_lib_save_LIBS=$LIBS
12850LIBS="-ldl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012852/* end confdefs.h. */
12853
12854/* Override any GCC internal prototype to avoid an error.
12855 Use char because int might match the return type of a GCC
12856 builtin and then its argument prototype would still apply. */
12857#ifdef __cplusplus
12858extern "C"
12859#endif
12860char dlopen ();
12861int
12862main ()
12863{
12864return dlopen ();
12865 ;
12866 return 0;
12867}
12868_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012869if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012870 ac_cv_lib_dl_dlopen=yes
12871else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012872 ac_cv_lib_dl_dlopen=no
Alexandre Julliarde533e972006-08-15 12:11:30 +020012873fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012874rm -f core conftest.err conftest.$ac_objext \
12875 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012876LIBS=$ac_check_lib_save_LIBS
12877fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012879$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012880if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12881 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
Alexandre Julliarde533e972006-08-15 12:11:30 +020012882 LIBDL="-ldl"
12883
12884fi
12885
12886fi
12887ac_wine_check_funcs_save_LIBS="$LIBS"
12888LIBS="$LIBS $LIBDL"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012889for ac_func in dladdr
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012890do :
12891 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12892if test "x$ac_cv_func_dladdr" = x""yes; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012893 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012894#define HAVE_DLADDR 1
Alexandre Julliarde533e972006-08-15 12:11:30 +020012895_ACEOF
12896
12897fi
12898done
12899
12900LIBS="$ac_wine_check_funcs_save_LIBS"
12901
Alexandre Julliard10892602006-08-15 11:41:59 +020012902if test "$ac_cv_func_poll" = no
12903then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012905$as_echo_n "checking for poll in -lpoll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012906if test "${ac_cv_lib_poll_poll+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012907 $as_echo_n "(cached) " >&6
Alexandre Julliard10892602006-08-15 11:41:59 +020012908else
12909 ac_check_lib_save_LIBS=$LIBS
12910LIBS="-lpoll $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012912/* end confdefs.h. */
12913
12914/* Override any GCC internal prototype to avoid an error.
12915 Use char because int might match the return type of a GCC
12916 builtin and then its argument prototype would still apply. */
12917#ifdef __cplusplus
12918extern "C"
12919#endif
12920char poll ();
12921int
12922main ()
12923{
12924return poll ();
12925 ;
12926 return 0;
12927}
12928_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012929if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard10892602006-08-15 11:41:59 +020012930 ac_cv_lib_poll_poll=yes
12931else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012932 ac_cv_lib_poll_poll=no
Alexandre Julliard10892602006-08-15 11:41:59 +020012933fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012934rm -f core conftest.err conftest.$ac_objext \
12935 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012936LIBS=$ac_check_lib_save_LIBS
12937fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012939$as_echo "$ac_cv_lib_poll_poll" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012940if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12941 $as_echo "#define HAVE_POLL 1" >>confdefs.h
Alexandre Julliard10892602006-08-15 11:41:59 +020012942 LIBPOLL="-lpoll"
12943
12944fi
12945
12946fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012947
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012949$as_echo_n "checking for library containing gethostbyname... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012950if test "${ac_cv_search_gethostbyname+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012951 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012952else
Alexandre Julliard28710412007-04-23 16:31:58 +020012953 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012955/* end confdefs.h. */
12956
12957/* Override any GCC internal prototype to avoid an error.
12958 Use char because int might match the return type of a GCC
12959 builtin and then its argument prototype would still apply. */
12960#ifdef __cplusplus
12961extern "C"
12962#endif
12963char gethostbyname ();
12964int
12965main ()
12966{
12967return gethostbyname ();
12968 ;
12969 return 0;
12970}
12971_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012972for ac_lib in '' nsl; do
12973 if test -z "$ac_lib"; then
12974 ac_res="none required"
12975 else
12976 ac_res=-l$ac_lib
12977 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12978 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012979 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012980 ac_cv_search_gethostbyname=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012981fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012982rm -f core conftest.err conftest.$ac_objext \
12983 conftest$ac_exeext
12984 if test "${ac_cv_search_gethostbyname+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012985 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012986fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012987done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012988if test "${ac_cv_search_gethostbyname+set}" = set; then :
12989
Alexandre Julliard28710412007-04-23 16:31:58 +020012990else
12991 ac_cv_search_gethostbyname=no
12992fi
12993rm conftest.$ac_ext
12994LIBS=$ac_func_search_save_LIBS
12995fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012997$as_echo "$ac_cv_search_gethostbyname" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012998ac_res=$ac_cv_search_gethostbyname
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012999if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013000 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020013001
13002fi
13003
Alexandre Julliarde533e972006-08-15 12:11:30 +020013004
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013006$as_echo_n "checking for library containing connect... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013007if test "${ac_cv_search_connect+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013008 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020013009else
Alexandre Julliard28710412007-04-23 16:31:58 +020013010 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013011cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020013012/* end confdefs.h. */
13013
13014/* Override any GCC internal prototype to avoid an error.
13015 Use char because int might match the return type of a GCC
13016 builtin and then its argument prototype would still apply. */
13017#ifdef __cplusplus
13018extern "C"
13019#endif
13020char connect ();
13021int
13022main ()
13023{
13024return connect ();
13025 ;
13026 return 0;
13027}
13028_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020013029for ac_lib in '' socket; do
13030 if test -z "$ac_lib"; then
13031 ac_res="none required"
13032 else
13033 ac_res=-l$ac_lib
13034 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13035 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013036 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013037 ac_cv_search_connect=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020013038fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013039rm -f core conftest.err conftest.$ac_objext \
13040 conftest$ac_exeext
13041 if test "${ac_cv_search_connect+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013042 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020013043fi
Alexandre Julliard28710412007-04-23 16:31:58 +020013044done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013045if test "${ac_cv_search_connect+set}" = set; then :
13046
Alexandre Julliard28710412007-04-23 16:31:58 +020013047else
13048 ac_cv_search_connect=no
13049fi
13050rm conftest.$ac_ext
13051LIBS=$ac_func_search_save_LIBS
13052fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013054$as_echo "$ac_cv_search_connect" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020013055ac_res=$ac_cv_search_connect
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013056if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013057 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020013058
13059fi
13060
Alexandre Julliarde533e972006-08-15 12:11:30 +020013061
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013063$as_echo_n "checking for library containing inet_aton... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013064if test "${ac_cv_search_inet_aton+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013065 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020013066else
Alexandre Julliard28710412007-04-23 16:31:58 +020013067 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020013069/* end confdefs.h. */
13070
13071/* Override any GCC internal prototype to avoid an error.
13072 Use char because int might match the return type of a GCC
13073 builtin and then its argument prototype would still apply. */
13074#ifdef __cplusplus
13075extern "C"
13076#endif
13077char inet_aton ();
13078int
13079main ()
13080{
13081return inet_aton ();
13082 ;
13083 return 0;
13084}
13085_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020013086for ac_lib in '' resolv; do
13087 if test -z "$ac_lib"; then
13088 ac_res="none required"
13089 else
13090 ac_res=-l$ac_lib
13091 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13092 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013093 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013094 ac_cv_search_inet_aton=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020013095fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013096rm -f core conftest.err conftest.$ac_objext \
13097 conftest$ac_exeext
13098 if test "${ac_cv_search_inet_aton+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013099 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020013100fi
Alexandre Julliard28710412007-04-23 16:31:58 +020013101done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013102if test "${ac_cv_search_inet_aton+set}" = set; then :
13103
Alexandre Julliard28710412007-04-23 16:31:58 +020013104else
13105 ac_cv_search_inet_aton=no
13106fi
13107rm conftest.$ac_ext
13108LIBS=$ac_func_search_save_LIBS
13109fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013111$as_echo "$ac_cv_search_inet_aton" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020013112ac_res=$ac_cv_search_inet_aton
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013113if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020013114 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020013115
13116fi
13117
Alexandre Julliarde533e972006-08-15 12:11:30 +020013118
Ben Taylor41c59962007-04-23 13:41:42 +000013119for ac_func in \
13120 getaddrinfo \
13121 getnameinfo \
13122 getnetbyname \
13123 getprotobyname \
13124 getprotobynumber \
13125 getservbyport \
13126 inet_network \
Austin English06566912009-03-28 00:13:09 -050013127 inet_ntop \
13128 inet_pton \
Ben Taylor41c59962007-04-23 13:41:42 +000013129 sendmsg \
Alexandre Julliard98bec052009-03-26 11:07:28 +010013130 socketpair \
Ben Taylor41c59962007-04-23 13:41:42 +000013131
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013132do :
13133 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13134ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013135if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Ben Taylor41c59962007-04-23 13:41:42 +000013136 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010013137#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Ben Taylor41c59962007-04-23 13:41:42 +000013138_ACEOF
13139
13140fi
13141done
13142
13143
Francois Gougetbcba2702008-07-10 12:36:06 +020013144LDAPLIBS=""
13145
13146if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
13147then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013148 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
13149"
13150if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013152$as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013153if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013154 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020013155else
13156 ac_check_lib_save_LIBS=$LIBS
13157LIBS="-lldap_r $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013159/* end confdefs.h. */
13160
13161/* Override any GCC internal prototype to avoid an error.
13162 Use char because int might match the return type of a GCC
13163 builtin and then its argument prototype would still apply. */
13164#ifdef __cplusplus
13165extern "C"
13166#endif
13167char ldap_initialize ();
13168int
13169main ()
13170{
13171return ldap_initialize ();
13172 ;
13173 return 0;
13174}
13175_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013176if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013177 ac_cv_lib_ldap_r_ldap_initialize=yes
13178else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013179 ac_cv_lib_ldap_r_ldap_initialize=no
Francois Gougetbcba2702008-07-10 12:36:06 +020013180fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013181rm -f core conftest.err conftest.$ac_objext \
13182 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013183LIBS=$ac_check_lib_save_LIBS
13184fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013186$as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013187if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013189$as_echo_n "checking for ber_init in -llber... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013190if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013191 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020013192else
13193 ac_check_lib_save_LIBS=$LIBS
13194LIBS="-llber $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013195cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013196/* end confdefs.h. */
13197
13198/* Override any GCC internal prototype to avoid an error.
13199 Use char because int might match the return type of a GCC
13200 builtin and then its argument prototype would still apply. */
13201#ifdef __cplusplus
13202extern "C"
13203#endif
13204char ber_init ();
13205int
13206main ()
13207{
13208return ber_init ();
13209 ;
13210 return 0;
13211}
13212_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013213if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013214 ac_cv_lib_lber_ber_init=yes
13215else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013216 ac_cv_lib_lber_ber_init=no
Francois Gougetbcba2702008-07-10 12:36:06 +020013217fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013218rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020013220LIBS=$ac_check_lib_save_LIBS
13221fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013223$as_echo "$ac_cv_lib_lber_ber_init" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013224if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013225
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013226$as_echo "#define HAVE_LDAP 1" >>confdefs.h
Francois Gougetbcba2702008-07-10 12:36:06 +020013227
13228 LDAPLIBS="-lldap_r -llber"
13229fi
13230
13231fi
13232
13233fi
13234
13235 ac_wine_check_funcs_save_LIBS="$LIBS"
13236LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Francois Gougetbcba2702008-07-10 12:36:06 +020013237for ac_func in \
13238 ldap_count_references \
13239 ldap_first_reference \
13240 ldap_next_reference \
13241 ldap_parse_reference \
13242 ldap_parse_sort_control \
13243 ldap_parse_sortresponse_control \
13244 ldap_parse_vlv_control \
13245 ldap_parse_vlvresponse_control
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013246do :
13247 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13248ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013249if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013250 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010013251#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Francois Gougetbcba2702008-07-10 12:36:06 +020013252_ACEOF
13253
13254fi
13255done
13256
13257LIBS="$ac_wine_check_funcs_save_LIBS"
13258fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013259if test "x$LDAPLIBS" = "x"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020013260 case "x$with_ldap" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010013261 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 +020013262 xno) ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020013263 *) as_fn_error $? "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
13264This is an error since --with-ldap was requested." "$LINENO" 5 ;;
Francois Gougetbcba2702008-07-10 12:36:06 +020013265esac
13266fi
13267
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010013269$as_echo_n "checking whether mkdir takes only one argument... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013270if test "${wine_cv_one_arg_mkdir+set}" = set; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010013271 $as_echo_n "(cached) " >&6
13272else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard921e6622008-12-22 10:39:11 +010013274/* end confdefs.h. */
13275#include <sys/stat.h>
13276int
13277main ()
13278{
13279mkdir("foo");
13280 ;
13281 return 0;
13282}
13283_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013284if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010013285 wine_cv_one_arg_mkdir=yes
13286else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013287 wine_cv_one_arg_mkdir=no
Alexandre Julliard921e6622008-12-22 10:39:11 +010013288fi
Alexandre Julliard921e6622008-12-22 10:39:11 +010013289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13290fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010013292$as_echo "$wine_cv_one_arg_mkdir" >&6; }
13293if test "$wine_cv_one_arg_mkdir" = "yes"
13294then
13295
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013296$as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
Alexandre Julliard921e6622008-12-22 10:39:11 +010013297
13298fi
13299
Ben Taylor41c59962007-04-23 13:41:42 +000013300
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013302$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013303if test "${ac_cv_c_const+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013304 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013305else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013307/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013308
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013309int
13310main ()
13311{
13312/* FIXME: Include the comments suggested by Paul. */
13313#ifndef __cplusplus
13314 /* Ultrix mips cc rejects this. */
13315 typedef int charset[2];
Phil Krylovf0ca5862006-11-05 23:03:46 +030013316 const charset cs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013317 /* SunOS 4.1.1 cc rejects this. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030013318 char const *const *pcpcc;
13319 char **ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013320 /* NEC SVR4.0.2 mips cc rejects this. */
13321 struct point {int x, y;};
13322 static struct point const zero = {0,0};
13323 /* AIX XL C 1.02.0.0 rejects this.
13324 It does not let you subtract one const X* pointer from another in
13325 an arm of an if-expression whose if-part is not a constant
13326 expression */
13327 const char *g = "string";
Phil Krylovf0ca5862006-11-05 23:03:46 +030013328 pcpcc = &g + (g ? g-g : 0);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013329 /* HPUX 7.0 cc rejects these. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030013330 ++pcpcc;
13331 ppc = (char**) pcpcc;
13332 pcpcc = (char const *const *) ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013333 { /* SCO 3.2v4 cc rejects this. */
13334 char *t;
13335 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013336
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013337 *t++ = 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013338 if (s) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013339 }
13340 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13341 int x[] = {25, 17};
13342 const int *foo = &x[0];
13343 ++foo;
13344 }
13345 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13346 typedef const int *iptr;
13347 iptr p = 0;
13348 ++p;
13349 }
13350 { /* AIX XL C 1.02.0.0 rejects this saying
13351 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13352 struct s { int j; const int *ap[3]; };
13353 struct s *b; b->j = 5;
13354 }
13355 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13356 const int foo = 10;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013357 if (!foo) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013358 }
Phil Krylovf0ca5862006-11-05 23:03:46 +030013359 return !cs[0] && !zero.x;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013360#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013361
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013362 ;
13363 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013364}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013365_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013366if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013367 ac_cv_c_const=yes
13368else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013369 ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013370fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013371rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013372fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013373{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013374$as_echo "$ac_cv_c_const" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013375if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013376
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013377$as_echo "#define const /**/" >>confdefs.h
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013378
13379fi
13380
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013382$as_echo_n "checking for inline... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013383if test "${ac_cv_c_inline+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013384 $as_echo_n "(cached) " >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013385else
13386 ac_cv_c_inline=no
13387for ac_kw in inline __inline__ __inline; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013389/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013390#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013391typedef int foo_t;
13392static $ac_kw foo_t static_foo () {return 0; }
13393$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013394#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013395
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013396_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013397if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013398 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013399fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013401 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013402done
13403
13404fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013406$as_echo "$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000013407
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013408case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013409 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000013410 *)
13411 case $ac_cv_c_inline in
13412 no) ac_val=;;
13413 *) ac_val=$ac_cv_c_inline;;
13414 esac
13415 cat >>confdefs.h <<_ACEOF
13416#ifndef __cplusplus
13417#define inline $ac_val
13418#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013419_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000013420 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013421esac
13422
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013423ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13424if test "x$ac_cv_type_mode_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013425
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013426cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013427#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013428_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013429
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013430
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013431fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013432ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13433if test "x$ac_cv_type_off_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013434
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013435cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013436#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013437_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013438
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013439
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013440fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013441ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13442if test "x$ac_cv_type_pid_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013443
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013444cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013445#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013446_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013447
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013448
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013449fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013450ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13451if test "x$ac_cv_type_size_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013452
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013453cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013454#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013455_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013456
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013457
13458fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013459ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13460if test "x$ac_cv_type_ssize_t" = x""yes; then :
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013461
13462cat >>confdefs.h <<_ACEOF
13463#define HAVE_SSIZE_T 1
13464_ACEOF
13465
13466
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013467fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013468ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13469if test "x$ac_cv_type_long_long" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013470
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013471cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013472#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013473_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013474
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013475
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013476fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013477ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13478if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013479
13480cat >>confdefs.h <<_ACEOF
13481#define HAVE_FSBLKCNT_T 1
13482_ACEOF
13483
13484
13485fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013486ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13487if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013488
13489cat >>confdefs.h <<_ACEOF
13490#define HAVE_FSFILCNT_T 1
13491_ACEOF
13492
13493
13494fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013495
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013496ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
Alexandre Julliardabf50482008-10-31 12:56:53 +010013497#include <signal.h>
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013498"
13499if test "x$ac_cv_type_sigset_t" = x""yes; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013500
13501cat >>confdefs.h <<_ACEOF
13502#define HAVE_SIGSET_T 1
13503_ACEOF
13504
13505
13506fi
13507
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013508ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13509"
13510if test "x$ac_cv_type_request_sense" = x""yes; then :
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000013511
13512cat >>confdefs.h <<_ACEOF
13513#define HAVE_REQUEST_SENSE 1
13514_ACEOF
13515
13516
13517fi
13518
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013519
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013520ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
Austin English68f2db22009-01-29 08:28:37 -060013521#ifdef HAVE_SYS_SOCKET_H
13522#include <sys/socket.h>
13523#endif
13524#ifdef HAVE_SYS_SOCKETVAR_H
13525#include <sys/socketvar.h>
13526#endif
13527#ifdef HAVE_NET_ROUTE_H
13528#include <net/route.h>
13529#endif
13530#ifdef HAVE_NETINET_IN_H
13531#include <netinet/in.h>
13532#endif
13533#ifdef HAVE_NETINET_IN_SYSTM_H
13534#include <netinet/in_systm.h>
13535#endif
13536#ifdef HAVE_NETINET_IP_H
13537#include <netinet/ip.h>
13538#endif
13539#ifdef HAVE_NETINET_IN_PCB_H
13540#include <netinet/in_pcb.h>
13541#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013542"
13543if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
Austin English68f2db22009-01-29 08:28:37 -060013544
13545cat >>confdefs.h <<_ACEOF
13546#define HAVE_STRUCT_XINPGEN 1
13547_ACEOF
13548
13549
13550fi
13551
13552
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013553ac_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 +000013554#include <linux/input.h>
13555#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013556"
13557if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
Daniel Remenake491e8f2005-07-29 14:18:58 +000013558
13559cat >>confdefs.h <<_ACEOF
13560#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13561_ACEOF
13562
13563
13564fi
13565
13566
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013568$as_echo_n "checking for sigaddset... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013569if test "${wine_cv_have_sigaddset+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013570 $as_echo_n "(cached) " >&6
Paul Millar10a6c562004-12-07 17:19:54 +000013571else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013573/* end confdefs.h. */
13574#include <signal.h>
13575int
13576main ()
13577{
13578sigset_t set; sigaddset(&set,SIGTERM);
13579 ;
13580 return 0;
13581}
13582_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013583if ac_fn_c_try_link "$LINENO"; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013584 wine_cv_have_sigaddset=yes
13585else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013586 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000013587fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013588rm -f core conftest.err conftest.$ac_objext \
13589 conftest$ac_exeext conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013590fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013592$as_echo "$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000013593if test "$wine_cv_have_sigaddset" = "yes"
13594then
13595
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013596$as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
Paul Millar10a6c562004-12-07 17:19:54 +000013597
13598fi
13599
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013600
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013601{ $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 +010013602$as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013603if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013604 $as_echo_n "(cached) " >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013605else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013607/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000013608#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013609int
13610main ()
13611{
Rein Klazesff7a61f2000-09-24 19:41:57 +000013612
Ken Thomases20d9bad2007-10-19 16:18:51 -050013613 char *name=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013614 struct hostent he;
13615 struct hostent *result;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013616 char *buf=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013617 int bufsize=0;
13618 int res,errnr;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013619 char *addr=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013620 int addrlen=0;
13621 int addrtype=0;
13622 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13623 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013624
13625 ;
13626 return 0;
13627}
13628_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013629if ac_fn_c_try_link "$LINENO"; then :
Rein Klazesff7a61f2000-09-24 19:41:57 +000013630 wine_cv_linux_gethostbyname_r_6=yes
13631else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013632 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000013633
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013634fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013635rm -f core conftest.err conftest.$ac_objext \
13636 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013637
13638fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013640$as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000013641 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13642 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013643
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013644$as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
Rein Klazesff7a61f2000-09-24 19:41:57 +000013645
13646 fi
13647
Marcus Meissner028e9a11999-08-04 15:07:56 +000013648if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013649then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013650 { $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 +010013651$as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013652if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013653 $as_echo_n "(cached) " >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013654else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013656/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013657
Marcus Meissner028e9a11999-08-04 15:07:56 +000013658 #include <sys/ioctl.h>
Marcus Meissner7c434992007-04-12 12:12:05 +020013659 #include <sys/types.h>
Marcus Meissner028e9a11999-08-04 15:07:56 +000013660 #include <linux/joystick.h>
13661
13662 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000013663 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13664 #error "no 2.2 header"
13665 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013666
13667int
13668main ()
13669{
Marcus Meissner028e9a11999-08-04 15:07:56 +000013670/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013671 ;
13672 return 0;
13673}
13674_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013675if ac_fn_c_try_compile "$LINENO"; then :
Marcus Meissner028e9a11999-08-04 15:07:56 +000013676 wine_cv_linux_joystick_22_api=yes
13677else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013678 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000013679fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000013681
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013682fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013684$as_echo "$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000013685 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013686 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013687
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013688$as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
Marcus Meissner028e9a11999-08-04 15:07:56 +000013689
13690 fi
13691fi
13692
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013693
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013694ac_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 +000013695#ifdef HAVE_SYS_PARAM_H
13696# include <sys/param.h>
13697#endif
Robert Millan55b74482006-02-06 21:53:27 +010013698#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013699# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013700#endif
13701#ifdef HAVE_SYS_VFS_H
13702# include <sys/vfs.h>
13703#endif
13704#ifdef HAVE_SYS_STATFS_H
13705# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013706#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013707"
13708if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013709
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013710cat >>confdefs.h <<_ACEOF
13711#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013712_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013713
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013714
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013715fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013716ac_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 +000013717#ifdef HAVE_SYS_PARAM_H
13718# include <sys/param.h>
13719#endif
Robert Millan55b74482006-02-06 21:53:27 +010013720#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013721# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013722#endif
13723#ifdef HAVE_SYS_VFS_H
13724# include <sys/vfs.h>
13725#endif
13726#ifdef HAVE_SYS_STATFS_H
13727# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013728#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013729"
13730if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
Patrik Stridvall09da9662001-07-08 22:30:50 +000013731
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013732cat >>confdefs.h <<_ACEOF
13733#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013734_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013735
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013736
Patrik Stridvall09da9662001-07-08 22:30:50 +000013737fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013738ac_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 +000013739#ifdef HAVE_SYS_PARAM_H
13740# include <sys/param.h>
13741#endif
Robert Millan55b74482006-02-06 21:53:27 +010013742#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013743# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013744#endif
13745#ifdef HAVE_SYS_VFS_H
13746# include <sys/vfs.h>
13747#endif
13748#ifdef HAVE_SYS_STATFS_H
13749# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013750#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013751"
13752if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013753
13754cat >>confdefs.h <<_ACEOF
13755#define HAVE_STRUCT_STATFS_F_FRSIZE 1
13756_ACEOF
13757
13758
13759fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013760ac_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 +000013761#ifdef HAVE_SYS_PARAM_H
13762# include <sys/param.h>
13763#endif
Robert Millan55b74482006-02-06 21:53:27 +010013764#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013765# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013766#endif
13767#ifdef HAVE_SYS_VFS_H
13768# include <sys/vfs.h>
13769#endif
13770#ifdef HAVE_SYS_STATFS_H
13771# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013772#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013773"
13774if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013775
13776cat >>confdefs.h <<_ACEOF
13777#define HAVE_STRUCT_STATFS_F_FFREE 1
13778_ACEOF
13779
13780
13781fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013782ac_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 +000013783#ifdef HAVE_SYS_PARAM_H
13784# include <sys/param.h>
13785#endif
Robert Millan55b74482006-02-06 21:53:27 +010013786#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013787# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013788#endif
13789#ifdef HAVE_SYS_VFS_H
13790# include <sys/vfs.h>
13791#endif
13792#ifdef HAVE_SYS_STATFS_H
13793# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013794#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013795"
13796if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013797
13798cat >>confdefs.h <<_ACEOF
13799#define HAVE_STRUCT_STATFS_F_FAVAIL 1
13800_ACEOF
13801
13802
13803fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013804ac_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 +000013805#ifdef HAVE_SYS_PARAM_H
13806# include <sys/param.h>
13807#endif
Robert Millan55b74482006-02-06 21:53:27 +010013808#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000013809# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013810#endif
13811#ifdef HAVE_SYS_VFS_H
13812# include <sys/vfs.h>
13813#endif
13814#ifdef HAVE_SYS_STATFS_H
13815# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000013816#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013817"
13818if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
Alexandre Julliardb859a682004-03-07 03:16:43 +000013819
13820cat >>confdefs.h <<_ACEOF
13821#define HAVE_STRUCT_STATFS_F_NAMELEN 1
13822_ACEOF
13823
13824
13825fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000013826
13827
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013828ac_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 +000013829#include <sys/statvfs.h>
13830#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013831"
13832if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013833
13834cat >>confdefs.h <<_ACEOF
13835#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13836_ACEOF
13837
13838
13839fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000013840
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013841
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013842ac_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 +000013843#ifdef HAVE_SYS_SOCKET_H
13844# include <sys/socket.h>
13845#endif
13846#ifdef HAVE_SYS_UN_H
13847# include <sys/un.h>
13848#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013849"
13850if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
Juergen Lock2d33ab92000-02-13 16:03:29 +000013851
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013852cat >>confdefs.h <<_ACEOF
13853#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013854_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013855
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013856
13857fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013858ac_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 +000013859#ifdef HAVE_SYS_SOCKET_H
13860# include <sys/socket.h>
13861#endif
13862#ifdef HAVE_SYS_UN_H
13863# include <sys/un.h>
13864#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013865"
13866if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013867
13868cat >>confdefs.h <<_ACEOF
13869#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13870_ACEOF
13871
13872
13873fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013874ac_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 +000013875#ifdef HAVE_SYS_SOCKET_H
13876# include <sys/socket.h>
13877#endif
13878#ifdef HAVE_SYS_UN_H
13879# include <sys/un.h>
13880#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013881"
13882if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013883
13884cat >>confdefs.h <<_ACEOF
13885#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13886_ACEOF
13887
13888
Juergen Lock2d33ab92000-02-13 16:03:29 +000013889fi
13890
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013891
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013892ac_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 +000013893#ifdef HAVE_SCSI_SG_H
13894#include <scsi/sg.h>
13895#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013896"
13897if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013898
13899cat >>confdefs.h <<_ACEOF
13900#define HAVE_SCSIREQ_T_CMD 1
13901_ACEOF
13902
13903
13904fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013905ac_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 +000013906#ifdef HAVE_SCSI_SG_H
13907#include <scsi/sg.h>
13908#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013909"
13910if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013911
13912cat >>confdefs.h <<_ACEOF
13913#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13914_ACEOF
13915
13916
13917fi
13918
13919
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013920ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13921"
13922if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013923
13924cat >>confdefs.h <<_ACEOF
13925#define HAVE_SIGINFO_T_SI_FD 1
13926_ACEOF
13927
13928
13929fi
13930
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013931
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013932ac_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 +010013933#ifdef HAVE_SYS_MTIO_H
13934#include <sys/mtio.h>
13935#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013936"
13937if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013938
13939cat >>confdefs.h <<_ACEOF
13940#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13941_ACEOF
13942
13943
13944fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013945ac_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 +010013946#ifdef HAVE_SYS_MTIO_H
13947#include <sys/mtio.h>
13948#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013949"
13950if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013951
13952cat >>confdefs.h <<_ACEOF
13953#define HAVE_STRUCT_MTGET_MT_GSTAT 1
13954_ACEOF
13955
13956
13957fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013958ac_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 +010013959#ifdef HAVE_SYS_MTIO_H
13960#include <sys/mtio.h>
13961#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013962"
13963if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010013964
13965cat >>confdefs.h <<_ACEOF
13966#define HAVE_STRUCT_MTGET_MT_BLKNO 1
13967_ACEOF
13968
13969
13970fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013971
13972
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013973ac_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 +000013974#include <getopt.h>
13975#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013976"
13977if test "x$ac_cv_member_struct_option_name" = x""yes; then :
Alexandre Julliarddb89a542003-04-20 02:56:14 +000013978
13979cat >>confdefs.h <<_ACEOF
13980#define HAVE_STRUCT_OPTION_NAME 1
13981_ACEOF
13982
13983
13984fi
13985
13986
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013987ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13988if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
Pavel Roskind6507192003-10-03 03:28:40 +000013989
13990cat >>confdefs.h <<_ACEOF
13991#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13992_ACEOF
13993
13994
13995fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013996ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13997if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013998
13999cat >>confdefs.h <<_ACEOF
14000#define HAVE_STRUCT_STAT_ST_MTIM 1
14001_ACEOF
14002
14003
14004fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014005ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
14006if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020014007
14008cat >>confdefs.h <<_ACEOF
14009#define HAVE_STRUCT_STAT_ST_CTIM 1
14010_ACEOF
14011
14012
14013fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014014ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
14015if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020014016
14017cat >>confdefs.h <<_ACEOF
14018#define HAVE_STRUCT_STAT_ST_ATIM 1
14019_ACEOF
14020
14021
14022fi
Pavel Roskind6507192003-10-03 03:28:40 +000014023
14024
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014025ac_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 +030014026#include <sys/types.h>
14027#endif
14028#ifdef HAVE_NETINET_IN_H
14029#include <netinet/in.h>
14030#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014031"
14032if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030014033
14034cat >>confdefs.h <<_ACEOF
14035#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
14036_ACEOF
14037
14038
14039fi
14040
14041
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014042ac_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 +020014043#include <sys/types.h>
14044#endif
14045#ifdef HAVE_NETINET_IN_H
14046# include <netinet/in.h>
14047#endif
14048#ifdef HAVE_ARPA_NAMESER_H
14049# include <arpa/nameser.h>
14050#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014051"
14052if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
Alexandre Julliard788e30f2006-05-31 14:43:21 +020014053
14054cat >>confdefs.h <<_ACEOF
14055#define HAVE_NS_MSG__MSG_PTR 1
14056_ACEOF
14057
14058
14059fi
14060
14061
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014062ac_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 -060014063#include <sys/types.h>
14064#endif
14065#ifdef HAVE_ALIAS_H
14066#include <alias.h>
14067#endif
14068#ifdef HAVE_SYS_SOCKET_H
14069#include <sys/socket.h>
14070#endif
14071#ifdef HAVE_SYS_SOCKETVAR_H
14072#include <sys/socketvar.h>
14073#endif
14074#ifdef HAVE_SYS_TIMEOUT_H
14075#include <sys/timeout.h>
14076#endif
14077#ifdef HAVE_NETINET_IN_H
14078#include <netinet/in.h>
14079#endif
14080#ifdef HAVE_NETINET_IN_SYSTM_H
14081#include <netinet/in_systm.h>
14082#endif
14083#ifdef HAVE_NETINET_IP_H
14084#include <netinet/ip.h>
14085#endif
14086#ifdef HAVE_NETINET_IP_VAR_H
14087#include <netinet/ip_var.h>
14088#endif
14089#ifdef HAVE_NETINET_IP_ICMP_H
14090#include <netinet/ip_icmp.h>
14091#endif
14092#ifdef HAVE_NETINET_ICMP_VAR
14093#include <netinet/icmp_var.h>
14094#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014095"
14096if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
Austin Englishac0252d2009-01-30 10:18:10 -060014097
14098cat >>confdefs.h <<_ACEOF
14099#define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
14100_ACEOF
14101
14102
14103fi
14104
14105
Juan Lang984c3b22010-03-12 10:38:46 -080014106ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
14107#include <sys/types.h>
14108#endif
14109#ifdef HAVE_NET_IF_H
14110# include <net/if.h>
14111#endif
14112"
14113if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
14114
14115cat >>confdefs.h <<_ACEOF
14116#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
14117_ACEOF
14118
14119
14120fi
14121
14122
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014124$as_echo_n "checking for timezone variable... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014125if test "${ac_cv_have_timezone+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014126 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000014127else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014129/* end confdefs.h. */
14130#include <time.h>
14131int
14132main ()
14133{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020014134timezone = 1
Phil Krylov6618b032005-05-24 11:52:46 +000014135 ;
14136 return 0;
14137}
14138_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014139if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000014140 ac_cv_have_timezone="yes"
14141else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014142 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000014143fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014144rm -f core conftest.err conftest.$ac_objext \
14145 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014146fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014148$as_echo "$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000014149if test "$ac_cv_have_timezone" = "yes"
14150then
14151
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014152$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000014153
14154fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014156$as_echo_n "checking for daylight variable... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014157if test "${ac_cv_have_daylight+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014158 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000014159else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014161/* end confdefs.h. */
14162#include <time.h>
14163int
14164main ()
14165{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020014166daylight = 1
Phil Krylov6618b032005-05-24 11:52:46 +000014167 ;
14168 return 0;
14169}
14170_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014171if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000014172 ac_cv_have_daylight="yes"
14173else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014174 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000014175fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014176rm -f core conftest.err conftest.$ac_objext \
14177 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000014178fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014180$as_echo "$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000014181if test "$ac_cv_have_daylight" = "yes"
14182then
14183
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014184$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000014185
14186fi
14187
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014189$as_echo_n "checking for isinf... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014190if test "${ac_cv_have_isinf+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014191 $as_echo_n "(cached) " >&6
Petr Sumbera4992b652008-04-29 17:08:53 +020014192else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020014194/* end confdefs.h. */
14195#include <math.h>
14196int
14197main ()
14198{
Francois Gouget2fef93a2008-06-26 15:59:05 +020014199float f = 0.0; int i=isinf(f)
Petr Sumbera4992b652008-04-29 17:08:53 +020014200 ;
14201 return 0;
14202}
14203_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014204if ac_fn_c_try_link "$LINENO"; then :
Petr Sumbera4992b652008-04-29 17:08:53 +020014205 ac_cv_have_isinf="yes"
14206else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014207 ac_cv_have_isinf="no"
Petr Sumbera4992b652008-04-29 17:08:53 +020014208fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014209rm -f core conftest.err conftest.$ac_objext \
14210 conftest$ac_exeext conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020014211fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014213$as_echo "$ac_cv_have_isinf" >&6; }
Petr Sumbera4992b652008-04-29 17:08:53 +020014214if test "$ac_cv_have_isinf" = "yes"
14215then
14216
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014217$as_echo "#define HAVE_ISINF 1" >>confdefs.h
Petr Sumbera4992b652008-04-29 17:08:53 +020014218
14219fi
14220
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014222$as_echo_n "checking for isnan... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014223if test "${ac_cv_have_isnan+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014224 $as_echo_n "(cached) " >&6
Jacek Caban1715dcb2008-10-14 16:06:49 -050014225else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050014227/* end confdefs.h. */
14228#include <math.h>
14229int
14230main ()
14231{
14232float f = 0.0; int i=isnan(f)
14233 ;
14234 return 0;
14235}
14236_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014237if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban1715dcb2008-10-14 16:06:49 -050014238 ac_cv_have_isnan="yes"
14239else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014240 ac_cv_have_isnan="no"
Jacek Caban1715dcb2008-10-14 16:06:49 -050014241fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014242rm -f core conftest.err conftest.$ac_objext \
14243 conftest$ac_exeext conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050014244fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014246$as_echo "$ac_cv_have_isnan" >&6; }
Jacek Caban1715dcb2008-10-14 16:06:49 -050014247if test "$ac_cv_have_isnan" = "yes"
14248then
14249
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014250$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
Jacek Caban1715dcb2008-10-14 16:06:49 -050014251
14252fi
14253
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014254
Alexandre Julliardfc01b722002-05-12 03:16:39 +000014255case $host_cpu in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014256 *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 +010014257$as_echo_n "checking whether we need to define __i386__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014258if test "${ac_cv_cpp_def___i386__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014259 $as_echo_n "(cached) " >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000014260else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014262/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014263#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014264yes
14265#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014266_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014267if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014268 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014269 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014270else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014271 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000014272fi
14273rm -f conftest*
14274
14275fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014277$as_echo "$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014278if test $ac_cv_cpp_def___i386__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014279 CFLAGS="$CFLAGS -D__i386__"
14280 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014281fi ;;
14282 *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 +010014283$as_echo_n "checking whether we need to define __x86_64__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014284if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014285 $as_echo_n "(cached) " >&6
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014286else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014288/* end confdefs.h. */
14289#ifndef __x86_64__
14290yes
14291#endif
14292_ACEOF
14293if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014294 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014295 ac_cv_cpp_def___x86_64__=yes
14296else
14297 ac_cv_cpp_def___x86_64__=no
14298fi
14299rm -f conftest*
14300
14301fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014303$as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014304if test $ac_cv_cpp_def___x86_64__ = yes; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000014305 CFLAGS="$CFLAGS -D__x86_64__"
14306 LINTFLAGS="$LINTFLAGS -D__x86_64__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014307fi ;;
14308 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014309$as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014310if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014311 $as_echo_n "(cached) " >&6
Steven Edwards69b67862002-12-10 22:48:48 +000014312else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014314/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000014315#ifndef __ALPHA__
14316yes
14317#endif
14318_ACEOF
14319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014320 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014321 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000014322else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014323 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000014324fi
14325rm -f conftest*
14326
14327fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014329$as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014330if test $ac_cv_cpp_def___ALPHA__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014331 CFLAGS="$CFLAGS -D__ALPHA__"
14332 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014333fi ;;
14334 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014335$as_echo_n "checking whether we need to define __sparc__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014336if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014337 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014338else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014340/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014341#ifndef __sparc__
14342yes
14343#endif
14344_ACEOF
14345if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014346 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014347 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014348else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014349 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014350fi
14351rm -f conftest*
14352
14353fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014355$as_echo "$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014356if test $ac_cv_cpp_def___sparc__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014357 CFLAGS="$CFLAGS -D__sparc__"
14358 LINTFLAGS="$LINTFLAGS -D__sparc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014359fi ;;
14360 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014361$as_echo_n "checking whether we need to define __powerpc__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014362if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014363 $as_echo_n "(cached) " >&6
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014364else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014366/* end confdefs.h. */
14367#ifndef __powerpc__
14368yes
14369#endif
14370_ACEOF
14371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014372 $EGREP "yes" >/dev/null 2>&1; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014373 ac_cv_cpp_def___powerpc__=yes
14374else
14375 ac_cv_cpp_def___powerpc__=no
14376fi
14377rm -f conftest*
14378
14379fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014381$as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014382if test $ac_cv_cpp_def___powerpc__ = yes; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014383 CFLAGS="$CFLAGS -D__powerpc__"
14384 LINTFLAGS="$LINTFLAGS -D__powerpc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014385fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014386esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014387
14388case $host_vendor in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014389 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014390$as_echo_n "checking whether we need to define __sun__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014391if test "${ac_cv_cpp_def___sun__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014392 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014393else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014395/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014396#ifndef __sun__
14397yes
14398#endif
14399_ACEOF
14400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014401 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014402 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014403else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014404 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014405fi
14406rm -f conftest*
14407
14408fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014410$as_echo "$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014411if test $ac_cv_cpp_def___sun__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014412 CFLAGS="$CFLAGS -D__sun__"
14413 LINTFLAGS="$LINTFLAGS -D__sun__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014414fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014415esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014416
14417
Alexandre Julliarda360e932008-08-20 16:02:37 +020014418
Alexandre Julliard7d831152010-03-20 15:07:45 +010014419
Alexandre Julliard6c142382010-04-11 12:47:30 +020014420
Alexandre Julliard7d831152010-03-20 15:07:45 +010014421ac_config_commands="$ac_config_commands include/stamp-h"
14422
Alexandre Julliard03642412010-03-20 15:24:22 +010014423
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014424ALL_MAKEFILE_DEPENDS="
14425# Rules automatically generated by configure
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014426
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014427.INIT: Makefile
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014428.MAKEFILEDEPS:
Alexandre Julliardbd3110d2010-05-23 10:34:36 +020014429all: Makefile
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020014430Makefile: Makefile.in Make.vars.in Make.rules config.status
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014431 @./config.status Make.tmp Makefile"
Alexandre Julliarda360e932008-08-20 16:02:37 +020014432
Alexandre Julliard367fd222011-01-04 17:05:21 +010014433ALL_POT_FILES=""
Alexandre Julliardd5addea2010-02-08 21:27:54 +010014434ALL_WINETEST_DEPENDS="# Test binaries"
14435
Alexandre Julliard454fb3c2010-02-08 21:29:13 +010014436ALL_TEST_BINARIES=""
14437
Alexandre Julliard49163da2008-08-25 12:02:27 +020014438
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014439wine_fn_append_file ()
14440{
14441 as_fn_append $1 " \\$as_nl $2"
14442}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014443
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014444wine_fn_append_rule ()
14445{
14446 as_fn_append $1 "$as_nl$2"
14447}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014448
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014449wine_fn_has_flag ()
14450{
14451 expr ",$2," : ".*,$1,.*" >/dev/null
14452}
14453
Alexandre Julliard943cd732010-03-25 21:52:56 +010014454wine_fn_all_dir_rules ()
14455{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014456 ac_dir=$1
14457 ac_alldeps=$2
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014458 ac_makedep="\$(MAKEDEP)"
14459 ac_input=Make.vars.in:$ac_dir/Makefile.in
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014460 if test $ac_dir != tools
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014461 then
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014462 ac_alldeps="$2 $ac_makedep"
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014463 fi
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014464 case $2 in
14465 *.in) ac_input=$ac_input:$2 ;;
14466 *) ac_makedep="$2 $ac_makedep" ;;
14467 esac
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014468
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014469 wine_fn_append_file ALL_DIRS $ac_dir
Alexandre Julliard943cd732010-03-25 21:52:56 +010014470 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014471"__clean__: $ac_dir/__clean__
14472.PHONY: $ac_dir/__clean__
14473$ac_dir/__clean__: $ac_dir/Makefile
14474 @cd $ac_dir && \$(MAKE) clean
14475 \$(RM) $ac_dir/Makefile
14476$ac_dir/Makefile: $ac_dir/Makefile.in Make.vars.in config.status $ac_alldeps
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014477 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014478depend: $ac_dir/__depend__
14479.PHONY: $ac_dir/__depend__
Alexandre Julliard9dd743f2010-09-25 12:19:31 +020014480$ac_dir/__depend__: $ac_makedep dummy
14481 @./config.status --file $ac_dir/Makefile:$ac_input && cd $ac_dir && \$(MAKE) depend"
Alexandre Julliard943cd732010-03-25 21:52:56 +010014482}
14483
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014484wine_fn_config_makefile ()
14485{
14486 ac_dir=$1
Alexandre Julliard03642412010-03-20 15:24:22 +010014487 ac_enable=$2
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014488 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014489 return 0
14490fi
Alexandre Julliard03642412010-03-20 15:24:22 +010014491
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014492 wine_fn_all_dir_rules $ac_dir Make.rules
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014493 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014494"all: $ac_dir
14495.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014496$ac_dir: $ac_dir/Makefile dummy
14497 @cd $ac_dir && \$(MAKE)
Alexandre Julliarde84063b2010-03-25 21:46:41 +010014498install:: $ac_dir
14499 @cd $ac_dir && \$(MAKE) install
14500install-lib:: $ac_dir
14501 @cd $ac_dir && \$(MAKE) install-lib
14502install-dev:: $ac_dir
14503 @cd $ac_dir && \$(MAKE) install-dev
14504uninstall:: $ac_dir/Makefile
14505 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014506}
14507
14508wine_fn_config_lib ()
14509{
14510 ac_name=$1
Alexandre Julliardb8fb1d52010-03-20 14:50:53 +010014511 ac_dir=dlls/$ac_name
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014512 wine_fn_all_dir_rules $ac_dir dlls/Makeimplib.rules
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014513 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014514"all __builddeps__: $ac_dir
Alexandre Julliard7d2e7722010-07-26 12:13:47 +020014515$ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014516 @cd $ac_dir && \$(MAKE)
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014517install install-dev:: $ac_dir
14518 @cd $ac_dir && \$(MAKE) install
14519uninstall:: $ac_dir/Makefile
14520 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014521}
14522
Alexandre Julliard50231942010-03-16 22:00:02 +010014523wine_fn_config_dll ()
14524{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014525 ac_name=$1
14526 ac_dir=dlls/$ac_name
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014527 ac_enable=$2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014528 ac_flags=$3
Alexandre Julliard1858f432010-12-29 14:10:47 +010014529 ac_implib=${4:-$ac_name}
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014530 ac_file=$ac_dir/lib$ac_implib
Alexandre Julliard50231942010-03-16 22:00:02 +010014531 ac_deps="tools/widl tools/winebuild tools/winegcc include"
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014532 ac_implibflags=""
14533
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014534 case $ac_name in
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014535 *16) ac_implibflags=" -m16" ;;
14536 esac
Alexandre Julliard50231942010-03-16 22:00:02 +010014537
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014538 wine_fn_all_dir_rules $ac_dir dlls/Makedll.rules
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014539
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014540 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014541 test "$ac_enable" != enable_win16 || return 0
14542else
Alexandre Julliard60a05ad2010-03-25 12:05:44 +010014543 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014544"all: $ac_dir
14545.PHONY: $ac_dir
14546$ac_dir: $ac_dir/Makefile __builddeps__ dummy
14547 @cd $ac_dir && \$(MAKE)
14548install:: $ac_dir/Makefile __builddeps__
14549 @cd $ac_dir && \$(MAKE) install
14550install-lib:: $ac_dir/Makefile __builddeps__
14551 @cd $ac_dir && \$(MAKE) install-lib
14552uninstall manpages htmlpages sgmlpages xmlpages:: $ac_dir/Makefile
14553 @cd $ac_dir && \$(MAKE) \$@"
Alexandre Julliard367fd222011-01-04 17:05:21 +010014554
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014555 if test "x$enable_maintainer_mode" = xyes
Alexandre Julliard367fd222011-01-04 17:05:21 +010014556 then
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014557 if wine_fn_has_flag mc $ac_flags
14558 then
14559 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14560 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14561"$ac_dir/msg.pot: $ac_dir"
14562 fi
14563 if wine_fn_has_flag po $ac_flags
14564 then
14565 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14566 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard367fd222011-01-04 17:05:21 +010014567"$ac_dir/rsrc.pot: $ac_dir"
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014568 fi
Alexandre Julliard367fd222011-01-04 17:05:21 +010014569 fi
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014570fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014571
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014572 if wine_fn_has_flag staticimplib $ac_flags
Alexandre Julliard50231942010-03-16 22:00:02 +010014573 then
14574 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014575"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014576$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014577$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile
14578 @cd $ac_dir && \$(MAKE) lib$ac_implib.def
14579$ac_file.$STATIC_IMPLIBEXT: $ac_dir/Makefile dummy
14580 @cd $ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
14581install-dev:: $ac_dir/Makefile __builddeps__
14582 @cd $ac_dir && \$(MAKE) install-dev"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014583 if test "x$CROSSTEST_DISABLE" = x
14584 then
14585 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14586"__builddeps__: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014587$ac_file.cross.a: $ac_dir/Makefile dummy
14588 @cd $ac_dir && \$(MAKE) lib$ac_implib.cross.a"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014589 fi
14590
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014591 elif wine_fn_has_flag implib $ac_flags
Alexandre Julliard50231942010-03-16 22:00:02 +010014592 then
14593 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014594"__builddeps__: $ac_file.$IMPLIBEXT
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014595$ac_file.def: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14596 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14597$ac_file.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14598 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec
14599install-dev:: $ac_dir/Makefile __builddeps__
14600 @cd $ac_dir && \$(MAKE) install-dev"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014601 if test "x$CROSSTEST_DISABLE" = x
14602 then
14603 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14604"__builddeps__: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014605$ac_file.cross.a: $ac_dir/$ac_name.spec $ac_dir/Makefile \$(WINEBUILD)
14606 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(srcdir)/$ac_dir/$ac_name.spec"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014607 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014608
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014609 if test "$ac_name" != "$ac_implib"
Alexandre Julliard50231942010-03-16 22:00:02 +010014610 then
14611 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014612"__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014613dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014614 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.$IMPLIBEXT \$@
Alexandre Julliard50231942010-03-16 22:00:02 +010014615clean::
14616 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014617 if test "x$CROSSTEST_DISABLE" = x
14618 then
14619 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14620"__builddeps__: dlls/lib$ac_implib.cross.a
14621dlls/lib$ac_implib.cross.a: $ac_file.cross.a
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014622 \$(RM) \$@ && \$(LN_S) $ac_name/lib$ac_implib.cross.a \$@"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014623 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014624 fi
14625 fi
14626}
14627
14628wine_fn_config_program ()
14629{
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014630 ac_name=$1
14631 ac_dir=programs/$ac_name
Alexandre Julliardd394e042010-03-20 14:53:39 +010014632 ac_enable=$2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014633 ac_flags=$3
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014634 wine_fn_all_dir_rules $ac_dir programs/Makeprog.rules
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014635
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020014636 if eval test \"x\$"$ac_enable"\" = x"no"; then :
Alexandre Julliardd394e042010-03-20 14:53:39 +010014637
14638else
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014639 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014640"all: $ac_dir
14641.PHONY: $ac_dir
14642$ac_dir: $ac_dir/Makefile __builddeps__ dummy
14643 @cd $ac_dir && \$(MAKE)"
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014644
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014645 if test "x$enable_maintainer_mode" = xyes
Alexandre Julliard367fd222011-01-04 17:05:21 +010014646 then
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014647 if wine_fn_has_flag mc $ac_flags
14648 then
14649 wine_fn_append_file ALL_POT_FILES $ac_dir/msg.pot
14650 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14651"$ac_dir/msg.pot: $ac_dir"
14652 fi
14653 if wine_fn_has_flag po $ac_flags
14654 then
14655 wine_fn_append_file ALL_POT_FILES $ac_dir/rsrc.pot
14656 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard367fd222011-01-04 17:05:21 +010014657"$ac_dir/rsrc.pot: $ac_dir"
Alexandre Julliard417b70b2011-01-24 21:23:03 +010014658 fi
Alexandre Julliard367fd222011-01-04 17:05:21 +010014659 fi
14660
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014661 wine_fn_has_flag install $ac_flags || return
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014662 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014663"install install-lib:: $ac_dir/Makefile __builddeps__
14664 @cd $ac_dir && \$(MAKE) install
14665uninstall:: $ac_dir/Makefile
14666 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliardc1e29582011-01-03 18:28:27 +010014667 if test -n "$DLLEXT" -a "x$enable_tools" != xno && wine_fn_has_flag installbin $ac_flags
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014668 then
14669 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard718ea422010-03-26 09:29:10 +010014670"install install-lib:: tools \$(DESTDIR)\$(bindir)
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014671 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_name
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014672uninstall::
Alexandre Julliard52c9e852010-09-25 12:01:14 +020014673 \$(RM) \$(DESTDIR)\$(bindir)/$ac_name"
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014674 fi
Alexandre Julliardd394e042010-03-20 14:53:39 +010014675fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014676}
14677
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014678wine_fn_config_test ()
14679{
14680 ac_dir=$1
14681 ac_name=$2
14682 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14683 wine_fn_append_rule ALL_WINETEST_DEPENDS \
Alexandre Julliardbd9852c2010-09-19 12:40:12 +020014684"$ac_name.exe: \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT
14685 cp \$(top_builddir)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014686$ac_name.rc:
14687 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14688$ac_name.res: $ac_name.rc $ac_name.exe"
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014689 wine_fn_all_dir_rules $ac_dir Maketest.rules
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014690
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014691 if test "x$enable_tests" = x""no; then :
14692
14693else
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014694 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014695"all programs/winetest: $ac_dir
14696.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014697$ac_dir: $ac_dir/Makefile __builddeps__ dummy
14698 @cd $ac_dir && \$(MAKE)
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014699test: $ac_dir/__test__
14700.PHONY: $ac_dir/__test__
Alexandre Julliardeab7efd2010-03-25 21:42:54 +010014701$ac_dir/__test__: dummy
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014702 @cd $ac_dir && \$(MAKE) test
14703testclean::
14704 \$(RM) $ac_dir/*.ok"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014705
14706 if test "x$CROSSTEST_DISABLE" = x
14707 then
14708 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14709"crosstest: $ac_dir/__crosstest__
14710.PHONY: $ac_dir/__crosstest__
14711$ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14712 @cd $ac_dir && \$(MAKE) crosstest"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014713 fi
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014714fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014715}
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014716
14717wine_fn_config_tool ()
14718{
14719 ac_dir=$1
Alexandre Julliardc57aa382010-09-25 11:56:33 +020014720 wine_fn_all_dir_rules $ac_dir Make.rules
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014721
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014722 if test "x$enable_tools" = x""no; then :
14723
14724else
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014725 case $ac_dir in
14726 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14727"install:: $ac_dir
14728 @cd $ac_dir && \$(MAKE) install
14729install-lib:: $ac_dir
14730 @cd $ac_dir && \$(MAKE) install-lib
14731install-dev:: $ac_dir
14732 @cd $ac_dir && \$(MAKE) install-dev" ;;
14733 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14734"install install-dev:: $ac_dir
14735 @cd $ac_dir && \$(MAKE) install" ;;
14736 esac
14737 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14738"uninstall:: $ac_dir/Makefile
14739 @cd $ac_dir && \$(MAKE) uninstall
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014740all __tooldeps__: $ac_dir
14741.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014742$ac_dir: $ac_dir/Makefile libs/port dummy
14743 @cd $ac_dir && \$(MAKE)"
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014744 case $ac_dir in
14745 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14746 esac
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014747fi
14748}
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014749
14750wine_fn_config_makerules ()
14751{
14752 ac_rules=$1
14753 ac_deps=$2
14754 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14755"$ac_rules: $ac_rules.in $ac_deps config.status
14756 @./config.status $ac_rules
14757distclean::
14758 \$(RM) $ac_rules"
14759}
14760
14761wine_fn_config_symlink ()
14762{
14763 ac_link=$1
14764 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14765"$ac_link:
14766 @./config.status $ac_link
14767distclean::
14768 \$(RM) $ac_link"
14769}
Alexandre Julliarda070f9b2010-07-26 20:53:12 +020014770
14771if test "x$CROSSTEST_DISABLE" != x
14772then
14773 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14774"crosstest:
14775 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14776fi
Alexandre Julliard40977bf2010-11-11 12:24:46 +010014777ac_config_links="$ac_config_links dlls/shell32/AUTHORS:AUTHORS"
14778wine_fn_config_symlink dlls/shell32/AUTHORS
Alexandre Julliarda6320522010-02-03 13:14:03 +010014779ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014780test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014781if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014782ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014783test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014784fi
14785if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014786ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014787test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014788fi
14789if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014790ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014791test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014792fi
14793if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014794ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014795test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014796fi
Alexandre Julliard321d3882010-05-06 20:51:53 +020014797ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14798test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014799ac_config_links="$ac_config_links wine:tools/winewrapper"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014800wine_fn_config_symlink wine
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014801
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014802ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014803
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014804ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014805
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020014806ac_config_commands="$ac_config_commands dlls/kernel32/nls"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014807
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010014808ac_config_commands="$ac_config_commands dlls/user32/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014809
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014810ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014811
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014812ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014813
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014814
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014815wine_fn_config_makerules Make.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014816MAKE_RULES=Make.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014817ac_config_files="$ac_config_files Make.rules"
14818
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014819wine_fn_config_makerules Maketest.rules Make.rules
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010014820MAKE_TEST_RULES=Maketest.rules
14821ac_config_files="$ac_config_files Maketest.rules"
14822
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014823wine_fn_config_makerules dlls/Makedll.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014824MAKE_DLL_RULES=dlls/Makedll.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014825ac_config_files="$ac_config_files dlls/Makedll.rules"
14826
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014827wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014828MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014829ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14830
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014831wine_fn_config_makerules programs/Makeprog.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014832MAKE_PROG_RULES=programs/Makeprog.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014833ac_config_files="$ac_config_files programs/Makeprog.rules"
14834
Alexandre Julliarda360e932008-08-20 16:02:37 +020014835
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014836wine_fn_config_dll acledit enable_acledit
Alexandre Julliard1858f432010-12-29 14:10:47 +010014837wine_fn_config_dll aclui enable_aclui implib
14838wine_fn_config_dll activeds enable_activeds implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014839wine_fn_config_dll actxprxy enable_actxprxy
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014840wine_fn_config_lib adsiid
Alexandre Julliard1858f432010-12-29 14:10:47 +010014841wine_fn_config_dll advapi32 enable_advapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014842wine_fn_config_test dlls/advapi32/tests advapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014843wine_fn_config_dll advpack enable_advpack implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014844wine_fn_config_test dlls/advpack/tests advpack_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014845wine_fn_config_dll amstream enable_amstream
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014846wine_fn_config_test dlls/amstream/tests amstream_test
Alexandre Julliard902f10c2011-01-13 15:16:02 +010014847wine_fn_config_dll appwiz.cpl enable_appwiz_cpl po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014848wine_fn_config_dll atl enable_atl implib
Marcus Meissnerb3f04252010-06-15 11:04:33 +020014849wine_fn_config_test dlls/atl/tests atl_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014850wine_fn_config_dll authz enable_authz
Alexandre Julliard1858f432010-12-29 14:10:47 +010014851wine_fn_config_dll avicap32 enable_avicap32 implib
Alexandre Julliardaf743a62011-01-13 15:37:43 +010014852wine_fn_config_dll avifil32 enable_avifil32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014853wine_fn_config_test dlls/avifil32/tests avifil32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014854wine_fn_config_dll avifile.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014855wine_fn_config_dll avrt enable_avrt implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014856wine_fn_config_dll bcrypt enable_bcrypt
Alexandre Julliard44479002011-01-11 12:56:17 +010014857wine_fn_config_dll browseui enable_browseui po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014858wine_fn_config_test dlls/browseui/tests browseui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014859wine_fn_config_dll cabinet enable_cabinet implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014860wine_fn_config_test dlls/cabinet/tests cabinet_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014861wine_fn_config_dll capi2032 enable_capi2032 implib
14862wine_fn_config_dll cards enable_cards implib
14863wine_fn_config_dll cfgmgr32 enable_cfgmgr32 implib
14864wine_fn_config_dll clusapi enable_clusapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014865wine_fn_config_dll comcat enable_comcat
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014866wine_fn_config_test dlls/comcat/tests comcat_test
Alexandre Julliard54684cf2011-01-11 13:43:35 +010014867wine_fn_config_dll comctl32 enable_comctl32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014868wine_fn_config_test dlls/comctl32/tests comctl32_test
Alexandre Julliard7294f7d2011-01-14 12:27:20 +010014869wine_fn_config_dll comdlg32 enable_comdlg32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014870wine_fn_config_test dlls/comdlg32/tests comdlg32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014871wine_fn_config_dll comm.drv16 enable_win16
14872wine_fn_config_dll commdlg.dll16 enable_win16
14873wine_fn_config_dll compobj.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014874wine_fn_config_dll compstui enable_compstui implib
Alexandre Julliardb6e78c42011-01-12 15:19:02 +010014875wine_fn_config_dll credui enable_credui po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014876wine_fn_config_test dlls/credui/tests credui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014877wine_fn_config_dll crtdll enable_crtdll implib
Alexandre Julliardc485b182011-01-06 12:18:02 +010014878wine_fn_config_dll crypt32 enable_crypt32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014879wine_fn_config_test dlls/crypt32/tests crypt32_test
Alexandre Julliard8484e962011-01-06 12:28:26 +010014880wine_fn_config_dll cryptdlg enable_cryptdlg po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014881wine_fn_config_dll cryptdll enable_cryptdll implib
14882wine_fn_config_dll cryptnet enable_cryptnet implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014883wine_fn_config_test dlls/cryptnet/tests cryptnet_test
Alexandre Julliardaa1bdef2011-01-12 15:30:17 +010014884wine_fn_config_dll cryptui enable_cryptui po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014885wine_fn_config_test dlls/cryptui/tests cryptui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014886wine_fn_config_dll ctapi32 enable_ctapi32
14887wine_fn_config_dll ctl3d.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014888wine_fn_config_dll ctl3d32 enable_ctl3d32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014889wine_fn_config_dll ctl3dv2.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014890wine_fn_config_dll d3d10 enable_d3d10 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014891wine_fn_config_test dlls/d3d10/tests d3d10_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014892wine_fn_config_dll d3d10core enable_d3d10core implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014893wine_fn_config_test dlls/d3d10core/tests d3d10core_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014894wine_fn_config_dll d3d8 enable_d3d8 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014895wine_fn_config_test dlls/d3d8/tests d3d8_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014896wine_fn_config_dll d3d9 enable_d3d9 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014897wine_fn_config_test dlls/d3d9/tests d3d9_test
Matteo Bruni0ac336f2010-07-29 01:53:54 +020014898wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
Matteo Bruni66d44992010-07-29 01:47:13 +020014899wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
Matteo Bruni8ea75832010-07-28 16:44:37 +020014900wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
Matteo Bruni458eb082010-07-28 16:37:28 +020014901wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
Matteo Bruni3c59b9c2010-07-28 16:22:11 +020014902wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
Matteo Brunifbf1e832010-07-28 16:13:40 +020014903wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
Matteo Bruni99491462010-07-28 04:31:18 +020014904wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
Matteo Brunifd4efcd2010-07-28 04:09:13 +020014905wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
Matteo Bruni79c1bc42010-08-03 18:44:25 +020014906wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
Matteo Brunife050702010-08-03 18:44:25 +020014907wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014908wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 implib d3dcompiler
Rico Schüller5ad7f7b2010-08-19 21:33:43 +020014909wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014910wine_fn_config_dll d3dim enable_d3dim implib
14911wine_fn_config_dll d3drm enable_d3drm implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014912wine_fn_config_test dlls/d3drm/tests d3drm_test
Owen Rudge9870c042010-08-18 16:02:22 -050014913wine_fn_config_dll d3dx10_33 enable_d3dx10_33
Owen Rudge49dbdc12010-08-18 16:02:20 -050014914wine_fn_config_dll d3dx10_34 enable_d3dx10_34
Owen Rudge955b8442010-08-18 16:02:18 -050014915wine_fn_config_dll d3dx10_35 enable_d3dx10_35
Owen Rudgef44830e2010-08-18 16:02:16 -050014916wine_fn_config_dll d3dx10_36 enable_d3dx10_36
Owen Rudge4196ba22010-08-18 16:02:10 -050014917wine_fn_config_dll d3dx10_37 enable_d3dx10_37
Owen Rudge199ff9b2010-08-18 16:02:08 -050014918wine_fn_config_dll d3dx10_38 enable_d3dx10_38
Owen Rudgefb8d7cd2010-08-18 16:02:06 -050014919wine_fn_config_dll d3dx10_39 enable_d3dx10_39
Owen Rudge662cbb12010-08-18 16:02:03 -050014920wine_fn_config_dll d3dx10_40 enable_d3dx10_40
Owen Rudge17591cc2010-08-18 16:01:59 -050014921wine_fn_config_dll d3dx10_41 enable_d3dx10_41
Owen Rudgee5d9e122010-08-18 16:01:57 -050014922wine_fn_config_dll d3dx10_42 enable_d3dx10_42
Owen Rudge3c5b2e62010-08-18 16:01:53 -050014923wine_fn_config_dll d3dx10_43 enable_d3dx10_43
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014924wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14925wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14926wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14927wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14928wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14929wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14930wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14931wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14932wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14933wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14934wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14935wine_fn_config_dll d3dx9_35 enable_d3dx9_35
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010014936wine_fn_config_dll d3dx9_36 enable_d3dx9_36 implib d3dx9
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014937wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014938wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14939wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14940wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14941wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14942wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14943wine_fn_config_dll d3dx9_42 enable_d3dx9_42
Matteo Bruni90c615a2010-08-25 17:12:51 +020014944wine_fn_config_dll d3dx9_43 enable_d3dx9_43
Alexandre Julliard1858f432010-12-29 14:10:47 +010014945wine_fn_config_dll d3dxof enable_d3dxof implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014946wine_fn_config_test dlls/d3dxof/tests d3dxof_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014947wine_fn_config_dll dbgeng enable_dbgeng implib
14948wine_fn_config_dll dbghelp enable_dbghelp implib
14949wine_fn_config_dll dciman32 enable_dciman32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014950wine_fn_config_dll ddeml.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010014951wine_fn_config_dll ddraw enable_ddraw implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014952wine_fn_config_test dlls/ddraw/tests ddraw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014953wine_fn_config_dll ddrawex enable_ddrawex
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014954wine_fn_config_test dlls/ddrawex/tests ddrawex_test
Alexandre Julliard0cdd1472011-01-06 12:37:11 +010014955wine_fn_config_dll devenum enable_devenum po
Alexandre Julliard1858f432010-12-29 14:10:47 +010014956wine_fn_config_dll dinput enable_dinput implib,staticimplib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014957wine_fn_config_test dlls/dinput/tests dinput_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014958wine_fn_config_dll dinput8 enable_dinput8 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014959wine_fn_config_dll dispdib.dll16 enable_win16
14960wine_fn_config_dll dispex enable_dispex
Huw Daviesdf075612010-03-19 13:34:53 +000014961wine_fn_config_test dlls/dispex/tests dispex_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014962wine_fn_config_dll display.drv16 enable_win16
14963wine_fn_config_dll dmband enable_dmband
14964wine_fn_config_dll dmcompos enable_dmcompos
14965wine_fn_config_dll dmime enable_dmime
Austin Lund203272e2010-08-06 17:50:49 +100014966wine_fn_config_test dlls/dmime/tests dmime_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014967wine_fn_config_dll dmloader enable_dmloader
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014968wine_fn_config_test dlls/dmloader/tests dmloader_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014969wine_fn_config_dll dmscript enable_dmscript
14970wine_fn_config_dll dmstyle enable_dmstyle
14971wine_fn_config_dll dmsynth enable_dmsynth
14972wine_fn_config_dll dmusic enable_dmusic
Alexandre Julliard1858f432010-12-29 14:10:47 +010014973wine_fn_config_dll dmusic32 enable_dmusic32 implib
14974wine_fn_config_dll dnsapi enable_dnsapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014975wine_fn_config_test dlls/dnsapi/tests dnsapi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014976wine_fn_config_dll dplay enable_dplay implib
14977wine_fn_config_dll dplayx enable_dplayx implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014978wine_fn_config_test dlls/dplayx/tests dplayx_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014979wine_fn_config_dll dpnaddr enable_dpnaddr
Alexandre Julliard1858f432010-12-29 14:10:47 +010014980wine_fn_config_dll dpnet enable_dpnet implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014981wine_fn_config_dll dpnhpast enable_dpnhpast
14982wine_fn_config_dll dpnlobby enable_dpnlobby
14983wine_fn_config_dll dpwsockx enable_dpwsockx
14984wine_fn_config_dll drmclien enable_drmclien
Alexandre Julliard1858f432010-12-29 14:10:47 +010014985wine_fn_config_dll dsound enable_dsound implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014986wine_fn_config_test dlls/dsound/tests dsound_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014987wine_fn_config_dll dssenh enable_dssenh
14988wine_fn_config_dll dswave enable_dswave
Alexandre Julliard1858f432010-12-29 14:10:47 +010014989wine_fn_config_dll dwmapi enable_dwmapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014990wine_fn_config_dll dxdiagn enable_dxdiagn
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014991wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014992wine_fn_config_lib dxerr8
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014993wine_fn_config_lib dxerr9
Alexandre Julliard1858f432010-12-29 14:10:47 +010014994wine_fn_config_dll dxgi enable_dxgi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014995wine_fn_config_test dlls/dxgi/tests dxgi_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014996wine_fn_config_lib dxguid
David Hedberge2cf9ad2010-07-31 20:02:45 +020014997wine_fn_config_dll explorerframe enable_explorerframe
David Hedberg87212d52010-07-31 20:02:49 +020014998wine_fn_config_test dlls/explorerframe/tests explorerframe_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010014999wine_fn_config_dll faultrep enable_faultrep implib
Detlef Riekenberg53fca112010-10-26 10:11:13 +020015000wine_fn_config_test dlls/faultrep/tests faultrep_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015001wine_fn_config_dll fltlib enable_fltlib
15002wine_fn_config_dll fusion enable_fusion
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015003wine_fn_config_test dlls/fusion/tests fusion_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015004wine_fn_config_dll fwpuclnt enable_fwpuclnt
Mariusz Plucińskib3a9ce42010-07-22 23:59:34 +020015005wine_fn_config_dll gameux enable_gameux
Mariusz Plucińskicb886f42010-08-03 11:58:01 +020015006wine_fn_config_test dlls/gameux/tests gameux_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015007wine_fn_config_dll gdi.exe16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015008wine_fn_config_dll gdi32 enable_gdi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015009wine_fn_config_test dlls/gdi32/tests gdi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015010wine_fn_config_dll gdiplus enable_gdiplus implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015011wine_fn_config_test dlls/gdiplus/tests gdiplus_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015012wine_fn_config_dll glu32 enable_glu32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015013wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
15014wine_fn_config_dll gpkcsp enable_gpkcsp
15015wine_fn_config_dll hal enable_hal
Alexandre Julliardc9b52d22011-01-06 13:19:58 +010015016wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx po
Alexandre Julliard1858f432010-12-29 14:10:47 +010015017wine_fn_config_dll hid enable_hid implib
15018wine_fn_config_dll hlink enable_hlink implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015019wine_fn_config_test dlls/hlink/tests hlink_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015020wine_fn_config_dll hnetcfg enable_hnetcfg
15021wine_fn_config_dll httpapi enable_httpapi
Alexandre Julliard9c6444c2011-01-06 13:31:16 +010015022wine_fn_config_dll iccvid enable_iccvid po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015023wine_fn_config_dll icmp enable_icmp
15024wine_fn_config_dll ifsmgr.vxd enable_win16
15025wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
Alexandre Julliard1858f432010-12-29 14:10:47 +010015026wine_fn_config_dll imagehlp enable_imagehlp implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015027wine_fn_config_test dlls/imagehlp/tests imagehlp_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015028wine_fn_config_dll imm.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015029wine_fn_config_dll imm32 enable_imm32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015030wine_fn_config_test dlls/imm32/tests imm32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015031wine_fn_config_dll inetcomm enable_inetcomm implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015032wine_fn_config_test dlls/inetcomm/tests inetcomm_test
Alexandre Julliardbe521062011-01-12 15:49:32 +010015033wine_fn_config_dll inetcpl.cpl enable_inetcpl_cpl po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015034wine_fn_config_dll inetmib1 enable_inetmib1
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015035wine_fn_config_test dlls/inetmib1/tests inetmib1_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015036wine_fn_config_dll infosoft enable_infosoft
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015037wine_fn_config_test dlls/infosoft/tests infosoft_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015038wine_fn_config_dll initpki enable_initpki
15039wine_fn_config_dll inkobj enable_inkobj
15040wine_fn_config_dll inseng enable_inseng
Alexandre Julliard1858f432010-12-29 14:10:47 +010015041wine_fn_config_dll iphlpapi enable_iphlpapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015042wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015043wine_fn_config_dll itircl enable_itircl
15044wine_fn_config_dll itss enable_itss
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015045wine_fn_config_test dlls/itss/tests itss_test
Alexandre Julliard0ccf1d82011-01-06 13:38:57 +010015046wine_fn_config_dll jscript enable_jscript po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015047wine_fn_config_test dlls/jscript/tests jscript_test
Alexandre Julliard417b70b2011-01-24 21:23:03 +010015048wine_fn_config_dll kernel32 enable_kernel32 mc,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015049wine_fn_config_test dlls/kernel32/tests kernel32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015050wine_fn_config_dll keyboard.drv16 enable_win16
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015051wine_fn_config_dll krnl386.exe16 enable_win16 implib kernel
Vincent Povirk8f874592010-09-26 16:38:44 -050015052wine_fn_config_dll ktmw32 enable_ktmw32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015053wine_fn_config_dll loadperf enable_loadperf implib
Alexandre Julliard7df87f32011-01-06 14:24:05 +010015054wine_fn_config_dll localspl enable_localspl po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015055wine_fn_config_test dlls/localspl/tests localspl_test
Alexandre Julliard0546dd52011-01-12 16:11:26 +010015056wine_fn_config_dll localui enable_localui po
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015057wine_fn_config_test dlls/localui/tests localui_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015058wine_fn_config_dll lz32 enable_lz32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015059wine_fn_config_test dlls/lz32/tests lz32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015060wine_fn_config_dll lzexpand.dll16 enable_win16
Alexandre Julliardb41fc572011-01-06 16:14:33 +010015061wine_fn_config_dll mapi32 enable_mapi32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015062wine_fn_config_test dlls/mapi32/tests mapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015063wine_fn_config_dll mapistub enable_mapistub
15064wine_fn_config_dll mciavi32 enable_mciavi32
15065wine_fn_config_dll mcicda enable_mcicda
15066wine_fn_config_dll mciqtz32 enable_mciqtz32
15067wine_fn_config_dll mciseq enable_mciseq
15068wine_fn_config_dll mciwave enable_mciwave
15069wine_fn_config_dll midimap enable_midimap
Alexandre Julliard1858f432010-12-29 14:10:47 +010015070wine_fn_config_dll mlang enable_mlang implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015071wine_fn_config_test dlls/mlang/tests mlang_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015072wine_fn_config_dll mmdevapi enable_mmdevapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015073wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015074wine_fn_config_dll mmdevldr.vxd enable_win16
15075wine_fn_config_dll mmsystem.dll16 enable_win16
15076wine_fn_config_dll monodebg.vxd enable_win16
15077wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
15078wine_fn_config_dll mouse.drv16 enable_win16
Alexandre Julliard142d4162011-01-12 16:27:50 +010015079wine_fn_config_dll mpr enable_mpr po,implib
Alexandre Julliard1858f432010-12-29 14:10:47 +010015080wine_fn_config_dll mprapi enable_mprapi implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015081wine_fn_config_dll msacm.dll16 enable_win16
15082wine_fn_config_dll msacm32.drv enable_msacm32_drv
Alexandre Julliard1858f432010-12-29 14:10:47 +010015083wine_fn_config_dll msacm32 enable_msacm32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015084wine_fn_config_test dlls/msacm32/tests msacm32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015085wine_fn_config_dll msadp32.acm enable_msadp32_acm
15086wine_fn_config_dll mscat32 enable_mscat32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015087wine_fn_config_dll mscms enable_mscms implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015088wine_fn_config_test dlls/mscms/tests mscms_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015089wine_fn_config_dll mscoree enable_mscoree
Louis Lendersa8528702010-08-24 11:48:01 +020015090wine_fn_config_test dlls/mscoree/tests mscoree_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015091wine_fn_config_dll msctf enable_msctf
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015092wine_fn_config_test dlls/msctf/tests msctf_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015093wine_fn_config_dll msdaps enable_msdaps
Alexandre Julliard1858f432010-12-29 14:10:47 +010015094wine_fn_config_dll msdmo enable_msdmo implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015095wine_fn_config_dll msftedit enable_msftedit
15096wine_fn_config_dll msg711.acm enable_msg711_acm
15097wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
15098wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
Alexandre Julliard50c23ad2011-01-12 17:12:44 +010015099wine_fn_config_dll mshtml enable_mshtml po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015100wine_fn_config_test dlls/mshtml/tests mshtml_test
Alexandre Julliard214ca2c2011-01-06 16:21:30 +010015101wine_fn_config_dll msi enable_msi po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015102wine_fn_config_test dlls/msi/tests msi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015103wine_fn_config_dll msimg32 enable_msimg32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015104wine_fn_config_dll msimtf enable_msimtf
15105wine_fn_config_dll msisip enable_msisip
15106wine_fn_config_dll msisys.ocx enable_msisys_ocx
15107wine_fn_config_dll msnet32 enable_msnet32
Alexandre Julliardad5605b2011-01-06 16:36:14 +010015108wine_fn_config_dll msrle32 enable_msrle32 po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015109wine_fn_config_dll mssign32 enable_mssign32
15110wine_fn_config_dll mssip32 enable_mssip32
15111wine_fn_config_dll mstask enable_mstask
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015112wine_fn_config_test dlls/mstask/tests mstask_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015113wine_fn_config_dll msvcirt enable_msvcirt
Piotr Caban71a49eb2010-08-23 16:36:24 +020015114wine_fn_config_dll msvcp80 enable_msvcp80
Piotr Caban9ae9d262010-07-20 23:22:16 +020015115wine_fn_config_dll msvcp90 enable_msvcp90
Piotr Caband589d952010-07-20 23:24:32 +020015116wine_fn_config_test dlls/msvcp90/tests msvcp90_test
Detlef Riekenberg1434ef42010-04-30 14:07:34 +020015117wine_fn_config_dll msvcr100 enable_msvcr100
Alexandre Julliard1858f432010-12-29 14:10:47 +010015118wine_fn_config_dll msvcr70 enable_msvcr70 implib
15119wine_fn_config_dll msvcr71 enable_msvcr71 implib
Piotr Cabanc4522492010-03-25 11:06:29 +010015120wine_fn_config_dll msvcr80 enable_msvcr80
15121wine_fn_config_dll msvcr90 enable_msvcr90
Detlef Riekenberg73e669c2010-03-20 00:32:17 +010015122wine_fn_config_test dlls/msvcr90/tests msvcr90_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015123wine_fn_config_dll msvcrt enable_msvcrt implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015124wine_fn_config_test dlls/msvcrt/tests msvcrt_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015125wine_fn_config_dll msvcrt20 enable_msvcrt20 implib
15126wine_fn_config_dll msvcrt40 enable_msvcrt40 implib
15127wine_fn_config_dll msvcrtd enable_msvcrtd implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015128wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
Alexandre Julliardf14712a2011-01-12 17:24:03 +010015129wine_fn_config_dll msvfw32 enable_msvfw32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015130wine_fn_config_test dlls/msvfw32/tests msvfw32_test
Alexandre Julliard958ecd62011-01-06 17:07:23 +010015131wine_fn_config_dll msvidc32 enable_msvidc32 po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015132wine_fn_config_dll msvideo.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015133wine_fn_config_dll mswsock enable_mswsock implib
Alexandre Julliard25ccc902010-12-21 12:03:14 +010015134wine_fn_config_dll msxml enable_msxml
Alexandre Julliard41d6a922010-12-21 13:27:20 +010015135wine_fn_config_dll msxml2 enable_msxml2
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015136wine_fn_config_dll msxml3 enable_msxml3
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015137wine_fn_config_test dlls/msxml3/tests msxml3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015138wine_fn_config_dll msxml4 enable_msxml4
Nikolay Sivov25bce452010-08-30 01:31:07 +040015139wine_fn_config_dll msxml6 enable_msxml6
Alexandre Julliard1858f432010-12-29 14:10:47 +010015140wine_fn_config_dll nddeapi enable_nddeapi implib
15141wine_fn_config_dll netapi32 enable_netapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015142wine_fn_config_test dlls/netapi32/tests netapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015143wine_fn_config_dll newdev enable_newdev implib
Thomas Mullaly858ccff2011-01-02 17:13:43 -050015144wine_fn_config_dll normaliz enable_normaliz implib
Jacek Caban4a912652010-12-02 19:15:28 +010015145wine_fn_config_dll npmshtml enable_npmshtml
Alexandre Julliard1858f432010-12-29 14:10:47 +010015146wine_fn_config_dll ntdll enable_ntdll implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015147wine_fn_config_test dlls/ntdll/tests ntdll_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015148wine_fn_config_dll ntdsapi enable_ntdsapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015149wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015150wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015151wine_fn_config_dll ntprint enable_ntprint
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015152wine_fn_config_test dlls/ntprint/tests ntprint_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015153wine_fn_config_dll objsel enable_objsel
Alexandre Julliard1858f432010-12-29 14:10:47 +010015154wine_fn_config_dll odbc32 enable_odbc32 implib
15155wine_fn_config_dll odbccp32 enable_odbccp32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015156wine_fn_config_test dlls/odbccp32/tests odbccp32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015157wine_fn_config_dll ole2.dll16 enable_win16
15158wine_fn_config_dll ole2conv.dll16 enable_win16
15159wine_fn_config_dll ole2disp.dll16 enable_win16
15160wine_fn_config_dll ole2nls.dll16 enable_win16
15161wine_fn_config_dll ole2prox.dll16 enable_win16
15162wine_fn_config_dll ole2thk.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015163wine_fn_config_dll ole32 enable_ole32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015164wine_fn_config_test dlls/ole32/tests ole32_test
Alexandre Julliard8062ec12011-01-13 16:00:53 +010015165wine_fn_config_dll oleacc enable_oleacc po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015166wine_fn_config_test dlls/oleacc/tests oleacc_test
Alexandre Julliard000bb242011-01-06 17:31:16 +010015167wine_fn_config_dll oleaut32 enable_oleaut32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015168wine_fn_config_test dlls/oleaut32/tests oleaut32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015169wine_fn_config_dll olecli.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015170wine_fn_config_dll olecli32 enable_olecli32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015171wine_fn_config_dll oledb32 enable_oledb32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015172wine_fn_config_test dlls/oledb32/tests oledb32_test
Alexandre Julliard7f595642011-01-13 16:18:24 +010015173wine_fn_config_dll oledlg enable_oledlg po,implib
Alexandre Julliard1858f432010-12-29 14:10:47 +010015174wine_fn_config_dll olepro32 enable_olepro32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015175wine_fn_config_dll olesvr.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015176wine_fn_config_dll olesvr32 enable_olesvr32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015177wine_fn_config_dll olethk32 enable_olethk32
15178wine_fn_config_dll openal32 enable_openal32
Peter Urbanec65c84d72010-12-02 23:41:48 +110015179wine_fn_config_dll opencl enable_opencl
Alexandre Julliard1858f432010-12-29 14:10:47 +010015180wine_fn_config_dll opengl32 enable_opengl32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015181wine_fn_config_test dlls/opengl32/tests opengl32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015182wine_fn_config_dll pdh enable_pdh implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015183wine_fn_config_test dlls/pdh/tests pdh_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015184wine_fn_config_dll pidgen enable_pidgen
Alexandre Julliard1858f432010-12-29 14:10:47 +010015185wine_fn_config_dll powrprof enable_powrprof implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015186wine_fn_config_dll printui enable_printui
Alexandre Julliard1858f432010-12-29 14:10:47 +010015187wine_fn_config_dll propsys enable_propsys implib
Andrew Nguyenc20908b2010-07-25 21:57:59 -050015188wine_fn_config_test dlls/propsys/tests propsys_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015189wine_fn_config_dll psapi enable_psapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015190wine_fn_config_test dlls/psapi/tests psapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015191wine_fn_config_dll pstorec enable_pstorec
15192wine_fn_config_dll qcap enable_qcap
15193wine_fn_config_dll qedit enable_qedit
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015194wine_fn_config_test dlls/qedit/tests qedit_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015195wine_fn_config_dll qmgr enable_qmgr
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015196wine_fn_config_test dlls/qmgr/tests qmgr_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015197wine_fn_config_dll qmgrprxy enable_qmgrprxy
Alexandre Julliard1858f432010-12-29 14:10:47 +010015198wine_fn_config_dll quartz enable_quartz implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015199wine_fn_config_test dlls/quartz/tests quartz_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015200wine_fn_config_dll query enable_query
15201wine_fn_config_dll rasapi16.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015202wine_fn_config_dll rasapi32 enable_rasapi32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015203wine_fn_config_test dlls/rasapi32/tests rasapi32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015204wine_fn_config_dll rasdlg enable_rasdlg implib
15205wine_fn_config_dll resutils enable_resutils implib
15206wine_fn_config_dll riched20 enable_riched20 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015207wine_fn_config_test dlls/riched20/tests riched20_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015208wine_fn_config_dll riched32 enable_riched32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015209wine_fn_config_test dlls/riched32/tests riched32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015210wine_fn_config_dll rpcrt4 enable_rpcrt4 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015211wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015212wine_fn_config_dll rsabase enable_rsabase
Alexandre Julliard1858f432010-12-29 14:10:47 +010015213wine_fn_config_dll rsaenh enable_rsaenh implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015214wine_fn_config_test dlls/rsaenh/tests rsaenh_test
Louis Lenders85b3f292010-08-27 11:45:11 +020015215wine_fn_config_dll rstrtmgr enable_rstrtmgr
Alexandre Julliard1858f432010-12-29 14:10:47 +010015216wine_fn_config_dll rtutils enable_rtutils implib
Louis Lenders1ae673f2010-05-11 22:59:22 +020015217wine_fn_config_dll samlib enable_samlib
Alexandre Julliard036fe882011-01-14 12:48:59 +010015218wine_fn_config_dll sane.ds enable_sane_ds po
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015219wine_fn_config_dll sccbase enable_sccbase
15220wine_fn_config_dll schannel enable_schannel
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015221wine_fn_config_test dlls/schannel/tests schannel_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015222wine_fn_config_dll secur32 enable_secur32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015223wine_fn_config_test dlls/secur32/tests secur32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015224wine_fn_config_dll security enable_security
Alexandre Julliard1858f432010-12-29 14:10:47 +010015225wine_fn_config_dll sensapi enable_sensapi implib
15226wine_fn_config_dll serialui enable_serialui implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015227wine_fn_config_test dlls/serialui/tests serialui_test
Alexandre Julliardfac153b2011-01-12 17:37:02 +010015228wine_fn_config_dll setupapi enable_setupapi po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015229wine_fn_config_test dlls/setupapi/tests setupapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015230wine_fn_config_dll setupx.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015231wine_fn_config_dll sfc enable_sfc implib
15232wine_fn_config_dll sfc_os enable_sfc_os implib
Alexandre Julliardb31d2312011-01-06 17:42:05 +010015233wine_fn_config_dll shdoclc enable_shdoclc po
Alexandre Julliardd3a11312011-01-12 17:52:15 +010015234wine_fn_config_dll shdocvw enable_shdocvw po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015235wine_fn_config_test dlls/shdocvw/tests shdocvw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015236wine_fn_config_dll shell.dll16 enable_win16
Alexandre Julliarddb600062011-01-13 17:00:16 +010015237wine_fn_config_dll shell32 enable_shell32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015238wine_fn_config_test dlls/shell32/tests shell32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015239wine_fn_config_dll shfolder enable_shfolder implib
Alexandre Julliard944d2182011-01-12 17:58:54 +010015240wine_fn_config_dll shlwapi enable_shlwapi po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015241wine_fn_config_test dlls/shlwapi/tests shlwapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015242wine_fn_config_dll slbcsp enable_slbcsp
Alexandre Julliard1858f432010-12-29 14:10:47 +010015243wine_fn_config_dll slc enable_slc implib
15244wine_fn_config_dll snmpapi enable_snmpapi implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015245wine_fn_config_test dlls/snmpapi/tests snmpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015246wine_fn_config_dll softpub enable_softpub
15247wine_fn_config_dll sound.drv16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015248wine_fn_config_dll spoolss enable_spoolss implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015249wine_fn_config_test dlls/spoolss/tests spoolss_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015250wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
15251wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
Alexandre Julliard1858f432010-12-29 14:10:47 +010015252wine_fn_config_dll sti enable_sti implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015253wine_fn_config_test dlls/sti/tests sti_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015254wine_fn_config_dll storage.dll16 enable_win16
15255wine_fn_config_dll stress.dll16 enable_win16
Aric Stewart96192102010-10-04 09:48:25 -050015256wine_fn_config_lib strmbase
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015257wine_fn_config_lib strmiids
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015258wine_fn_config_dll svrapi enable_svrapi
15259wine_fn_config_dll sxs enable_sxs
15260wine_fn_config_dll system.drv16 enable_win16
15261wine_fn_config_dll t2embed enable_t2embed
Alexandre Julliard1858f432010-12-29 14:10:47 +010015262wine_fn_config_dll tapi32 enable_tapi32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015263wine_fn_config_dll toolhelp.dll16 enable_win16
15264wine_fn_config_dll traffic enable_traffic
15265wine_fn_config_dll twain.dll16 enable_win16
15266wine_fn_config_dll twain_32 enable_twain_32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015267wine_fn_config_test dlls/twain_32/tests twain_32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015268wine_fn_config_dll typelib.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015269wine_fn_config_dll unicows enable_unicows implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015270wine_fn_config_dll updspapi enable_updspapi
Alexandre Julliard1858f432010-12-29 14:10:47 +010015271wine_fn_config_dll url enable_url implib
15272wine_fn_config_dll urlmon enable_urlmon implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015273wine_fn_config_test dlls/urlmon/tests urlmon_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015274wine_fn_config_dll usbd.sys enable_usbd_sys implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015275wine_fn_config_dll user.exe16 enable_win16
Alexandre Julliard39558f82011-01-13 17:24:15 +010015276wine_fn_config_dll user32 enable_user32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015277wine_fn_config_test dlls/user32/tests user32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015278wine_fn_config_dll userenv enable_userenv implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015279wine_fn_config_test dlls/userenv/tests userenv_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015280wine_fn_config_dll usp10 enable_usp10 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015281wine_fn_config_test dlls/usp10/tests usp10_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015282wine_fn_config_lib uuid
Alexandre Julliard1858f432010-12-29 14:10:47 +010015283wine_fn_config_dll uxtheme enable_uxtheme implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015284wine_fn_config_test dlls/uxtheme/tests uxtheme_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015285wine_fn_config_dll vdhcp.vxd enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015286wine_fn_config_dll vdmdbg enable_vdmdbg implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015287wine_fn_config_dll ver.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015288wine_fn_config_dll version enable_version implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015289wine_fn_config_test dlls/version/tests version_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015290wine_fn_config_dll vmm.vxd enable_win16
15291wine_fn_config_dll vnbt.vxd enable_win16
15292wine_fn_config_dll vnetbios.vxd enable_win16
15293wine_fn_config_dll vtdapi.vxd enable_win16
15294wine_fn_config_dll vwin32.vxd enable_win16
15295wine_fn_config_dll w32skrnl enable_win16
15296wine_fn_config_dll w32sys.dll16 enable_win16
15297wine_fn_config_dll wbemprox enable_wbemprox
Alexandre Julliard1858f432010-12-29 14:10:47 +010015298wine_fn_config_dll wer enable_wer implib
Detlef Riekenbergd8a5bc92010-10-26 11:37:17 +020015299wine_fn_config_test dlls/wer/tests wer_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015300wine_fn_config_dll wiaservc enable_wiaservc
15301wine_fn_config_dll win32s16.dll16 enable_win16
15302wine_fn_config_dll win87em.dll16 enable_win16
15303wine_fn_config_dll winaspi.dll16 enable_win16
15304wine_fn_config_dll windebug.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015305wine_fn_config_dll windowscodecs enable_windowscodecs implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015306wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015307wine_fn_config_dll winealsa.drv enable_winealsa_drv
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015308wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015309wine_fn_config_lib winecrt0
Alexandre Julliard1858f432010-12-29 14:10:47 +010015310wine_fn_config_dll wined3d enable_wined3d implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015311wine_fn_config_dll wineesd.drv enable_wineesd_drv
Aric Stewart2914d652010-10-20 13:55:16 -050015312wine_fn_config_dll winegstreamer enable_winegstreamer
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015313wine_fn_config_dll winejack.drv enable_winejack_drv
15314wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
15315wine_fn_config_dll winemapi enable_winemapi
15316wine_fn_config_dll winemp3.acm enable_winemp3_acm
15317wine_fn_config_dll winenas.drv enable_winenas_drv
15318wine_fn_config_dll wineoss.drv enable_wineoss_drv
15319wine_fn_config_dll wineps.drv enable_wineps_drv
15320wine_fn_config_dll wineps16.drv16 enable_win16
Aric Stewarteefe6f62010-12-03 07:33:08 -060015321wine_fn_config_dll wineqtdecoder enable_wineqtdecoder
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015322wine_fn_config_dll winequartz.drv enable_winequartz_drv
15323wine_fn_config_dll winex11.drv enable_winex11_drv
15324wine_fn_config_dll wing.dll16 enable_win16
15325wine_fn_config_dll wing32 enable_wing32
Alexandre Julliard1858f432010-12-29 14:10:47 +010015326wine_fn_config_dll winhttp enable_winhttp implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015327wine_fn_config_test dlls/winhttp/tests winhttp_test
Alexandre Julliardec547502011-01-12 18:03:56 +010015328wine_fn_config_dll wininet enable_wininet po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015329wine_fn_config_test dlls/wininet/tests wininet_test
Alexandre Julliard8aefc902011-01-06 17:50:17 +010015330wine_fn_config_dll winmm enable_winmm po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015331wine_fn_config_test dlls/winmm/tests winmm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015332wine_fn_config_dll winnls.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015333wine_fn_config_dll winnls32 enable_winnls32 implib
15334wine_fn_config_dll winscard enable_winscard implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015335wine_fn_config_dll winsock.dll16 enable_win16
Alexandre Julliard35f3db42011-01-12 18:10:48 +010015336wine_fn_config_dll winspool.drv enable_winspool_drv po,implib winspool
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015337wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015338wine_fn_config_dll wintab.dll16 enable_win16
Alexandre Julliard1858f432010-12-29 14:10:47 +010015339wine_fn_config_dll wintab32 enable_wintab32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015340wine_fn_config_test dlls/wintab32/tests wintab32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015341wine_fn_config_dll wintrust enable_wintrust implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015342wine_fn_config_test dlls/wintrust/tests wintrust_test
Ričardas Barkauskas303079f2010-10-20 11:21:15 +030015343wine_fn_config_dll wlanapi enable_wlanapi
Alexandre Julliardd1d494b2011-01-06 17:57:43 +010015344wine_fn_config_dll wldap32 enable_wldap32 po,implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015345wine_fn_config_test dlls/wldap32/tests wldap32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015346wine_fn_config_dll wmi enable_wmi
15347wine_fn_config_dll wmiutils enable_wmiutils
Alexandre Julliard1858f432010-12-29 14:10:47 +010015348wine_fn_config_dll wnaspi32 enable_wnaspi32 implib
15349wine_fn_config_dll wow32 enable_win16 implib
15350wine_fn_config_dll ws2_32 enable_ws2_32 implib
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015351wine_fn_config_test dlls/ws2_32/tests ws2_32_test
Alexandre Julliard1858f432010-12-29 14:10:47 +010015352wine_fn_config_dll wsock32 enable_wsock32 implib
15353wine_fn_config_dll wtsapi32 enable_wtsapi32 implib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015354wine_fn_config_dll wuapi enable_wuapi
15355wine_fn_config_dll wuaueng enable_wuaueng
Louis Lenders934d6762010-11-12 11:23:37 +010015356wine_fn_config_dll xapofx1_1 enable_xapofx1_1
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015357wine_fn_config_dll xinput1_1 enable_xinput1_1
15358wine_fn_config_dll xinput1_2 enable_xinput1_2
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015359wine_fn_config_dll xinput1_3 enable_xinput1_3 implib xinput
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015360wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010015361wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
15362wine_fn_config_dll xmllite enable_xmllite
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015363wine_fn_config_test dlls/xmllite/tests xmllite_test
Alexandre Julliard03642412010-03-20 15:24:22 +010015364wine_fn_config_makefile documentation enable_documentation
15365wine_fn_config_makefile fonts enable_fonts
15366wine_fn_config_makefile include enable_include
15367wine_fn_config_makefile libs/port enable_libs_port
15368wine_fn_config_makefile libs/wine enable_libs_wine
15369wine_fn_config_makefile libs/wpp enable_libs_wpp
15370wine_fn_config_makefile loader enable_loader
Hans Leidekkerab789c62010-10-13 14:23:09 +020015371wine_fn_config_program aspnet_regiis enable_aspnet_regiis install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015372wine_fn_config_program attrib enable_attrib install
15373wine_fn_config_program cacls enable_cacls install
Alexandre Julliard367fd222011-01-04 17:05:21 +010015374wine_fn_config_program clock enable_clock po,install
Alexandre Julliard68647162011-01-04 00:03:40 +010015375wine_fn_config_program cmd enable_cmd po,install
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010015376wine_fn_config_test programs/cmd/tests cmd.exe_test
Alexandre Julliardd394e042010-03-20 14:53:39 +010015377wine_fn_config_program cmdlgtst enable_cmdlgtst
15378wine_fn_config_program control enable_control install
15379wine_fn_config_program dxdiag enable_dxdiag install
15380wine_fn_config_program eject enable_eject install
15381wine_fn_config_program expand enable_expand install
15382wine_fn_config_program explorer enable_explorer install
15383wine_fn_config_program extrac32 enable_extrac32 install
15384wine_fn_config_program hh enable_hh install
15385wine_fn_config_program icinfo enable_icinfo install
15386wine_fn_config_program iexplore enable_iexplore install
Alexandre Julliard6ec2a532011-01-04 10:49:45 +010015387wine_fn_config_program ipconfig enable_ipconfig po,install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015388wine_fn_config_program lodctr enable_lodctr install
Hans Leidekkerf15aea22010-09-29 09:57:34 +020015389wine_fn_config_program mofcomp enable_mofcomp install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015390wine_fn_config_program mshta enable_mshta install
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015391wine_fn_config_program msiexec enable_msiexec install,installbin
Alexandre Julliardb8c80c92011-01-04 17:55:21 +010015392wine_fn_config_program net enable_net po,install
Hans Leidekker8ad7d2e2010-12-06 13:19:41 +010015393wine_fn_config_program netsh enable_netsh install
Vincent Povirk4d3e6f42010-04-02 10:19:18 -050015394wine_fn_config_program ngen enable_ngen install
Alexandre Julliardff71d912011-01-08 12:53:31 +010015395wine_fn_config_program notepad enable_notepad po,install,installbin
Alexandre Julliard4c934cf2011-01-13 21:45:59 +010015396wine_fn_config_program oleview enable_oleview po,install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015397wine_fn_config_program ping enable_ping install
Hans Leidekker2133b6c2011-01-31 15:26:17 +010015398wine_fn_config_program plugplay enable_plugplay install
Alexandre Julliard8a4daab2011-01-08 16:19:06 +010015399wine_fn_config_program progman enable_progman po,install
Alexandre Julliard7ca71382011-01-04 18:03:01 +010015400wine_fn_config_program reg enable_reg po,install
Alexandre Julliard30b5e222011-01-13 22:24:00 +010015401wine_fn_config_program regedit enable_regedit po,install,installbin
Andrew Eikumf3c6c622010-07-30 16:02:34 -050015402wine_fn_config_test programs/regedit/tests regedit.exe_test
Hans Leidekkerab5fbeb2010-11-12 13:07:40 +010015403wine_fn_config_program regsvcs enable_regsvcs install
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015404wine_fn_config_program regsvr32 enable_regsvr32 install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015405wine_fn_config_program rpcss enable_rpcss install
Detlef Riekenbergdf898ea2010-07-18 19:15:57 +020015406wine_fn_config_program rundll.exe16 enable_win16 install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015407wine_fn_config_program rundll32 enable_rundll32 install
Hans Leidekker544da282010-05-03 12:56:58 +020015408wine_fn_config_program sc enable_sc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015409wine_fn_config_program secedit enable_secedit install
Hans Leidekker1885c3d2010-11-18 12:09:11 +010015410wine_fn_config_program servicemodelreg enable_servicemodelreg install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015411wine_fn_config_program services enable_services install
15412wine_fn_config_program spoolsv enable_spoolsv install
Alexandre Julliard1d3ef692011-01-04 19:24:34 +010015413wine_fn_config_program start enable_start po,install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015414wine_fn_config_program svchost enable_svchost install
Alexandre Julliardf0673012011-01-04 19:30:25 +010015415wine_fn_config_program taskkill enable_taskkill po,install
Alexandre Julliarddfcd36c2011-01-08 16:43:38 +010015416wine_fn_config_program taskmgr enable_taskmgr po,install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015417wine_fn_config_program termsv enable_termsv install
Alexandre Julliard4bca3342011-01-04 19:38:45 +010015418wine_fn_config_program uninstaller enable_uninstaller po,install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015419wine_fn_config_program unlodctr enable_unlodctr install
Alexandre Julliard9d6489a2011-01-10 13:25:22 +010015420wine_fn_config_program view enable_view po
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015421wine_fn_config_program wineboot enable_wineboot install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015422wine_fn_config_program winebrowser enable_winebrowser install
Alexandre Julliarda2be59a2011-01-13 22:44:59 +010015423wine_fn_config_program winecfg enable_winecfg po,install,installbin
Alexandre Julliard389f0e72011-01-10 13:42:09 +010015424wine_fn_config_program wineconsole enable_wineconsole po,install,installbin
Alexandre Julliard4f103ef2011-01-10 13:54:23 +010015425wine_fn_config_program winedbg enable_winedbg po,install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015426wine_fn_config_program winedevice enable_winedevice install
Alexandre Julliard08b919f2011-01-10 23:37:15 +010015427wine_fn_config_program winefile enable_winefile po,install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015428wine_fn_config_program winemenubuilder enable_winemenubuilder install
Alexandre Julliard490a47e2011-01-10 19:35:32 +010015429wine_fn_config_program winemine enable_winemine po,install,installbin
Alexandre Julliard6cce7fa2010-12-28 15:42:43 +010015430wine_fn_config_program winepath enable_winepath install,installbin
Alexandre Julliardd394e042010-03-20 14:53:39 +010015431wine_fn_config_program winetest enable_winetest
15432wine_fn_config_program winevdm enable_win16 install
15433wine_fn_config_program winhelp.exe16 enable_win16 install
Alexandre Julliard433e2402011-01-10 20:30:14 +010015434wine_fn_config_program winhlp32 enable_winhlp32 po,install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015435wine_fn_config_program winoldap.mod16 enable_win16 install
15436wine_fn_config_program winver enable_winver install
Louis Lenders4b281b22010-12-06 23:04:20 +010015437wine_fn_config_program wmic enable_wmic install
Alexandre Julliard88daff72011-01-11 12:41:31 +010015438wine_fn_config_program wordpad enable_wordpad po,install
Alexandre Julliard26c924e2011-01-04 19:43:36 +010015439wine_fn_config_program write enable_write po,install
Jacek Caban16bad582010-07-27 15:51:18 +020015440wine_fn_config_program wscript enable_wscript install
Alexandre Julliardf8be8ff2011-01-04 20:15:50 +010015441wine_fn_config_program xcopy enable_xcopy po,install
Alexandre Julliard03642412010-03-20 15:24:22 +010015442wine_fn_config_makefile server enable_server
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010015443wine_fn_config_tool tools
15444wine_fn_config_tool tools/widl
15445wine_fn_config_tool tools/winebuild
15446wine_fn_config_tool tools/winedump
15447wine_fn_config_tool tools/winegcc
15448wine_fn_config_tool tools/wmc
15449wine_fn_config_tool tools/wrc
Alexandre Julliard626f4252000-11-10 23:35:20 +000015450
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015451LINGUAS="\
Alexandre Julliardff71d912011-01-08 12:53:31 +010015452ar \
Alexandre Julliard4bca3342011-01-04 19:38:45 +010015453bg \
Alexandre Julliard39558f82011-01-13 17:24:15 +010015454ca \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015455cs \
15456da \
15457de \
Alexandre Julliardc9b52d22011-01-06 13:19:58 +010015458el \
15459en \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015460en_US \
15461eo \
15462es \
Alexandre Julliardff71d912011-01-08 12:53:31 +010015463fa \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015464fi \
15465fr \
15466he \
15467hi \
15468hu \
15469it \
15470ja \
15471ko \
15472lt \
15473ml \
15474nb_NO \
15475nl \
15476or \
15477pa \
15478pl \
15479pt_BR \
15480pt_PT \
Alexandre Julliard433e2402011-01-10 20:30:14 +010015481rm \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015482ro \
15483ru \
15484sk \
15485sl \
Alexandre Julliardc0b813f2011-01-07 12:11:41 +010015486sr_RS@cyrillic \
15487sr_RS@latin \
Alexandre Julliard7c2a4bf2011-01-04 16:55:54 +010015488sv \
15489te \
15490th \
15491tr \
15492uk \
15493wa \
15494zh_CN \
15495zh_TW"
15496
15497
15498
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015499ac_config_commands="$ac_config_commands Makefile"
15500
15501
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020015502ac_config_files="$ac_config_files Make.tmp:Make.vars.in:Makefile.in"
Alexandre Julliard92b57312010-03-22 20:25:30 +010015503
15504
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015505
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015506if test "x$enable_maintainer_mode" = xyes
15507then
15508 wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(srcdir)/configure: configure.ac aclocal.m4
15509 cd \$(srcdir) && autoconf --warnings=all
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015510\$(srcdir)/include/config.h.in: include/stamp-h.in
15511\$(srcdir)/include/stamp-h.in: configure.ac aclocal.m4
15512 cd \$(srcdir) && autoheader --warnings=all
Alexandre Julliard367fd222011-01-04 17:05:21 +010015513 @echo timestamp > \$@
15514
15515ALL_POT_FILES =$ALL_POT_FILES
15516all: \$(ALL_PO_FILES)
15517\$(ALL_PO_FILES): \$(srcdir)/po/wine.pot
Alexandre Julliard945ccf52011-01-27 15:09:55 +010015518 msgmerge -q \$@ \$(srcdir)/po/wine.pot | msgattrib --no-obsolete -o \$@.new && mv \$@.new \$@
Alexandre Julliard367fd222011-01-04 17:05:21 +010015519\$(srcdir)/po/wine.pot: \$(ALL_POT_FILES)
15520 msgcat -o \$@ \$(ALL_POT_FILES)"
Alexandre Julliard5eee9202011-01-01 12:04:45 +010015521fi
15522
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015523if test -n "$with_wine64"
15524then
Alexandre Julliard3c42b622010-12-27 14:37:57 +010015525wine_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 +020015526fonts server:
15527 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020015528$with_wine64/loader/wine:
15529 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
Alexandre Julliard3c42b622010-12-27 14:37:57 +010015530$with_wine64/loader/wine-preloader:
15531 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine-preloader \$@
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015532clean::
Alexandre Julliard3c42b622010-12-27 14:37:57 +010015533 \$(RM) fonts server $with_wine64/loader/wine $with_wine64/loader/wine-preloader"
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015534fi
15535
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015536wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15537 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15538
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015539cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015540# This file is a shell script that caches the results of configure
15541# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015542# scripts and configure runs, see configure's option --config-cache.
15543# It is not useful on other systems. If it contains results you don't
15544# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015545#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015546# config.status only pays attention to the cache file if you give it
15547# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015548#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015549# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015550# loading this file, other *unset* `ac_cv_foo' will be assigned the
15551# following values.
15552
15553_ACEOF
15554
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015555# The following way of writing the cache mishandles newlines in values,
15556# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015557# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015558# Ultrix sh set writes to stderr and can't be redirected directly,
15559# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015560(
15561 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15562 eval ac_val=\$$ac_var
15563 case $ac_val in #(
15564 *${as_nl}*)
15565 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015566 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015567$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015568 esac
15569 case $ac_var in #(
15570 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015571 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015572 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015573 esac ;;
15574 esac
15575 done
15576
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015577 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015578 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15579 *${as_nl}ac_space=\ *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015580 # `set' does not quote correctly, so add quotes: double-quote
15581 # substitution turns \\\\ into \\, and sed turns \\ into \.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015582 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015583 "s/'/'\\\\''/g;
15584 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015585 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015586 *)
15587 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015589 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015590 esac |
15591 sort
15592) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015593 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015594 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015595 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015596 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015597 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15598 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015599 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15600 :end' >>confcache
Jeremy White0ebeb532006-06-20 13:18:41 +020015601if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15602 if test -w "$cache_file"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015603 test "x$cache_file" != "x/dev/null" &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015604 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015605$as_echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015606 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015607 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015608 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015609$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015610 fi
15611fi
15612rm -f confcache
15613
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015614test "x$prefix" = xNONE && prefix=$ac_default_prefix
15615# Let make expand exec_prefix.
15616test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15617
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015618DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015619
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015620ac_libobjs=
15621ac_ltlibobjs=
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015622U=
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015623for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15624 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015625 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015626 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015627 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15628 # will be set to the directory where LIBOBJS objects are built.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015629 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15630 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015631done
15632LIBOBJS=$ac_libobjs
15633
15634LTLIBOBJS=$ac_ltlibobjs
15635
15636
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015637
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015638: ${CONFIG_STATUS=./config.status}
Alexandre Julliardabf50482008-10-31 12:56:53 +010015639ac_write_fail=0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015640ac_clean_files_save=$ac_clean_files
15641ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015642{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015643$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015644as_write_fail=0
15645cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015646#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015647# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015648# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015649# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015650# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015651
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015652debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015653ac_cs_recheck=false
15654ac_cs_silent=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015655
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015656SHELL=\${CONFIG_SHELL-$SHELL}
15657export SHELL
15658_ASEOF
15659cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15660## -------------------- ##
15661## M4sh Initialization. ##
15662## -------------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015663
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015664# Be more Bourne compatible
15665DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015666if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015667 emulate sh
15668 NULLCMD=:
Alexandre Julliardabf50482008-10-31 12:56:53 +010015669 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015670 # is contrary to our usage. Disable this feature.
15671 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015672 setopt NO_GLOB_SUBST
15673else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015674 case `(set -o) 2>/dev/null` in #(
15675 *posix*) :
15676 set -o posix ;; #(
15677 *) :
15678 ;;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015679esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015680fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015681
15682
Alexandre Julliardabf50482008-10-31 12:56:53 +010015683as_nl='
15684'
15685export as_nl
15686# Printing a long string crashes Solaris 7 /usr/bin/printf.
15687as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15688as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15689as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015690# Prefer a ksh shell builtin over an external printf program on Solaris,
15691# but without wasting forks for bash or zsh.
15692if test -z "$BASH_VERSION$ZSH_VERSION" \
15693 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15694 as_echo='print -r --'
15695 as_echo_n='print -rn --'
15696elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015697 as_echo='printf %s\n'
15698 as_echo_n='printf %s'
15699else
15700 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15701 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15702 as_echo_n='/usr/ucb/echo -n'
15703 else
15704 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15705 as_echo_n_body='eval
15706 arg=$1;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015707 case $arg in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015708 *"$as_nl"*)
15709 expr "X$arg" : "X\\(.*\\)$as_nl";
15710 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15711 esac;
15712 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15713 '
15714 export as_echo_n_body
15715 as_echo_n='sh -c $as_echo_n_body as_echo'
15716 fi
15717 export as_echo_body
15718 as_echo='sh -c $as_echo_body as_echo'
15719fi
15720
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015721# The user is always right.
15722if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015723 PATH_SEPARATOR=:
15724 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15725 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15726 PATH_SEPARATOR=';'
15727 }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015728fi
15729
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015730
15731# IFS
15732# We need space, tab and new line, in precisely that order. Quoting is
15733# there to prevent editors from complaining about space-tab.
15734# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15735# splitting by setting IFS to empty value.)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015736IFS=" "" $as_nl"
15737
15738# Find who we are. Look in the path if we contain no directory separator.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015739case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015740 *[\\/]* ) as_myself=$0 ;;
15741 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015742for as_dir in $PATH
15743do
15744 IFS=$as_save_IFS
15745 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015746 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15747 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015748IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015749
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015750 ;;
15751esac
15752# We did not find ourselves, most probably we were run as `sh COMMAND'
15753# in which case we are not to be found in the path.
15754if test "x$as_myself" = x; then
15755 as_myself=$0
15756fi
15757if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015758 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015759 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015760fi
15761
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015762# Unset variables that we do not need and which cause bugs (e.g. in
15763# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15764# suppresses any "Segmentation fault" message there. '((' could
15765# trigger a bug in pdksh 5.2.14.
15766for as_var in BASH_ENV ENV MAIL MAILPATH
15767do eval test x\${$as_var+set} = xset \
15768 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015769done
15770PS1='$ '
15771PS2='> '
15772PS4='+ '
15773
15774# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +010015775LC_ALL=C
15776export LC_ALL
15777LANGUAGE=C
15778export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015779
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015780# CDPATH.
15781(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15782
15783
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015784# as_fn_error STATUS ERROR [LINENO LOG_FD]
15785# ----------------------------------------
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015786# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15787# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015788# script with STATUS, using 1 if that was 0.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015789as_fn_error ()
15790{
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015791 as_status=$1; test $as_status -eq 0 && as_status=1
15792 if test "$4"; then
15793 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15794 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015795 fi
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015796 $as_echo "$as_me: error: $2" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015797 as_fn_exit $as_status
15798} # as_fn_error
15799
15800
15801# as_fn_set_status STATUS
15802# -----------------------
15803# Set $? to STATUS, without forking.
15804as_fn_set_status ()
15805{
15806 return $1
15807} # as_fn_set_status
15808
15809# as_fn_exit STATUS
15810# -----------------
15811# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15812as_fn_exit ()
15813{
15814 set +e
15815 as_fn_set_status $1
15816 exit $1
15817} # as_fn_exit
15818
15819# as_fn_unset VAR
15820# ---------------
15821# Portably unset VAR.
15822as_fn_unset ()
15823{
15824 { eval $1=; unset $1;}
15825}
15826as_unset=as_fn_unset
15827# as_fn_append VAR VALUE
15828# ----------------------
15829# Append the text in VALUE to the end of the definition contained in VAR. Take
15830# advantage of any shell optimizations that allow amortized linear growth over
15831# repeated appends, instead of the typical quadratic growth present in naive
15832# implementations.
15833if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15834 eval 'as_fn_append ()
15835 {
15836 eval $1+=\$2
15837 }'
15838else
15839 as_fn_append ()
15840 {
15841 eval $1=\$$1\$2
15842 }
15843fi # as_fn_append
15844
15845# as_fn_arith ARG...
15846# ------------------
15847# Perform arithmetic evaluation on the ARGs, and store the result in the
15848# global $as_val. Take advantage of shells that can avoid forks. The arguments
15849# must be portable across $(()) and expr.
15850if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15851 eval 'as_fn_arith ()
15852 {
15853 as_val=$(( $* ))
15854 }'
15855else
15856 as_fn_arith ()
15857 {
15858 as_val=`expr "$@" || test $? -eq 1`
15859 }
15860fi # as_fn_arith
15861
15862
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015863if expr a : '\(a\)' >/dev/null 2>&1 &&
15864 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15865 as_expr=expr
15866else
15867 as_expr=false
15868fi
15869
15870if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15871 as_basename=basename
15872else
15873 as_basename=false
15874fi
15875
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015876if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15877 as_dirname=dirname
15878else
15879 as_dirname=false
15880fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015881
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015882as_me=`$as_basename -- "$0" ||
15883$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15884 X"$0" : 'X\(//\)$' \| \
15885 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010015886$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015887 sed '/^.*\/\([^/][^/]*\)\/*$/{
15888 s//\1/
15889 q
15890 }
15891 /^X\/\(\/\/\)$/{
15892 s//\1/
15893 q
15894 }
15895 /^X\/\(\/\).*/{
15896 s//\1/
15897 q
15898 }
15899 s/.*/./; q'`
15900
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015901# Avoid depending upon Character Ranges.
15902as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15903as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15904as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15905as_cr_digits='0123456789'
15906as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015907
15908ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015909case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015910-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015911 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015912 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015913 xy) ECHO_C='\c';;
15914 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15915 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015916 esac;;
15917*)
15918 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015919esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015920
15921rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015922if test -d conf$$.dir; then
15923 rm -f conf$$.dir/conf$$.file
15924else
15925 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +010015926 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015927fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010015928if (echo >conf$$.file) 2>/dev/null; then
15929 if ln -s conf$$.file conf$$ 2>/dev/null; then
15930 as_ln_s='ln -s'
15931 # ... but there are two gotchas:
15932 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15933 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15934 # In both cases, we have to default to `cp -p'.
15935 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15936 as_ln_s='cp -p'
15937 elif ln conf$$.file conf$$ 2>/dev/null; then
15938 as_ln_s=ln
15939 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015940 as_ln_s='cp -p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015941 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015942else
15943 as_ln_s='cp -p'
15944fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015945rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15946rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015947
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015948
15949# as_fn_mkdir_p
15950# -------------
15951# Create "$as_dir" as a directory, including parents if necessary.
15952as_fn_mkdir_p ()
15953{
15954
15955 case $as_dir in #(
15956 -*) as_dir=./$as_dir;;
15957 esac
15958 test -d "$as_dir" || eval $as_mkdir_p || {
15959 as_dirs=
15960 while :; do
15961 case $as_dir in #(
15962 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15963 *) as_qdir=$as_dir;;
15964 esac
15965 as_dirs="'$as_qdir' $as_dirs"
15966 as_dir=`$as_dirname -- "$as_dir" ||
15967$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15968 X"$as_dir" : 'X\(//\)[^/]' \| \
15969 X"$as_dir" : 'X\(//\)$' \| \
15970 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15971$as_echo X"$as_dir" |
15972 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15973 s//\1/
15974 q
15975 }
15976 /^X\(\/\/\)[^/].*/{
15977 s//\1/
15978 q
15979 }
15980 /^X\(\/\/\)$/{
15981 s//\1/
15982 q
15983 }
15984 /^X\(\/\).*/{
15985 s//\1/
15986 q
15987 }
15988 s/.*/./; q'`
15989 test -d "$as_dir" && break
15990 done
15991 test -z "$as_dirs" || eval "mkdir $as_dirs"
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020015992 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015993
15994
15995} # as_fn_mkdir_p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015996if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015997 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015998else
Alexandre Julliard875927f2004-01-02 01:55:29 +000015999 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016000 as_mkdir_p=false
16001fi
16002
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016003if test -x / >/dev/null 2>&1; then
16004 as_test_x='test -x'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016005else
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016006 if ls -dL / >/dev/null 2>&1; then
16007 as_ls_L_option=L
16008 else
16009 as_ls_L_option=
16010 fi
16011 as_test_x='
16012 eval sh -c '\''
16013 if test -d "$1"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016014 test -d "$1/.";
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016015 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016016 case $1 in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010016017 -*)set "./$1";;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016018 esac;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016019 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016020 ???[sx]*):;;*)false;;esac;fi
16021 '\'' sh
16022 '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016023fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010016024as_executable_p=$as_test_x
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016025
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016026# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000016027as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016028
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016029# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000016030as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016031
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016032
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016033exec 6>&1
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016034## ----------------------------------- ##
16035## Main body of $CONFIG_STATUS script. ##
16036## ----------------------------------- ##
16037_ASEOF
16038test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016039
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016040cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16041# Save the log message, to keep $0 and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016042# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016043# values after options handling.
16044ac_log="
Alexandre Julliardf0296a82011-01-21 20:31:58 +010016045This file was extended by Wine $as_me 1.3.12, which was
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016046generated by GNU Autoconf 2.67. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016047
16048 CONFIG_FILES = $CONFIG_FILES
16049 CONFIG_HEADERS = $CONFIG_HEADERS
16050 CONFIG_LINKS = $CONFIG_LINKS
16051 CONFIG_COMMANDS = $CONFIG_COMMANDS
16052 $ $0 $@
16053
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016054on `(hostname || uname -n) 2>/dev/null | sed 1q`
16055"
16056
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016057_ACEOF
16058
Alexandre Julliardabf50482008-10-31 12:56:53 +010016059case $ac_config_files in *"
16060"*) set x $ac_config_files; shift; ac_config_files=$*;;
16061esac
16062
16063case $ac_config_headers in *"
16064"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16065esac
16066
16067
16068cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016069# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016070config_files="$ac_config_files"
16071config_headers="$ac_config_headers"
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016072config_links="$ac_config_links"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016073config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016074
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016075_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016076
Alexandre Julliardabf50482008-10-31 12:56:53 +010016077cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016078ac_cs_usage="\
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016079\`$as_me' instantiates files and other configuration actions
16080from templates according to the current configuration. Unless the files
16081and actions are specified as TAGs, all are instantiated by default.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016082
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016083Usage: $0 [OPTION]... [TAG]...
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016084
16085 -h, --help print this help, then exit
Alexandre Julliard78bd1942006-08-14 20:42:56 +020016086 -V, --version print version number and configuration settings, then exit
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016087 --config print configuration, then exit
Alexandre Julliardabf50482008-10-31 12:56:53 +010016088 -q, --quiet, --silent
16089 do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016090 -d, --debug don't remove temporary files
16091 --recheck update $as_me by reconfiguring in the same conditions
Alexandre Julliardabf50482008-10-31 12:56:53 +010016092 --file=FILE[:TEMPLATE]
16093 instantiate the configuration file FILE
16094 --header=FILE[:TEMPLATE]
16095 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016096
16097Configuration files:
16098$config_files
16099
16100Configuration headers:
16101$config_headers
16102
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016103Configuration links:
16104$config_links
16105
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016106Configuration commands:
16107$config_commands
16108
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016109Report bugs to <wine-devel@winehq.org>.
16110Wine home page: <http://www.winehq.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000016111
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016112_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016113cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016114ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016115ac_cs_version="\\
Alexandre Julliardf0296a82011-01-21 20:31:58 +010016116Wine config.status 1.3.12
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016117configured by $0, generated by GNU Autoconf 2.67,
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016118 with options \\"\$ac_cs_config\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016119
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016120Copyright (C) 2010 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016121This config.status script is free software; the Free Software Foundation
16122gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016123
16124ac_pwd='$ac_pwd'
16125srcdir='$srcdir'
16126INSTALL='$INSTALL'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016127test -n "\$AWK" || AWK=awk
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016128_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016129
Alexandre Julliardabf50482008-10-31 12:56:53 +010016130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16131# The default lists apply if the user does not specify any file.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016132ac_need_defaults=:
16133while test $# != 0
16134do
16135 case $1 in
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016136 --*=?*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016137 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16138 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016139 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016140 ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016141 --*=)
16142 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16143 ac_optarg=
16144 ac_shift=:
16145 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016146 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016147 ac_option=$1
16148 ac_optarg=$2
16149 ac_shift=shift
16150 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016151 esac
16152
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016153 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016154 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016155 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16156 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016157 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Alexandre Julliardabf50482008-10-31 12:56:53 +010016158 $as_echo "$ac_cs_version"; exit ;;
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016159 --config | --confi | --conf | --con | --co | --c )
16160 $as_echo "$ac_cs_config"; exit ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016161 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016162 debug=: ;;
16163 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016164 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010016165 case $ac_optarg in
16166 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016167 '') as_fn_error $? "missing file argument" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +010016168 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016169 as_fn_append CONFIG_FILES " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016170 ac_need_defaults=false;;
16171 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000016172 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010016173 case $ac_optarg in
16174 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16175 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016176 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016177 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016178 --he | --h)
16179 # Conflict between --help and --header
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016180 as_fn_error $? "ambiguous option: \`$1'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016181Try \`$0 --help' for more information.";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016182 --help | --hel | -h )
Alexandre Julliardabf50482008-10-31 12:56:53 +010016183 $as_echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16185 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16186 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016187
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016188 # This is an error.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016189 -*) as_fn_error $? "unrecognized option: \`$1'
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016190Try \`$0 --help' for more information." ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016191
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016192 *) as_fn_append ac_config_targets " $1"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016193 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016194
16195 esac
16196 shift
16197done
16198
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016199ac_configure_extra_args=
16200
16201if $ac_cs_silent; then
16202 exec 6>/dev/null
16203 ac_configure_extra_args="$ac_configure_extra_args --silent"
16204fi
16205
16206_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016207cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016208if \$ac_cs_recheck; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016209 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16210 shift
16211 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16212 CONFIG_SHELL='$SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016213 export CONFIG_SHELL
Alexandre Julliardabf50482008-10-31 12:56:53 +010016214 exec "\$@"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016215fi
16216
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016217_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016218cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016219exec 5>>config.log
16220{
16221 echo
16222 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16223## Running $as_me. ##
16224_ASBOX
Alexandre Julliardabf50482008-10-31 12:56:53 +010016225 $as_echo "$ac_log"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016226} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016227
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016228_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016229cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016230#
16231# INIT-COMMANDS
16232#
16233wine_fn_output_makefile ()
16234{
16235 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
16236$ALL_MAKEFILE_DEPENDS
16237_WINE_EOF
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016238 as_fn_error $? "could not create Makefile" "$LINENO" 5
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016239}
16240
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016241_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016242
Alexandre Julliardabf50482008-10-31 12:56:53 +010016243cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016244
16245# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016246for ac_config_target in $ac_config_targets
16247do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016248 case $ac_config_target in
16249 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliardc4704c22006-09-22 09:33:00 +020016250 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
Alexandre Julliard40977bf2010-11-11 12:24:46 +010016251 "dlls/shell32/AUTHORS") CONFIG_LINKS="$CONFIG_LINKS dlls/shell32/AUTHORS:AUTHORS" ;;
Alexandre Julliarda6320522010-02-03 13:14:03 +010016252 "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 +010016253 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
16254 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
16255 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
16256 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
Alexandre Julliard321d3882010-05-06 20:51:53 +020016257 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016258 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020016259 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
16260 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020016261 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010016262 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016263 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
16264 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
16265 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010016266 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016267 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
16268 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016269 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016270 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
Alexandre Julliard81b8ee82010-09-19 12:36:48 +020016271 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Make.vars.in:Makefile.in" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016272
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016273 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016274 esac
16275done
16276
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016277
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016278# If the user did not use the arguments to specify the items to instantiate,
16279# then the envvar interface is used. Set only those that are not.
16280# We use the long form for the default assignment because of an extremely
16281# bizarre bug on SunOS 4.1.3.
16282if $ac_need_defaults; then
16283 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16284 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016285 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016286 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16287fi
16288
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016289# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016290# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016291# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016292# Hook for its removal unless debugging.
16293# Note that there is a small window in which the directory will not be cleaned:
16294# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016295$debug ||
16296{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016297 tmp=
16298 trap 'exit_status=$?
16299 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16300' 0
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016301 trap 'as_fn_exit 1' 1 2 13 15
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016302}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016303# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016304
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016305{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016306 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016307 test -n "$tmp" && test -d "$tmp"
16308} ||
16309{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016310 tmp=./conf$$-$RANDOM
16311 (umask 077 && mkdir "$tmp")
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016312} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016313
Alexandre Julliardabf50482008-10-31 12:56:53 +010016314# Set up the scripts for CONFIG_FILES section.
16315# No need to generate them if there are no CONFIG_FILES.
16316# This happens for instance with `./config.status config.h'.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016317if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016318
Alexandre Julliardabf50482008-10-31 12:56:53 +010016319if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16320 ac_cs_awk_getline=:
16321 ac_cs_awk_pipe_init=
16322 ac_cs_awk_read_file='
16323 while ((getline aline < (F[key])) > 0)
16324 print(aline)
16325 close(F[key])'
16326 ac_cs_awk_pipe_fini=
16327else
16328 ac_cs_awk_getline=false
16329 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16330 ac_cs_awk_read_file='
16331 print "|#_!!_#|"
16332 print "cat " F[key] " &&"
16333 '$ac_cs_awk_pipe_init
16334 # The final `:' finishes the AND list.
16335 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16336fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016337ac_cr=`echo X | tr X '\015'`
16338# On cygwin, bash can eat \r inside `` if the user requested igncr.
16339# But we know of no other shell where ac_cr would be empty at this
16340# point, so we can use a bashism as a fallback.
16341if test "x$ac_cr" = x; then
16342 eval ac_cr=\$\'\\r\'
16343fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016344ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16345if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016346 ac_cs_awk_cr='\\r'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016347else
16348 ac_cs_awk_cr=$ac_cr
16349fi
16350
16351echo 'BEGIN {' >"$tmp/subs1.awk" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016352_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016353
Alexandre Julliardabf50482008-10-31 12:56:53 +010016354# Create commands to substitute file output variables.
16355{
16356 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
16357 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
16358 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16359 echo "_ACAWK" &&
16360 echo "_ACEOF"
16361} >conf$$files.sh &&
16362. ./conf$$files.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016363 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016364rm -f conf$$files.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016365
Alexandre Julliardabf50482008-10-31 12:56:53 +010016366{
16367 echo "cat >conf$$subs.awk <<_ACEOF" &&
16368 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16369 echo "_ACEOF"
16370} >conf$$subs.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016371 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16372ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016373ac_delim='%!_!# '
16374for ac_last_try in false false false false false :; do
Alexandre Julliardabf50482008-10-31 12:56:53 +010016375 . ./conf$$subs.sh ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016376 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016377
Alexandre Julliardabf50482008-10-31 12:56:53 +010016378 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16379 if test $ac_delim_n = $ac_delim_num; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016380 break
16381 elif $ac_last_try; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016382 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016383 else
16384 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016385 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016386done
Alexandre Julliardabf50482008-10-31 12:56:53 +010016387rm -f conf$$subs.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016388
Alexandre Julliardabf50482008-10-31 12:56:53 +010016389cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16390cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016391_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016392sed -n '
16393h
16394s/^/S["/; s/!.*/"]=/
16395p
16396g
16397s/^[^!]*!//
16398:repl
16399t repl
16400s/'"$ac_delim"'$//
16401t delim
16402:nl
16403h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016404s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010016405t more1
16406s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16407p
16408n
16409b repl
16410:more1
16411s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16412p
16413g
16414s/.\{148\}//
16415t nl
16416:delim
16417h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010016418s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010016419t more2
16420s/["\\]/\\&/g; s/^/"/; s/$/"/
16421p
16422b
16423:more2
16424s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16425p
16426g
16427s/.\{148\}//
16428t delim
16429' <conf$$subs.awk | sed '
16430/^[^""]/{
16431 N
16432 s/\n//
16433}
16434' >>$CONFIG_STATUS || ac_write_fail=1
16435rm -f conf$$subs.awk
16436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16437_ACAWK
16438cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16439 for (key in S) S_is_set[key] = 1
16440 FS = ""
16441 \$ac_cs_awk_pipe_init
16442}
16443{
16444 line = $ 0
16445 nfields = split(line, field, "@")
16446 substed = 0
16447 len = length(field[1])
16448 for (i = 2; i < nfields; i++) {
16449 key = field[i]
16450 keylen = length(key)
16451 if (S_is_set[key]) {
16452 value = S[key]
16453 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16454 len += length(value) + length(field[++i])
16455 substed = 1
16456 } else
16457 len += 1 + keylen
16458 }
16459 if (nfields == 3 && !substed) {
16460 key = field[2]
16461 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16462 \$ac_cs_awk_read_file
16463 next
16464 }
16465 }
16466 print line
16467}
16468\$ac_cs_awk_pipe_fini
16469_ACAWK
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016470_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16472if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16473 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16474else
16475 cat
16476fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016477 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016478_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016479
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016480# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16481# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016482# trailing colons and then remove the whole line if VPATH becomes empty
16483# (actually we leave an empty line to preserve line numbers).
16484if test "x$srcdir" = x.; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016485 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16486h
16487s///
16488s/^/:/
16489s/[ ]*$/:/
16490s/:\$(srcdir):/:/g
16491s/:\${srcdir}:/:/g
16492s/:@srcdir@:/:/g
16493s/^:*//
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016494s/:*$//
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016495x
16496s/\(=[ ]*\).*/\1/
16497G
16498s/\n//
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016499s/^[^=]*=[ ]*$//
16500}'
16501fi
16502
Alexandre Julliardabf50482008-10-31 12:56:53 +010016503cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016504fi # test -n "$CONFIG_FILES"
16505
Alexandre Julliardabf50482008-10-31 12:56:53 +010016506# Set up the scripts for CONFIG_HEADERS section.
16507# No need to generate them if there are no CONFIG_HEADERS.
16508# This happens for instance with `./config.status Makefile'.
16509if test -n "$CONFIG_HEADERS"; then
16510cat >"$tmp/defines.awk" <<\_ACAWK ||
16511BEGIN {
16512_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016513
Alexandre Julliardabf50482008-10-31 12:56:53 +010016514# Transform confdefs.h into an awk script `defines.awk', embedded as
16515# here-document in config.status, that substitutes the proper values into
16516# config.h.in to produce config.h.
16517
16518# Create a delimiter string that does not exist in confdefs.h, to ease
16519# handling of long lines.
16520ac_delim='%!_!# '
16521for ac_last_try in false false :; do
16522 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16523 if test -z "$ac_t"; then
16524 break
16525 elif $ac_last_try; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016526 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016527 else
16528 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16529 fi
16530done
16531
16532# For the awk script, D is an array of macro values keyed by name,
16533# likewise P contains macro parameters if any. Preserve backslash
16534# newline sequences.
16535
16536ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16537sed -n '
16538s/.\{148\}/&'"$ac_delim"'/g
16539t rset
16540:rset
16541s/^[ ]*#[ ]*define[ ][ ]*/ /
16542t def
16543d
16544:def
16545s/\\$//
16546t bsnl
16547s/["\\]/\\&/g
16548s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16549D["\1"]=" \3"/p
16550s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16551d
16552:bsnl
16553s/["\\]/\\&/g
16554s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16555D["\1"]=" \3\\\\\\n"\\/p
16556t cont
16557s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16558t cont
16559d
16560:cont
16561n
16562s/.\{148\}/&'"$ac_delim"'/g
16563t clear
16564:clear
16565s/\\$//
16566t bsnlc
16567s/["\\]/\\&/g; s/^/"/; s/$/"/p
16568d
16569:bsnlc
16570s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16571b cont
16572' <confdefs.h | sed '
16573s/'"$ac_delim"'/"\\\
16574"/g' >>$CONFIG_STATUS || ac_write_fail=1
16575
16576cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16577 for (key in D) D_is_set[key] = 1
16578 FS = ""
16579}
16580/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16581 line = \$ 0
16582 split(line, arg, " ")
16583 if (arg[1] == "#") {
16584 defundef = arg[2]
16585 mac1 = arg[3]
16586 } else {
16587 defundef = substr(arg[1], 2)
16588 mac1 = arg[2]
16589 }
16590 split(mac1, mac2, "(") #)
16591 macro = mac2[1]
16592 prefix = substr(line, 1, index(line, defundef) - 1)
16593 if (D_is_set[macro]) {
16594 # Preserve the white space surrounding the "#".
16595 print prefix "define", macro P[macro] D[macro]
16596 next
16597 } else {
16598 # Replace #undef with comments. This is necessary, for example,
16599 # in the case of _POSIX_SOURCE, which is predefined and required
16600 # on some systems where configure will not decide to define it.
16601 if (defundef == "undef") {
16602 print "/*", prefix defundef, macro, "*/"
16603 next
16604 }
16605 }
16606}
16607{ print }
16608_ACAWK
16609_ACEOF
16610cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016611 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016612fi # test -n "$CONFIG_HEADERS"
16613
16614
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016615eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
Alexandre Julliardabf50482008-10-31 12:56:53 +010016616shift
16617for ac_tag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016618do
16619 case $ac_tag in
16620 :[FHLC]) ac_mode=$ac_tag; continue;;
16621 esac
16622 case $ac_mode$ac_tag in
16623 :[FHL]*:*);;
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016624 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016625 :[FH]-) ac_tag=-:-;;
16626 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16627 esac
16628 ac_save_IFS=$IFS
16629 IFS=:
16630 set x $ac_tag
16631 IFS=$ac_save_IFS
16632 shift
16633 ac_file=$1
16634 shift
16635
16636 case $ac_mode in
16637 :L) ac_source=$1;;
16638 :[FH])
16639 ac_file_inputs=
16640 for ac_f
16641 do
16642 case $ac_f in
16643 -) ac_f="$tmp/stdin";;
16644 *) # Look for the file first in the build tree, then in the source tree
16645 # (if the path is not absolute). The absolute path cannot be DOS-style,
16646 # because $ac_f cannot contain `:'.
16647 test -f "$ac_f" ||
16648 case $ac_f in
16649 [\\/$]*) false;;
16650 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16651 esac ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016652 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016653 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +010016654 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016655 as_fn_append ac_file_inputs " '$ac_f'"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016656 done
16657
16658 # Let's still pretend it is `configure' which instantiates (i.e., don't
16659 # use $as_me), people would be surprised to read:
16660 # /* config.h. Generated by config.status. */
Alexandre Julliardabf50482008-10-31 12:56:53 +010016661 configure_input='Generated from '`
16662 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16663 `' by configure.'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016664 if test x"$ac_file" != x-; then
16665 configure_input="$ac_file. $configure_input"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016666 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016667$as_echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016668 fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016669 # Neutralize special characters interpreted by sed in replacement strings.
16670 case $configure_input in #(
16671 *\&* | *\|* | *\\* )
16672 ac_sed_conf_input=`$as_echo "$configure_input" |
16673 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16674 *) ac_sed_conf_input=$configure_input;;
16675 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016676
16677 case $ac_tag in
Alexandre Julliardabf50482008-10-31 12:56:53 +010016678 *:-:* | *:-) cat >"$tmp/stdin" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016679 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016680 esac
16681 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016682 esac
16683
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016684 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016685$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016686 X"$ac_file" : 'X\(//\)[^/]' \| \
16687 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016688 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016689$as_echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016690 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16691 s//\1/
16692 q
16693 }
16694 /^X\(\/\/\)[^/].*/{
16695 s//\1/
16696 q
16697 }
16698 /^X\(\/\/\)$/{
16699 s//\1/
16700 q
16701 }
16702 /^X\(\/\).*/{
16703 s//\1/
16704 q
16705 }
16706 s/.*/./; q'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016707 as_dir="$ac_dir"; as_fn_mkdir_p
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016708 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016709
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016710case "$ac_dir" in
16711.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16712*)
Alexandre Julliardabf50482008-10-31 12:56:53 +010016713 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016714 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +010016715 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016716 case $ac_top_builddir_sub in
16717 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16718 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16719 esac ;;
16720esac
16721ac_abs_top_builddir=$ac_pwd
16722ac_abs_builddir=$ac_pwd$ac_dir_suffix
16723# for backward compatibility:
16724ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016725
16726case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016727 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016728 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016729 ac_top_srcdir=$ac_top_builddir_sub
16730 ac_abs_top_srcdir=$ac_pwd ;;
16731 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016732 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016733 ac_top_srcdir=$srcdir
16734 ac_abs_top_srcdir=$srcdir ;;
16735 *) # Relative name.
16736 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16737 ac_top_srcdir=$ac_top_build_prefix$srcdir
16738 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016739esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016740ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000016741
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016742
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016743 case $ac_mode in
16744 :F)
16745 #
16746 # CONFIG_FILE
16747 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016748
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016749 case $INSTALL in
16750 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016751 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000016752 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016753_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016754
Alexandre Julliardabf50482008-10-31 12:56:53 +010016755cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016756# If the template does not know about datarootdir, expand it.
16757# FIXME: This hack should be removed a few years after 2.60.
Jeremy White0ebeb532006-06-20 13:18:41 +020016758ac_datarootdir_hack=; ac_datarootdir_seen=
Alexandre Julliardabf50482008-10-31 12:56:53 +010016759ac_sed_dataroot='
16760/datarootdir/ {
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016761 p
16762 q
16763}
16764/@datadir@/p
16765/@docdir@/p
16766/@infodir@/p
16767/@localedir@/p
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016768/@mandir@/p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016769case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jeremy White0ebeb532006-06-20 13:18:41 +020016770*datarootdir*) ac_datarootdir_seen=yes;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016771*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016772 { $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 +010016773$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016774_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016776 ac_datarootdir_hack='
16777 s&@datadir@&$datadir&g
16778 s&@docdir@&$docdir&g
16779 s&@infodir@&$infodir&g
16780 s&@localedir@&$localedir&g
16781 s&@mandir@&$mandir&g
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016782 s&\\\${datarootdir}&$datarootdir&g' ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016783esac
16784_ACEOF
16785
16786# Neutralize VPATH when `$srcdir' = `.'.
16787# Shell code in configure.ac might set extrasub.
16788# FIXME: do we really want to maintain this feature?
Alexandre Julliardabf50482008-10-31 12:56:53 +010016789cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16790ac_sed_extra="$ac_vpsub
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016791$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016792_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016794:t
16795/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardabf50482008-10-31 12:56:53 +010016796s|@configure_input@|$ac_sed_conf_input|;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016797s&@top_builddir@&$ac_top_builddir_sub&;t t
Alexandre Julliardabf50482008-10-31 12:56:53 +010016798s&@top_build_prefix@&$ac_top_build_prefix&;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016799s&@srcdir@&$ac_srcdir&;t t
16800s&@abs_srcdir@&$ac_abs_srcdir&;t t
16801s&@top_srcdir@&$ac_top_srcdir&;t t
16802s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16803s&@builddir@&$ac_builddir&;t t
16804s&@abs_builddir@&$ac_abs_builddir&;t t
16805s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16806s&@INSTALL@&$ac_INSTALL&;t t
16807$ac_datarootdir_hack
Alexandre Julliardabf50482008-10-31 12:56:53 +010016808"
16809eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16810if $ac_cs_awk_getline; then
16811 $AWK -f "$tmp/subs.awk"
16812else
16813 $AWK -f "$tmp/subs.awk" | $SHELL
16814fi >$tmp/out \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016815 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016816
Jeremy White0ebeb532006-06-20 13:18:41 +020016817test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16818 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020016819 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016821which seems to be undefined. Please make sure it is defined" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016822$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016823which seems to be undefined. Please make sure it is defined" >&2;}
Jeremy White0ebeb532006-06-20 13:18:41 +020016824
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016825 rm -f "$tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016826 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +010016827 -) cat "$tmp/out" && rm -f "$tmp/out";;
16828 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16829 esac \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016830 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016831 ;;
16832 :H)
16833 #
16834 # CONFIG_HEADER
16835 #
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016836 if test x"$ac_file" != x-; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016837 {
16838 $as_echo "/* $configure_input */" \
16839 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16840 } >"$tmp/config.h" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016842 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016843 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016844$as_echo "$as_me: $ac_file is unchanged" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016845 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016846 rm -f "$ac_file"
16847 mv "$tmp/config.h" "$ac_file" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016848 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016849 fi
16850 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016851 $as_echo "/* $configure_input */" \
16852 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016853 || as_fn_error $? "could not create -" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016854 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016855 ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016856 :L)
16857 #
16858 # CONFIG_LINK
16859 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016860
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016861 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16862 :
16863 else
16864 # Prefer the file from the source tree if names are identical.
16865 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16866 ac_source=$srcdir/$ac_source
16867 fi
16868
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16870$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16871
16872 if test ! -r "$ac_source"; then
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016873 as_fn_error $? "$ac_source: file not found" "$LINENO" 5
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016874 fi
16875 rm -f "$ac_file"
16876
16877 # Try a relative symlink, then a hard link, then a copy.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016878 case $ac_source in
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016879 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16880 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16881 esac
16882 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16883 ln "$ac_source" "$ac_file" 2>/dev/null ||
16884 cp -p "$ac_source" "$ac_file" ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016885 as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016886 fi
16887 ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016888 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016889$as_echo "$as_me: executing $ac_file commands" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016890 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016891 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016892
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016893
16894 case $ac_file$ac_mode in
Alexandre Julliardc4704c22006-09-22 09:33:00 +020016895 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
Alexandre Julliarda1c253e2010-02-11 20:26:35 +010016896 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16897$as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16898 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16899$as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16900 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16901$as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16902 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16903$as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16904 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16905$as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16906 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16907$as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016908 "Makefile":C) wine_fn_output_makefile Makefile ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016909
16910 esac
16911done # for ac_tag
16912
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000016913
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016914as_fn_exit 0
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016915_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016916ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016917
Alexandre Julliardabf50482008-10-31 12:56:53 +010016918test $ac_write_fail = 0 ||
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016919 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016920
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016921
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016922# configure is writing to config.log, and then calls config.status.
16923# config.status does its own redirection, appending to config.log.
16924# Unfortunately, on DOS this fails, as config.log is still kept open
16925# by configure, so config.status won't be able to write to it; its
16926# output is simply discarded. So we exec the FD to /dev/null,
16927# effectively closing config.log, so it can be properly (re)opened and
16928# appended to by config.status. When coming back to configure, we
16929# need to make the FD available again.
16930if test "$no_create" != yes; then
16931 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016932 ac_config_status_args=
16933 test "$silent" = yes &&
16934 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016935 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016936 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016937 exec 5>>config.log
16938 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16939 # would make configure fail if this is the last instruction.
Alexandre Julliarda53c44a2010-09-19 12:27:24 +020016940 $ac_cs_success || as_fn_exit 1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016941fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016942if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016944$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16945fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016946
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016947
Alexandre Julliarde3bd1112006-09-21 11:14:38 +020016948if test "$no_create" = "yes"
16949then
16950 exit 0
16951fi
16952
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016953ac_save_IFS="$IFS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016954if test "x$wine_notices != "x; then
16955 echo >&6
Rafał Mużyło4736c992008-10-20 21:43:21 +020016956 IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016957 for msg in $wine_notices; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020016958 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016959 if test -n "$msg"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016960 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016961$as_echo "$as_me: $msg" >&6;}
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016962 fi
16963 done
16964fi
Rafał Mużyło4736c992008-10-20 21:43:21 +020016965IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016966for msg in $wine_warnings; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020016967 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016968 if test -n "$msg"; then
16969 echo >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016971$as_echo "$as_me: WARNING: $msg" >&2;}
Detlef Riekenberge84a3822006-08-21 05:28:17 +020016972 fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016973done
16974IFS="$ac_save_IFS"
Francois Gouget99d026f2005-03-19 17:08:18 +000016975
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016976echo "
Alexandre Julliard64362ac2010-02-23 13:33:52 +010016977$as_me: Finished. Do '${ac_make}' to compile Wine.
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016978" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016979