blob: fe69a20d65d45670b526ba05a8985786c792e573 [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 Julliard821cd382010-05-21 21:30:30 +02003# Generated by GNU Autoconf 2.65 for Wine 1.2-rc1.
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 Julliardfa8c4f72009-12-28 11:43:02 +01009# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10# Inc.
11#
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"
322 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
323
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
362# as_fn_error ERROR [LINENO LOG_FD]
363# ---------------------------------
364# 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
366# script with status $?, using 1 if that was 0.
367as_fn_error ()
368{
369 as_status=$?; test $as_status -eq 0 && as_status=1
370 if test "$3"; then
371 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
373 fi
374 $as_echo "$as_me: error: $1" >&2
375 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.
536# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537# 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 Julliard821cd382010-05-21 21:30:30 +0200555PACKAGE_VERSION='1.2-rc1'
556PACKAGE_STRING='Wine 1.2-rc1'
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 Julliard454fb3c2010-02-08 21:29:13 +0100599ALL_TEST_BINARIES
Alexandre Julliard7d831152010-03-20 15:07:45 +0100600ALL_WINETEST_DEPENDS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100601LDAPLIBS
602LIBPOLL
603LIBDL
604EXTRA_BINARIES
Alexandre Julliard3e6eab32009-08-13 19:54:31 +0200605MAIN_BINARY
Alexandre Julliardabf50482008-10-31 12:56:53 +0100606SOCKETLIBS
607CRTLIBS
Alexandre Julliardb860c4a2009-09-01 22:36:13 +0200608TOOLSEXT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100609LDPATH
Alexandre Julliard6c142382010-04-11 12:47:30 +0200610UNWINDFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100611BUILTINFLAG
612EXTRACFLAGS
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +0100613LIBKSTAT
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100614LIBOPENAL
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500615LIBMPG123
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +0200616PNGINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100617FONTCONFIGINCL
618CUPSINCL
619AUDIOIOLIBS
620ALSALIBS
621ESDLIBS
622ESDINCL
623ESDCONFIG
Jacek Caban11ca05f2009-05-29 23:35:13 +0200624ZLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100625FREETYPEINCL
626FREETYPELIBS
627ft_devel
628LCMSLIBS
629RESOLVLIBS
630GPHOTO2INCL
631GPHOTO2LIBS
632gphoto2port_devel
633gphoto2_devel
634SANEINCL
635sane_devel
636GNUTLSINCL
637HALINCL
638XSLTINCL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100639XML2INCL
640XML2LIBS
641NASLIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +0100642X_EXTRA_LIBS
643X_LIBS
644X_PRE_LIBS
645X_CFLAGS
646XMKMF
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100647LIBPTHREAD
Alexandre Julliard1f254212010-01-23 20:26:49 +0100648CROSSTARGET
Alexandre Julliardabf50482008-10-31 12:56:53 +0100649CROSSTEST
Alexandre Julliardabf50482008-10-31 12:56:53 +0100650CROSSCC
651CARBONLIB
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100652FRAMEWORK_OPENAL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100653COREAUDIO
654DISKARBITRATIONLIB
655LDEXECFLAGS
656IOKITLIB
657COREFOUNDATIONLIB
658SECURITYLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100659DLLWRAP
660DLLTOOL
661LDD
662LDRPATH_LOCAL
663LDRPATH_INSTALL
664IMPLIBEXT
665LIBEXT
666LDDLLFLAGS
667LDSHARED
668DLLFLAGS
669DLLEXT
Alexandre Julliard40664c02009-02-11 20:40:58 +0100670CPP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100671OPENGL_LIBS
672XLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100673PRELINK
674ICOTOOL
Joel Holdsworth476a2be2010-04-05 11:15:03 +0100675CONVERT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100676RSVG
677PKG_CONFIG
678FONTFORGE
679LINTFLAGS
680LINT
681INSTALL_DATA
682INSTALL_SCRIPT
683INSTALL_PROGRAM
684LDCONFIG
685EGREP
686GREP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100687LN_S
Alexandre Julliardabf50482008-10-31 12:56:53 +0100688STRIP
689RANLIB
690ARFLAGS
691ac_ct_AR
692AR
Alexandre Julliardabf50482008-10-31 12:56:53 +0100693BISON
694FLEX
Alexandre Julliardabf50482008-10-31 12:56:53 +0100695TOOLSDIR
Alexandre Julliard90647772009-08-13 19:48:42 +0200696WOW64_DISABLE
Alexandre Julliard07f77c42009-01-15 21:17:51 +0100697TARGETFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100698CPPBIN
699ac_ct_CXX
700CXXFLAGS
701CXX
702OBJEXT
703EXEEXT
704ac_ct_CC
705CPPFLAGS
706LDFLAGS
707CFLAGS
708CC
709SET_MAKE
Alexandre Julliardabf50482008-10-31 12:56:53 +0100710host_os
711host_vendor
712host_cpu
713host
714build_os
715build_vendor
716build_cpu
717build
718MAINTAINER_MODE
719target_alias
720host_alias
721build_alias
722LIBS
723ECHO_T
724ECHO_N
725ECHO_C
726DEFS
727mandir
728localedir
729libdir
730psdir
731pdfdir
732dvidir
733htmldir
734infodir
735docdir
736oldincludedir
737includedir
738localstatedir
739sharedstatedir
740sysconfdir
741datadir
742datarootdir
743libexecdir
744sbindir
745bindir
746program_transform_name
747prefix
748exec_prefix
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200749PACKAGE_URL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100750PACKAGE_BUGREPORT
751PACKAGE_STRING
752PACKAGE_VERSION
753PACKAGE_TARNAME
754PACKAGE_NAME
755PATH_SEPARATOR
756SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200757ac_subst_files='MAKE_RULES
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +0100758MAKE_TEST_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200759MAKE_DLL_RULES
760MAKE_IMPLIB_RULES
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200761MAKE_PROG_RULES'
Alexandre Julliardabf50482008-10-31 12:56:53 +0100762ac_user_opts='
763enable_option_checking
764enable_win16
765enable_win64
Alexandre Julliard35078f42008-11-21 10:16:12 +0100766enable_tests
Alexandre Julliardabf50482008-10-31 12:56:53 +0100767enable_maintainer_mode
768with_alsa
769with_audioio
770with_capi
771with_cms
772with_coreaudio
773with_cups
774with_curses
775with_esd
776with_fontconfig
777with_freetype
778with_gphoto
779with_glu
780with_gnutls
Alexandre Julliard6ce32e02009-08-19 15:53:04 +0200781with_gsm
Alexandre Julliardabf50482008-10-31 12:56:53 +0100782with_hal
783with_jack
784with_jpeg
785with_ldap
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500786with_mpg123
Alexandre Julliardabf50482008-10-31 12:56:53 +0100787with_nas
Chris Robinson862965f2009-08-25 03:26:35 -0700788with_openal
Alexandre Julliardabf50482008-10-31 12:56:53 +0100789with_opengl
790with_openssl
791with_oss
792with_png
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100793with_pthread
Alexandre Julliardabf50482008-10-31 12:56:53 +0100794with_sane
Vincent Povirk73cd5692010-03-08 17:07:29 -0600795with_tiff
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +0100796with_v4l
Alexandre Julliardabf50482008-10-31 12:56:53 +0100797with_xcomposite
798with_xcursor
799with_xinerama
800with_xinput
801with_xml
802with_xrandr
803with_xrender
804with_xshape
805with_xshm
806with_xslt
807with_xxf86vm
808with_wine_tools
Alexandre Julliard39a75d32009-08-13 19:45:31 +0200809with_wine64
Eric Pouechbc56c4e2009-08-25 19:33:28 +0200810enable_largefile
Alexandre Julliardabf50482008-10-31 12:56:53 +0100811with_x
812'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200813 ac_precious_vars='build_alias
814host_alias
815target_alias
816CC
817CFLAGS
818LDFLAGS
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100819LIBS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200820CPPFLAGS
821CXX
822CXXFLAGS
823CCC
Alexandre Julliard40664c02009-02-11 20:40:58 +0100824CPP
825XMKMF'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200826
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000827
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000828# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000829ac_init_help=
830ac_init_version=false
Alexandre Julliardabf50482008-10-31 12:56:53 +0100831ac_unrecognized_opts=
832ac_unrecognized_sep=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000833# The variables have the same names as the options, with
834# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000835cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000836exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000837no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000838no_recursion=
839prefix=NONE
840program_prefix=NONE
841program_suffix=NONE
842program_transform_name=s,x,x,
843silent=
844site=
845srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000846verbose=
847x_includes=NONE
848x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000849
850# Installation directory options.
851# These are left unexpanded so users can "make install exec_prefix=/foo"
852# and all the variables that are supposed to be based on exec_prefix
853# by default will actually change.
854# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200855# (The list follows the same order as the GNU Coding Standards.)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000856bindir='${exec_prefix}/bin'
857sbindir='${exec_prefix}/sbin'
858libexecdir='${exec_prefix}/libexec'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200859datarootdir='${prefix}/share'
860datadir='${datarootdir}'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000861sysconfdir='${prefix}/etc'
862sharedstatedir='${prefix}/com'
863localstatedir='${prefix}/var'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000864includedir='${prefix}/include'
865oldincludedir='/usr/include'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200866docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
867infodir='${datarootdir}/info'
868htmldir='${docdir}'
869dvidir='${docdir}'
870pdfdir='${docdir}'
871psdir='${docdir}'
872libdir='${exec_prefix}/lib'
873localedir='${datarootdir}/locale'
874mandir='${datarootdir}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000875
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000876ac_prev=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200877ac_dashdash=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000878for ac_option
879do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000880 # If the previous option needs an argument, assign it.
881 if test -n "$ac_prev"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200882 eval $ac_prev=\$ac_option
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000883 ac_prev=
884 continue
885 fi
886
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200887 case $ac_option in
888 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
889 *) ac_optarg=yes ;;
890 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000891
892 # Accept the important Cygnus configure options, so we can diagnose typos.
893
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200894 case $ac_dashdash$ac_option in
895 --)
896 ac_dashdash=yes ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000897
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000898 -bindir | --bindir | --bindi | --bind | --bin | --bi)
899 ac_prev=bindir ;;
900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000901 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000902
903 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000904 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000905 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000906 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000907
908 -cache-file | --cache-file | --cache-fil | --cache-fi \
909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
910 ac_prev=cache_file ;;
911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000913 cache_file=$ac_optarg ;;
914
915 --config-cache | -C)
916 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000917
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200918 -datadir | --datadir | --datadi | --datad)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000919 ac_prev=datadir ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200920 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000921 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000922
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
924 | --dataroo | --dataro | --datar)
925 ac_prev=datarootdir ;;
926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
928 datarootdir=$ac_optarg ;;
929
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000930 -disable-* | --disable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000932 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200934 as_fn_error "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
938 *"
939"enable_$ac_useropt"
940"*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=no ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200945
946 -docdir | --docdir | --docdi | --doc | --do)
947 ac_prev=docdir ;;
948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
949 docdir=$ac_optarg ;;
950
951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
952 ac_prev=dvidir ;;
953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
954 dvidir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000955
956 -enable-* | --enable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000958 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200960 as_fn_error "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100961 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in
964 *"
965"enable_$ac_useropt"
966"*) ;;
967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
968 ac_unrecognized_sep=', ';;
969 esac
970 eval enable_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000971
972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
974 | --exec | --exe | --ex)
975 ac_prev=exec_prefix ;;
976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
978 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000979 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000980
981 -gas | --gas | --ga | --g)
982 # Obsolete; use --with-gas.
983 with_gas=yes ;;
984
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000985 -help | --help | --hel | --he | -h)
986 ac_init_help=long ;;
987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
988 ac_init_help=recursive ;;
989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
990 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000991
992 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000993 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000994 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000995 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000996
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
998 ac_prev=htmldir ;;
999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1000 | --ht=*)
1001 htmldir=$ac_optarg ;;
1002
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001003 -includedir | --includedir | --includedi | --included | --include \
1004 | --includ | --inclu | --incl | --inc)
1005 ac_prev=includedir ;;
1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1007 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001008 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001009
1010 -infodir | --infodir | --infodi | --infod | --info | --inf)
1011 ac_prev=infodir ;;
1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001013 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001014
1015 -libdir | --libdir | --libdi | --libd)
1016 ac_prev=libdir ;;
1017 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001018 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001019
1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1021 | --libexe | --libex | --libe)
1022 ac_prev=libexecdir ;;
1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1024 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001025 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001026
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001027 -localedir | --localedir | --localedi | --localed | --locale)
1028 ac_prev=localedir ;;
1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1030 localedir=$ac_optarg ;;
1031
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001032 -localstatedir | --localstatedir | --localstatedi | --localstated \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001033 | --localstate | --localstat | --localsta | --localst | --locals)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001034 ac_prev=localstatedir ;;
1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001037 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001038
1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1040 ac_prev=mandir ;;
1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001042 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001043
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001044 -nfp | --nfp | --nf)
1045 # Obsolete; use --without-fp.
1046 with_fp=no ;;
1047
1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001049 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001050 no_create=yes ;;
1051
1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1054 no_recursion=yes ;;
1055
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1058 | --oldin | --oldi | --old | --ol | --o)
1059 ac_prev=oldincludedir ;;
1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001063 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001064
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1066 ac_prev=prefix ;;
1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001068 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001069
1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1071 | --program-pre | --program-pr | --program-p)
1072 ac_prev=program_prefix ;;
1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001075 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001076
1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1078 | --program-suf | --program-su | --program-s)
1079 ac_prev=program_suffix ;;
1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001082 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001083
1084 -program-transform-name | --program-transform-name \
1085 | --program-transform-nam | --program-transform-na \
1086 | --program-transform-n | --program-transform- \
1087 | --program-transform | --program-transfor \
1088 | --program-transfo | --program-transf \
1089 | --program-trans | --program-tran \
1090 | --progr-tra | --program-tr | --program-t)
1091 ac_prev=program_transform_name ;;
1092 -program-transform-name=* | --program-transform-name=* \
1093 | --program-transform-nam=* | --program-transform-na=* \
1094 | --program-transform-n=* | --program-transform-=* \
1095 | --program-transform=* | --program-transfor=* \
1096 | --program-transfo=* | --program-transf=* \
1097 | --program-trans=* | --program-tran=* \
1098 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001099 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001100
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1102 ac_prev=pdfdir ;;
1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1104 pdfdir=$ac_optarg ;;
1105
1106 -psdir | --psdir | --psdi | --psd | --ps)
1107 ac_prev=psdir ;;
1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1109 psdir=$ac_optarg ;;
1110
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1112 | -silent | --silent | --silen | --sile | --sil)
1113 silent=yes ;;
1114
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1116 ac_prev=sbindir ;;
1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1118 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001119 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001120
1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1123 | --sharedst | --shareds | --shared | --share | --shar \
1124 | --sha | --sh)
1125 ac_prev=sharedstatedir ;;
1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1129 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001130 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001131
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001132 -site | --site | --sit)
1133 ac_prev=site ;;
1134 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001135 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001136
1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1138 ac_prev=srcdir ;;
1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001140 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001141
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1143 | --syscon | --sysco | --sysc | --sys | --sy)
1144 ac_prev=sysconfdir ;;
1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001147 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001148
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001149 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001150 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001152 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001153
1154 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1155 verbose=yes ;;
1156
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001157 -version | --version | --versio | --versi | --vers | -V)
1158 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001159
1160 -with-* | --with-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001162 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001164 as_fn_error "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001165 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in
1168 *"
1169"with_$ac_useropt"
1170"*) ;;
1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1172 ac_unrecognized_sep=', ';;
1173 esac
1174 eval with_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001175
1176 -without-* | --without-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001178 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001180 as_fn_error "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1184 *"
1185"with_$ac_useropt"
1186"*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=no ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001191
1192 --x)
1193 # Obsolete; use --with-x.
1194 with_x=yes ;;
1195
1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1197 | --x-incl | --x-inc | --x-in | --x-i)
1198 ac_prev=x_includes ;;
1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001201 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001202
1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1205 ac_prev=x_libraries ;;
1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001208 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001209
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001210 -*) as_fn_error "unrecognized option: \`$ac_option'
1211Try \`$0 --help' for more information."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001212 ;;
1213
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001214 *=*)
1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216 # Reject names that are not valid shell variable names.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001217 case $ac_envvar in #(
1218 '' | [0-9]* | *[!_$as_cr_alnum]* )
1219 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1220 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001221 eval $ac_envvar=\$ac_optarg
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001222 export $ac_envvar ;;
1223
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001224 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001225 # FIXME: should be removed in autoconf 3.0.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01001228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001229 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001230 ;;
1231
1232 esac
1233done
1234
1235if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001236 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001237 as_fn_error "missing argument to $ac_option"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001238fi
1239
Alexandre Julliardabf50482008-10-31 12:56:53 +01001240if test -n "$ac_unrecognized_opts"; then
1241 case $enable_option_checking in
1242 no) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001243 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +01001244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245 esac
1246fi
1247
1248# Check all directory arguments for consistency.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001249for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1250 datadir sysconfdir sharedstatedir localstatedir includedir \
1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1252 libdir localedir mandir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001253do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001254 eval ac_val=\$$ac_var
Alexandre Julliardabf50482008-10-31 12:56:53 +01001255 # Remove trailing slashes.
1256 case $ac_val in
1257 */ )
1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1259 eval $ac_var=\$ac_val;;
1260 esac
1261 # Be sure to have absolute directory names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001262 case $ac_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001263 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001265 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001266 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001267done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001268
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001269# There might be people who depend on the old broken behavior: `$host'
1270# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001271# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001272build=$build_alias
1273host=$host_alias
1274target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001275
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001276# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001277if test "x$host_alias" != x; then
1278 if test "x$build_alias" = x; then
1279 cross_compiling=maybe
Alexandre Julliardabf50482008-10-31 12:56:53 +01001280 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001281 If a cross compiler is detected then cross compile mode will be used." >&2
1282 elif test "x$build_alias" != "x$host_alias"; then
1283 cross_compiling=yes
1284 fi
1285fi
1286
1287ac_tool_prefix=
1288test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001291
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001292
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001293ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294ac_ls_di=`ls -di .` &&
1295ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001296 as_fn_error "working directory cannot be determined"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001297test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001298 as_fn_error "pwd does not report name of working directory"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001299
1300
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001301# Find the source files, if location was not specified.
1302if test -z "$srcdir"; then
1303 ac_srcdir_defaulted=yes
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001304 # Try the directory containing this script, then the parent directory.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001305 ac_confdir=`$as_dirname -- "$as_myself" ||
1306$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307 X"$as_myself" : 'X\(//\)[^/]' \| \
1308 X"$as_myself" : 'X\(//\)$' \| \
1309 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310$as_echo X"$as_myself" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312 s//\1/
1313 q
1314 }
1315 /^X\(\/\/\)[^/].*/{
1316 s//\1/
1317 q
1318 }
1319 /^X\(\/\/\)$/{
1320 s//\1/
1321 q
1322 }
1323 /^X\(\/\).*/{
1324 s//\1/
1325 q
1326 }
1327 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001328 srcdir=$ac_confdir
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001329 if test ! -r "$srcdir/$ac_unique_file"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001330 srcdir=..
1331 fi
1332else
1333 ac_srcdir_defaulted=no
1334fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001335if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001337 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001338fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001339ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340ac_abs_confdir=`(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001342 pwd)`
1343# When building in place, set srcdir=.
1344if test "$ac_abs_confdir" = "$ac_pwd"; then
1345 srcdir=.
1346fi
1347# Remove unnecessary trailing slashes from srcdir.
1348# Double slashes in file names in object file debugging info
1349# mess up M-x gdb in Emacs.
1350case $srcdir in
1351*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352esac
1353for ac_var in $ac_precious_vars; do
1354 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355 eval ac_env_${ac_var}_value=\$${ac_var}
1356 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001359
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001360#
1361# Report the --help message.
1362#
1363if test "$ac_init_help" = "long"; then
1364 # Omit some internal or obsolete options to make the list less imposing.
1365 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001366 cat <<_ACEOF
Alexandre Julliard821cd382010-05-21 21:30:30 +02001367\`configure' configures Wine 1.2-rc1 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001368
1369Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372VAR=VALUE. See below for descriptions of some of the useful variables.
1373
1374Defaults for the options are specified in brackets.
1375
1376Configuration:
1377 -h, --help display this help and exit
1378 --help=short display options specific to this package
1379 --help=recursive display the short help of all the included packages
1380 -V, --version display version information and exit
1381 -q, --quiet, --silent do not print \`checking...' messages
1382 --cache-file=FILE cache test results in FILE [disabled]
1383 -C, --config-cache alias for \`--cache-file=config.cache'
1384 -n, --no-create do not create output files
1385 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1386
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001387Installation directories:
1388 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001389 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001390 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001391 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001392
1393By default, \`make install' will install all the files in
1394\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1395an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396for instance \`--prefix=\$HOME'.
1397
1398For better control, use the options below.
1399
1400Fine tuning of the installation directories:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001401 --bindir=DIR user executables [EPREFIX/bin]
1402 --sbindir=DIR system admin executables [EPREFIX/sbin]
1403 --libexecdir=DIR program executables [EPREFIX/libexec]
1404 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1405 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1406 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1407 --libdir=DIR object code libraries [EPREFIX/lib]
1408 --includedir=DIR C header files [PREFIX/include]
1409 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1410 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1411 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1412 --infodir=DIR info documentation [DATAROOTDIR/info]
1413 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1414 --mandir=DIR man documentation [DATAROOTDIR/man]
1415 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1416 --htmldir=DIR html documentation [DOCDIR]
1417 --dvidir=DIR dvi documentation [DOCDIR]
1418 --pdfdir=DIR pdf documentation [DOCDIR]
1419 --psdir=DIR ps documentation [DOCDIR]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001420_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001421
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001422 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001423
1424X features:
1425 --x-includes=DIR X include files are in DIR
1426 --x-libraries=DIR X library files are in DIR
1427
1428System types:
1429 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001430 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001431_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001432fi
1433
1434if test -n "$ac_init_help"; then
1435 case $ac_init_help in
Alexandre Julliard821cd382010-05-21 21:30:30 +02001436 short | recursive ) echo "Configuration of Wine 1.2-rc1:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001437 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001438 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001439
1440Optional Features:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001441 --disable-option-checking ignore unrecognized --enable/--with options
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001442 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1443 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +00001444 --disable-win16 do not include Win16 support
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001445 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1446 binaries)
Alexandre Julliard35078f42008-11-21 10:16:12 +01001447 --disable-tests do not build the regression tests
Alexandre Julliard9d037222008-03-20 13:00:12 +01001448 --enable-maintainer-mode
1449 enable maintainer-specific build rules
Eric Pouechbc56c4e2009-08-25 19:33:28 +02001450 --disable-largefile omit support for large files
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001451
1452Optional Packages:
1453 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1454 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001455 --without-alsa do not use the Alsa sound support
1456 --without-audioio do not use the AudioIO sound support
1457 --without-capi do not use CAPI (ISDN support)
1458 --without-cms do not use CMS (color management support)
1459 --without-coreaudio do not use the CoreAudio sound support
1460 --without-cups do not use CUPS
1461 --without-curses do not use (n)curses
1462 --without-esd do not use the EsounD sound support
1463 --without-fontconfig do not use fontconfig
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02001464 --without-freetype do not use the FreeType library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001465 --without-gphoto do not use gphoto (Digital Camera support)
Alexandre Julliardad798732008-05-01 13:29:02 +02001466 --without-glu do not use the GLU library
Henri Verbeet874c9ef2008-09-22 22:13:19 +02001467 --without-gnutls do not use GnuTLS (schannel support)
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02001468 --without-gsm do not use libgsm (GSM 06.10 codec support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001469 --without-hal do not use HAL (dynamic device support)
1470 --without-jack do not use the Jack sound support
1471 --without-jpeg do not use JPEG
1472 --without-ldap do not use LDAP
Aric Stewartdb71d7c2009-08-19 09:37:48 -05001473 --without-mpg123 do not use the mpg123 library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001474 --without-nas do not use the NAS sound support
Chris Robinson862965f2009-08-25 03:26:35 -07001475 --without-openal do not use OpenAL
Eric Pouech53fa0d52004-02-05 01:27:38 +00001476 --without-opengl do not use OpenGL
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001477 --without-openssl do not use OpenSSL
1478 --without-oss do not use the OSS sound support
1479 --without-png do not use PNG
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01001480 --without-pthread do not use the pthread library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001481 --without-sane do not use SANE (scanner support)
Vincent Povirk73cd5692010-03-08 17:07:29 -06001482 --without-tiff do not use TIFF
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01001483 --without-v4l do not use v4l1 (v4l support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001484 --without-xcomposite do not use the Xcomposite extension
1485 --without-xcursor do not use the Xcursor extension
1486 --without-xinerama do not use Xinerama (multi-monitor support)
1487 --without-xinput do not use the Xinput extension
1488 --without-xml do not use XML
1489 --without-xrandr do not use Xrandr (resolution changes)
1490 --without-xrender do not use the Xrender extension
1491 --without-xshape do not use the Xshape extension
1492 --without-xshm do not use XShm (shared memory extension)
1493 --without-xslt do not use XSLT
Francois Gougeta49beb42008-06-26 14:02:17 +02001494 --without-xxf86vm do not use XFree video mode extension
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001495 --with-wine-tools=DIR use Wine tools from directory DIR
Alexandre Julliard39a75d32009-08-13 19:45:31 +02001496 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001497 --with-x use the X Window System
1498
1499Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +00001500 CC C compiler command
1501 CFLAGS C compiler flags
1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1503 nonstandard directory <lib dir>
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01001504 LIBS libraries to pass to the linker, e.g. -l<library>
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001506 you have headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00001507 CXX C++ compiler command
1508 CXXFLAGS C++ compiler flags
Eric Pouech53fa0d52004-02-05 01:27:38 +00001509 CPP C preprocessor
Alexandre Julliard40664c02009-02-11 20:40:58 +01001510 XMKMF Path to xmkmf, Makefile generator for X Window System
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001511
1512Use these variables to override the choices made by `configure' or to help
1513it to find libraries and programs with nonstandard names/locations.
1514
Alexandre Julliard875927f2004-01-02 01:55:29 +00001515Report bugs to <wine-devel@winehq.org>.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001516Wine home page: <http://www.winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001517_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001518ac_status=$?
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001519fi
1520
1521if test "$ac_init_help" = "recursive"; then
1522 # If there are subdirs, report their specific --help.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001523 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Alexandre Julliardabf50482008-10-31 12:56:53 +01001524 test -d "$ac_dir" ||
1525 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1526 continue
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001527 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001528
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001529case "$ac_dir" in
1530.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1531*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001532 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001533 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001534 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001535 case $ac_top_builddir_sub in
1536 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1537 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1538 esac ;;
1539esac
1540ac_abs_top_builddir=$ac_pwd
1541ac_abs_builddir=$ac_pwd$ac_dir_suffix
1542# for backward compatibility:
1543ac_top_builddir=$ac_top_build_prefix
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001544
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001545case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001546 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001547 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001548 ac_top_srcdir=$ac_top_builddir_sub
1549 ac_abs_top_srcdir=$ac_pwd ;;
1550 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001551 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001552 ac_top_srcdir=$srcdir
1553 ac_abs_top_srcdir=$srcdir ;;
1554 *) # Relative name.
1555 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1556 ac_top_srcdir=$ac_top_build_prefix$srcdir
1557 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001558esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001559ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +00001560
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001561 cd "$ac_dir" || { ac_status=$?; continue; }
1562 # Check for guested configure.
Jeremy White0ebeb532006-06-20 13:18:41 +02001563 if test -f "$ac_srcdir/configure.gnu"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001564 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001565 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1566 elif test -f "$ac_srcdir/configure"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001567 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001568 $SHELL "$ac_srcdir/configure" --help=recursive
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001569 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01001570 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001571 fi || ac_status=$?
1572 cd "$ac_pwd" || { ac_status=$?; break; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001573 done
1574fi
1575
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001576test -n "$ac_init_help" && exit $ac_status
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001577if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001578 cat <<\_ACEOF
Alexandre Julliard821cd382010-05-21 21:30:30 +02001579Wine configure 1.2-rc1
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001580generated by GNU Autoconf 2.65
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001581
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001582Copyright (C) 2009 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001583This configure script is free software; the Free Software Foundation
1584gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001585_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001586 exit
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001587fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001588
1589## ------------------------ ##
1590## Autoconf initialization. ##
1591## ------------------------ ##
1592
1593# ac_fn_c_try_compile LINENO
1594# --------------------------
1595# Try to compile conftest.$ac_ext, and return whether this succeeded.
1596ac_fn_c_try_compile ()
1597{
1598 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1599 rm -f conftest.$ac_objext
1600 if { { ac_try="$ac_compile"
1601case "(($ac_try" in
1602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1603 *) ac_try_echo=$ac_try;;
1604esac
1605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1606$as_echo "$ac_try_echo"; } >&5
1607 (eval "$ac_compile") 2>conftest.err
1608 ac_status=$?
1609 if test -s conftest.err; then
1610 grep -v '^ *+' conftest.err >conftest.er1
1611 cat conftest.er1 >&5
1612 mv -f conftest.er1 conftest.err
1613 fi
1614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1615 test $ac_status = 0; } && {
1616 test -z "$ac_c_werror_flag" ||
1617 test ! -s conftest.err
1618 } && test -s conftest.$ac_objext; then :
1619 ac_retval=0
1620else
1621 $as_echo "$as_me: failed program was:" >&5
1622sed 's/^/| /' conftest.$ac_ext >&5
1623
1624 ac_retval=1
1625fi
1626 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001627 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001628
1629} # ac_fn_c_try_compile
1630
1631# ac_fn_cxx_try_compile LINENO
1632# ----------------------------
1633# Try to compile conftest.$ac_ext, and return whether this succeeded.
1634ac_fn_cxx_try_compile ()
1635{
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642esac
1643eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644$as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1651 fi
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_cxx_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658else
1659 $as_echo "$as_me: failed program was:" >&5
1660sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663fi
1664 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001665 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001666
1667} # ac_fn_cxx_try_compile
1668
1669# ac_fn_c_try_link LINENO
1670# -----------------------
1671# Try to link conftest.$ac_ext, and return whether this succeeded.
1672ac_fn_c_try_link ()
1673{
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext conftest$ac_exeext
1676 if { { ac_try="$ac_link"
1677case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680esac
1681eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682$as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1689 fi
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest$ac_exeext && {
1695 test "$cross_compiling" = yes ||
1696 $as_test_x conftest$ac_exeext
1697 }; then :
1698 ac_retval=0
1699else
1700 $as_echo "$as_me: failed program was:" >&5
1701sed 's/^/| /' conftest.$ac_ext >&5
1702
1703 ac_retval=1
1704fi
1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707 # interfere with the next link command; also delete a directory that is
1708 # left behind by Apple's compiler. We do this before executing the actions.
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001711 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001712
1713} # ac_fn_c_try_link
1714
1715# ac_fn_c_try_cpp LINENO
1716# ----------------------
1717# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1718ac_fn_c_try_cpp ()
1719{
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1721 if { { ac_try="$ac_cpp conftest.$ac_ext"
1722case "(($ac_try" in
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1724 *) ac_try_echo=$ac_try;;
1725esac
1726eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1727$as_echo "$ac_try_echo"; } >&5
1728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1729 ac_status=$?
1730 if test -s conftest.err; then
1731 grep -v '^ *+' conftest.err >conftest.er1
1732 cat conftest.er1 >&5
1733 mv -f conftest.er1 conftest.err
1734 fi
1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1736 test $ac_status = 0; } >/dev/null && {
1737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1738 test ! -s conftest.err
1739 }; then :
1740 ac_retval=0
1741else
1742 $as_echo "$as_me: failed program was:" >&5
1743sed 's/^/| /' conftest.$ac_ext >&5
1744
1745 ac_retval=1
1746fi
1747 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001748 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001749
1750} # ac_fn_c_try_cpp
1751
1752# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1753# -------------------------------------------------------
1754# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1755# the include files in INCLUDES and setting the cache variable VAR
1756# accordingly.
1757ac_fn_c_check_header_mongrel ()
1758{
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762$as_echo_n "checking for $2... " >&6; }
1763if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1764 $as_echo_n "(cached) " >&6
1765fi
1766eval ac_res=\$$3
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1768$as_echo "$ac_res" >&6; }
1769else
1770 # Is the header compilable?
1771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1772$as_echo_n "checking $2 usability... " >&6; }
1773cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1774/* end confdefs.h. */
1775$4
1776#include <$2>
1777_ACEOF
1778if ac_fn_c_try_compile "$LINENO"; then :
1779 ac_header_compiler=yes
1780else
1781 ac_header_compiler=no
1782fi
1783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1785$as_echo "$ac_header_compiler" >&6; }
1786
1787# Is the header present?
1788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1789$as_echo_n "checking $2 presence... " >&6; }
1790cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1791/* end confdefs.h. */
1792#include <$2>
1793_ACEOF
1794if ac_fn_c_try_cpp "$LINENO"; then :
1795 ac_header_preproc=yes
1796else
1797 ac_header_preproc=no
1798fi
1799rm -f conftest.err conftest.$ac_ext
1800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1801$as_echo "$ac_header_preproc" >&6; }
1802
1803# So? What about this header?
1804case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1805 yes:no: )
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1807$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 ;;
1811 no:yes:* )
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1813$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1815$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1817$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1819$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1821$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1822( cat <<\_ASBOX
1823## ------------------------------------ ##
1824## Report this to wine-devel@winehq.org ##
1825## ------------------------------------ ##
1826_ASBOX
1827 ) | sed "s/^/$as_me: WARNING: /" >&2
1828 ;;
1829esac
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1831$as_echo_n "checking for $2... " >&6; }
1832if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1833 $as_echo_n "(cached) " >&6
1834else
1835 eval "$3=\$ac_header_compiler"
1836fi
1837eval ac_res=\$$3
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1839$as_echo "$ac_res" >&6; }
1840fi
1841 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1842
1843} # ac_fn_c_check_header_mongrel
1844
1845# ac_fn_c_try_run LINENO
1846# ----------------------
1847# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1848# that executables *can* be run.
1849ac_fn_c_try_run ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 if { { ac_try="$ac_link"
1853case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856esac
1857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858$as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>&5
1860 ac_status=$?
1861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1862 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1863 { { case "(($ac_try" in
1864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1865 *) ac_try_echo=$ac_try;;
1866esac
1867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1868$as_echo "$ac_try_echo"; } >&5
1869 (eval "$ac_try") 2>&5
1870 ac_status=$?
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; }; }; then :
1873 ac_retval=0
1874else
1875 $as_echo "$as_me: program exited with status $ac_status" >&5
1876 $as_echo "$as_me: failed program was:" >&5
1877sed 's/^/| /' conftest.$ac_ext >&5
1878
1879 ac_retval=$ac_status
1880fi
1881 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1882 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001883 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001884
1885} # ac_fn_c_try_run
1886
1887# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1888# -------------------------------------------------------
1889# Tests whether HEADER exists and can be compiled using the include files in
1890# INCLUDES, setting the cache variable VAR accordingly.
1891ac_fn_c_check_header_compile ()
1892{
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1895$as_echo_n "checking for $2... " >&6; }
1896if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1897 $as_echo_n "(cached) " >&6
1898else
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900/* end confdefs.h. */
1901$4
1902#include <$2>
1903_ACEOF
1904if ac_fn_c_try_compile "$LINENO"; then :
1905 eval "$3=yes"
1906else
1907 eval "$3=no"
1908fi
1909rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1910fi
1911eval ac_res=\$$3
1912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1913$as_echo "$ac_res" >&6; }
1914 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1915
1916} # ac_fn_c_check_header_compile
1917
1918# ac_fn_c_check_func LINENO FUNC VAR
1919# ----------------------------------
1920# Tests whether FUNC exists, setting the cache variable VAR accordingly
1921ac_fn_c_check_func ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925$as_echo_n "checking for $2... " >&6; }
1926if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1927 $as_echo_n "(cached) " >&6
1928else
1929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1930/* end confdefs.h. */
1931/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1933#define $2 innocuous_$2
1934
1935/* System header to define __stub macros and hopefully few prototypes,
1936 which can conflict with char $2 (); below.
1937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1938 <limits.h> exists even on freestanding compilers. */
1939
1940#ifdef __STDC__
1941# include <limits.h>
1942#else
1943# include <assert.h>
1944#endif
1945
1946#undef $2
1947
1948/* Override any GCC internal prototype to avoid an error.
1949 Use char because int might match the return type of a GCC
1950 builtin and then its argument prototype would still apply. */
1951#ifdef __cplusplus
1952extern "C"
1953#endif
1954char $2 ();
1955/* The GNU C library defines this for functions which it implements
1956 to always fail with ENOSYS. Some functions are actually named
1957 something starting with __ and the normal name is an alias. */
1958#if defined __stub_$2 || defined __stub___$2
1959choke me
1960#endif
1961
1962int
1963main ()
1964{
1965return $2 ();
1966 ;
1967 return 0;
1968}
1969_ACEOF
1970if ac_fn_c_try_link "$LINENO"; then :
1971 eval "$3=yes"
1972else
1973 eval "$3=no"
1974fi
1975rm -f core conftest.err conftest.$ac_objext \
1976 conftest$ac_exeext conftest.$ac_ext
1977fi
1978eval ac_res=\$$3
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980$as_echo "$ac_res" >&6; }
1981 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1982
1983} # ac_fn_c_check_func
1984
1985# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1986# ----------------------------------------------------
1987# Tries to find if the field MEMBER exists in type AGGR, after including
1988# INCLUDES, setting cache variable VAR accordingly.
1989ac_fn_c_check_member ()
1990{
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1993$as_echo_n "checking for $2.$3... " >&6; }
1994if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1995 $as_echo_n "(cached) " >&6
1996else
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998/* end confdefs.h. */
1999$5
2000int
2001main ()
2002{
2003static $2 ac_aggr;
2004if (ac_aggr.$3)
2005return 0;
2006 ;
2007 return 0;
2008}
2009_ACEOF
2010if ac_fn_c_try_compile "$LINENO"; then :
2011 eval "$4=yes"
2012else
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014/* end confdefs.h. */
2015$5
2016int
2017main ()
2018{
2019static $2 ac_aggr;
2020if (sizeof ac_aggr.$3)
2021return 0;
2022 ;
2023 return 0;
2024}
2025_ACEOF
2026if ac_fn_c_try_compile "$LINENO"; then :
2027 eval "$4=yes"
2028else
2029 eval "$4=no"
2030fi
2031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034fi
2035eval ac_res=\$$4
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2037$as_echo "$ac_res" >&6; }
2038 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2039
2040} # ac_fn_c_check_member
2041
2042# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2043# -------------------------------------------
2044# Tests whether TYPE exists after having included INCLUDES, setting cache
2045# variable VAR accordingly.
2046ac_fn_c_check_type ()
2047{
2048 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050$as_echo_n "checking for $2... " >&6; }
2051if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2052 $as_echo_n "(cached) " >&6
2053else
2054 eval "$3=no"
2055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2056/* end confdefs.h. */
2057$4
2058int
2059main ()
2060{
2061if (sizeof ($2))
2062 return 0;
2063 ;
2064 return 0;
2065}
2066_ACEOF
2067if ac_fn_c_try_compile "$LINENO"; then :
2068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2069/* end confdefs.h. */
2070$4
2071int
2072main ()
2073{
2074if (sizeof (($2)))
2075 return 0;
2076 ;
2077 return 0;
2078}
2079_ACEOF
2080if ac_fn_c_try_compile "$LINENO"; then :
2081
2082else
2083 eval "$3=yes"
2084fi
2085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088fi
2089eval ac_res=\$$3
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2091$as_echo "$ac_res" >&6; }
2092 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2093
2094} # ac_fn_c_check_type
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002095cat >config.log <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002096This file contains any messages produced by compilers while
2097running configure, to aid debugging if configure makes a mistake.
2098
Alexandre Julliard821cd382010-05-21 21:30:30 +02002099It was created by Wine $as_me 1.2-rc1, which was
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002100generated by GNU Autoconf 2.65. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002101
2102 $ $0 $@
2103
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002104_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002105exec 5>>config.log
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002106{
2107cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002108## --------- ##
2109## Platform. ##
2110## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002111
2112hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2113uname -m = `(uname -m) 2>/dev/null || echo unknown`
2114uname -r = `(uname -r) 2>/dev/null || echo unknown`
2115uname -s = `(uname -s) 2>/dev/null || echo unknown`
2116uname -v = `(uname -v) 2>/dev/null || echo unknown`
2117
2118/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2119/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2120
2121/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2122/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2123/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002124/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002125/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2126/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2127/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2128
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002129_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002130
2131as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2132for as_dir in $PATH
2133do
2134 IFS=$as_save_IFS
2135 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002136 $as_echo "PATH: $as_dir"
2137 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002138IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002139
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002140} >&5
2141
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002142cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002143
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002144
2145## ----------- ##
2146## Core tests. ##
2147## ----------- ##
2148
2149_ACEOF
2150
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002151
2152# Keep a trace of the command line.
2153# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002154# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002155# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002156# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002157ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002158ac_configure_args0=
2159ac_configure_args1=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002160ac_must_keep_next=false
2161for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002162do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002163 for ac_arg
2164 do
2165 case $ac_arg in
2166 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2167 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2168 | -silent | --silent | --silen | --sile | --sil)
2169 continue ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002170 *\'*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01002171 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002172 esac
2173 case $ac_pass in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002174 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002175 2)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002176 as_fn_append ac_configure_args1 " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002177 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00002178 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002179 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00002180 case $ac_arg in
2181 *=* | --config-cache | -C | -disable-* | --disable-* \
2182 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2183 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2184 | -with-* | --with-* | -without-* | --without-* | --x)
2185 case "$ac_configure_args0 " in
2186 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2187 esac
2188 ;;
2189 -* ) ac_must_keep_next=true ;;
2190 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002191 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002192 as_fn_append ac_configure_args " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002193 ;;
2194 esac
2195 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002196done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002197{ ac_configure_args0=; unset ac_configure_args0;}
2198{ ac_configure_args1=; unset ac_configure_args1;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002199
2200# When interrupted or exit'd, cleanup temporary files, and complete
2201# config.log. We remove comments because anyway the quotes in there
2202# would cause problems or look ugly.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002203# WARNING: Use '\'' to represent an apostrophe within the trap.
2204# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002205trap 'exit_status=$?
2206 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002207 {
2208 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002209
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002210 cat <<\_ASBOX
2211## ---------------- ##
2212## Cache variables. ##
2213## ---------------- ##
2214_ASBOX
2215 echo
2216 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002217(
2218 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2219 eval ac_val=\$$ac_var
2220 case $ac_val in #(
2221 *${as_nl}*)
2222 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002223 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002224$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002225 esac
2226 case $ac_var in #(
2227 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +01002228 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002229 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002230 esac ;;
2231 esac
2232 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002233 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002234 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2235 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002236 sed -n \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002237 "s/'\''/'\''\\\\'\'''\''/g;
2238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2239 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002240 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002242 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002243 esac |
2244 sort
2245)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002246 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002247
2248 cat <<\_ASBOX
2249## ----------------- ##
2250## Output variables. ##
2251## ----------------- ##
2252_ASBOX
2253 echo
2254 for ac_var in $ac_subst_vars
2255 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002256 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002257 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002258 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002259 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002260 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002261 done | sort
2262 echo
2263
2264 if test -n "$ac_subst_files"; then
2265 cat <<\_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002266## ------------------- ##
2267## File substitutions. ##
2268## ------------------- ##
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002269_ASBOX
2270 echo
2271 for ac_var in $ac_subst_files
2272 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002273 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002274 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002275 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002276 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002277 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002278 done | sort
2279 echo
2280 fi
2281
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002282 if test -s confdefs.h; then
2283 cat <<\_ASBOX
2284## ----------- ##
2285## confdefs.h. ##
2286## ----------- ##
2287_ASBOX
2288 echo
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002289 cat confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002290 echo
2291 fi
2292 test "$ac_signal" != 0 &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01002293 $as_echo "$as_me: caught signal $ac_signal"
2294 $as_echo "$as_me: exit $exit_status"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002295 } >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002296 rm -f core *.core core.conftest.* &&
2297 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002298 exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002299' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002300for ac_signal in 1 2 13 15; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002301 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002302done
2303ac_signal=0
2304
2305# confdefs.h avoids OS command line length limits that DEFS can exceed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002306rm -f -r conftest* confdefs.h
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002307
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002308$as_echo "/* confdefs.h */" > confdefs.h
2309
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002310# Predefined preprocessor variables.
2311
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE_NAME "$PACKAGE_NAME"
2314_ACEOF
2315
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002316cat >>confdefs.h <<_ACEOF
2317#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2318_ACEOF
2319
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002320cat >>confdefs.h <<_ACEOF
2321#define PACKAGE_VERSION "$PACKAGE_VERSION"
2322_ACEOF
2323
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002324cat >>confdefs.h <<_ACEOF
2325#define PACKAGE_STRING "$PACKAGE_STRING"
2326_ACEOF
2327
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002328cat >>confdefs.h <<_ACEOF
2329#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2330_ACEOF
2331
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002332cat >>confdefs.h <<_ACEOF
2333#define PACKAGE_URL "$PACKAGE_URL"
2334_ACEOF
2335
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002336
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002337# Let the site file select an alternate cache file if it wants to.
Alexandre Julliardabf50482008-10-31 12:56:53 +01002338# Prefer an explicitly selected file to automatically selected ones.
2339ac_site_file1=NONE
2340ac_site_file2=NONE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002341if test -n "$CONFIG_SITE"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002342 ac_site_file1=$CONFIG_SITE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002343elif test "x$prefix" != xNONE; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002344 ac_site_file1=$prefix/share/config.site
2345 ac_site_file2=$prefix/etc/config.site
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002346else
Alexandre Julliardabf50482008-10-31 12:56:53 +01002347 ac_site_file1=$ac_default_prefix/share/config.site
2348 ac_site_file2=$ac_default_prefix/etc/config.site
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002349fi
Alexandre Julliardabf50482008-10-31 12:56:53 +01002350for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002351do
Alexandre Julliardabf50482008-10-31 12:56:53 +01002352 test "x$ac_site_file" = xNONE && continue
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002353 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002355$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002356 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002357 . "$ac_site_file"
2358 fi
2359done
2360
2361if test -r "$cache_file"; then
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002362 # Some versions of bash will fail to source /dev/null (special files
2363 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2364 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002365 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002366$as_echo "$as_me: loading cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002367 case $cache_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02002368 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2369 *) . "./$cache_file";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002370 esac
2371 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002372else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002373 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002374$as_echo "$as_me: creating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002375 >$cache_file
2376fi
2377
2378# Check that the precious variables saved in the cache have kept the same
2379# value.
2380ac_cache_corrupted=false
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002381for ac_var in $ac_precious_vars; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002382 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2383 eval ac_new_set=\$ac_env_${ac_var}_set
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002384 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2385 eval ac_new_val=\$ac_env_${ac_var}_value
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002386 case $ac_old_set,$ac_new_set in
2387 set,)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002388 { $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 +01002389$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 +00002390 ac_cache_corrupted=: ;;
2391 ,set)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002392 { $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 +01002393$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002394 ac_cache_corrupted=: ;;
2395 ,);;
2396 *)
2397 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002398 # differences in whitespace do not lead to failure.
2399 ac_old_val_w=`echo x $ac_old_val`
2400 ac_new_val_w=`echo x $ac_new_val`
2401 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002402 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002403$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2404 ac_cache_corrupted=:
2405 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002406 { $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 +01002407$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2408 eval $ac_var=\$ac_old_val
2409 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002410 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002411$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002412 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002413$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002414 fi;;
2415 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002416 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002417 if test "$ac_new_set" = set; then
2418 case $ac_new_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002419 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002420 *) ac_arg=$ac_var=$ac_new_val ;;
2421 esac
2422 case " $ac_configure_args " in
2423 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002424 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002425 esac
2426 fi
2427done
2428if $ac_cache_corrupted; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002429 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002432$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002433 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002434fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002435## -------------------- ##
2436## Main body of script. ##
2437## -------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002438
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002439ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002440ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002441ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002444
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002445
2446
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002447ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00002448
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002449ac_aux_dir=
Jeremy White0ebeb532006-06-20 13:18:41 +02002450for ac_dir in tools "$srcdir"/tools; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002451 for ac_t in install-sh install.sh shtool; do
2452 if test -f "$ac_dir/$ac_t"; then
2453 ac_aux_dir=$ac_dir
2454 ac_install_sh="$ac_aux_dir/$ac_t -c"
2455 break 2
2456 fi
2457 done
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002458done
2459if test -z "$ac_aux_dir"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002460 as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002461fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002462
2463# These three variables are undocumented and unsupported,
2464# and are intended to be withdrawn in a future Autoconf release.
2465# They can cause serious problems if a builder's source tree is in a directory
2466# whose full name contains unusual characters.
2467ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2468ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2469ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2470
Howard Abrams13277481999-07-10 13:16:29 +00002471
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002472
2473
Alexandre Julliardd59227e2010-02-20 12:36:04 +01002474
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002475# Check whether --enable-win16 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002476if test "${enable_win16+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002477 enableval=$enable_win16;
2478fi
Alexandre Julliardc728efc2002-10-02 02:34:09 +00002479
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002480# Check whether --enable-win64 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002481if test "${enable_win64+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002482 enableval=$enable_win64;
2483fi
Alexandre Julliardb8074992002-11-21 21:51:24 +00002484
Alexandre Julliard35078f42008-11-21 10:16:12 +01002485# Check whether --enable-tests was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002486if test "${enable_tests+set}" = set; then :
Alexandre Julliard35078f42008-11-21 10:16:12 +01002487 enableval=$enable_tests;
2488fi
2489
Alexandre Julliard9d037222008-03-20 13:00:12 +01002490# Check whether --enable-maintainer-mode was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002491if test "${enable_maintainer_mode+set}" = set; then :
Alexandre Julliard9d037222008-03-20 13:00:12 +01002492 enableval=$enable_maintainer_mode;
2493else
2494 MAINTAINER_MODE=\#
2495
2496fi
2497
Alexandre Julliardb8074992002-11-21 21:51:24 +00002498
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002499
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002500# Check whether --with-alsa was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002501if test "${with_alsa+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002502 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2503fi
2504
2505
2506# Check whether --with-audioio was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002507if test "${with_audioio+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002508 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2509fi
2510
2511
2512# Check whether --with-capi was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002513if test "${with_capi+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002514 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2515fi
2516
2517
2518# Check whether --with-cms was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002519if test "${with_cms+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002520 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2521fi
2522
2523
2524# Check whether --with-coreaudio was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002525if test "${with_coreaudio+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002526 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2527fi
2528
2529
2530# Check whether --with-cups was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002531if test "${with_cups+set}" = set; then :
Francois Gouget289ea332008-07-24 16:09:07 +02002532 withval=$with_cups;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002533fi
2534
2535
2536# Check whether --with-curses was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002537if test "${with_curses+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002538 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2539fi
2540
2541
2542# Check whether --with-esd was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002543if test "${with_esd+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002544 withval=$with_esd;
2545fi
2546
2547
2548# Check whether --with-fontconfig was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002549if test "${with_fontconfig+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002550 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2551fi
2552
2553
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002554# Check whether --with-freetype was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002555if test "${with_freetype+set}" = set; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002556 withval=$with_freetype;
2557fi
2558
2559
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002560# Check whether --with-gphoto was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002561if test "${with_gphoto+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002562 withval=$with_gphoto;
2563fi
2564
2565
Alexandre Julliardad798732008-05-01 13:29:02 +02002566# Check whether --with-glu was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002567if test "${with_glu+set}" = set; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02002568 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2569fi
2570
2571
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002572# Check whether --with-gnutls was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002573if test "${with_gnutls+set}" = set; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002574 withval=$with_gnutls;
2575fi
2576
2577
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02002578# Check whether --with-gsm was given.
2579if test "${with_gsm+set}" = set; then :
2580 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 +02002581fi
2582
2583
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002584# Check whether --with-hal was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002585if test "${with_hal+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002586 withval=$with_hal;
2587fi
2588
2589
2590# Check whether --with-jack was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002591if test "${with_jack+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002592 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2593fi
2594
2595
2596# Check whether --with-jpeg was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002597if test "${with_jpeg+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002598 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2599fi
2600
2601
2602# Check whether --with-ldap was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002603if test "${with_ldap+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002604 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2605fi
2606
2607
Aric Stewartdb71d7c2009-08-19 09:37:48 -05002608# Check whether --with-mpg123 was given.
2609if test "${with_mpg123+set}" = set; then :
2610 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2611fi
2612
2613
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002614# Check whether --with-nas was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002615if test "${with_nas+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002616 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2617fi
2618
2619
Chris Robinson862965f2009-08-25 03:26:35 -07002620# Check whether --with-openal was given.
2621if test "${with_openal+set}" = set; then :
Ken Thomases0b08f192009-09-09 22:23:35 -05002622 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 -07002623fi
2624
2625
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002626# Check whether --with-opengl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002627if test "${with_opengl+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002628 withval=$with_opengl;
2629fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002630
Alexandre Julliardf90efa91998-06-14 15:24:15 +00002631
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002632# Check whether --with-openssl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002633if test "${with_openssl+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002634 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2635fi
2636
2637
2638# Check whether --with-oss was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002639if test "${with_oss+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002640 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
2641fi
2642
2643
2644# Check whether --with-png was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002645if test "${with_png+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002646 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2647fi
2648
2649
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002650# Check whether --with-pthread was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002651if test "${with_pthread+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002652 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2653fi
2654
2655
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002656# Check whether --with-sane was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002657if test "${with_sane+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002658 withval=$with_sane;
2659fi
2660
2661
Vincent Povirk73cd5692010-03-08 17:07:29 -06002662# Check whether --with-tiff was given.
2663if test "${with_tiff+set}" = set; then :
2664 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2665fi
2666
2667
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01002668# Check whether --with-v4l was given.
2669if test "${with_v4l+set}" = set; then :
2670 withval=$with_v4l;
2671fi
2672
2673
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002674# Check whether --with-xcomposite was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002675if test "${with_xcomposite+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002676 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2677fi
2678
2679
2680# Check whether --with-xcursor was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002681if test "${with_xcursor+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002682 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2683fi
2684
2685
2686# Check whether --with-xinerama was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002687if test "${with_xinerama+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002688 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2689fi
2690
2691
2692# Check whether --with-xinput was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002693if test "${with_xinput+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002694 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2695fi
2696
2697
2698# Check whether --with-xml was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002699if test "${with_xml+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002700 withval=$with_xml;
2701fi
2702
2703
2704# Check whether --with-xrandr was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002705if test "${with_xrandr+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002706 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2707fi
2708
2709
2710# Check whether --with-xrender was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002711if test "${with_xrender+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002712 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2713fi
2714
2715
2716# Check whether --with-xshape was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002717if test "${with_xshape+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002718 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2719fi
2720
2721
2722# Check whether --with-xshm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002723if test "${with_xshm+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002724 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2725fi
2726
2727
2728# Check whether --with-xslt was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002729if test "${with_xslt+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002730 withval=$with_xslt;
2731fi
2732
2733
Francois Gougeta49beb42008-06-26 14:02:17 +02002734# Check whether --with-xxf86vm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002735if test "${with_xxf86vm+set}" = set; then :
André Hentschel7b285a42009-09-19 19:08:09 +02002736 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 +01002737fi
2738
2739
2740
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002741# Check whether --with-wine-tools was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002742if test "${with_wine_tools+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002743 withval=$with_wine_tools;
2744fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002745
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002746
Alexandre Julliard39a75d32009-08-13 19:45:31 +02002747# Check whether --with-wine64 was given.
2748if test "${with_wine64+set}" = set; then :
2749 withval=$with_wine64;
2750fi
2751
2752
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002753# Make sure we can run config.sub.
Jeremy White0ebeb532006-06-20 13:18:41 +02002754$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002755 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00002756
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002758$as_echo_n "checking build system type... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002759if test "${ac_cv_build+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002760 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002761else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002762 ac_build_alias=$build_alias
2763test "x$ac_build_alias" = x &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002764 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002765test "x$ac_build_alias" = x &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002766 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Jeremy White0ebeb532006-06-20 13:18:41 +02002767ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002768 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002769
2770fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002772$as_echo "$ac_cv_build" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002773case $ac_cv_build in
2774*-*-*) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002775*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002776esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002777build=$ac_cv_build
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002778ac_save_IFS=$IFS; IFS='-'
2779set x $ac_cv_build
2780shift
2781build_cpu=$1
2782build_vendor=$2
2783shift; shift
2784# Remember, the first character of IFS is used to create $*,
2785# except with old shells:
2786build_os=$*
2787IFS=$ac_save_IFS
2788case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002789
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002790
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002792$as_echo_n "checking host system type... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002793if test "${ac_cv_host+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002794 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002795else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002796 if test "x$host_alias" = x; then
2797 ac_cv_host=$ac_cv_build
2798else
Jeremy White0ebeb532006-06-20 13:18:41 +02002799 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002800 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002801fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002802
2803fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002805$as_echo "$ac_cv_host" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002806case $ac_cv_host in
2807*-*-*) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002808*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002809esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002810host=$ac_cv_host
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002811ac_save_IFS=$IFS; IFS='-'
2812set x $ac_cv_host
2813shift
2814host_cpu=$1
2815host_vendor=$2
2816shift; shift
2817# Remember, the first character of IFS is used to create $*,
2818# except with old shells:
2819host_os=$*
2820IFS=$ac_save_IFS
2821case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002822
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002823
Alexandre Julliard71440f32005-05-19 14:28:17 +00002824
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002825case "$srcdir" in
2826 .) ;;
2827 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002828 as_fn_error "you are building out of the source tree, but the source tree contains object files.
2829You need to run 'make distclean' in the source tree first." "$LINENO" 5
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002830 fi ;;
2831esac
2832
Alexandre Julliard71440f32005-05-19 14:28:17 +00002833
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002835$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2836set x ${MAKE-make}
2837ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002838if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002839 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002840else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002841 cat >conftest.make <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002842SHELL = /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002843all:
Jeremy White0ebeb532006-06-20 13:18:41 +02002844 @echo '@@@%%%=$(MAKE)=@@@%%%'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002845_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002846# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02002847case `${MAKE-make} -f conftest.make 2>/dev/null` in
2848 *@@@%%%=?*=@@@%%%*)
2849 eval ac_cv_prog_make_${ac_make}_set=yes;;
2850 *)
2851 eval ac_cv_prog_make_${ac_make}_set=no;;
2852esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002853rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002854fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002855if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002857$as_echo "yes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002858 SET_MAKE=
2859else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002861$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002862 SET_MAKE="MAKE=${MAKE-make}"
2863fi
2864
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002865ac_ext=c
2866ac_cpp='$CPP $CPPFLAGS'
2867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2869ac_compiler_gnu=$ac_cv_c_compiler_gnu
2870if test -n "$ac_tool_prefix"; then
2871 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2872set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002874$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002875if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002876 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002877else
2878 if test -n "$CC"; then
2879 ac_cv_prog_CC="$CC" # Let the user override the test.
2880else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002881as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2882for as_dir in $PATH
2883do
2884 IFS=$as_save_IFS
2885 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002886 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002887 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 +00002888 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002890 break 2
2891 fi
2892done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002893 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002894IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002895
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002896fi
2897fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002898CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002899if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002901$as_echo "$CC" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002902else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002904$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002905fi
2906
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002907
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002908fi
2909if test -z "$ac_cv_prog_CC"; then
2910 ac_ct_CC=$CC
2911 # Extract the first word of "gcc", so it can be a program name with args.
2912set dummy gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002914$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002915if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002916 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002917else
2918 if test -n "$ac_ct_CC"; then
2919 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2920else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002926 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002927 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 +00002928 ac_cv_prog_ac_ct_CC="gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002930 break 2
2931 fi
2932done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002933 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002934IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002935
2936fi
2937fi
2938ac_ct_CC=$ac_cv_prog_ac_ct_CC
2939if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002941$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002942else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002944$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002945fi
2946
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002947 if test "x$ac_ct_CC" = x; then
2948 CC=""
2949 else
2950 case $cross_compiling:$ac_tool_warned in
2951yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002952{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002953$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002954ac_tool_warned=yes ;;
2955esac
2956 CC=$ac_ct_CC
2957 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002958else
2959 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002960fi
2961
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002962if test -z "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002963 if test -n "$ac_tool_prefix"; then
2964 # 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 +00002965set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002967$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002968if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002969 $as_echo_n "(cached) " >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002970else
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC="$CC" # Let the user override the test.
2973else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2975for as_dir in $PATH
2976do
2977 IFS=$as_save_IFS
2978 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002979 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002980 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 +00002981 ac_cv_prog_CC="${ac_tool_prefix}cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002983 break 2
2984 fi
2985done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002986 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002987IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002988
2989fi
2990fi
2991CC=$ac_cv_prog_CC
2992if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002994$as_echo "$CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002995else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002997$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002998fi
2999
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003000
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003001 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003002fi
3003if test -z "$CC"; then
3004 # Extract the first word of "cc", so it can be a program name with args.
3005set dummy cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003007$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003008if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003009 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003010else
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3013else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003014 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003015as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016for as_dir in $PATH
3017do
3018 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003020 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003021 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 +00003022 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3023 ac_prog_rejected=yes
3024 continue
3025 fi
3026 ac_cv_prog_CC="cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003028 break 2
3029 fi
3030done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003031 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003032IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003033
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003034if test $ac_prog_rejected = yes; then
3035 # We found a bogon in the path, so make sure we never use it.
3036 set dummy $ac_cv_prog_CC
3037 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003038 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003039 # We chose a different compiler from the bogus one.
3040 # However, it has the same basename, so the bogon will be chosen
3041 # first if we set CC to just the basename; use the full file name.
3042 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003043 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003044 fi
3045fi
3046fi
3047fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003048CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003049if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003051$as_echo "$CC" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003052else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003054$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003055fi
3056
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003057
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003058fi
3059if test -z "$CC"; then
3060 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003061 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003062 do
3063 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3064set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003066$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003067if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003068 $as_echo_n "(cached) " >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00003069else
3070 if test -n "$CC"; then
3071 ac_cv_prog_CC="$CC" # Let the user override the test.
3072else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3074for as_dir in $PATH
3075do
3076 IFS=$as_save_IFS
3077 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003078 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003079 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 +00003080 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003082 break 2
3083 fi
3084done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003085 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003086IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003087
Eric Pouech18ad24a2000-01-16 22:16:33 +00003088fi
3089fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003090CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00003091if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003093$as_echo "$CC" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003094else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003096$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003097fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003098
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003099
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003100 test -n "$CC" && break
3101 done
3102fi
3103if test -z "$CC"; then
3104 ac_ct_CC=$CC
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003105 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003106do
3107 # Extract the first word of "$ac_prog", so it can be a program name with args.
3108set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003110$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003111if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003112 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003113else
3114 if test -n "$ac_ct_CC"; then
3115 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3116else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003117as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3118for as_dir in $PATH
3119do
3120 IFS=$as_save_IFS
3121 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003122 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003123 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 +00003124 ac_cv_prog_ac_ct_CC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003126 break 2
3127 fi
3128done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003129 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003130IFS=$as_save_IFS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003131
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003132fi
3133fi
3134ac_ct_CC=$ac_cv_prog_ac_ct_CC
3135if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003137$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003138else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003140$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003141fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003142
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003143
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003144 test -n "$ac_ct_CC" && break
3145done
Eric Pouech18ad24a2000-01-16 22:16:33 +00003146
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003147 if test "x$ac_ct_CC" = x; then
3148 CC=""
3149 else
3150 case $cross_compiling:$ac_tool_warned in
3151yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003154ac_tool_warned=yes ;;
3155esac
3156 CC=$ac_ct_CC
3157 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003158fi
3159
3160fi
3161
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003162
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003163test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003165as_fn_error "no acceptable C compiler found in \$PATH
3166See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003167
3168# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003169$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003170set X $ac_compile
3171ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003172for ac_option in --version -v -V -qversion; do
3173 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003174case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003178eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3179$as_echo "$ac_try_echo"; } >&5
3180 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003181 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003182 if test -s conftest.err; then
3183 sed '10a\
3184... rest of stderr output deleted ...
3185 10q' conftest.err >conftest.er1
3186 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003187 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003188 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3190 test $ac_status = 0; }
3191done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003192
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003194/* end confdefs.h. */
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003195
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003196int
3197main ()
3198{
3199
3200 ;
3201 return 0;
3202}
3203_ACEOF
3204ac_clean_files_save=$ac_clean_files
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003205ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003206# Try to create an executable without -o first, disregard a.out.
3207# It will help us diagnose broken compilers, and finding out an intuition
3208# of exeext.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3210$as_echo_n "checking whether the C compiler works... " >&6; }
Alexandre Julliardabf50482008-10-31 12:56:53 +01003211ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3212
3213# The possible output files:
3214ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3215
Jeremy White0ebeb532006-06-20 13:18:41 +02003216ac_rmfiles=
3217for ac_file in $ac_files
3218do
3219 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003220 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003221 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3222 esac
3223done
3224rm -f $ac_rmfiles
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003225
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003226if { { ac_try="$ac_link_default"
Jeremy White0ebeb532006-06-20 13:18:41 +02003227case "(($ac_try" in
3228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3229 *) ac_try_echo=$ac_try;;
3230esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003231eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3232$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003233 (eval "$ac_link_default") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003234 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003237 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3238# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3239# in a Makefile. We should not override ac_cv_exeext if it was cached,
3240# so that the user can short-circuit this test for compilers unknown to
3241# Autoconf.
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003242for ac_file in $ac_files ''
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003243do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003244 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003245 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003246 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jeremy White0ebeb532006-06-20 13:18:41 +02003247 ;;
3248 [ab].out )
3249 # We found the default executable, but exeext='' is most
3250 # certainly right.
3251 break;;
3252 *.* )
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003253 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jeremy White0ebeb532006-06-20 13:18:41 +02003254 then :; else
3255 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3256 fi
3257 # We set ac_cv_exeext here because the later test for it is not
3258 # safe: cross compilers may not add the suffix if given an `-o'
3259 # argument, so we may need to know it at that point already.
3260 # Even if this section looks crufty: it has the advantage of
3261 # actually working.
3262 break;;
3263 * )
3264 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003265 esac
3266done
Jeremy White0ebeb532006-06-20 13:18:41 +02003267test "$ac_cv_exeext" = no && ac_cv_exeext=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003268
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003269else
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003270 ac_file=''
3271fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003272if test -z "$ac_file"; then :
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3274$as_echo "no" >&6; }
3275$as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003276sed 's/^/| /' conftest.$ac_ext >&5
3277
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003278{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003280{ as_fn_set_status 77
3281as_fn_error "C compiler cannot create executables
3282See \`config.log' for more details." "$LINENO" 5; }; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003283else
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3285$as_echo "yes" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003286fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3288$as_echo_n "checking for C compiler default output file name... " >&6; }
3289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3290$as_echo "$ac_file" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003291ac_exeext=$ac_cv_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02003292
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003293rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jeremy White0ebeb532006-06-20 13:18:41 +02003294ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003296$as_echo_n "checking for suffix of executables... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003297if { { ac_try="$ac_link"
Jeremy White0ebeb532006-06-20 13:18:41 +02003298case "(($ac_try" in
3299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3300 *) ac_try_echo=$ac_try;;
3301esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003302eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3303$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003304 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003305 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3307 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003308 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3309# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3310# work properly (i.e., refer to `conftest.exe'), while it won't with
3311# `rm'.
3312for ac_file in conftest.exe conftest conftest.*; do
3313 test -f "$ac_file" || continue
3314 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003316 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3317 break;;
3318 * ) break;;
3319 esac
3320done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003321else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003322 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003323$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003324as_fn_error "cannot compute suffix of executables: cannot compile and link
3325See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003326fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003327rm -f conftest conftest$ac_cv_exeext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003329$as_echo "$ac_cv_exeext" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003330
3331rm -f conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003332EXEEXT=$ac_cv_exeext
3333ac_exeext=$EXEEXT
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003334cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335/* end confdefs.h. */
3336#include <stdio.h>
3337int
3338main ()
3339{
3340FILE *f = fopen ("conftest.out", "w");
3341 return ferror (f) || fclose (f) != 0;
3342
3343 ;
3344 return 0;
3345}
3346_ACEOF
3347ac_clean_files="$ac_clean_files conftest.out"
3348# Check that the compiler produces executables we can run. If not, either
3349# the compiler is broken, or we cross compile.
3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3351$as_echo_n "checking whether we are cross compiling... " >&6; }
3352if test "$cross_compiling" != yes; then
3353 { { ac_try="$ac_link"
3354case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357esac
3358eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3359$as_echo "$ac_try_echo"; } >&5
3360 (eval "$ac_link") 2>&5
3361 ac_status=$?
3362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3363 test $ac_status = 0; }
3364 if { ac_try='./conftest$ac_cv_exeext'
3365 { { case "(($ac_try" in
3366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3367 *) ac_try_echo=$ac_try;;
3368esac
3369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3370$as_echo "$ac_try_echo"; } >&5
3371 (eval "$ac_try") 2>&5
3372 ac_status=$?
3373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3374 test $ac_status = 0; }; }; then
3375 cross_compiling=no
3376 else
3377 if test "$cross_compiling" = maybe; then
3378 cross_compiling=yes
3379 else
3380 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3381$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3382as_fn_error "cannot run C compiled programs.
3383If you meant to cross compile, use \`--host'.
3384See \`config.log' for more details." "$LINENO" 5; }
3385 fi
3386 fi
3387fi
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3389$as_echo "$cross_compiling" >&6; }
3390
3391rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3392ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003394$as_echo_n "checking for suffix of object files... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003395if test "${ac_cv_objext+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003396 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003397else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jeremy White0ebeb532006-06-20 13:18:41 +02003399/* end confdefs.h. */
3400
3401int
3402main ()
3403{
3404
3405 ;
3406 return 0;
3407}
3408_ACEOF
3409rm -f conftest.o conftest.obj
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003410if { { ac_try="$ac_compile"
Jeremy White0ebeb532006-06-20 13:18:41 +02003411case "(($ac_try" in
3412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3413 *) ac_try_echo=$ac_try;;
3414esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003415eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3416$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003417 (eval "$ac_compile") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003418 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3420 test $ac_status = 0; }; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003421 for ac_file in conftest.o conftest.obj conftest.*; do
3422 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003423 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003425 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3426 break;;
3427 esac
3428done
3429else
Alexandre Julliardabf50482008-10-31 12:56:53 +01003430 $as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003431sed 's/^/| /' conftest.$ac_ext >&5
3432
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003433{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003434$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003435as_fn_error "cannot compute suffix of object files: cannot compile
3436See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003437fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003438rm -f conftest.$ac_cv_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003439fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003441$as_echo "$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003442OBJEXT=$ac_cv_objext
3443ac_objext=$OBJEXT
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003445$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003446if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003447 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003448else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003450/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003451
3452int
3453main ()
3454{
3455#ifndef __GNUC__
3456 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003457#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003458
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003459 ;
3460 return 0;
3461}
3462_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003463if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003464 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00003465else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003466 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00003467fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003469ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00003470
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003471fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003473$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3474if test $ac_compiler_gnu = yes; then
3475 GCC=yes
3476else
3477 GCC=
3478fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003479ac_test_CFLAGS=${CFLAGS+set}
3480ac_save_CFLAGS=$CFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003482$as_echo_n "checking whether $CC accepts -g... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003483if test "${ac_cv_prog_cc_g+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003484 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003485else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003486 ac_save_c_werror_flag=$ac_c_werror_flag
3487 ac_c_werror_flag=yes
3488 ac_cv_prog_cc_g=no
3489 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003491/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003492
3493int
3494main ()
3495{
3496
3497 ;
3498 return 0;
3499}
3500_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003501if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003502 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003503else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003504 CFLAGS=""
3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003506/* end confdefs.h. */
3507
3508int
3509main ()
3510{
3511
3512 ;
3513 return 0;
3514}
3515_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003516if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003517
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003518else
3519 ac_c_werror_flag=$ac_save_c_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003520 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003522/* end confdefs.h. */
3523
3524int
3525main ()
3526{
3527
3528 ;
3529 return 0;
3530}
3531_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003532if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003533 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003534fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003535rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003536fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003537rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003538fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003540 ac_c_werror_flag=$ac_save_c_werror_flag
3541fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003543$as_echo "$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003544if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003545 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003546elif test $ac_cv_prog_cc_g = yes; then
3547 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003548 CFLAGS="-g -O2"
3549 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003550 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003551 fi
3552else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003553 if test "$GCC" = yes; then
3554 CFLAGS="-O2"
3555 else
3556 CFLAGS=
3557 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003558fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003560$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003561if test "${ac_cv_prog_cc_c89+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003562 $as_echo_n "(cached) " >&6
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003563else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003564 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003565ac_save_CC=$CC
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003566cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003567/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003568#include <stdarg.h>
3569#include <stdio.h>
3570#include <sys/types.h>
3571#include <sys/stat.h>
3572/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3573struct buf { int x; };
3574FILE * (*rcsopen) (struct buf *, struct stat *, int);
3575static char *e (p, i)
3576 char **p;
3577 int i;
3578{
3579 return p[i];
3580}
3581static char *f (char * (*g) (char **, int), char **p, ...)
3582{
3583 char *s;
3584 va_list v;
3585 va_start (v,p);
3586 s = g (p, va_arg (v,int));
3587 va_end (v);
3588 return s;
3589}
Alexandre Julliard875927f2004-01-02 01:55:29 +00003590
3591/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3592 function prototypes and stuff, but not '\xHH' hex character constants.
3593 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003594 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00003595 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3596 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003597 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003598int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3599
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02003600/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3601 inside strings and character constants. */
3602#define FOO(x) 'x'
3603int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3604
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003605int test (int i, double x);
3606struct s1 {int (*f) (int a);};
3607struct s2 {int (*f) (double a);};
3608int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3609int argc;
3610char **argv;
3611int
3612main ()
3613{
3614return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3615 ;
3616 return 0;
3617}
3618_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003619for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3620 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003621do
3622 CC="$ac_save_CC $ac_arg"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003623 if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003624 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003625fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003626rm -f core conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003627 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003628done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003629rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003630CC=$ac_save_CC
3631
3632fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003633# AC_CACHE_VAL
3634case "x$ac_cv_prog_cc_c89" in
3635 x)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003637$as_echo "none needed" >&6; } ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003638 xno)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003640$as_echo "unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003641 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003642 CC="$CC $ac_cv_prog_cc_c89"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003644$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003645esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003646if test "x$ac_cv_prog_cc_c89" != xno; then :
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003647
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003648fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003649
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003650ac_ext=c
3651ac_cpp='$CPP $CPPFLAGS'
3652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003656ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003657ac_cpp='$CXXCPP $CPPFLAGS'
3658ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3659ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3660ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003661if test -z "$CXX"; then
3662 if test -n "$CCC"; then
3663 CXX=$CCC
3664 else
3665 if test -n "$ac_tool_prefix"; then
3666 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 +00003667 do
3668 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3669set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003671$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003672if test "${ac_cv_prog_CXX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003673 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003674else
3675 if test -n "$CXX"; then
3676 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3677else
3678as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679for as_dir in $PATH
3680do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003683 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003684 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 +00003685 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003687 break 2
3688 fi
3689done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003690 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003691IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003692
3693fi
3694fi
3695CXX=$ac_cv_prog_CXX
3696if test -n "$CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003698$as_echo "$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003699else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003701$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003702fi
3703
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003704
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003705 test -n "$CXX" && break
3706 done
3707fi
3708if test -z "$CXX"; then
3709 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003710 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 +00003711do
3712 # Extract the first word of "$ac_prog", so it can be a program name with args.
3713set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003715$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003716if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003717 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003718else
3719 if test -n "$ac_ct_CXX"; then
3720 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3721else
3722as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3723for as_dir in $PATH
3724do
3725 IFS=$as_save_IFS
3726 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003727 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003728 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 +00003729 ac_cv_prog_ac_ct_CXX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003731 break 2
3732 fi
3733done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003734 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003735IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003736
3737fi
3738fi
3739ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3740if test -n "$ac_ct_CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003742$as_echo "$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003743else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003745$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003746fi
3747
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003748
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003749 test -n "$ac_ct_CXX" && break
3750done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003751
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003752 if test "x$ac_ct_CXX" = x; then
3753 CXX="g++"
3754 else
3755 case $cross_compiling:$ac_tool_warned in
3756yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003757{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003758$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003759ac_tool_warned=yes ;;
3760esac
3761 CXX=$ac_ct_CXX
3762 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003763fi
3764
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003765 fi
3766fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003767# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003768$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003769set X $ac_compile
3770ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003771for ac_option in --version -v -V -qversion; do
3772 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003773case "(($ac_try" in
3774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3775 *) ac_try_echo=$ac_try;;
3776esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003777eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3778$as_echo "$ac_try_echo"; } >&5
3779 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003780 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003781 if test -s conftest.err; then
3782 sed '10a\
3783... rest of stderr output deleted ...
3784 10q' conftest.err >conftest.er1
3785 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003786 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003787 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3789 test $ac_status = 0; }
3790done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003791
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003793$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003794if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003795 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003796else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003798/* end confdefs.h. */
3799
3800int
3801main ()
3802{
3803#ifndef __GNUC__
3804 choke me
3805#endif
3806
3807 ;
3808 return 0;
3809}
3810_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003811if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003812 ac_compiler_gnu=yes
3813else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003814 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003815fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003817ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3818
3819fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003821$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3822if test $ac_compiler_gnu = yes; then
3823 GXX=yes
3824else
3825 GXX=
3826fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003827ac_test_CXXFLAGS=${CXXFLAGS+set}
3828ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003830$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003831if test "${ac_cv_prog_cxx_g+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003832 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003833else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003834 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3835 ac_cxx_werror_flag=yes
3836 ac_cv_prog_cxx_g=no
3837 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003839/* end confdefs.h. */
3840
3841int
3842main ()
3843{
3844
3845 ;
3846 return 0;
3847}
3848_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003849if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003850 ac_cv_prog_cxx_g=yes
3851else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003852 CXXFLAGS=""
3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003854/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003855
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003856int
3857main ()
3858{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003859
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003860 ;
3861 return 0;
3862}
3863_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003864if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003865
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003866else
3867 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003868 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003870/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003871
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003872int
3873main ()
3874{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003875
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003876 ;
3877 return 0;
3878}
3879_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003880if ac_fn_cxx_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003881 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003882fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003884fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003886fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003888 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3889fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003891$as_echo "$ac_cv_prog_cxx_g" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003892if test "$ac_test_CXXFLAGS" = set; then
3893 CXXFLAGS=$ac_save_CXXFLAGS
3894elif test $ac_cv_prog_cxx_g = yes; then
3895 if test "$GXX" = yes; then
3896 CXXFLAGS="-g -O2"
3897 else
3898 CXXFLAGS="-g"
3899 fi
3900else
3901 if test "$GXX" = yes; then
3902 CXXFLAGS="-O2"
3903 else
3904 CXXFLAGS=
3905 fi
3906fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003907ac_ext=c
3908ac_cpp='$CPP $CPPFLAGS'
3909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3911ac_compiler_gnu=$ac_cv_c_compiler_gnu
3912
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003913if test -n "$ac_tool_prefix"; then
3914 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3915set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003917$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003918if test "${ac_cv_prog_CPPBIN+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003919 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003920else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003921 if test -n "$CPPBIN"; then
3922 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003923else
3924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925for as_dir in $PATH
3926do
3927 IFS=$as_save_IFS
3928 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003929 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003930 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 +00003931 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003933 break 2
3934 fi
3935done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003936 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003937IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003938
3939fi
3940fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003941CPPBIN=$ac_cv_prog_CPPBIN
3942if test -n "$CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003944$as_echo "$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003945else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003947$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003948fi
3949
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003950
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003951fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003952if test -z "$ac_cv_prog_CPPBIN"; then
3953 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003954 # Extract the first word of "cpp", so it can be a program name with args.
3955set dummy cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003957$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003958if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003959 $as_echo_n "(cached) " >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003960else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003961 if test -n "$ac_ct_CPPBIN"; then
3962 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003963else
3964as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965for as_dir in $PATH
3966do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003969 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003970 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 +00003971 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003973 break 2
3974 fi
3975done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003976 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003977IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003978
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003979fi
3980fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003981ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3982if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003984$as_echo "$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003985else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003987$as_echo "no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003988fi
3989
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003990 if test "x$ac_ct_CPPBIN" = x; then
3991 CPPBIN="cpp"
3992 else
3993 case $cross_compiling:$ac_tool_warned in
3994yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003995{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003996$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003997ac_tool_warned=yes ;;
3998esac
3999 CPPBIN=$ac_ct_CPPBIN
4000 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004001else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004002 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004003fi
4004
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004005
Alexandre Julliard1aea4ef2009-08-27 13:35:46 +02004006cat >>confdefs.h <<_ACEOF
4007#define EXEEXT "$ac_exeext"
4008_ACEOF
4009
4010
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004011case $host in
Ken Thomases42664332009-05-01 22:59:52 -05004012 *-darwin*)
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004013 if test "x$enable_win64" = "xyes"
Ken Thomases42664332009-05-01 22:59:52 -05004014 then
4015 CC="$CC -m64"
4016 CXX="$CXX -m64"
4017 LD="${LD:-ld} -arch x86_64"
4018 AS="${AS:-as} -arch x86_64"
4019 host_cpu="x86_64"
4020 notice_platform="64-bit "
4021 TARGETFLAGS="-m64"
4022
4023 else
4024 CC="$CC -m32"
4025 CXX="$CXX -m32"
4026 LD="${LD:-ld} -arch i386"
4027 AS="${AS:-as} -arch i386"
4028 host_cpu="i386"
4029 notice_platform="32-bit "
4030 TARGETFLAGS="-m32"
4031
4032 enable_win16=${enable_win16:-yes}
4033 fi
4034 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004035 x86_64*)
Alexandre Julliard6b4ed0f2009-01-12 19:29:43 +01004036 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004037 then
4038 CC="$CC -m32"
4039 CXX="$CXX -m32"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004041$as_echo_n "checking whether $CC works... " >&6; }
4042
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004044/* end confdefs.h. */
4045
4046int
4047main ()
4048{
4049
4050 ;
4051 return 0;
4052}
4053_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004054if ac_fn_c_try_link "$LINENO"; then :
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004056$as_echo "yes" >&6; }
4057else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004059$as_echo "no" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004060 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 +01004061fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004062rm -f core conftest.err conftest.$ac_objext \
4063 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004064 LD="${LD:-ld} -m elf_i386"
4065 AS="${AS:-as} --32"
4066 host_cpu="i386"
4067 notice_platform="32-bit "
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004068 TARGETFLAGS="-m32"
4069
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004070 enable_win16=${enable_win16:-yes}
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004071 else
Alexandre Julliard8812d242009-06-14 11:19:54 +02004072 if test "x${GCC}" = "xyes"
4073 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004075$as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard8812d242009-06-14 11:19:54 +02004077/* end confdefs.h. */
4078#include <stdarg.h>
4079int
4080main ()
4081{
4082void func(__builtin_ms_va_list *args);
4083 ;
4084 return 0;
4085}
4086_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004087if ac_fn_c_try_compile "$LINENO"; then :
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004089$as_echo "yes" >&6; }
4090else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004092$as_echo "no" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004093 as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004094fi
Alexandre Julliard8812d242009-06-14 11:19:54 +02004095rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 fi
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004097 TARGETFLAGS="-m64"
4098
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004099 fi
4100 ;;
Alexandre Julliard391fce62009-04-02 12:59:52 +02004101 *-mingw32*|*-cygwin*)
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004102 enable_win16=${enable_win16:-no}
Alexandre Goujonac0a38c2010-03-01 21:39:40 +01004103 CFLAGS="$CFLAGS -D_WIN32"
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004104 ;;
4105 i[3456789]86*)
4106 enable_win16=${enable_win16:-yes}
4107 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004108esac
4109
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004110enable_win16=${enable_win16:-no}
Alexandre Julliard776820e2009-02-23 17:46:33 +01004111
Alexandre Julliard95081552010-02-09 19:08:17 +01004112enable_winetest=${enable_winetest:-$enable_tests}
4113
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004114if test -n "$with_wine64"
4115then
4116 if test "x$enable_win64" = "xyes"
4117 then
4118 as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4119--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4120 fi
Alexandre Julliard90647772009-08-13 19:48:42 +02004121 WOW64_DISABLE=\#
4122
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004123 enable_fonts=${enable_fonts:-no}
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004124 enable_server=${enable_server:-no}
4125 enable_tools=${enable_tools:-no}
Alexandre Julliardb3265322010-04-21 12:28:22 +02004126elif test "x$enable_win64" = "xyes"
4127then
4128 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004129fi
4130
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004132$as_echo_n "checking for the directory containing the Wine tools... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004133if test "${wine_cv_toolsdir+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004134 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004135else
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004136 wine_cv_toolsdir="$with_wine_tools"
4137 if test -z "$with_wine_tools"; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004138 if test "$cross_compiling" = "yes"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004139 as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004140 elif test -n "$with_wine64"; then
4141 wine_cv_toolsdir="$with_wine64"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004142 fi
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004143 fi
4144 if test -z "$wine_cv_toolsdir"; then
4145 wine_cv_toolsdir="\$(TOPOBJDIR)"
4146 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4147 case "$wine_cv_toolsdir" in
4148 /*) ;;
4149 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004150 esac
4151 else
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004152 as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004153 fi
4154fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004156$as_echo "$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004157TOOLSDIR=$wine_cv_toolsdir
4158
Alexandre Julliard4d135d92009-02-16 13:08:44 +01004159if test -n "$host_alias" -a "$host_alias" != "$build_alias"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004160then
Alexandre Julliard0fea4a52009-02-12 10:28:23 +01004161 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004162
4163fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004164
Alexandre Julliard40916272007-03-08 13:19:50 +01004165for ac_prog in flex
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004166do
4167 # Extract the first word of "$ac_prog", so it can be a program name with args.
4168set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004170$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004171if test "${ac_cv_prog_FLEX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004172 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004173else
Alexandre Julliard40916272007-03-08 13:19:50 +01004174 if test -n "$FLEX"; then
4175 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004176else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4178for as_dir in $PATH
4179do
4180 IFS=$as_save_IFS
4181 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004182 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004183 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 +01004184 ac_cv_prog_FLEX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004186 break 2
4187 fi
4188done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004189 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004190IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004191
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004192fi
4193fi
Alexandre Julliard40916272007-03-08 13:19:50 +01004194FLEX=$ac_cv_prog_FLEX
4195if test -n "$FLEX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004197$as_echo "$FLEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004198else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004200$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004201fi
4202
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004203
Alexandre Julliard40916272007-03-08 13:19:50 +01004204 test -n "$FLEX" && break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004205done
Alexandre Julliard40916272007-03-08 13:19:50 +01004206test -n "$FLEX" || FLEX="none"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004207
Alexandre Julliard40916272007-03-08 13:19:50 +01004208if test "$FLEX" = "none"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004209then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004210 as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004211fi
Michael Stefaniucce307332009-12-29 18:07:02 +01004212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4213$as_echo_n "checking whether flex is recent enough... " >&6; }
4214cat >conftest.l <<EOF
4215%top{
4216#include "prediluvian.h"
4217}
4218%%
4219EOF
4220if $FLEX -t conftest.l >/dev/null 2>&1
4221then
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4223$as_echo "yes" >&6; }
4224else
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4226$as_echo "no" >&6; }
4227 as_fn_error "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4228fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004229
Mike McCormackc068f672004-03-16 03:11:39 +00004230for ac_prog in bison
4231do
4232 # Extract the first word of "$ac_prog", so it can be a program name with args.
4233set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004235$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004236if test "${ac_cv_prog_BISON+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004237 $as_echo_n "(cached) " >&6
Mike McCormackc068f672004-03-16 03:11:39 +00004238else
4239 if test -n "$BISON"; then
4240 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4241else
4242as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245 IFS=$as_save_IFS
4246 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004247 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004248 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 +00004249 ac_cv_prog_BISON="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackc068f672004-03-16 03:11:39 +00004251 break 2
4252 fi
4253done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004254 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004255IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00004256
4257fi
4258fi
4259BISON=$ac_cv_prog_BISON
4260if test -n "$BISON"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004262$as_echo "$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004263else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004265$as_echo "no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004266fi
4267
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004268
Mike McCormackc068f672004-03-16 03:11:39 +00004269 test -n "$BISON" && break
4270done
4271test -n "$BISON" || BISON="none"
4272
4273if test "$BISON" = "none"
4274then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004275 as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
Mike McCormackc068f672004-03-16 03:11:39 +00004276fi
4277
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004278if test -n "$ac_tool_prefix"; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004279 for ac_prog in ar gar
4280 do
4281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4282set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004284$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004285if test "${ac_cv_prog_AR+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004286 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004287else
4288 if test -n "$AR"; then
4289 ac_cv_prog_AR="$AR" # Let the user override the test.
4290else
4291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4292for as_dir in $PATH
4293do
4294 IFS=$as_save_IFS
4295 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004296 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004297 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 +02004298 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004300 break 2
4301 fi
4302done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004303 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004304IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004305
4306fi
4307fi
4308AR=$ac_cv_prog_AR
4309if test -n "$AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004311$as_echo "$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004312else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004314$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004315fi
4316
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004317
Francois Gouget86bd0462008-06-26 14:05:57 +02004318 test -n "$AR" && break
4319 done
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004320fi
Francois Gouget86bd0462008-06-26 14:05:57 +02004321if test -z "$AR"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004322 ac_ct_AR=$AR
Francois Gouget86bd0462008-06-26 14:05:57 +02004323 for ac_prog in ar gar
4324do
4325 # Extract the first word of "$ac_prog", so it can be a program name with args.
4326set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004328$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004329if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004330 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004331else
4332 if test -n "$ac_ct_AR"; then
4333 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4334else
4335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4336for as_dir in $PATH
4337do
4338 IFS=$as_save_IFS
4339 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004340 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004341 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 +02004342 ac_cv_prog_ac_ct_AR="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004344 break 2
4345 fi
4346done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004347 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004348IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004349
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004350fi
4351fi
4352ac_ct_AR=$ac_cv_prog_ac_ct_AR
4353if test -n "$ac_ct_AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004355$as_echo "$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004356else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004358$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004359fi
4360
Francois Gouget86bd0462008-06-26 14:05:57 +02004361
4362 test -n "$ac_ct_AR" && break
4363done
4364
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004365 if test "x$ac_ct_AR" = x; then
4366 AR="ar"
4367 else
4368 case $cross_compiling:$ac_tool_warned in
4369yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004370{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004371$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004372ac_tool_warned=yes ;;
4373esac
4374 AR=$ac_ct_AR
4375 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004376fi
4377
Rob Shearman0c694d72008-03-04 15:53:41 +00004378ARFLAGS=rc
4379
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004380if test -n "$ac_tool_prefix"; then
4381 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4382set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004383{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004384$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004385if test "${ac_cv_prog_RANLIB+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004386 $as_echo_n "(cached) " >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004387else
4388 if test -n "$RANLIB"; then
4389 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4390else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392for as_dir in $PATH
4393do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004396 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004397 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 +00004398 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004400 break 2
4401 fi
4402done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004403 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004404IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004405
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004406fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004407fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004408RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004409if test -n "$RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004411$as_echo "$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004412else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004414$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004415fi
4416
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004417
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004418fi
4419if test -z "$ac_cv_prog_RANLIB"; then
4420 ac_ct_RANLIB=$RANLIB
4421 # Extract the first word of "ranlib", so it can be a program name with args.
4422set dummy ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004424$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004425if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004426 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004427else
4428 if test -n "$ac_ct_RANLIB"; then
4429 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4430else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4432for as_dir in $PATH
4433do
4434 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004436 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004437 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 +00004438 ac_cv_prog_ac_ct_RANLIB="ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004440 break 2
4441 fi
4442done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004443 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004444IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004445
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004446fi
4447fi
4448ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4449if test -n "$ac_ct_RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004451$as_echo "$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004452else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004454$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004455fi
4456
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004457 if test "x$ac_ct_RANLIB" = x; then
4458 RANLIB=":"
4459 else
4460 case $cross_compiling:$ac_tool_warned in
4461yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004462{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004463$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004464ac_tool_warned=yes ;;
4465esac
4466 RANLIB=$ac_ct_RANLIB
4467 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004468else
4469 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004470fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004471
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004472if test -n "$ac_tool_prefix"; then
4473 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4474set dummy ${ac_tool_prefix}strip; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004475{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004476$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004477if test "${ac_cv_prog_STRIP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004478 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004479else
4480 if test -n "$STRIP"; then
4481 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4482else
4483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4484for as_dir in $PATH
4485do
4486 IFS=$as_save_IFS
4487 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004488 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004489 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 +00004490 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004492 break 2
4493 fi
4494done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004495 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004496IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004497
4498fi
4499fi
4500STRIP=$ac_cv_prog_STRIP
4501if test -n "$STRIP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004503$as_echo "$STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004504else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004506$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004507fi
4508
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004509
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004510fi
4511if test -z "$ac_cv_prog_STRIP"; then
4512 ac_ct_STRIP=$STRIP
4513 # Extract the first word of "strip", so it can be a program name with args.
4514set dummy strip; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004516$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004517if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004518 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004519else
4520 if test -n "$ac_ct_STRIP"; then
4521 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4522else
4523as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH
4525do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004528 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004529 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 +00004530 ac_cv_prog_ac_ct_STRIP="strip"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004532 break 2
4533 fi
4534done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004535 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004536IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004537
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004538fi
4539fi
4540ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4541if test -n "$ac_ct_STRIP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004543$as_echo "$ac_ct_STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004544else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004546$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004547fi
4548
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004549 if test "x$ac_ct_STRIP" = x; then
4550 STRIP="strip"
4551 else
4552 case $cross_compiling:$ac_tool_warned in
4553yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004554{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004555$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004556ac_tool_warned=yes ;;
4557esac
4558 STRIP=$ac_ct_STRIP
4559 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004560else
4561 STRIP="$ac_cv_prog_STRIP"
4562fi
4563
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004565$as_echo_n "checking whether ln -s works... " >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004566LN_S=$as_ln_s
4567if test "$LN_S" = "ln -s"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004569$as_echo "yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004570else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004572$as_echo "no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004573fi
4574
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004576$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004577if test "${ac_cv_path_GREP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004578 $as_echo_n "(cached) " >&6
Alexandre Julliardc6264912004-08-16 20:09:37 +00004579else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004580 if test -z "$GREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004581 ac_path_GREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004582 # Loop through the user's path and test for each of PROGNAME-LIST
4583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004584for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4585do
4586 IFS=$as_save_IFS
4587 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004588 for ac_prog in grep ggrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004589 for ac_exec_ext in '' $ac_executable_extensions; do
4590 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4591 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4592# Check for GNU ac_path_GREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004593 # Check for GNU $ac_path_GREP
4594case `"$ac_path_GREP" --version 2>&1` in
4595*GNU*)
4596 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4597*)
4598 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004599 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004600 while :
4601 do
4602 cat "conftest.in" "conftest.in" >"conftest.tmp"
4603 mv "conftest.tmp" "conftest.in"
4604 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004605 $as_echo 'GREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004606 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4607 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004608 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004609 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4610 # Best one so far, save it but keep looking for a better one
4611 ac_cv_path_GREP="$ac_path_GREP"
4612 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00004613 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004614 # 10*(2^10) chars as input seems more than enough
4615 test $ac_count -gt 10 && break
4616 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004617 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004618esac
4619
Alexandre Julliardabf50482008-10-31 12:56:53 +01004620 $ac_path_GREP_found && break 3
4621 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004622 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004623 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004624IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004625 if test -z "$ac_cv_path_GREP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004626 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 +01004627 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004628else
4629 ac_cv_path_GREP=$GREP
4630fi
4631
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004632fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004634$as_echo "$ac_cv_path_GREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004635 GREP="$ac_cv_path_GREP"
4636
4637
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004639$as_echo_n "checking for egrep... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004640if test "${ac_cv_path_EGREP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004641 $as_echo_n "(cached) " >&6
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004642else
4643 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4644 then ac_cv_path_EGREP="$GREP -E"
4645 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004646 if test -z "$EGREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004647 ac_path_EGREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004648 # Loop through the user's path and test for each of PROGNAME-LIST
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004650for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4651do
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004654 for ac_prog in egrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004655 for ac_exec_ext in '' $ac_executable_extensions; do
4656 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4657 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4658# Check for GNU ac_path_EGREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004659 # Check for GNU $ac_path_EGREP
4660case `"$ac_path_EGREP" --version 2>&1` in
4661*GNU*)
4662 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4663*)
4664 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004665 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004666 while :
4667 do
4668 cat "conftest.in" "conftest.in" >"conftest.tmp"
4669 mv "conftest.tmp" "conftest.in"
4670 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004671 $as_echo 'EGREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004672 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4673 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004674 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004675 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4676 # Best one so far, save it but keep looking for a better one
4677 ac_cv_path_EGREP="$ac_path_EGREP"
4678 ac_path_EGREP_max=$ac_count
4679 fi
4680 # 10*(2^10) chars as input seems more than enough
4681 test $ac_count -gt 10 && break
4682 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004683 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004684esac
4685
Alexandre Julliardabf50482008-10-31 12:56:53 +01004686 $ac_path_EGREP_found && break 3
4687 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004688 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004689 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004690IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004691 if test -z "$ac_cv_path_EGREP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004692 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 +01004693 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004694else
4695 ac_cv_path_EGREP=$EGREP
4696fi
4697
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004698 fi
4699fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004701$as_echo "$ac_cv_path_EGREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004702 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00004703
4704
James Juranffe6b761999-06-12 08:21:57 +00004705# Extract the first word of "ldconfig", so it can be a program name with args.
4706set dummy ldconfig; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004708$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004709if test "${ac_cv_path_LDCONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004710 $as_echo_n "(cached) " >&6
James Juranffe6b761999-06-12 08:21:57 +00004711else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004712 case $LDCONFIG in
4713 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004714 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4715 ;;
4716 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004718for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004719do
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004722 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004723 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 +00004724 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004726 break 2
4727 fi
4728done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004729 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004730IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004731
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004732 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004733 ;;
4734esac
4735fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004736LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00004737if test -n "$LDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004739$as_echo "$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004740else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004742$as_echo "no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004743fi
4744
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004745
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004746# Find a good install program. We prefer a C program (faster),
4747# so one script is as good as another. But avoid the broken or
4748# incompatible versions:
4749# SysV /etc/install, /usr/sbin/install
4750# SunOS /usr/etc/install
4751# IRIX /sbin/install
4752# AIX /bin/install
4753# AmigaOS /C/install, which installs bootblocks on floppy discs
4754# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4755# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4756# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00004757# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004758# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardabf50482008-10-31 12:56:53 +01004759# Reject install programs that cannot install multiple files.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004761$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004762if test -z "$INSTALL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004763if test "${ac_cv_path_install+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004764 $as_echo_n "(cached) " >&6
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004765else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767for as_dir in $PATH
4768do
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004771 # Account for people who put trailing slashes in PATH elements.
4772case $as_dir/ in #((
4773 ./ | .// | /[cC]/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004774 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004775 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004776 /usr/ucb/* ) ;;
4777 *)
4778 # OSF1 and SCO ODT 3.0 have their own names for install.
4779 # Don't use installbsd from OSF since it installs stuff as root
4780 # by default.
4781 for ac_prog in ginstall scoinst install; do
4782 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004783 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 +00004784 if test $ac_prog = install &&
4785 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4786 # AIX install. It has an incompatible calling convention.
4787 :
4788 elif test $ac_prog = install &&
4789 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4790 # program-specific install script used by HP pwplus--don't use.
4791 :
4792 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004793 rm -rf conftest.one conftest.two conftest.dir
4794 echo one > conftest.one
4795 echo two > conftest.two
4796 mkdir conftest.dir
4797 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4798 test -s conftest.one && test -s conftest.two &&
4799 test -s conftest.dir/conftest.one &&
4800 test -s conftest.dir/conftest.two
4801 then
4802 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4803 break 3
4804 fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004805 fi
4806 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004807 done
4808 done
4809 ;;
4810esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01004811
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004812 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004813IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004814
Alexandre Julliardabf50482008-10-31 12:56:53 +01004815rm -rf conftest.one conftest.two conftest.dir
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004816
4817fi
4818 if test "${ac_cv_path_install+set}" = set; then
4819 INSTALL=$ac_cv_path_install
4820 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004821 # As a last resort, use the slow shell script. Don't cache a
4822 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004823 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004824 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004825 INSTALL=$ac_install_sh
4826 fi
4827fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004829$as_echo "$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004830
4831# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4832# It thinks the first close brace ends the variable substitution.
4833test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4834
4835test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4836
4837test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4838
4839case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00004840 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004841 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4842esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004843
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004844for ac_prog in lclint lint
4845do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004846 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004847set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004849$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004850if test "${ac_cv_prog_LINT+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004851 $as_echo_n "(cached) " >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004852else
4853 if test -n "$LINT"; then
4854 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4855else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4857for as_dir in $PATH
4858do
4859 IFS=$as_save_IFS
4860 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004861 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004862 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 +00004863 ac_cv_prog_LINT="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004865 break 2
4866 fi
4867done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004868 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004869IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004870
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004871fi
4872fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004873LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004874if test -n "$LINT"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004876$as_echo "$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004877else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004879$as_echo "no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004880fi
4881
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004882
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004883 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004884done
4885
4886if test "$LINT" = "lint"
4887then
4888 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4889 fi
4890
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004891
4892
Huw Davies00acb5f2004-08-17 22:33:14 +00004893for ac_prog in fontforge
4894do
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004898$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004899if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004900 $as_echo_n "(cached) " >&6
Huw Davies00acb5f2004-08-17 22:33:14 +00004901else
4902 if test -n "$FONTFORGE"; then
4903 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4904else
4905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906for as_dir in $PATH
4907do
4908 IFS=$as_save_IFS
4909 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004910 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004911 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 +00004912 ac_cv_prog_FONTFORGE="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Huw Davies00acb5f2004-08-17 22:33:14 +00004914 break 2
4915 fi
4916done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004917 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004918IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00004919
4920fi
4921fi
4922FONTFORGE=$ac_cv_prog_FONTFORGE
4923if test -n "$FONTFORGE"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004925$as_echo "$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004926else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004928$as_echo "no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004929fi
4930
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004931
Huw Davies00acb5f2004-08-17 22:33:14 +00004932 test -n "$FONTFORGE" && break
4933done
4934test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00004935
Mike McCormack90c75bd2005-08-08 18:36:53 +00004936for ac_prog in pkg-config
4937do
4938 # Extract the first word of "$ac_prog", so it can be a program name with args.
4939set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004941$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004942if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004943 $as_echo_n "(cached) " >&6
Mike McCormack90c75bd2005-08-08 18:36:53 +00004944else
4945 if test -n "$PKG_CONFIG"; then
4946 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4947else
4948as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949for as_dir in $PATH
4950do
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004953 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004954 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 +00004955 ac_cv_prog_PKG_CONFIG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormack90c75bd2005-08-08 18:36:53 +00004957 break 2
4958 fi
4959done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004960 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004961IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00004962
4963fi
4964fi
4965PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4966if test -n "$PKG_CONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004968$as_echo "$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004969else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004971$as_echo "no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004972fi
4973
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004974
Mike McCormack90c75bd2005-08-08 18:36:53 +00004975 test -n "$PKG_CONFIG" && break
4976done
4977test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4978
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004979for ac_prog in rsvg
4980do
4981 # Extract the first word of "$ac_prog", so it can be a program name with args.
4982set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004984$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004985if test "${ac_cv_prog_RSVG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004986 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004987else
4988 if test -n "$RSVG"; then
4989 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4990else
4991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992for as_dir in $PATH
4993do
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004996 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4998 ac_cv_prog_RSVG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005000 break 2
5001 fi
5002done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005003 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005004IFS=$as_save_IFS
5005
5006fi
5007fi
5008RSVG=$ac_cv_prog_RSVG
5009if test -n "$RSVG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005011$as_echo "$RSVG" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005012else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005014$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005015fi
5016
5017
5018 test -n "$RSVG" && break
5019done
5020test -n "$RSVG" || RSVG="false"
5021
Joel Holdsworth476a2be2010-04-05 11:15:03 +01005022for ac_prog in convert
5023do
5024 # Extract the first word of "$ac_prog", so it can be a program name with args.
5025set dummy $ac_prog; ac_word=$2
5026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5027$as_echo_n "checking for $ac_word... " >&6; }
5028if test "${ac_cv_prog_CONVERT+set}" = set; then :
5029 $as_echo_n "(cached) " >&6
5030else
5031 if test -n "$CONVERT"; then
5032 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5033else
5034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5035for as_dir in $PATH
5036do
5037 IFS=$as_save_IFS
5038 test -z "$as_dir" && as_dir=.
5039 for ac_exec_ext in '' $ac_executable_extensions; do
5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5041 ac_cv_prog_CONVERT="$ac_prog"
5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5043 break 2
5044 fi
5045done
5046 done
5047IFS=$as_save_IFS
5048
5049fi
5050fi
5051CONVERT=$ac_cv_prog_CONVERT
5052if test -n "$CONVERT"; then
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5054$as_echo "$CONVERT" >&6; }
5055else
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5057$as_echo "no" >&6; }
5058fi
5059
5060
5061 test -n "$CONVERT" && break
5062done
5063test -n "$CONVERT" || CONVERT="false"
5064
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005065for ac_prog in icotool
5066do
5067 # Extract the first word of "$ac_prog", so it can be a program name with args.
5068set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005070$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005071if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005072 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005073else
5074 if test -n "$ICOTOOL"; then
5075 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5076else
5077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078for as_dir in $PATH
5079do
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005082 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_prog_ICOTOOL="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005086 break 2
5087 fi
5088done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005089 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005090IFS=$as_save_IFS
5091
5092fi
5093fi
5094ICOTOOL=$ac_cv_prog_ICOTOOL
5095if test -n "$ICOTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005097$as_echo "$ICOTOOL" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005098else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005100$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005101fi
5102
5103
5104 test -n "$ICOTOOL" && break
5105done
5106test -n "$ICOTOOL" || ICOTOOL="false"
5107
5108
5109if test "${enable_maintainer_mode+set}" = set
5110then
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01005111 if test "$FONTFORGE" = "false"; then as_fn_append wine_warnings "|fontforge is missing, fonts can't be rebuilt."; fi
5112 if test "$RSVG" = "false"; then as_fn_append wine_warnings "|rsvg is missing, icons can't be rebuilt."; fi
Joel Holdsworthb9eae1e2010-05-16 23:07:40 +01005113
5114 if test "$CONVERT" = false
5115 then
5116 as_fn_append wine_warnings "|imagemagick is missing, icons can't be rebuilt."
5117 else
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5119$as_echo_n "checking for recent enough imagemagick... " >&6; }
5120 convert_version=`convert --version | head -n1`
5121 if test "x$convert_version" != "x"
5122 then
5123 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5124 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5125 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5126 then
5127 CONVERT=false
5128 as_fn_append wine_warnings "|imagemagick version 6.6 or newer is needed to rebuild icons."
5129 fi
5130 fi
5131 if test "$CONVERT" = false
5132 then
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5134$as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5135 else
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5137$as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5138 fi
5139 fi
Joel Holdsworth425f1382010-04-05 11:14:47 +01005140
5141 if test "$ICOTOOL" = false
5142 then
5143 as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."
5144 else
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5146$as_echo_n "checking for recent enough icotool... " >&6; }
5147 icotool_version=`icotool --version | head -n1`
5148 if test "x$icotool_version" != "x"
5149 then
Joel Holdsworth9571f782010-05-16 23:07:33 +01005150 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5151 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
Joel Holdsworth425f1382010-04-05 11:14:47 +01005152 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5153 then
5154 ICOTOOL=false
5155 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5156 fi
5157 fi
5158 if test "$ICOTOOL" = false
5159 then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5161$as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5164$as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5165 fi
5166 fi
5167
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005168fi
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005169
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005170case $host_cpu in
5171 *i[3456789]86*)
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02005172 # Extract the first word of "prelink", so it can be a program name with args.
5173set dummy prelink; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005175$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005176if test "${ac_cv_path_PRELINK+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005177 $as_echo_n "(cached) " >&6
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005178else
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02005179 case $PRELINK in
5180 [\\/]* | ?:[\\/]*)
5181 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5182 ;;
5183 *)
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005185for as_dir in /sbin /usr/sbin $PATH
5186do
5187 IFS=$as_save_IFS
5188 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005189 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01005190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02005191 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005193 break 2
5194 fi
5195done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005196 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005197IFS=$as_save_IFS
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005198
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02005199 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5200 ;;
5201esac
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005202fi
Alexandre Julliard3d08f5d2006-07-18 10:12:20 +02005203PRELINK=$ac_cv_path_PRELINK
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005204if test -n "$PRELINK"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005206$as_echo "$PRELINK" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005207else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005209$as_echo "no" >&6; }
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005210fi
5211
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005212
Alexandre Julliardadbb0982005-08-09 11:12:29 +00005213 ;;
5214esac
5215
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005216
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005218$as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005219if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005220 $as_echo_n "(cached) " >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005221else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005222 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005223LIBS="-li386 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005225/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005226
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005227/* Override any GCC internal prototype to avoid an error.
5228 Use char because int might match the return type of a GCC
5229 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005230#ifdef __cplusplus
5231extern "C"
5232#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005233char i386_set_ldt ();
5234int
5235main ()
5236{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005237return i386_set_ldt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005238 ;
5239 return 0;
5240}
5241_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005242if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005243 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005244else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005245 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005246fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005247rm -f core conftest.err conftest.$ac_objext \
5248 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005249LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005250fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005252$as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005253if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005254 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005255#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005256_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005257
5258 LIBS="-li386 $LIBS"
5259
Alexandre Julliard02e90081998-01-04 17:49:09 +00005260fi
5261
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005263$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005264if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005265 $as_echo_n "(cached) " >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005266else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005267 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005268LIBS="-lossaudio $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005270/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005271
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005272/* Override any GCC internal prototype to avoid an error.
5273 Use char because int might match the return type of a GCC
5274 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005275#ifdef __cplusplus
5276extern "C"
5277#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005278char _oss_ioctl ();
5279int
5280main ()
5281{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005282return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005283 ;
5284 return 0;
5285}
5286_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005287if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005288 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005289else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005290 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005291fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005292rm -f core conftest.err conftest.$ac_objext \
5293 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005294LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005295fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005297$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005298if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005299 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005300#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005301_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005302
5303 LIBS="-lossaudio $LIBS"
5304
Todd Vierlingecc76691998-12-15 17:49:02 +00005305fi
5306
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005307
Alexandre Julliard82776022005-08-08 11:17:25 +00005308XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005309
Huw Daviese82dfab2004-08-04 19:10:26 +00005310OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005311
Rein Klazes7ff12562004-11-09 20:16:35 +00005312
Alexandre Julliard82776022005-08-08 11:17:25 +00005313
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005314# Check whether --enable-largefile was given.
5315if test "${enable_largefile+set}" = set; then :
5316 enableval=$enable_largefile;
5317fi
5318
5319if test "$enable_largefile" != no; then
5320
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5322$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5323if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5324 $as_echo_n "(cached) " >&6
5325else
5326 ac_cv_sys_largefile_CC=no
5327 if test "$GCC" != yes; then
5328 ac_save_CC=$CC
5329 while :; do
5330 # IRIX 6.2 and later do not support large files by default,
5331 # so use the C compiler's -n32 option if that helps.
5332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5333/* end confdefs.h. */
5334#include <sys/types.h>
5335 /* Check that off_t can represent 2**63 - 1 correctly.
5336 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5337 since some C++ compilers masquerading as C compilers
5338 incorrectly reject 9223372036854775807. */
5339#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5340 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5341 && LARGE_OFF_T % 2147483647 == 1)
5342 ? 1 : -1];
5343int
5344main ()
5345{
5346
5347 ;
5348 return 0;
5349}
5350_ACEOF
5351 if ac_fn_c_try_compile "$LINENO"; then :
5352 break
5353fi
5354rm -f core conftest.err conftest.$ac_objext
5355 CC="$CC -n32"
5356 if ac_fn_c_try_compile "$LINENO"; then :
5357 ac_cv_sys_largefile_CC=' -n32'; break
5358fi
5359rm -f core conftest.err conftest.$ac_objext
5360 break
5361 done
5362 CC=$ac_save_CC
5363 rm -f conftest.$ac_ext
5364 fi
5365fi
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5367$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5368 if test "$ac_cv_sys_largefile_CC" != no; then
5369 CC=$CC$ac_cv_sys_largefile_CC
5370 fi
5371
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5373$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5374if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5375 $as_echo_n "(cached) " >&6
5376else
5377 while :; do
5378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5379/* end confdefs.h. */
5380#include <sys/types.h>
5381 /* Check that off_t can represent 2**63 - 1 correctly.
5382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5383 since some C++ compilers masquerading as C compilers
5384 incorrectly reject 9223372036854775807. */
5385#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5387 && LARGE_OFF_T % 2147483647 == 1)
5388 ? 1 : -1];
5389int
5390main ()
5391{
5392
5393 ;
5394 return 0;
5395}
5396_ACEOF
5397if ac_fn_c_try_compile "$LINENO"; then :
5398 ac_cv_sys_file_offset_bits=no; break
5399fi
5400rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5402/* end confdefs.h. */
5403#define _FILE_OFFSET_BITS 64
5404#include <sys/types.h>
5405 /* Check that off_t can represent 2**63 - 1 correctly.
5406 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5407 since some C++ compilers masquerading as C compilers
5408 incorrectly reject 9223372036854775807. */
5409#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5410 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5411 && LARGE_OFF_T % 2147483647 == 1)
5412 ? 1 : -1];
5413int
5414main ()
5415{
5416
5417 ;
5418 return 0;
5419}
5420_ACEOF
5421if ac_fn_c_try_compile "$LINENO"; then :
5422 ac_cv_sys_file_offset_bits=64; break
5423fi
5424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5425 ac_cv_sys_file_offset_bits=unknown
5426 break
5427done
5428fi
5429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5430$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5431case $ac_cv_sys_file_offset_bits in #(
5432 no | unknown) ;;
5433 *)
5434cat >>confdefs.h <<_ACEOF
5435#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5436_ACEOF
5437;;
5438esac
5439rm -rf conftest*
5440 if test $ac_cv_sys_file_offset_bits = unknown; then
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5442$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5443if test "${ac_cv_sys_large_files+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5445else
5446 while :; do
5447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448/* end confdefs.h. */
5449#include <sys/types.h>
5450 /* Check that off_t can represent 2**63 - 1 correctly.
5451 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5452 since some C++ compilers masquerading as C compilers
5453 incorrectly reject 9223372036854775807. */
5454#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5455 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5456 && LARGE_OFF_T % 2147483647 == 1)
5457 ? 1 : -1];
5458int
5459main ()
5460{
5461
5462 ;
5463 return 0;
5464}
5465_ACEOF
5466if ac_fn_c_try_compile "$LINENO"; then :
5467 ac_cv_sys_large_files=no; break
5468fi
5469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471/* end confdefs.h. */
5472#define _LARGE_FILES 1
5473#include <sys/types.h>
5474 /* Check that off_t can represent 2**63 - 1 correctly.
5475 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5476 since some C++ compilers masquerading as C compilers
5477 incorrectly reject 9223372036854775807. */
5478#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5479 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5480 && LARGE_OFF_T % 2147483647 == 1)
5481 ? 1 : -1];
5482int
5483main ()
5484{
5485
5486 ;
5487 return 0;
5488}
5489_ACEOF
5490if ac_fn_c_try_compile "$LINENO"; then :
5491 ac_cv_sys_large_files=1; break
5492fi
5493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5494 ac_cv_sys_large_files=unknown
5495 break
5496done
5497fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5499$as_echo "$ac_cv_sys_large_files" >&6; }
5500case $ac_cv_sys_large_files in #(
5501 no | unknown) ;;
5502 *)
5503cat >>confdefs.h <<_ACEOF
5504#define _LARGE_FILES $ac_cv_sys_large_files
5505_ACEOF
5506;;
5507esac
5508rm -rf conftest*
5509 fi
5510fi
5511
5512
Alexandre Julliard40664c02009-02-11 20:40:58 +01005513ac_ext=c
5514ac_cpp='$CPP $CPPFLAGS'
5515ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5516ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5517ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005519$as_echo_n "checking how to run the C preprocessor... " >&6; }
5520# On Suns, sometimes $CPP names a directory.
5521if test -n "$CPP" && test -d "$CPP"; then
5522 CPP=
5523fi
5524if test -z "$CPP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005525 if test "${ac_cv_prog_CPP+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005526 $as_echo_n "(cached) " >&6
5527else
5528 # Double quotes because CPP needs to be expanded
5529 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5530 do
5531 ac_preproc_ok=false
5532for ac_c_preproc_warn_flag in '' yes
5533do
5534 # Use a header file that comes with gcc, so configuring glibc
5535 # with a fresh cross-compiler works.
5536 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5537 # <limits.h> exists even on freestanding compilers.
5538 # On the NeXT, cc -E runs the code through the compiler's parser,
5539 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005541/* end confdefs.h. */
5542#ifdef __STDC__
5543# include <limits.h>
5544#else
5545# include <assert.h>
5546#endif
5547 Syntax error
5548_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005549if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005550
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005551else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005552 # Broken: fails on valid input.
5553continue
5554fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005555rm -f conftest.err conftest.$ac_ext
5556
5557 # OK, works on sane cases. Now check whether nonexistent headers
5558 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005560/* end confdefs.h. */
5561#include <ac_nonexistent.h>
5562_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005563if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005564 # Broken: success on invalid input.
5565continue
5566else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005567 # Passes both tests.
5568ac_preproc_ok=:
5569break
5570fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005571rm -f conftest.err conftest.$ac_ext
5572
5573done
5574# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5575rm -f conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005576if $ac_preproc_ok; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005577 break
5578fi
5579
5580 done
5581 ac_cv_prog_CPP=$CPP
5582
5583fi
5584 CPP=$ac_cv_prog_CPP
5585else
5586 ac_cv_prog_CPP=$CPP
5587fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005589$as_echo "$CPP" >&6; }
5590ac_preproc_ok=false
5591for ac_c_preproc_warn_flag in '' yes
5592do
5593 # Use a header file that comes with gcc, so configuring glibc
5594 # with a fresh cross-compiler works.
5595 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5596 # <limits.h> exists even on freestanding compilers.
5597 # On the NeXT, cc -E runs the code through the compiler's parser,
5598 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005600/* end confdefs.h. */
5601#ifdef __STDC__
5602# include <limits.h>
5603#else
5604# include <assert.h>
5605#endif
5606 Syntax error
5607_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005608if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005609
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005610else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005611 # Broken: fails on valid input.
5612continue
5613fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005614rm -f conftest.err conftest.$ac_ext
5615
5616 # OK, works on sane cases. Now check whether nonexistent headers
5617 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005619/* end confdefs.h. */
5620#include <ac_nonexistent.h>
5621_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005622if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005623 # Broken: success on invalid input.
5624continue
5625else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005626 # Passes both tests.
5627ac_preproc_ok=:
5628break
5629fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005630rm -f conftest.err conftest.$ac_ext
5631
5632done
5633# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5634rm -f conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005635if $ac_preproc_ok; then :
5636
Alexandre Julliard40664c02009-02-11 20:40:58 +01005637else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005639$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005640as_fn_error "C preprocessor \"$CPP\" fails sanity check
5641See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliard40664c02009-02-11 20:40:58 +01005642fi
5643
5644ac_ext=c
5645ac_cpp='$CPP $CPPFLAGS'
5646ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649
5650
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005652$as_echo_n "checking for ANSI C header files... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005653if test "${ac_cv_header_stdc+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005654 $as_echo_n "(cached) " >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005655else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005657/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005658#include <stdlib.h>
5659#include <stdarg.h>
5660#include <string.h>
5661#include <float.h>
5662
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005663int
5664main ()
5665{
5666
5667 ;
5668 return 0;
5669}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005670_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005671if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005672 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005673else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005674 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005675fi
Jeremy White0ebeb532006-06-20 13:18:41 +02005676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005677
5678if test $ac_cv_header_stdc = yes; then
5679 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005681/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005682#include <string.h>
5683
5684_ACEOF
5685if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005686 $EGREP "memchr" >/dev/null 2>&1; then :
5687
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005688else
5689 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005690fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005691rm -f conftest*
5692
5693fi
5694
5695if test $ac_cv_header_stdc = yes; then
5696 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005698/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005699#include <stdlib.h>
5700
5701_ACEOF
5702if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005703 $EGREP "free" >/dev/null 2>&1; then :
5704
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005705else
5706 ac_cv_header_stdc=no
5707fi
5708rm -f conftest*
5709
5710fi
5711
5712if test $ac_cv_header_stdc = yes; then
5713 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005714 if test "$cross_compiling" = yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005715 :
5716else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005718/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005719#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005720#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005721#if ((' ' & 0x0FF) == 0x020)
5722# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5723# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5724#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005725# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005726 (('a' <= (c) && (c) <= 'i') \
5727 || ('j' <= (c) && (c) <= 'r') \
5728 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005729# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5730#endif
5731
5732#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5733int
5734main ()
5735{
5736 int i;
5737 for (i = 0; i < 256; i++)
5738 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00005739 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005740 return 2;
5741 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005742}
5743_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005744if ac_fn_c_try_run "$LINENO"; then :
5745
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005746else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005747 ac_cv_header_stdc=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005748fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005749rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5750 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005751fi
5752
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005753fi
5754fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005756$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005757if test $ac_cv_header_stdc = yes; then
5758
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005759$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005760
5761fi
5762
5763# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005764for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005765 inttypes.h stdint.h unistd.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005766do :
5767 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5768ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5769"
5770eval as_val=\$$as_ac_Header
5771 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005772 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005773#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005774_ACEOF
5775
5776fi
5777
5778done
5779
5780
Rein Klazes7ff12562004-11-09 20:16:35 +00005781for ac_header in \
Chris Robinson862965f2009-08-25 03:26:35 -07005782 AL/al.h \
Aric Stewart4430ab42010-03-17 10:58:32 -05005783 AudioToolbox/AudioConverter.h \
5784 AudioToolbox/AudioFile.h \
5785 AudioToolbox/AudioFileStream.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005786 AudioUnit/AudioUnit.h \
Pierre d'Herbemont08884512006-10-24 15:26:33 +02005787 Carbon/Carbon.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005788 CoreAudio/CoreAudio.h \
Alexandre Julliard66f45a52006-11-06 13:33:16 +01005789 DiskArbitration/DiskArbitration.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00005790 IOKit/IOKitLib.h \
Aric Stewart225a4942009-03-10 14:59:20 -05005791 IOKit/hid/IOHIDLib.h \
Ken Thomases0b08f192009-09-09 22:23:35 -05005792 OpenAL/al.h \
Eric Durbin020b0ef2008-06-24 22:45:51 -05005793 alias.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005794 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005795 arpa/inet.h \
5796 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00005797 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005798 capi20.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005799 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005800 direct.h \
Rob Shearman87175c62008-10-03 12:55:21 +01005801 dirent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005802 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005803 elf.h \
5804 float.h \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +02005805 fnmatch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005806 fontconfig/fontconfig.h \
5807 getopt.h \
Alexandre Julliard46678dc2008-12-09 17:09:42 +01005808 grp.h \
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +02005809 gsm.h \
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +02005810 gsm/gsm.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005811 ieeefp.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005812 inet/mib2.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005813 io.h \
5814 jack/jack.h \
5815 jpeglib.h \
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +01005816 kstat.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005817 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005818 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005819 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005820 ldap.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005821 libaudioio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005822 link.h \
5823 linux/cdrom.h \
5824 linux/compiler.h \
5825 linux/hdreg.h \
5826 linux/input.h \
5827 linux/ioctl.h \
5828 linux/joystick.h \
5829 linux/major.h \
5830 linux/param.h \
5831 linux/serial.h \
Francois Gougetda1a3522008-12-28 10:35:02 +01005832 linux/types.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005833 linux/ucdrom.h \
Ken Thomasesd35c0e82009-03-11 09:05:53 -05005834 mach-o/nlist.h \
Alexandre Julliard150b5dc2006-12-29 20:02:02 +01005835 mach/mach.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005836 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005837 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005838 machine/limits.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005839 machine/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005840 mntent.h \
Aric Stewartdb71d7c2009-08-19 09:37:48 -05005841 mpg123.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005842 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005843 netdb.h \
5844 netinet/in.h \
5845 netinet/in_systm.h \
5846 netinet/tcp.h \
5847 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01005848 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005849 openssl/ssl.h \
Alexandre Julliard00302152007-07-02 19:54:00 +02005850 png.h \
Steven Edwards57279182005-03-04 12:38:36 +00005851 poll.h \
Albert Lee01b972d2009-11-20 18:35:26 -05005852 port.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005853 process.h \
5854 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005855 pwd.h \
5856 regex.h \
5857 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005858 scsi/scsi.h \
5859 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005860 scsi/sg.h \
5861 soundcard.h \
Austin English2d7ccb32009-06-13 18:01:24 -05005862 stdbool.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005863 stdint.h \
5864 strings.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005865 stropts.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005866 sys/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005867 sys/cdio.h \
5868 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005869 sys/epoll.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005870 sys/errno.h \
Alexandre Julliardc8278922006-08-04 22:11:00 +02005871 sys/event.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005872 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005873 sys/filio.h \
Alexandre Julliard61a70362009-06-26 15:45:03 +02005874 sys/inotify.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005875 sys/ioctl.h \
5876 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00005877 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005878 sys/link.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005879 sys/mman.h \
5880 sys/modem.h \
5881 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01005882 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005883 sys/param.h \
5884 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02005885 sys/prctl.h \
Austin English94021a12009-01-20 17:42:53 -06005886 sys/protosw.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005887 sys/ptrace.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09005888 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005889 sys/scsiio.h \
5890 sys/shm.h \
5891 sys/signal.h \
5892 sys/socket.h \
Mark Adams25696352007-07-10 23:39:21 -04005893 sys/socketvar.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005894 sys/sockio.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005895 sys/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005896 sys/statvfs.h \
5897 sys/strtio.h \
5898 sys/syscall.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005899 sys/tihdr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005900 sys/time.h \
Austin English8b195912009-01-21 21:59:11 -06005901 sys/timeout.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005902 sys/times.h \
5903 sys/uio.h \
5904 sys/un.h \
Alexandre Julliard66eb4bd2008-12-09 19:33:06 +01005905 sys/utsname.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005906 sys/vm86.h \
5907 sys/wait.h \
5908 syscall.h \
5909 termios.h \
Vincent Povirk73cd5692010-03-08 17:07:29 -06005910 tiffio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005911 unistd.h \
5912 utime.h \
John Reiser0a2c94e2008-07-24 13:31:53 -07005913 valgrind/memcheck.h \
Jacek Caban11ca05f2009-05-29 23:35:13 +02005914 valgrind/valgrind.h \
5915 zlib.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005916
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005917do :
5918 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5919ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5920eval as_val=\$$as_ac_Header
5921 if test "x$as_val" = x""yes; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005922 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005923#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Rein Klazes7ff12562004-11-09 20:16:35 +00005924_ACEOF
5925
5926fi
5927
5928done
5929
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005931$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005932if test "${ac_cv_header_stat_broken+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005933 $as_echo_n "(cached) " >&6
Rein Klazes7ff12562004-11-09 20:16:35 +00005934else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005936/* end confdefs.h. */
5937#include <sys/types.h>
5938#include <sys/stat.h>
5939
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005940#if defined S_ISBLK && defined S_IFDIR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005941extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005942#endif
5943
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005944#if defined S_ISBLK && defined S_IFCHR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005945extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005946#endif
5947
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005948#if defined S_ISLNK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005949extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005950#endif
5951
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005952#if defined S_ISSOCK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005953extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005954#endif
5955
5956_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005957if ac_fn_c_try_compile "$LINENO"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005958 ac_cv_header_stat_broken=no
Phil Krylovf0ca5862006-11-05 23:03:46 +03005959else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005960 ac_cv_header_stat_broken=yes
Phil Krylovf0ca5862006-11-05 23:03:46 +03005961fi
Phil Krylovf0ca5862006-11-05 23:03:46 +03005962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005963fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005965$as_echo "$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00005966if test $ac_cv_header_stat_broken = yes; then
5967
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005968$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005969
5970fi
5971
5972
5973
Austin English51094be2008-12-27 14:53:53 -06005974for 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 +02005975do :
5976 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5977ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005978 #ifdef HAVE_SYS_PARAM_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005979 # include <sys/param.h>
5980 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005981"
5982eval as_val=\$$as_ac_Header
5983 if test "x$as_val" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005984 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005985#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005986_ACEOF
5987
5988fi
5989
5990done
5991
5992
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005993for ac_header in \
5994 netinet/ip.h \
5995 net/if.h \
5996 net/if_arp.h \
5997 net/if_dl.h \
5998 net/if_types.h \
5999 net/route.h \
6000 netinet/if_ether.h \
Austin English337067a2009-01-22 10:44:06 -06006001 netinet/if_inarp.h \
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006002 netinet/in_pcb.h \
6003 netinet/ip_icmp.h \
6004 netinet/ip_var.h \
6005 netinet/udp.h \
6006 netipx/ipx.h \
6007
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006008do :
6009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6010ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01006011 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006012 # include <sys/socket.h>
6013 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006014 #ifdef HAVE_SYS_SOCKETVAR_H
Ken Thomasesa609fee2007-10-19 16:18:17 -05006015 # include <sys/socketvar.h>
6016 #endif
Austin Englishbb3f2582009-01-26 23:34:42 -06006017 #ifdef HAVE_NET_ROUTE_H
6018 # include <net/route.h>
6019 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006020 #ifdef HAVE_NETINET_IN_H
Ken Thomasesffd78b12007-10-19 16:18:27 -05006021 # include <netinet/in.h>
6022 #endif
Austin English03173932009-01-23 13:29:42 -06006023 #ifdef HAVE_NETINET_IN_SYSTM_H
6024 # include <netinet/in_systm.h>
6025 #endif
Alexandre Julliardd7e846c2009-01-30 14:01:12 +01006026 #ifdef HAVE_NET_IF_H
6027 # include <net/if.h>
6028 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006029 #ifdef HAVE_NETINET_IP_H
6030 # include <netinet/ip.h>
6031 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006032"
6033eval as_val=\$$as_ac_Header
6034 if test "x$as_val" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006035 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01006036#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006037_ACEOF
6038
6039fi
6040
6041done
6042
Mark Adams25696352007-07-10 23:39:21 -04006043
Austin English03173932009-01-23 13:29:42 -06006044for 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 +02006045do :
6046 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6047ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Eric Durbin020b0ef2008-06-24 22:45:51 -05006048 #ifdef HAVE_ALIAS_H
6049 # include <alias.h>
6050 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006051 #ifdef HAVE_SYS_SOCKET_H
Mark Adams25696352007-07-10 23:39:21 -04006052 # include <sys/socket.h>
6053 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006054 #ifdef HAVE_SYS_SOCKETVAR_H
Mark Adams25696352007-07-10 23:39:21 -04006055 # include <sys/socketvar.h>
6056 #endif
Austin English53d3c462009-01-26 23:47:49 -06006057 #ifdef HAVE_SYS_TIMEOUT_H
6058 # include <sys/timeout.h>
6059 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006060 #ifdef HAVE_NETINET_IN_H
Mark Adams25696352007-07-10 23:39:21 -04006061 # include <netinet/in.h>
6062 #endif
Austin English03173932009-01-23 13:29:42 -06006063 #ifdef HAVE_NETINET_IN_SYSTM_H
6064 # include <netinet/in_systm.h>
6065 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006066 #ifdef HAVE_NETINET_IP_H
6067 # include <netinet/ip.h>
6068 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006069 #ifdef HAVE_NETINET_IP_VAR_H
6070 # include <netinet/ip_var.h>
6071 #endif
Eric Durbin020b0ef2008-06-24 22:45:51 -05006072 #ifdef HAVE_NETINET_IP_ICMP_H
6073 # include <netinet/ip_icmp.h>
6074 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006075 #ifdef HAVE_NETINET_UDP_H
6076 # include <netinet/udp.h>
6077 #endif
Mark Adams25696352007-07-10 23:39:21 -04006078 #ifdef HAVE_NETINET_TCP_H
6079 # include <netinet/tcp.h>
6080 #endif
Austin English03173932009-01-23 13:29:42 -06006081 #ifdef HAVE_NETINET_TCP_TIMER_H
6082 #include <netinet/tcp_timer.h>
6083 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006084"
6085eval as_val=\$$as_ac_Header
6086 if test "x$as_val" = x""yes; then :
Mark Adams25696352007-07-10 23:39:21 -04006087 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01006088#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mark Adams25696352007-07-10 23:39:21 -04006089_ACEOF
6090
6091fi
6092
6093done
6094
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006095
Juan Lang0ce420d2009-08-12 09:14:16 -07006096for ac_header in linux/ipx.h linux/irda.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006097do :
Juan Lang0ce420d2009-08-12 09:14:16 -07006098 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6099ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gougetfaf05df2006-08-07 21:52:36 +02006100 #ifdef HAVE_ASM_TYPES_H
6101 # include <asm/types.h>
6102 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006103 #ifdef HAVE_SYS_SOCKET_H
Francois Gougetfaf05df2006-08-07 21:52:36 +02006104 # include <sys/socket.h>
6105 #endif
Francois Gougetda1a3522008-12-28 10:35:02 +01006106 #ifdef HAVE_LINUX_TYPES_H
6107 # include <linux/types.h>
6108 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006109"
Juan Lang0ce420d2009-08-12 09:14:16 -07006110eval as_val=\$$as_ac_Header
6111 if test "x$as_val" = x""yes; then :
Francois Gougetfaf05df2006-08-07 21:52:36 +02006112 cat >>confdefs.h <<_ACEOF
Juan Lang0ce420d2009-08-12 09:14:16 -07006113#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Francois Gougetfaf05df2006-08-07 21:52:36 +02006114_ACEOF
6115
6116fi
6117
6118done
6119
6120
Austin English2d7ccb32009-06-13 18:01:24 -05006121for ac_header in mach-o/dyld_images.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006122do :
6123 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 -05006124 # include <stdbool.h>
6125 #endif
6126 #ifdef HAVE_STDINT_H
6127 # include <stdint.h>
6128 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006129"
6130if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
Austin English2d7ccb32009-06-13 18:01:24 -05006131 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006132#define HAVE_MACH_O_DYLD_IMAGES_H 1
Austin English2d7ccb32009-06-13 18:01:24 -05006133_ACEOF
6134
6135fi
6136
6137done
6138
6139
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006140for ac_header in resolv.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006141do :
6142 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 +01006143 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006144 # include <sys/socket.h>
6145 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006146 #ifdef HAVE_NETINET_IN_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006147 # include <netinet/in.h>
6148 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006149 #ifdef HAVE_ARPA_NAMESER_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006150 # include <arpa/nameser.h>
6151 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006152"
6153if test "x$ac_cv_header_resolv_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006154 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006155#define HAVE_RESOLV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006156_ACEOF
6157
6158fi
6159
6160done
6161
6162
Juan Lange3c0e302010-03-11 18:36:46 -08006163for ac_header in ifaddrs.h
6164do :
6165 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6166"
6167if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6168 cat >>confdefs.h <<_ACEOF
6169#define HAVE_IFADDRS_H 1
6170_ACEOF
6171
6172fi
6173
6174done
6175
6176
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006177for ac_header in ucontext.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006178do :
6179 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6180"
6181if test "x$ac_cv_header_ucontext_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006182 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006183#define HAVE_UCONTEXT_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006184_ACEOF
6185
6186fi
6187
6188done
6189
6190
Tijl Coosemans60833da2007-08-08 00:25:24 +02006191for ac_header in sys/thr.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006192do :
6193 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 +01006194#ifdef HAVE_UCONTEXT_H
Tijl Coosemans60833da2007-08-08 00:25:24 +02006195#include <ucontext.h>
6196#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006197"
6198if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
Tijl Coosemans60833da2007-08-08 00:25:24 +02006199 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006200#define HAVE_SYS_THR_H 1
Tijl Coosemans60833da2007-08-08 00:25:24 +02006201_ACEOF
6202
6203fi
6204
6205done
6206
6207
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006208for ac_header in pthread_np.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006209do :
6210 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 +02006211#include <pthread.h>
6212#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006213"
6214if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006215 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006216#define HAVE_PTHREAD_NP_H 1
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006217_ACEOF
6218
6219fi
6220
6221done
6222
6223
Francois Gougetfaf05df2006-08-07 21:52:36 +02006224for ac_header in linux/videodev.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006225do :
6226 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 +02006227#include <sys/time.h>
6228#endif
6229#include <sys/types.h>
6230#ifdef HAVE_ASM_TYPES_H
6231#include <asm/types.h>
6232#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006233"
6234if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006235 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006236#define HAVE_LINUX_VIDEODEV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006237_ACEOF
6238
6239fi
6240
6241done
6242
6243
Alexandre Julliardb079add2006-02-24 11:46:17 +01006244for ac_header in linux/capi.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006245do :
6246 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6247"
6248if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
Alexandre Julliardb079add2006-02-24 11:46:17 +01006249 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006250#define HAVE_LINUX_CAPI_H 1
Alexandre Julliardb079add2006-02-24 11:46:17 +01006251_ACEOF
6252
6253fi
6254
6255done
6256
6257
6258
Alexandre Julliarda3097622007-07-02 17:27:48 +02006259DLLEXT=""
6260
6261DLLFLAGS="-D_REENTRANT"
6262
6263LDSHARED=""
6264
6265LDDLLFLAGS=""
6266
6267LIBEXT="so"
6268
6269IMPLIBEXT="def"
6270
6271LDRPATH_INSTALL=""
6272
6273LDRPATH_LOCAL=""
6274
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006275STATIC_IMPLIBEXT="def.a"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006276# Extract the first word of "ldd", so it can be a program name with args.
6277set dummy ldd; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006279$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006280if test "${ac_cv_path_LDD+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006281 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006282else
6283 case $LDD in
6284 [\\/]* | ?:[\\/]*)
6285 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6286 ;;
6287 *)
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289as_dummy="/sbin:/usr/sbin:$PATH"
6290for as_dir in $as_dummy
6291do
6292 IFS=$as_save_IFS
6293 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006294 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6296 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006298 break 2
6299 fi
6300done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006301 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006302IFS=$as_save_IFS
6303
6304 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6305 ;;
6306esac
6307fi
6308LDD=$ac_cv_path_LDD
6309if test -n "$LDD"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006311$as_echo "$LDD" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006312else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006314$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006315fi
6316
6317
6318
6319case $host_os in
6320 cygwin*|mingw32*)
6321 if test -n "$ac_tool_prefix"; then
6322 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6323set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006325$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006326if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006327 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006328else
6329 if test -n "$DLLTOOL"; then
6330 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6331else
6332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6333for as_dir in $PATH
6334do
6335 IFS=$as_save_IFS
6336 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006337 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006341 break 2
6342 fi
6343done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006344 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006345IFS=$as_save_IFS
6346
6347fi
6348fi
6349DLLTOOL=$ac_cv_prog_DLLTOOL
6350if test -n "$DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006352$as_echo "$DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006353else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006355$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006356fi
6357
6358
6359fi
6360if test -z "$ac_cv_prog_DLLTOOL"; then
6361 ac_ct_DLLTOOL=$DLLTOOL
6362 # Extract the first word of "dlltool", so it can be a program name with args.
6363set dummy dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006364{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006365$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006366if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006367 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006368else
6369 if test -n "$ac_ct_DLLTOOL"; then
6370 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6371else
6372as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373for as_dir in $PATH
6374do
6375 IFS=$as_save_IFS
6376 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006377 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006378 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6379 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006381 break 2
6382 fi
6383done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006384 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006385IFS=$as_save_IFS
6386
6387fi
6388fi
6389ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6390if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006392$as_echo "$ac_ct_DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006393else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006395$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006396fi
6397
6398 if test "x$ac_ct_DLLTOOL" = x; then
6399 DLLTOOL="false"
6400 else
6401 case $cross_compiling:$ac_tool_warned in
6402yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006403{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006404$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006405ac_tool_warned=yes ;;
6406esac
6407 DLLTOOL=$ac_ct_DLLTOOL
6408 fi
6409else
6410 DLLTOOL="$ac_cv_prog_DLLTOOL"
6411fi
6412
6413 if test -n "$ac_tool_prefix"; then
6414 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6415set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006417$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006418if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006419 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006420else
6421 if test -n "$DLLWRAP"; then
6422 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6423else
6424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6425for as_dir in $PATH
6426do
6427 IFS=$as_save_IFS
6428 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006429 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6431 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006433 break 2
6434 fi
6435done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006436 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006437IFS=$as_save_IFS
6438
6439fi
6440fi
6441DLLWRAP=$ac_cv_prog_DLLWRAP
6442if test -n "$DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006444$as_echo "$DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006445else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006447$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006448fi
6449
6450
6451fi
6452if test -z "$ac_cv_prog_DLLWRAP"; then
6453 ac_ct_DLLWRAP=$DLLWRAP
6454 # Extract the first word of "dllwrap", so it can be a program name with args.
6455set dummy dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006457$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006458if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006459 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006460else
6461 if test -n "$ac_ct_DLLWRAP"; then
6462 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6463else
6464as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6465for as_dir in $PATH
6466do
6467 IFS=$as_save_IFS
6468 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006469 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6471 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006473 break 2
6474 fi
6475done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006476 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006477IFS=$as_save_IFS
6478
6479fi
6480fi
6481ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6482if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006484$as_echo "$ac_ct_DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006485else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006487$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006488fi
6489
6490 if test "x$ac_ct_DLLWRAP" = x; then
6491 DLLWRAP="false"
6492 else
6493 case $cross_compiling:$ac_tool_warned in
6494yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006495{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006496$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006497ac_tool_warned=yes ;;
6498esac
6499 DLLWRAP=$ac_ct_DLLWRAP
6500 fi
6501else
6502 DLLWRAP="$ac_cv_prog_DLLWRAP"
6503fi
6504
Alexandre Julliarda3097622007-07-02 17:27:48 +02006505 if test "$DLLWRAP" = "false"; then
6506 LIBEXT="a"
6507 else
6508 LIBEXT="dll"
6509 fi
6510 IMPLIBEXT="a"
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006511 STATIC_IMPLIBEXT="a"
Alexandre Julliardec1ebfb2008-09-04 12:29:07 +02006512 enable_iphlpapi=${enable_iphlpapi:-no}
6513 enable_kernel32=${enable_kernel32:-no}
6514 enable_msvcrt=${enable_msvcrt:-no}
6515 enable_ntdll=${enable_ntdll:-no}
6516 enable_ws2_32=${enable_ws2_32:-no}
6517 enable_loader=${enable_loader:-no}
6518 enable_server=${enable_server:-no}
Alexandre Julliard40664c02009-02-11 20:40:58 +01006519 with_x=${with_x:-no}
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01006520 with_pthread=${with_pthread:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006521 ;;
6522 darwin*|macosx*)
6523 DLLEXT=".so"
6524 LIBEXT="dylib"
6525 DLLFLAGS="$DLLFLAGS -fPIC"
6526 LDDLLFLAGS="-bundle -multiply_defined suppress"
6527 LIBWINE_LDFLAGS="-multiply_defined suppress"
6528 LDSHARED="\$(CC) -dynamiclib"
6529 STRIP="$STRIP -x"
6530 LDRPATH_LOCAL="&& install_name_tool -change @executable_path/\`\$(RELPATH) \$(bindir) \$(libdir)\`/libwine.1.dylib @executable_path/\$(TOPOBJDIR)/libs/wine/libwine.1.dylib \$@ || \$(RM) \$@"
Rob Shearman312a1db2007-11-26 22:57:35 +00006531 SECURITYLIB="-framework Security -framework CoreFoundation"
6532
6533 COREFOUNDATIONLIB="-framework CoreFoundation"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006534
6535 IOKITLIB="-framework IOKit -framework CoreFoundation"
6536
Alexandre Julliard691bdbd2009-06-23 20:51:37 +02006537 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006538
6539 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6540 then
6541 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6542
6543 fi
6544 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6545 then
6546 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6547
Aric Stewart4430ab42010-03-17 10:58:32 -05006548 ac_save_LIBS="$LIBS"
6549 if test "$ac_cv_header_AudioToolbox_AudioFile_h" = "yes"
6550 then
6551 LIBS="$LIBS $COREAUDIO"
6552 for ac_func in AudioFileStreamOpen
6553do :
6554 ac_fn_c_check_func "$LINENO" "AudioFileStreamOpen" "ac_cv_func_AudioFileStreamOpen"
6555if test "x$ac_cv_func_AudioFileStreamOpen" = x""yes; then :
6556 cat >>confdefs.h <<_ACEOF
6557#define HAVE_AUDIOFILESTREAMOPEN 1
6558_ACEOF
6559
6560fi
6561done
6562
6563 LIBS="$ac_save_LIBS"
6564 fi
6565 test "x$ac_cv_func_AudioFileStreamOpen" = xyes || as_fn_append wine_notices "|AudioToolbox version too old, mp3 codec won't be supported."
Alexandre Julliarda3097622007-07-02 17:27:48 +02006566 fi
Ken Thomases0b08f192009-09-09 22:23:35 -05006567 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6568 then
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006569 FRAMEWORK_OPENAL="-framework OpenAL"
Ken Thomases0b08f192009-09-09 22:23:35 -05006570
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006571
6572cat >>confdefs.h <<_ACEOF
6573#define HAVE_OPENAL 1
6574_ACEOF
6575
6576 ac_cv_lib_openal=yes
Ken Thomases0b08f192009-09-09 22:23:35 -05006577 fi
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006578 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6579 then
6580 ac_save_LIBS="$LIBS"
6581 LIBS="$LIBS $IOKITLIB"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006582 for ac_func in IOHIDManagerCreate
6583do :
6584 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6585if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006586 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006587#define HAVE_IOHIDMANAGERCREATE 1
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006588_ACEOF
6589
6590fi
6591done
6592
6593 LIBS="$ac_save_LIBS"
6594 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006595 case $host_cpu in
6596 *powerpc*)
6597 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6598 esac
6599 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 Julliard25e9e4f2009-08-10 14:27:28 +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 Julliard25e9e4f2009-08-10 14:27:28 +02006778 { $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 +01006779$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006780if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006781 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006782else
6783 ac_wine_try_cflags_saved=$CFLAGS
6784CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006786/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006787int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006788_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006789if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006790 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6791else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006792 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006793fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006794rm -f core conftest.err conftest.$ac_objext \
6795 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006796CFLAGS=$ac_wine_try_cflags_saved
6797fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006799$as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006800if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006801 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6802fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006803 rm -f conftest.map
6804
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006806$as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006807if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006808 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006809else
6810 ac_wine_try_cflags_saved=$CFLAGS
6811CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006812cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006813/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006814int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006815_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006816if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006817 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6818else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006819 ac_cv_cflags__fPIC__Wl___export_dynamic=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006820fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006821rm -f core conftest.err conftest.$ac_objext \
6822 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006823CFLAGS=$ac_wine_try_cflags_saved
6824fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006826$as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006827if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006828 LDEXECFLAGS="-Wl,--export-dynamic"
6829
6830fi
6831
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006832 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6833{ $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 +01006834$as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006835if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006836 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006837else
6838 ac_wine_try_cflags_saved=$CFLAGS
6839CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006841/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006842int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006843_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006844if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006845 eval "$as_ac_var=yes"
6846else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006847 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006848fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006849rm -f core conftest.err conftest.$ac_objext \
6850 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006851CFLAGS=$ac_wine_try_cflags_saved
6852fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006853eval ac_res=\$$as_ac_var
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006855$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006856if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006857 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6858 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6859else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006860 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6861{ $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 +01006862$as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006863if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006864 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006865else
6866 ac_wine_try_cflags_saved=$CFLAGS
6867CFLAGS="$CFLAGS -fPIC -Wl,-R,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006869/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006870int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006871_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006872if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006873 eval "$as_ac_var=yes"
6874else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006875 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006876fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006877rm -f core conftest.err conftest.$ac_objext \
6878 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006879CFLAGS=$ac_wine_try_cflags_saved
6880fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006881eval ac_res=\$$as_ac_var
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006883$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006884if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006885 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6886 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6887fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006888fi
6889
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006891$as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006892if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006893 $as_echo_n "(cached) " >&6
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006894else
6895 ac_wine_try_cflags_saved=$CFLAGS
6896CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006897cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006898/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006899int main(int argc, char **argv) { return 0; }
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006900_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006901if ac_fn_c_try_link "$LINENO"; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006902 ac_cv_cflags__Wl___enable_new_dtags=yes
6903else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006904 ac_cv_cflags__Wl___enable_new_dtags=no
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006905fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006906rm -f core conftest.err conftest.$ac_objext \
6907 conftest$ac_exeext conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006908CFLAGS=$ac_wine_try_cflags_saved
6909fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006911$as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006912if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006913 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6914fi
6915
Alexandre Julliarda3097622007-07-02 17:27:48 +02006916 case $host_cpu in
6917 *i[3456789]86* | x86_64)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006918 { $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 +01006919$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006920if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006921 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006922else
6923 ac_wine_try_cflags_saved=$CFLAGS
6924CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006926/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006927int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006928_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006929if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006930 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6931else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006932 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006933fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006934rm -f core conftest.err conftest.$ac_objext \
6935 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006936CFLAGS=$ac_wine_try_cflags_saved
6937fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006939$as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006940if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006941 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6942fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006943 ;;
6944 esac
6945
6946 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006948$as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006949if test "${ac_cv_c_dll_unixware+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006950 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006951else
6952 ac_wine_try_cflags_saved=$CFLAGS
6953CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6955/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006956void myfunc() {}
6957_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006958if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006959 ac_cv_c_dll_unixware="yes"
6960else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006961 ac_cv_c_dll_unixware="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006962fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006963rm -f core conftest.err conftest.$ac_objext \
6964 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006965CFLAGS=$ac_wine_try_cflags_saved
6966fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006968$as_echo "$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006969 if test "$ac_cv_c_dll_unixware" = "yes"
6970 then
6971 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6972 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6973
6974 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006976$as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006977if test "${ac_cv_c_dll_hpux+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006978 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006979else
6980 ac_wine_try_cflags_saved=$CFLAGS
6981CFLAGS="$CFLAGS -shared"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6983/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006984void myfunc() {}
6985_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006986if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006987 ac_cv_c_dll_hpux="yes"
6988else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006989 ac_cv_c_dll_hpux="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006990fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006991rm -f core conftest.err conftest.$ac_objext \
6992 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006993CFLAGS=$ac_wine_try_cflags_saved
6994fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006996$as_echo "$ac_cv_c_dll_hpux" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006997 if test "$ac_cv_c_dll_hpux" = "yes"
6998 then
6999 LIBEXT="sl"
7000 DLLEXT=".sl"
7001 LDDLLFLAGS="-shared -fPIC"
7002 LDSHARED="\$(CC) -shared"
7003 fi
7004 fi
7005 fi
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007006 ;;
7007esac
Alexandre Julliarda3097622007-07-02 17:27:48 +02007008
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007009enable_winequartz_drv=${enable_winequartz_drv:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02007010
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007011if test "$LIBEXT" = "a"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007012 as_fn_error "could not find a way to build shared libraries.
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007013It is currently not possible to build Wine without shared library
7014(.so) support to allow transparent switch between .so and .dll files.
7015If you are using Linux, you will need a newer binutils.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007016" "$LINENO" 5
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007017fi
7018
7019if test "$cross_compiling" = "no" -a "$LIBEXT" != "dll"
7020then
Alexandre Julliarda91fb212009-12-07 15:36:09 +01007021 case "$host_cpu" in
7022 i[3456789]86*)
7023 ac_prefix_list="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 " ;;
7024 x86_64)
7025 ac_prefix_list="x86_64-pc-mingw32-gcc x86_64-w64-mingw32-gcc " ;;
7026 *)
7027 ac_prefix_list="" ;;
7028esac
7029for ac_prog in $ac_prefix_list
Alexandre Julliarda3097622007-07-02 17:27:48 +02007030do
7031 # Extract the first word of "$ac_prog", so it can be a program name with args.
7032set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007034$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007035if test "${ac_cv_prog_CROSSCC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007036 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007037else
7038 if test -n "$CROSSCC"; then
7039 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7040else
7041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7042for as_dir in $PATH
7043do
7044 IFS=$as_save_IFS
7045 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007046 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02007047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7048 ac_cv_prog_CROSSCC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02007050 break 2
7051 fi
7052done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007053 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02007054IFS=$as_save_IFS
7055
7056fi
7057fi
7058CROSSCC=$ac_cv_prog_CROSSCC
7059if test -n "$CROSSCC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007061$as_echo "$CROSSCC" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007062else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007064$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007065fi
7066
7067
7068 test -n "$CROSSCC" && break
7069done
7070test -n "$CROSSCC" || CROSSCC="false"
7071
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007072 if test "$CROSSCC" != "false"
7073 then
7074 CROSSTEST="\$(CROSSTEST)"
7075
Alexandre Julliard72a95ff2009-06-22 14:50:51 +02007076 set x $CROSSCC
7077 shift
7078 target=""
7079 while test $# -ge 1
7080 do
7081 case "$1" in
7082 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7083 esac
7084 shift
7085 done
7086 if test -n "$target"
7087 then
Alexandre Julliard1f254212010-01-23 20:26:49 +01007088 CROSSTARGET="$target"
Alexandre Julliarda2d88ab2009-05-30 17:08:06 +02007089
Alexandre Julliard72a95ff2009-06-22 14:50:51 +02007090 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007091 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007092fi
7093
7094
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007095if test "$ac_cv_header_pthread_h" = "yes"
7096then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007098$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007099if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007100 $as_echo_n "(cached) " >&6
7101else
7102 ac_check_lib_save_LIBS=$LIBS
7103LIBS="-lpthread $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007104cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007105/* end confdefs.h. */
7106
7107/* Override any GCC internal prototype to avoid an error.
7108 Use char because int might match the return type of a GCC
7109 builtin and then its argument prototype would still apply. */
7110#ifdef __cplusplus
7111extern "C"
7112#endif
7113char pthread_create ();
7114int
7115main ()
7116{
7117return pthread_create ();
7118 ;
7119 return 0;
7120}
7121_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007122if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007123 ac_cv_lib_pthread_pthread_create=yes
7124else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007125 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007126fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007127rm -f core conftest.err conftest.$ac_objext \
7128 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007129LIBS=$ac_check_lib_save_LIBS
7130fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007132$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007133if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007134 LIBPTHREAD="-lpthread"
7135
7136fi
7137
7138fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007139if test "x$LIBPTHREAD" = "x"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007140 case "x$with_pthread" in
7141 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007142 *) as_fn_error "pthread ${notice_platform}development files not found.
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007143Wine cannot support threads without libpthread.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007144Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007145esac
7146fi
7147
7148
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007150$as_echo_n "checking for X... " >&6; }
7151
7152
7153# Check whether --with-x was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007154if test "${with_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007155 withval=$with_x;
7156fi
7157
7158# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7159if test "x$with_x" = xno; then
7160 # The user explicitly disabled X.
7161 have_x=disabled
7162else
7163 case $x_includes,$x_libraries in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007164 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7165 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007166 $as_echo_n "(cached) " >&6
7167else
7168 # One or both of the vars are not set, and there is no cached value.
7169ac_x_includes=no ac_x_libraries=no
7170rm -f -r conftest.dir
7171if mkdir conftest.dir; then
7172 cd conftest.dir
7173 cat >Imakefile <<'_ACEOF'
7174incroot:
7175 @echo incroot='${INCROOT}'
7176usrlibdir:
7177 @echo usrlibdir='${USRLIBDIR}'
7178libdir:
7179 @echo libdir='${LIBDIR}'
7180_ACEOF
7181 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7182 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7183 for ac_var in incroot usrlibdir libdir; do
7184 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7185 done
7186 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7187 for ac_extension in a so sl dylib la dll; do
7188 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7189 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7190 ac_im_usrlibdir=$ac_im_libdir; break
7191 fi
7192 done
7193 # Screen out bogus values from the imake configuration. They are
7194 # bogus both because they are the default anyway, and because
7195 # using them would break gcc on systems where it needs fixed includes.
7196 case $ac_im_incroot in
7197 /usr/include) ac_x_includes= ;;
7198 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7199 esac
7200 case $ac_im_usrlibdir in
7201 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7202 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7203 esac
7204 fi
7205 cd ..
7206 rm -f -r conftest.dir
7207fi
7208
7209# Standard set of common directories for X headers.
7210# Check X11 before X11Rn because it is often a symlink to the current release.
7211ac_x_header_dirs='
7212/usr/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007213/usr/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007214/usr/X11R6/include
7215/usr/X11R5/include
7216/usr/X11R4/include
7217
7218/usr/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007219/usr/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007220/usr/include/X11R6
7221/usr/include/X11R5
7222/usr/include/X11R4
7223
7224/usr/local/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007225/usr/local/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007226/usr/local/X11R6/include
7227/usr/local/X11R5/include
7228/usr/local/X11R4/include
7229
7230/usr/local/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007231/usr/local/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007232/usr/local/include/X11R6
7233/usr/local/include/X11R5
7234/usr/local/include/X11R4
7235
7236/usr/X386/include
7237/usr/x386/include
7238/usr/XFree86/include/X11
7239
7240/usr/include
7241/usr/local/include
7242/usr/unsupported/include
7243/usr/athena/include
7244/usr/local/x11r5/include
7245/usr/lpp/Xamples/include
7246
7247/usr/openwin/include
7248/usr/openwin/share/include'
7249
7250if test "$ac_x_includes" = no; then
7251 # Guess where to find include files, by looking for Xlib.h.
7252 # First, try using that file with no special directory specified.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007254/* end confdefs.h. */
7255#include <X11/Xlib.h>
7256_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007257if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007258 # We can compile using X headers with no special include directory.
7259ac_x_includes=
7260else
Alexandre Julliard40664c02009-02-11 20:40:58 +01007261 for ac_dir in $ac_x_header_dirs; do
7262 if test -r "$ac_dir/X11/Xlib.h"; then
7263 ac_x_includes=$ac_dir
7264 break
7265 fi
7266done
7267fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01007268rm -f conftest.err conftest.$ac_ext
7269fi # $ac_x_includes = no
7270
7271if test "$ac_x_libraries" = no; then
7272 # Check for the libraries.
7273 # See if we find them without any special options.
7274 # Don't add to $LIBS permanently.
7275 ac_save_LIBS=$LIBS
7276 LIBS="-lX11 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007278/* end confdefs.h. */
7279#include <X11/Xlib.h>
7280int
7281main ()
7282{
7283XrmInitialize ()
7284 ;
7285 return 0;
7286}
7287_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007288if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007289 LIBS=$ac_save_LIBS
7290# We can link X programs with no special library path.
7291ac_x_libraries=
7292else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007293 LIBS=$ac_save_LIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +01007294for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7295do
7296 # Don't even attempt the hair of trying to link an X program!
7297 for ac_extension in a so sl dylib la dll; do
7298 if test -r "$ac_dir/libX11.$ac_extension"; then
7299 ac_x_libraries=$ac_dir
7300 break 2
7301 fi
7302 done
7303done
7304fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007305rm -f core conftest.err conftest.$ac_objext \
7306 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007307fi # $ac_x_libraries = no
7308
7309case $ac_x_includes,$ac_x_libraries in #(
7310 no,* | *,no | *\'*)
7311 # Didn't find X, or a directory has "'" in its name.
7312 ac_cv_have_x="have_x=no";; #(
7313 *)
7314 # Record where we found X for the cache.
7315 ac_cv_have_x="have_x=yes\
7316 ac_x_includes='$ac_x_includes'\
7317 ac_x_libraries='$ac_x_libraries'"
7318esac
7319fi
7320;; #(
7321 *) have_x=yes;;
7322 esac
7323 eval "$ac_cv_have_x"
7324fi # $with_x != no
7325
7326if test "$have_x" != yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007328$as_echo "$have_x" >&6; }
7329 no_x=yes
7330else
7331 # If each of the values was on the command line, it overrides each guess.
7332 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7333 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7334 # Update the cache value to reflect the command line values.
7335 ac_cv_have_x="have_x=yes\
7336 ac_x_includes='$x_includes'\
7337 ac_x_libraries='$x_libraries'"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007339$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7340fi
7341
7342if test "$no_x" = yes; then
7343 # Not all programs may use this symbol, but it does not hurt to define it.
7344
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007345$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
Alexandre Julliard40664c02009-02-11 20:40:58 +01007346
7347 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7348else
7349 if test -n "$x_includes"; then
7350 X_CFLAGS="$X_CFLAGS -I$x_includes"
7351 fi
7352
7353 # It would also be nice to do this for all -L options, not just this one.
7354 if test -n "$x_libraries"; then
7355 X_LIBS="$X_LIBS -L$x_libraries"
7356 # For Solaris; some versions of Sun CC require a space after -R and
7357 # others require no space. Words are not sufficient . . . .
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007359$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7360 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7361 ac_xsave_c_werror_flag=$ac_c_werror_flag
7362 ac_c_werror_flag=yes
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007364/* end confdefs.h. */
7365
7366int
7367main ()
7368{
7369
7370 ;
7371 return 0;
7372}
7373_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007374if ac_fn_c_try_link "$LINENO"; then :
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007376$as_echo "no" >&6; }
7377 X_LIBS="$X_LIBS -R$x_libraries"
7378else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007379 LIBS="$ac_xsave_LIBS -R $x_libraries"
7380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007381/* end confdefs.h. */
7382
7383int
7384main ()
7385{
7386
7387 ;
7388 return 0;
7389}
7390_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007391if ac_fn_c_try_link "$LINENO"; then :
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007393$as_echo "yes" >&6; }
7394 X_LIBS="$X_LIBS -R $x_libraries"
7395else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007397$as_echo "neither works" >&6; }
7398fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007399rm -f core conftest.err conftest.$ac_objext \
7400 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007401fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007402rm -f core conftest.err conftest.$ac_objext \
7403 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007404 ac_c_werror_flag=$ac_xsave_c_werror_flag
7405 LIBS=$ac_xsave_LIBS
7406 fi
7407
7408 # Check for system-dependent libraries X programs must link with.
7409 # Do this before checking for the system-independent R6 libraries
7410 # (-lICE), since we may need -lsocket or whatever for X linking.
7411
7412 if test "$ISC" = yes; then
7413 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7414 else
7415 # Martyn Johnson says this is needed for Ultrix, if the X
7416 # libraries were built with DECnet support. And Karl Berry says
7417 # the Alpha needs dnet_stub (dnet does not exist).
7418 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007420/* end confdefs.h. */
7421
7422/* Override any GCC internal prototype to avoid an error.
7423 Use char because int might match the return type of a GCC
7424 builtin and then its argument prototype would still apply. */
7425#ifdef __cplusplus
7426extern "C"
7427#endif
7428char XOpenDisplay ();
7429int
7430main ()
7431{
7432return XOpenDisplay ();
7433 ;
7434 return 0;
7435}
7436_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007437if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007438
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007439else
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007441$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007442if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007443 $as_echo_n "(cached) " >&6
7444else
7445 ac_check_lib_save_LIBS=$LIBS
7446LIBS="-ldnet $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007448/* end confdefs.h. */
7449
7450/* Override any GCC internal prototype to avoid an error.
7451 Use char because int might match the return type of a GCC
7452 builtin and then its argument prototype would still apply. */
7453#ifdef __cplusplus
7454extern "C"
7455#endif
7456char dnet_ntoa ();
7457int
7458main ()
7459{
7460return dnet_ntoa ();
7461 ;
7462 return 0;
7463}
7464_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007465if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007466 ac_cv_lib_dnet_dnet_ntoa=yes
7467else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007468 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007469fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007470rm -f core conftest.err conftest.$ac_objext \
7471 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007472LIBS=$ac_check_lib_save_LIBS
7473fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007475$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007476if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007477 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7478fi
7479
7480 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007482$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007483if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007484 $as_echo_n "(cached) " >&6
7485else
7486 ac_check_lib_save_LIBS=$LIBS
7487LIBS="-ldnet_stub $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007489/* end confdefs.h. */
7490
7491/* Override any GCC internal prototype to avoid an error.
7492 Use char because int might match the return type of a GCC
7493 builtin and then its argument prototype would still apply. */
7494#ifdef __cplusplus
7495extern "C"
7496#endif
7497char dnet_ntoa ();
7498int
7499main ()
7500{
7501return dnet_ntoa ();
7502 ;
7503 return 0;
7504}
7505_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007506if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007507 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7508else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007509 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007510fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007511rm -f core conftest.err conftest.$ac_objext \
7512 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007513LIBS=$ac_check_lib_save_LIBS
7514fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007516$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007517if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007518 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7519fi
7520
7521 fi
7522fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007523rm -f core conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007525 LIBS="$ac_xsave_LIBS"
7526
7527 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7528 # to get the SysV transport functions.
7529 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7530 # needs -lnsl.
7531 # The nsl library prevents programs from opening the X display
7532 # on Irix 5.2, according to T.E. Dickey.
7533 # The functions gethostbyname, getservbyname, and inet_addr are
7534 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007535 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7536if test "x$ac_cv_func_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007537
Alexandre Julliard40664c02009-02-11 20:40:58 +01007538fi
7539
Alexandre Julliard40664c02009-02-11 20:40:58 +01007540 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007542$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007543if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007544 $as_echo_n "(cached) " >&6
7545else
7546 ac_check_lib_save_LIBS=$LIBS
7547LIBS="-lnsl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007548cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007549/* end confdefs.h. */
7550
7551/* Override any GCC internal prototype to avoid an error.
7552 Use char because int might match the return type of a GCC
7553 builtin and then its argument prototype would still apply. */
7554#ifdef __cplusplus
7555extern "C"
7556#endif
7557char gethostbyname ();
7558int
7559main ()
7560{
7561return gethostbyname ();
7562 ;
7563 return 0;
7564}
7565_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007566if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007567 ac_cv_lib_nsl_gethostbyname=yes
7568else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007569 ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007570fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007571rm -f core conftest.err conftest.$ac_objext \
7572 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007573LIBS=$ac_check_lib_save_LIBS
7574fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007576$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007577if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007578 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7579fi
7580
7581 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007583$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007584if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007585 $as_echo_n "(cached) " >&6
7586else
7587 ac_check_lib_save_LIBS=$LIBS
7588LIBS="-lbsd $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007589cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007590/* end confdefs.h. */
7591
7592/* Override any GCC internal prototype to avoid an error.
7593 Use char because int might match the return type of a GCC
7594 builtin and then its argument prototype would still apply. */
7595#ifdef __cplusplus
7596extern "C"
7597#endif
7598char gethostbyname ();
7599int
7600main ()
7601{
7602return gethostbyname ();
7603 ;
7604 return 0;
7605}
7606_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007607if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007608 ac_cv_lib_bsd_gethostbyname=yes
7609else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007610 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007611fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007612rm -f core conftest.err conftest.$ac_objext \
7613 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007614LIBS=$ac_check_lib_save_LIBS
7615fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007617$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007618if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007619 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7620fi
7621
7622 fi
7623 fi
7624
7625 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7626 # socket/setsockopt and other routines are undefined under SCO ODT
7627 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7628 # on later versions), says Simon Leinen: it contains gethostby*
7629 # variants that don't use the name server (or something). -lsocket
7630 # must be given before -lnsl if both are needed. We assume that
7631 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007632 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7633if test "x$ac_cv_func_connect" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007634
Alexandre Julliard40664c02009-02-11 20:40:58 +01007635fi
7636
Alexandre Julliard40664c02009-02-11 20:40:58 +01007637 if test $ac_cv_func_connect = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007639$as_echo_n "checking for connect in -lsocket... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007640if test "${ac_cv_lib_socket_connect+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007641 $as_echo_n "(cached) " >&6
7642else
7643 ac_check_lib_save_LIBS=$LIBS
7644LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007645cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007646/* end confdefs.h. */
7647
7648/* Override any GCC internal prototype to avoid an error.
7649 Use char because int might match the return type of a GCC
7650 builtin and then its argument prototype would still apply. */
7651#ifdef __cplusplus
7652extern "C"
7653#endif
7654char connect ();
7655int
7656main ()
7657{
7658return connect ();
7659 ;
7660 return 0;
7661}
7662_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007663if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007664 ac_cv_lib_socket_connect=yes
7665else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007666 ac_cv_lib_socket_connect=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007667fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007668rm -f core conftest.err conftest.$ac_objext \
7669 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007670LIBS=$ac_check_lib_save_LIBS
7671fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007673$as_echo "$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007674if test "x$ac_cv_lib_socket_connect" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007675 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7676fi
7677
7678 fi
7679
7680 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007681 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7682if test "x$ac_cv_func_remove" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007683
Alexandre Julliard40664c02009-02-11 20:40:58 +01007684fi
7685
Alexandre Julliard40664c02009-02-11 20:40:58 +01007686 if test $ac_cv_func_remove = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007688$as_echo_n "checking for remove in -lposix... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007689if test "${ac_cv_lib_posix_remove+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007690 $as_echo_n "(cached) " >&6
7691else
7692 ac_check_lib_save_LIBS=$LIBS
7693LIBS="-lposix $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007695/* end confdefs.h. */
7696
7697/* Override any GCC internal prototype to avoid an error.
7698 Use char because int might match the return type of a GCC
7699 builtin and then its argument prototype would still apply. */
7700#ifdef __cplusplus
7701extern "C"
7702#endif
7703char remove ();
7704int
7705main ()
7706{
7707return remove ();
7708 ;
7709 return 0;
7710}
7711_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007712if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007713 ac_cv_lib_posix_remove=yes
7714else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007715 ac_cv_lib_posix_remove=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007716fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007717rm -f core conftest.err conftest.$ac_objext \
7718 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007719LIBS=$ac_check_lib_save_LIBS
7720fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007722$as_echo "$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007723if test "x$ac_cv_lib_posix_remove" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007724 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7725fi
7726
7727 fi
7728
7729 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007730 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7731if test "x$ac_cv_func_shmat" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007732
Alexandre Julliard40664c02009-02-11 20:40:58 +01007733fi
7734
Alexandre Julliard40664c02009-02-11 20:40:58 +01007735 if test $ac_cv_func_shmat = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007737$as_echo_n "checking for shmat in -lipc... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007738if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007739 $as_echo_n "(cached) " >&6
7740else
7741 ac_check_lib_save_LIBS=$LIBS
7742LIBS="-lipc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007744/* end confdefs.h. */
7745
7746/* Override any GCC internal prototype to avoid an error.
7747 Use char because int might match the return type of a GCC
7748 builtin and then its argument prototype would still apply. */
7749#ifdef __cplusplus
7750extern "C"
7751#endif
7752char shmat ();
7753int
7754main ()
7755{
7756return shmat ();
7757 ;
7758 return 0;
7759}
7760_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007761if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007762 ac_cv_lib_ipc_shmat=yes
7763else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007764 ac_cv_lib_ipc_shmat=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007765fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007766rm -f core conftest.err conftest.$ac_objext \
7767 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007768LIBS=$ac_check_lib_save_LIBS
7769fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007771$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007772if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007773 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7774fi
7775
7776 fi
7777 fi
7778
7779 # Check for libraries that X11R6 Xt/Xaw programs need.
7780 ac_save_LDFLAGS=$LDFLAGS
7781 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7782 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7783 # check for ICE first), but we must link in the order -lSM -lICE or
7784 # we get undefined symbols. So assume we have SM if we have ICE.
7785 # These have to be linked with before -lX11, unlike the other
7786 # libraries we check for below, so use a different variable.
7787 # John Interrante, Karl Berry
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007789$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007790if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007791 $as_echo_n "(cached) " >&6
7792else
7793 ac_check_lib_save_LIBS=$LIBS
7794LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007796/* end confdefs.h. */
7797
7798/* Override any GCC internal prototype to avoid an error.
7799 Use char because int might match the return type of a GCC
7800 builtin and then its argument prototype would still apply. */
7801#ifdef __cplusplus
7802extern "C"
7803#endif
7804char IceConnectionNumber ();
7805int
7806main ()
7807{
7808return IceConnectionNumber ();
7809 ;
7810 return 0;
7811}
7812_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007813if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007814 ac_cv_lib_ICE_IceConnectionNumber=yes
7815else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007816 ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007817fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007818rm -f core conftest.err conftest.$ac_objext \
7819 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007820LIBS=$ac_check_lib_save_LIBS
7821fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007823$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007824if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007825 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7826fi
7827
7828 LDFLAGS=$ac_save_LDFLAGS
7829
7830fi
7831
7832
Rein Klazes7ff12562004-11-09 20:16:35 +00007833if test "$have_x" = "yes"
7834then
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007835 XLIB="-lX11"
Rein Klazes7ff12562004-11-09 20:16:35 +00007836 ac_save_CPPFLAGS="$CPPFLAGS"
7837 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7838
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007840$as_echo_n "checking for -lX11... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007841if test "${ac_cv_lib_soname_X11+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007842 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007843else
7844 ac_check_soname_save_LIBS=$LIBS
7845LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007847/* end confdefs.h. */
7848
7849/* Override any GCC internal prototype to avoid an error.
7850 Use char because int might match the return type of a GCC
7851 builtin and then its argument prototype would still apply. */
7852#ifdef __cplusplus
7853extern "C"
7854#endif
7855char XCreateWindow ();
7856int
7857main ()
7858{
7859return XCreateWindow ();
7860 ;
7861 return 0;
7862}
7863_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007864if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007865 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007866 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 +02007867 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'` ;;
7868 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7869 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007870fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007871rm -f core conftest.err conftest.$ac_objext \
7872 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007873 LIBS=$ac_check_soname_save_LIBS
7874fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007875if test "x$ac_cv_lib_soname_X11" = "x"; then :
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007877$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007878
7879else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007881$as_echo "$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007882
7883cat >>confdefs.h <<_ACEOF
7884#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7885_ACEOF
7886
7887
7888fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007890$as_echo_n "checking for -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007891if test "${ac_cv_lib_soname_Xext+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007892 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007893else
7894 ac_check_soname_save_LIBS=$LIBS
7895LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007897/* end confdefs.h. */
7898
7899/* Override any GCC internal prototype to avoid an error.
7900 Use char because int might match the return type of a GCC
7901 builtin and then its argument prototype would still apply. */
7902#ifdef __cplusplus
7903extern "C"
7904#endif
7905char XextCreateExtension ();
7906int
7907main ()
7908{
7909return XextCreateExtension ();
7910 ;
7911 return 0;
7912}
7913_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007914if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007915 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007916 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 +02007917 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'` ;;
7918 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7919 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007920fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007921rm -f core conftest.err conftest.$ac_objext \
7922 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007923 LIBS=$ac_check_soname_save_LIBS
7924fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007925if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007927$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007928
7929else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007931$as_echo "$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007932
7933cat >>confdefs.h <<_ACEOF
7934#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7935_ACEOF
7936
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007937 XLIB="-lXext $XLIB"
Alexandre Julliarda8518542007-07-09 22:43:45 +02007938fi
7939
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007940 for ac_header in X11/Xlib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007941 X11/XKBlib.h \
7942 X11/Xutil.h \
Andrew Riedi23e2cb12007-03-22 12:06:19 -07007943 X11/Xcursor/Xcursor.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007944 X11/extensions/shape.h \
7945 X11/extensions/XInput.h \
7946 X11/extensions/XShm.h \
Chris Robinson42584652007-09-22 18:19:08 -07007947 X11/extensions/Xcomposite.h \
Alexandre Julliard7d00b052006-10-23 13:46:34 +02007948 X11/extensions/Xinerama.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007949 X11/extensions/Xrandr.h \
7950 X11/extensions/Xrender.h \
André Hentschel7b285a42009-09-19 19:08:09 +02007951 X11/extensions/xf86vmode.h \
7952 X11/extensions/xf86vmproto.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007953do :
7954 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7955ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
Alexandre Julliard73482142005-08-03 19:21:04 +00007956# include <X11/Xlib.h>
7957#endif
7958#ifdef HAVE_X11_XUTIL_H
7959# include <X11/Xutil.h>
7960#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007961"
7962eval as_val=\$$as_ac_Header
7963 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007964 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01007965#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007966_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00007967
7968fi
7969
7970done
7971
7972
7973 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7974 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007976$as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007977if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007978 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007979else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007980 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007981LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007983/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007984
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007985/* Override any GCC internal prototype to avoid an error.
7986 Use char because int might match the return type of a GCC
7987 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007988#ifdef __cplusplus
7989extern "C"
7990#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007991char XkbQueryExtension ();
7992int
7993main ()
7994{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007995return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007996 ;
7997 return 0;
7998}
7999_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008000if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008001 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008002else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008003 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008004fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008005rm -f core conftest.err conftest.$ac_objext \
8006 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008007LIBS=$ac_check_lib_save_LIBS
8008fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008010$as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008011if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
Patrik Stridvall24110281999-02-04 10:09:54 +00008012
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008013$as_echo "#define HAVE_XKB 1" >>confdefs.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008014
Patrik Stridvall24110281999-02-04 10:09:54 +00008015fi
8016
Alexandre Julliard255b4862003-10-15 04:09:55 +00008017 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008018
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008019 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8020 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008022$as_echo_n "checking for -lXcursor... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008023if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008024 $as_echo_n "(cached) " >&6
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008025else
8026 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008027LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008029/* end confdefs.h. */
8030
8031/* Override any GCC internal prototype to avoid an error.
8032 Use char because int might match the return type of a GCC
8033 builtin and then its argument prototype would still apply. */
8034#ifdef __cplusplus
8035extern "C"
8036#endif
8037char XcursorImageLoadCursor ();
8038int
8039main ()
8040{
8041return XcursorImageLoadCursor ();
8042 ;
8043 return 0;
8044}
8045_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008046if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008047 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008048 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 +02008049 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'` ;;
8050 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8051 esac
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008052fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008053rm -f core conftest.err conftest.$ac_objext \
8054 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008055 LIBS=$ac_check_soname_save_LIBS
8056fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008057if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008059$as_echo "not found" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008060
8061else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008063$as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008064
8065cat >>confdefs.h <<_ACEOF
8066#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8067_ACEOF
8068
8069
8070fi
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008071 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008072 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008073 case "x$with_xcursor" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008074 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 +01008075 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008076 *) as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8077This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008078esac
8079fi
8080
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008081 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8082 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008084$as_echo_n "checking for -lXi... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008085if test "${ac_cv_lib_soname_Xi+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008086 $as_echo_n "(cached) " >&6
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008087else
8088 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008089LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008091/* end confdefs.h. */
8092
8093/* Override any GCC internal prototype to avoid an error.
8094 Use char because int might match the return type of a GCC
8095 builtin and then its argument prototype would still apply. */
8096#ifdef __cplusplus
8097extern "C"
8098#endif
8099char XOpenDevice ();
8100int
8101main ()
8102{
8103return XOpenDevice ();
8104 ;
8105 return 0;
8106}
8107_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008108if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008109 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008110 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 +02008111 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'` ;;
8112 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8113 esac
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008114fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008115rm -f core conftest.err conftest.$ac_objext \
8116 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008117 LIBS=$ac_check_soname_save_LIBS
8118fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008119if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008121$as_echo "not found" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008122
8123else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008125$as_echo "$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008126
8127cat >>confdefs.h <<_ACEOF
8128#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8129_ACEOF
8130
8131
8132fi
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008133 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008134 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008135 case "x$with_xinput" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008136 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 +01008137 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008138 *) as_fn_error "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8139This is an error since --with-xinput was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008140esac
8141fi
8142
Alexandre Julliard255b4862003-10-15 04:09:55 +00008143 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8144 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008146$as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008147if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008148 $as_echo_n "(cached) " >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00008149else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008150 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008151LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008152cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008153/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008154
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008155/* Override any GCC internal prototype to avoid an error.
8156 Use char because int might match the return type of a GCC
8157 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008158#ifdef __cplusplus
8159extern "C"
8160#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008161char XShmQueryExtension ();
8162int
8163main ()
8164{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008165return XShmQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008166 ;
8167 return 0;
8168}
8169_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008170if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008171 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00008172else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008173 ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00008174fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008175rm -f core conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008177LIBS=$ac_check_lib_save_LIBS
8178fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008180$as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008181if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
Francois Jacques5b6879c2000-07-28 23:04:54 +00008182
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008183$as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00008184
Francois Jacques5b6879c2000-07-28 23:04:54 +00008185fi
8186
Alexandre Julliard255b4862003-10-15 04:09:55 +00008187 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008188 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008189 case "x$with_xshm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008190 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 +01008191 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008192 *) as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8193This is an error since --with-xshm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008194esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008195fi
8196
Alexandre Julliard255b4862003-10-15 04:09:55 +00008197 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8198 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008200$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008201if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008202 $as_echo_n "(cached) " >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00008203else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008204 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008205LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008207/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008208
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008209/* Override any GCC internal prototype to avoid an error.
8210 Use char because int might match the return type of a GCC
8211 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008212#ifdef __cplusplus
8213extern "C"
8214#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008215char XShapeQueryExtension ();
8216int
8217main ()
8218{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008219return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008220 ;
8221 return 0;
8222}
8223_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008224if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008225 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00008226else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008227 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00008228fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008229rm -f core conftest.err conftest.$ac_objext \
8230 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008231LIBS=$ac_check_lib_save_LIBS
8232fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008234$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008235if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
Ove Kaavenc90fb252001-01-02 22:39:14 +00008236
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008237$as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00008238
Ove Kaavenc90fb252001-01-02 22:39:14 +00008239fi
8240
Alexandre Julliard255b4862003-10-15 04:09:55 +00008241 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008242 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008243 case "x$with_xshape" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008244 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 +01008245 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008246 *) as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
8247This is an error since --with-xshape was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008248esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008249fi
8250
André Hentschel7b285a42009-09-19 19:08:09 +02008251 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 +00008252 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008254$as_echo_n "checking for -lXxf86vm... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008255if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008256 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008257else
Francois Gougeta49beb42008-06-26 14:02:17 +02008258 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008259LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008261/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008262
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008263/* Override any GCC internal prototype to avoid an error.
8264 Use char because int might match the return type of a GCC
8265 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008266#ifdef __cplusplus
8267extern "C"
8268#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008269char XF86VidModeQueryExtension ();
8270int
8271main ()
8272{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008273return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008274 ;
8275 return 0;
8276}
8277_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008278if ac_fn_c_try_link "$LINENO"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008279 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008280 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 +02008281 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'` ;;
8282 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8283 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008284fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008285rm -f core conftest.err conftest.$ac_objext \
8286 conftest$ac_exeext conftest.$ac_ext
Francois Gougeta49beb42008-06-26 14:02:17 +02008287 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008288fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008289if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008291$as_echo "not found" >&6; }
Patrik Stridvall24110281999-02-04 10:09:54 +00008292
Francois Gougeta49beb42008-06-26 14:02:17 +02008293else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008295$as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
Francois Gougeta49beb42008-06-26 14:02:17 +02008296
8297cat >>confdefs.h <<_ACEOF
8298#define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008299_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008300
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008301
Patrik Stridvall24110281999-02-04 10:09:54 +00008302fi
Alexandre Julliard255b4862003-10-15 04:09:55 +00008303 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008304 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008305 case "x$with_xxf86vm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008306 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 +01008307 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008308 *) as_fn_error "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8309This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008310esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008311fi
8312
Alexandre Julliarda8518542007-07-09 22:43:45 +02008313 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 +02008314 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008316$as_echo_n "checking for -lXrender... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008317if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008318 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008319else
8320 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008321LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008323/* end confdefs.h. */
8324
8325/* Override any GCC internal prototype to avoid an error.
8326 Use char because int might match the return type of a GCC
8327 builtin and then its argument prototype would still apply. */
8328#ifdef __cplusplus
8329extern "C"
8330#endif
8331char XRenderQueryExtension ();
8332int
8333main ()
8334{
8335return XRenderQueryExtension ();
8336 ;
8337 return 0;
8338}
8339_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008340if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008341 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008342 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 +02008343 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'` ;;
8344 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8345 esac
Alexandre Julliard629639e2007-07-04 12:47:57 +02008346fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008347rm -f core conftest.err conftest.$ac_objext \
8348 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008349 LIBS=$ac_check_soname_save_LIBS
8350fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008351if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008353$as_echo "not found" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008354
8355else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008357$as_echo "$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008358
8359cat >>confdefs.h <<_ACEOF
8360#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8361_ACEOF
8362
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008364$as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008365if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008366 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008367else
8368 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008369LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008371/* end confdefs.h. */
8372
8373/* Override any GCC internal prototype to avoid an error.
8374 Use char because int might match the return type of a GCC
8375 builtin and then its argument prototype would still apply. */
8376#ifdef __cplusplus
8377extern "C"
8378#endif
8379char XRenderSetPictureTransform ();
8380int
8381main ()
8382{
8383return XRenderSetPictureTransform ();
8384 ;
8385 return 0;
8386}
8387_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008388if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008389 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8390else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008391 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Alexandre Julliard629639e2007-07-04 12:47:57 +02008392fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008393rm -f core conftest.err conftest.$ac_objext \
8394 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008395LIBS=$ac_check_lib_save_LIBS
8396fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008398$as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008399if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008400
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008401$as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
Alexandre Julliard629639e2007-07-04 12:47:57 +02008402
8403fi
8404
8405fi
8406
Alexandre Julliard629639e2007-07-04 12:47:57 +02008407 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008408 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008409 case "x$with_xrender" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008410 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 +01008411 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008412 *) as_fn_error "libxrender ${notice_platform}development files not found, XRender won't be supported.
8413This is an error since --with-xrender was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008414esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008415fi
8416
Alexandre Julliard629639e2007-07-04 12:47:57 +02008417 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 +00008418 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008420/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008421#include <X11/Xlib.h>
8422#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008423int
8424main ()
8425{
Mike McCormackc7c9f932004-04-07 03:57:35 +00008426static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008427 ;
8428 return 0;
8429}
8430_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008431if ac_fn_c_try_compile "$LINENO"; then :
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008433$as_echo_n "checking for -lXrandr... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008434if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008435 $as_echo_n "(cached) " >&6
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008436else
8437 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008438LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008440/* end confdefs.h. */
8441
8442/* Override any GCC internal prototype to avoid an error.
8443 Use char because int might match the return type of a GCC
8444 builtin and then its argument prototype would still apply. */
8445#ifdef __cplusplus
8446extern "C"
8447#endif
8448char XRRQueryExtension ();
8449int
8450main ()
8451{
8452return XRRQueryExtension ();
8453 ;
8454 return 0;
8455}
8456_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008457if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008458 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008459 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 +02008460 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'` ;;
8461 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8462 esac
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008463fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008464rm -f core conftest.err conftest.$ac_objext \
8465 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008466 LIBS=$ac_check_soname_save_LIBS
8467fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008468if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008470$as_echo "not found" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008471
8472else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008474$as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008475
8476cat >>confdefs.h <<_ACEOF
8477#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8478_ACEOF
8479
8480
8481fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008482fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00008484 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008485 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008486 case "x$with_xrandr" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008487 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 +01008488 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008489 *) as_fn_error "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8490This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008491esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008492fi
8493
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008494 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8495 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008497/* end confdefs.h. */
8498#include <X11/Xlib.h>
8499#include <X11/extensions/Xinerama.h>
8500int
8501main ()
8502{
8503static typeof(XineramaQueryScreens) * func;
8504 ;
8505 return 0;
8506}
8507_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008508if ac_fn_c_try_compile "$LINENO"; then :
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008510$as_echo_n "checking for -lXinerama... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008511if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008512 $as_echo_n "(cached) " >&6
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008513else
8514 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008515LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008517/* end confdefs.h. */
8518
8519/* Override any GCC internal prototype to avoid an error.
8520 Use char because int might match the return type of a GCC
8521 builtin and then its argument prototype would still apply. */
8522#ifdef __cplusplus
8523extern "C"
8524#endif
8525char XineramaQueryScreens ();
8526int
8527main ()
8528{
8529return XineramaQueryScreens ();
8530 ;
8531 return 0;
8532}
8533_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008534if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008535 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008536 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 +02008537 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'` ;;
8538 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8539 esac
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008540fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008541rm -f core conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008543 LIBS=$ac_check_soname_save_LIBS
8544fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008545if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008547$as_echo "not found" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008548
8549else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008551$as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008552
8553cat >>confdefs.h <<_ACEOF
8554#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8555_ACEOF
8556
8557
8558fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008559fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008560rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8561 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008562 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008563 case "x$with_xinerama" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008564 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 +01008565 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008566 *) as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8567This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008568esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008569fi
8570
Chris Robinson42584652007-09-22 18:19:08 -07008571 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8572 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008574$as_echo_n "checking for -lXcomposite... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008575if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008576 $as_echo_n "(cached) " >&6
Chris Robinson42584652007-09-22 18:19:08 -07008577else
8578 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008579LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008581/* end confdefs.h. */
8582
8583/* Override any GCC internal prototype to avoid an error.
8584 Use char because int might match the return type of a GCC
8585 builtin and then its argument prototype would still apply. */
8586#ifdef __cplusplus
8587extern "C"
8588#endif
8589char XCompositeRedirectWindow ();
8590int
8591main ()
8592{
8593return XCompositeRedirectWindow ();
8594 ;
8595 return 0;
8596}
8597_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008598if ac_fn_c_try_link "$LINENO"; then :
Chris Robinson42584652007-09-22 18:19:08 -07008599 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008600 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 -07008601 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'` ;;
8602 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8603 esac
Chris Robinson42584652007-09-22 18:19:08 -07008604fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008605rm -f core conftest.err conftest.$ac_objext \
8606 conftest$ac_exeext conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008607 LIBS=$ac_check_soname_save_LIBS
8608fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008609if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008611$as_echo "not found" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008612
8613else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008615$as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008616
8617cat >>confdefs.h <<_ACEOF
8618#define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8619_ACEOF
8620
8621
8622fi
Chris Robinson42584652007-09-22 18:19:08 -07008623 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008624 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008625 case "x$with_xcomposite" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008626 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 +01008627 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008628 *) as_fn_error "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8629This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008630esac
Chris Robinson42584652007-09-22 18:19:08 -07008631fi
8632
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008633 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 +09008634#include <X11/Xlib.h>
8635#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008636"
8637if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008638
8639cat >>confdefs.h <<_ACEOF
8640#define HAVE_XICCALLBACK_CALLBACK 1
8641_ACEOF
8642
8643
8644fi
8645
8646
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008647
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008648 opengl_msg=""
8649 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008650 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008651 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8652do :
8653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8654ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
Alexandre Julliard73482142005-08-03 19:21:04 +00008655# include <GL/glx.h>
8656#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008657"
8658eval as_val=\$$as_ac_Header
8659 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008660 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01008661#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008662_ACEOF
8663
8664fi
8665
8666done
8667
Alexandre Julliard73482142005-08-03 19:21:04 +00008668 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8669 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008671$as_echo_n "checking for up-to-date OpenGL version... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008672if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008673 $as_echo_n "(cached) " >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008674else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008676/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008677#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008678int
8679main ()
8680{
Lionel Ulmer5c085701999-02-28 19:48:53 +00008681GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008682 ;
8683 return 0;
8684}
8685_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008686if ac_fn_c_try_compile "$LINENO"; then :
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008687 wine_cv_opengl_header_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008688else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008689 wine_cv_opengl_header_version_OK="no"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008690fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008692fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008694$as_echo "$wine_cv_opengl_header_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008695
Alexandre Julliardcc6a08c2006-08-24 14:34:22 +02008696 if test "$wine_cv_opengl_header_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008697 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008699$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008700if test "${ac_cv_lib_soname_GL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008701 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008702else
Alexandre Julliard31353e12007-07-04 12:44:12 +02008703 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008704LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008706/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008707
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008708/* Override any GCC internal prototype to avoid an error.
8709 Use char because int might match the return type of a GCC
8710 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008711#ifdef __cplusplus
8712extern "C"
8713#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008714char glXCreateContext ();
8715int
8716main ()
8717{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008718return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008719 ;
8720 return 0;
8721}
8722_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008723if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard31353e12007-07-04 12:44:12 +02008724 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008725 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 +02008726 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'` ;;
8727 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8728 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008729fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008730rm -f core conftest.err conftest.$ac_objext \
8731 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard31353e12007-07-04 12:44:12 +02008732 LIBS=$ac_check_soname_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008733fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008734if test "x$ac_cv_lib_soname_GL" = "x"; then :
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008736$as_echo "not found" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008738$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008739if test "${ac_cv_lib_soname_GL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008740 $as_echo_n "(cached) " >&6
Francois Gougetd701ee22007-12-18 10:17:20 +01008741else
8742 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008743LIBS="-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 +02008744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008745/* end confdefs.h. */
8746
8747/* Override any GCC internal prototype to avoid an error.
8748 Use char because int might match the return type of a GCC
8749 builtin and then its argument prototype would still apply. */
8750#ifdef __cplusplus
8751extern "C"
8752#endif
8753char glXCreateContext ();
8754int
8755main ()
8756{
8757return glXCreateContext ();
8758 ;
8759 return 0;
8760}
8761_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008762if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetd701ee22007-12-18 10:17:20 +01008763 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008764 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 +01008765 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'` ;;
8766 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8767 esac
Francois Gougetd701ee22007-12-18 10:17:20 +01008768fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008769rm -f core conftest.err conftest.$ac_objext \
8770 conftest$ac_exeext conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008771 LIBS=$ac_check_soname_save_LIBS
8772fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008773if test "x$ac_cv_lib_soname_GL" = "x"; then :
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008775$as_echo "not found" >&6; }
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008776 if test -f /usr/X11R6/lib/libGL.a
Francois Gougetd701ee22007-12-18 10:17:20 +01008777 then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008778 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008779This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
Francois Gougetd701ee22007-12-18 10:17:20 +01008780 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008781 opengl_msg="No OpenGL library found on this system."
Francois Gougetd701ee22007-12-18 10:17:20 +01008782 fi
8783else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008785$as_echo "$ac_cv_lib_soname_GL" >&6; }
Francois Gougetd701ee22007-12-18 10:17:20 +01008786
8787cat >>confdefs.h <<_ACEOF
8788#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8789_ACEOF
8790
8791 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 +01008792
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008793$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Francois Gougetd701ee22007-12-18 10:17:20 +01008794
8795fi
Alexandre Julliard31353e12007-07-04 12:44:12 +02008796else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008798$as_echo "$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard31353e12007-07-04 12:44:12 +02008799
8800cat >>confdefs.h <<_ACEOF
8801#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8802_ACEOF
8803
8804 OPENGL_LIBS="-lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008805
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008806$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008807
Alexandre Julliardc84c4782006-09-22 09:36:12 +02008808fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008809 if test "$ac_cv_header_GL_glu_h" = "yes"
8810 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008812$as_echo_n "checking for -lGLU... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008813if test "${ac_cv_lib_soname_GLU+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008814 $as_echo_n "(cached) " >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008815else
Alexandre Julliardad798732008-05-01 13:29:02 +02008816 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008817LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008819/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008820
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008821/* Override any GCC internal prototype to avoid an error.
8822 Use char because int might match the return type of a GCC
8823 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008824#ifdef __cplusplus
8825extern "C"
8826#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008827char gluLookAt ();
8828int
8829main ()
8830{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008831return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008832 ;
8833 return 0;
8834}
8835_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008836if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008837 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008838 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 +02008839 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'` ;;
8840 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8841 esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008842fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008843rm -f core conftest.err conftest.$ac_objext \
8844 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardad798732008-05-01 13:29:02 +02008845 LIBS=$ac_check_soname_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008846fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008847if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008849$as_echo "not found" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008850
Alexandre Julliardad798732008-05-01 13:29:02 +02008851else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008853$as_echo "$ac_cv_lib_soname_GLU" >&6; }
Alexandre Julliardad798732008-05-01 13:29:02 +02008854
8855cat >>confdefs.h <<_ACEOF
8856#define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8857_ACEOF
8858
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02008859
Alexandre Julliardad798732008-05-01 13:29:02 +02008860fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008861 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008862 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008863 case "x$with_glu" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008864 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 +02008865 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008866 *) as_fn_error "libGLU ${notice_platform}development files not found, GLU won't be supported.
8867This is an error since --with-glu was requested." "$LINENO" 5 ;;
Alexandre Julliardad798732008-05-01 13:29:02 +02008868esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008869fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008870 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008871 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008872 fi
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008873 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008874 opengl_msg="OpenGL development headers not found."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008875 fi
Alexandre Julliard8e9504d2008-09-24 13:11:11 +02008876 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8877 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8878 else
8879 enable_opengl32=${enable_opengl32:-no}
8880 enable_glu32=${enable_glu32:-no}
Patrik Stridvall24110281999-02-04 10:09:54 +00008881 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008882 if test -n "$opengl_msg"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008883 case "x$with_opengl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008884 x) as_fn_append wine_warnings "|$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008885OpenGL and Direct3D won't be supported." ;;
8886 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008887 *) as_fn_error "$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008888OpenGL and Direct3D won't be supported.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008889This is an error since --with-opengl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008890esac
8891fi
8892
Francois Gouget6f670b12002-10-10 17:54:27 +00008893 NASLIBS=""
8894
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008895 for ac_header in audio/audiolib.h
8896do :
8897 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8898if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008899 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008900#define HAVE_AUDIO_AUDIOLIB_H 1
Francois Gouget6f670b12002-10-10 17:54:27 +00008901_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008902 for ac_header in audio/soundlib.h
8903do :
8904 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8905"
8906if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008907 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008908#define HAVE_AUDIO_SOUNDLIB_H 1
Francois Gouget6f670b12002-10-10 17:54:27 +00008909_ACEOF
8910
8911fi
8912
8913done
8914
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008916$as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008917if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008918 $as_echo_n "(cached) " >&6
Francois Gouget6f670b12002-10-10 17:54:27 +00008919else
8920 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008921LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008922cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008923/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008924
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008925/* Override any GCC internal prototype to avoid an error.
8926 Use char because int might match the return type of a GCC
8927 builtin and then its argument prototype would still apply. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008928#ifdef __cplusplus
8929extern "C"
8930#endif
Francois Gouget6f670b12002-10-10 17:54:27 +00008931char AuCreateFlow ();
8932int
8933main ()
8934{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008935return AuCreateFlow ();
Francois Gouget6f670b12002-10-10 17:54:27 +00008936 ;
8937 return 0;
8938}
8939_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008940if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008941 ac_cv_lib_audio_AuCreateFlow=yes
8942else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008943 ac_cv_lib_audio_AuCreateFlow=no
Francois Gouget6f670b12002-10-10 17:54:27 +00008944fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008945rm -f core conftest.err conftest.$ac_objext \
8946 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008947LIBS=$ac_check_lib_save_LIBS
8948fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008950$as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008951if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008952
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008953$as_echo "#define HAVE_NAS 1" >>confdefs.h
Francois Gouget6f670b12002-10-10 17:54:27 +00008954
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008956$as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008957if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008958 $as_echo_n "(cached) " >&6
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008959else
8960 ac_check_lib_save_LIBS=$LIBS
8961LIBS="-lXau $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008963/* end confdefs.h. */
8964
8965/* Override any GCC internal prototype to avoid an error.
8966 Use char because int might match the return type of a GCC
8967 builtin and then its argument prototype would still apply. */
8968#ifdef __cplusplus
8969extern "C"
8970#endif
8971char XauGetBestAuthByAddr ();
8972int
8973main ()
8974{
8975return XauGetBestAuthByAddr ();
8976 ;
8977 return 0;
8978}
8979_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008980if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008981 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
8982else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008983 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008984fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008985rm -f core conftest.err conftest.$ac_objext \
8986 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008987LIBS=$ac_check_lib_save_LIBS
8988fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008990$as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008991if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008992 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008993else
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008994 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008995fi
8996
8997
Francois Gouget6f670b12002-10-10 17:54:27 +00008998fi
8999
9000fi
9001
9002done
9003
9004
Ove Kaaven1eb593c1999-02-14 09:34:46 +00009005 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00009006else
9007 XLIB=""
9008 X_CFLAGS=""
9009 X_LIBS=""
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02009010 enable_winex11_drv=${enable_winex11_drv:-no}
9011 enable_opengl32=${enable_opengl32:-no}
9012 enable_glu32=${enable_glu32:-no}
Patrik Stridvallea584721998-11-01 16:22:07 +00009013fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009014if test "x$XLIB" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009015 case "x$with_x" in
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009016 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009017 *) as_fn_error "X ${notice_platform}development files not found. Wine will be built
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009018without X support, which probably isn't what you want. You will need to install
Alexandre Julliardd2c8bfb2008-11-24 13:45:25 +01009019${notice_platform}development packages of Xlib/Xfree86 at the very least.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009020Use the --without-x option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009021esac
9022fi
9023
Alexandre Julliard902da691995-11-05 14:39:02 +00009024
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009025XML2LIBS=""
9026
9027XML2INCL=""
9028
Mike McCormackf3719a82005-09-03 09:39:38 +00009029XSLTINCL=""
9030
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009031if test "x$with_xml" != "xno"
Mike McCormack90c75bd2005-08-08 18:36:53 +00009032then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009033 ac_save_CPPFLAGS="$CPPFLAGS"
9034 if test "$PKG_CONFIG" != "false"
9035 then
9036 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9037 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9038 else
9039 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9040 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9041 fi
9042 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009043 for ac_header in libxml/parser.h
9044do :
9045 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9046if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009047 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009048#define HAVE_LIBXML_PARSER_H 1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009049_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009051$as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009052if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009053 $as_echo_n "(cached) " >&6
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009054else
9055 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +00009056LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009057cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009058/* end confdefs.h. */
9059
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009060/* Override any GCC internal prototype to avoid an error.
9061 Use char because int might match the return type of a GCC
9062 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009063#ifdef __cplusplus
9064extern "C"
9065#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +00009066char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009067int
9068main ()
9069{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009070return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009071 ;
9072 return 0;
9073}
9074_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009075if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack90c75bd2005-08-08 18:36:53 +00009076 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009077else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009078 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009079fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009080rm -f core conftest.err conftest.$ac_objext \
9081 conftest$ac_exeext conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009082LIBS=$ac_check_lib_save_LIBS
9083fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009085$as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009086if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009087
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009088$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009089
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009090 XML2LIBS="$ac_xml_libs"
9091 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009092fi
9093
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009095$as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009096if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009097 $as_echo_n "(cached) " >&6
Mike McCormack70adb8f2005-08-12 10:35:17 +00009098else
9099 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009100LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009101cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009102/* end confdefs.h. */
9103
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009104/* Override any GCC internal prototype to avoid an error.
9105 Use char because int might match the return type of a GCC
9106 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +00009107#ifdef __cplusplus
9108extern "C"
9109#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +00009110char xmlReadMemory ();
9111int
9112main ()
9113{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009114return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +00009115 ;
9116 return 0;
9117}
9118_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009119if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009120 ac_cv_lib_xml2_xmlReadMemory=yes
9121else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009122 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +00009123fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009124rm -f core conftest.err conftest.$ac_objext \
9125 conftest$ac_exeext conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009126LIBS=$ac_check_lib_save_LIBS
9127fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009129$as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009130if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009131
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009132$as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
Mike McCormack70adb8f2005-08-12 10:35:17 +00009133
9134fi
9135
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009137$as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009138if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009139 $as_echo_n "(cached) " >&6
Lei Zhang6a530ab2006-11-29 15:59:03 -08009140else
9141 ac_check_lib_save_LIBS=$LIBS
9142LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009144/* end confdefs.h. */
9145
9146/* Override any GCC internal prototype to avoid an error.
9147 Use char because int might match the return type of a GCC
9148 builtin and then its argument prototype would still apply. */
9149#ifdef __cplusplus
9150extern "C"
9151#endif
9152char xmlNewDocPI ();
9153int
9154main ()
9155{
9156return xmlNewDocPI ();
9157 ;
9158 return 0;
9159}
9160_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009161if ac_fn_c_try_link "$LINENO"; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009162 ac_cv_lib_xml2_xmlNewDocPI=yes
9163else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009164 ac_cv_lib_xml2_xmlNewDocPI=no
Lei Zhang6a530ab2006-11-29 15:59:03 -08009165fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009166rm -f core conftest.err conftest.$ac_objext \
9167 conftest$ac_exeext conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009168LIBS=$ac_check_lib_save_LIBS
9169fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009171$as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009172if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009173
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009174$as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
Lei Zhang6a530ab2006-11-29 15:59:03 -08009175
9176fi
9177
Mike McCormack70adb8f2005-08-12 10:35:17 +00009178
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009179fi
9180
9181done
9182
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009183 CPPFLAGS="$ac_save_CPPFLAGS"
9184fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009185if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009186 case "x$with_xml" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009187 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 +01009188 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009189 *) as_fn_error "libxml2 ${notice_platform}development files not found, XML won't be supported.
9190This is an error since --with-xml was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009191esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009192fi
9193
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009194if test "x$with_xslt" != "xno"
Emmanuel Maillard2a98b402007-06-22 02:58:39 +02009195then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009196 if test "$PKG_CONFIG" != "false"
9197 then
9198 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9199 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9200 else
9201 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9202 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9203 fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009204 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009205 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009206 for ac_header in libxslt/pattern.h libxslt/transform.h
9207do :
9208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9209ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
Vincent Bérond7f64242005-09-15 09:39:09 +00009210# include <libxslt/pattern.h>
9211#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009212"
9213eval as_val=\$$as_ac_Header
9214 if test "x$as_val" = x""yes; then :
Mike McCormackf3719a82005-09-03 09:39:38 +00009215 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009216#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackf3719a82005-09-03 09:39:38 +00009217_ACEOF
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009218
9219fi
9220
9221done
9222
9223 CPPFLAGS="$ac_save_CPPFLAGS"
9224 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9225 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009227$as_echo_n "checking for -lxslt... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009228if test "${ac_cv_lib_soname_xslt+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009229 $as_echo_n "(cached) " >&6
Mike McCormackf3719a82005-09-03 09:39:38 +00009230else
Francois Gouget3d384f12008-11-17 19:29:32 +01009231 ac_check_soname_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009232LIBS="-lxslt $ac_xslt_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +00009234/* end confdefs.h. */
9235
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009236/* Override any GCC internal prototype to avoid an error.
9237 Use char because int might match the return type of a GCC
9238 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +00009239#ifdef __cplusplus
9240extern "C"
9241#endif
Mike McCormackf3719a82005-09-03 09:39:38 +00009242char xsltCompilePattern ();
9243int
9244main ()
9245{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009246return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +00009247 ;
9248 return 0;
9249}
9250_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009251if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget3d384f12008-11-17 19:29:32 +01009252 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009253 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 +01009254 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'` ;;
9255 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9256 esac
Mike McCormackf3719a82005-09-03 09:39:38 +00009257fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009258rm -f core conftest.err conftest.$ac_objext \
9259 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3d384f12008-11-17 19:29:32 +01009260 LIBS=$ac_check_soname_save_LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009261fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009262if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009264$as_echo "not found" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +00009265
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009266else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009268$as_echo "$ac_cv_lib_soname_xslt" >&6; }
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009269
Francois Gouget3d384f12008-11-17 19:29:32 +01009270cat >>confdefs.h <<_ACEOF
9271#define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009272_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +00009273
Francois Gouget3d384f12008-11-17 19:29:32 +01009274 XSLTINCL="$ac_xslt_cflags"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009275fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009276 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009277fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009278if test "x$ac_cv_lib_soname_xslt" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009279 case "x$with_xslt" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009280 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 +01009281 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009282 *) as_fn_error "libxslt ${notice_platform}development files not found, xslt won't be supported.
9283This is an error since --with-xslt was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009284esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009285fi
9286
Alexandre Julliard00068982006-04-18 16:47:53 +02009287HALINCL=""
9288
Francois Gouget295a0cd2009-01-09 20:22:22 +01009289if test "x$with_hal" != "xno"
Alexandre Julliard00068982006-04-18 16:47:53 +02009290then
9291 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009292 if test "$PKG_CONFIG" != "false"
9293 then
9294 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9295 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9296 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9297 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009298 for ac_header in dbus/dbus.h hal/libhal.h
9299do :
9300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9301ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9302eval as_val=\$$as_ac_Header
9303 if test "x$as_val" = x""yes; then :
Alexandre Julliard00068982006-04-18 16:47:53 +02009304 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009305#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliard00068982006-04-18 16:47:53 +02009306_ACEOF
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009307
9308fi
9309
9310done
9311
9312 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9313 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009315$as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009316if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009317 $as_echo_n "(cached) " >&6
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009318else
9319 ac_check_lib_save_LIBS=$LIBS
9320LIBS="-ldbus-1 $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009322/* end confdefs.h. */
9323
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009324/* Override any GCC internal prototype to avoid an error.
9325 Use char because int might match the return type of a GCC
9326 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009327#ifdef __cplusplus
9328extern "C"
9329#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009330char dbus_connection_close ();
9331int
9332main ()
9333{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009334return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009335 ;
9336 return 0;
9337}
9338_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009339if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009340 ac_cv_lib_dbus_1_dbus_connection_close=yes
9341else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009342 ac_cv_lib_dbus_1_dbus_connection_close=no
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009343fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009344rm -f core conftest.err conftest.$ac_objext \
9345 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009346LIBS=$ac_check_lib_save_LIBS
9347fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009349$as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009350if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009352$as_echo_n "checking for -lhal... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009353if test "${ac_cv_lib_soname_hal+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009354 $as_echo_n "(cached) " >&6
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009355else
9356 ac_check_soname_save_LIBS=$LIBS
9357LIBS="-lhal $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009359/* end confdefs.h. */
Alexandre Julliard00068982006-04-18 16:47:53 +02009360
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009361/* 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 libhal_ctx_new ();
9368int
9369main ()
9370{
9371return libhal_ctx_new ();
9372 ;
9373 return 0;
9374}
9375_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009376if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009377 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009378 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 +02009379 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'` ;;
9380 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9381 esac
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009382fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009383rm -f core conftest.err conftest.$ac_objext \
9384 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009385 LIBS=$ac_check_soname_save_LIBS
9386fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009387if test "x$ac_cv_lib_soname_hal" = "x"; then :
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009389$as_echo "not found" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009390
9391else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009393$as_echo "$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009394
9395cat >>confdefs.h <<_ACEOF
9396#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
Alexandre Julliard00068982006-04-18 16:47:53 +02009397_ACEOF
9398
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009399 HALINCL="$ac_hal_cflags"
Alexandre Julliard00068982006-04-18 16:47:53 +02009400fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009401fi
9402
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009403 fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009404 CPPFLAGS="$ac_save_CPPFLAGS"
9405fi
Alexandre Julliardd8062732010-04-26 06:57:49 -05009406if 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 +01009407 case "x$with_hal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009408 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 +01009409 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009410 *) as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9411This is an error since --with-hal was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009412esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009413fi
9414
Francois Gouget295a0cd2009-01-09 20:22:22 +01009415if test "x$with_gnutls" != "xno"
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009416then
9417 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009418 if test "$PKG_CONFIG" != "false"
9419 then
9420 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9421 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9422 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9423 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009424 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9425if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gouget3aae9542008-10-24 11:24:58 +02009427/* end confdefs.h. */
9428#include <gnutls/gnutls.h>
9429int
9430main ()
9431{
Henri Verbeet8c4a2972008-12-30 09:45:20 +01009432typeof(gnutls_mac_get_key_size) *pfunc;
Francois Gouget3aae9542008-10-24 11:24:58 +02009433 ;
9434 return 0;
9435}
9436_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009437if ac_fn_c_try_compile "$LINENO"; then :
9438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009439$as_echo_n "checking for -lgnutls... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009440if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009441 $as_echo_n "(cached) " >&6
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009442else
9443 ac_check_soname_save_LIBS=$LIBS
9444LIBS="-lgnutls $ac_gnutls_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009446/* end confdefs.h. */
9447
9448/* Override any GCC internal prototype to avoid an error.
9449 Use char because int might match the return type of a GCC
9450 builtin and then its argument prototype would still apply. */
9451#ifdef __cplusplus
9452extern "C"
9453#endif
9454char gnutls_global_init ();
9455int
9456main ()
9457{
9458return gnutls_global_init ();
9459 ;
9460 return 0;
9461}
9462_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009463if ac_fn_c_try_link "$LINENO"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009464 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009465 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 +02009466 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'` ;;
9467 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9468 esac
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009469fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009470rm -f core conftest.err conftest.$ac_objext \
9471 conftest$ac_exeext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009472 LIBS=$ac_check_soname_save_LIBS
9473fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009474if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009476$as_echo "not found" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009477
9478else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009480$as_echo "$ac_cv_lib_soname_gnutls" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009481
9482cat >>confdefs.h <<_ACEOF
9483#define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9484_ACEOF
9485
9486 GNUTLSINCL="$ac_gnutls_cflags"
9487
9488fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009489fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009491fi
9492
9493
9494 CPPFLAGS="$ac_save_CPPFLAGS"
9495fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009496if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009497 case "x$with_gnutls" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009498 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009499 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009500 *) as_fn_error "libgnutls ${notice_platform}development files not found, no schannel support.
9501This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009502esac
9503fi
9504
Alexandre Julliard48957682001-12-26 23:08:31 +00009505CURSESLIBS=""
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009506if test "$ac_cv_header_ncurses_h" = "yes"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00009507then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009509$as_echo_n "checking for -lncurses... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009510if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009511 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009512else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009513 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009514LIBS="-lncurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009516/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009517
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009518/* Override any GCC internal prototype to avoid an error.
9519 Use char because int might match the return type of a GCC
9520 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009521#ifdef __cplusplus
9522extern "C"
9523#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009524char waddch ();
9525int
9526main ()
9527{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009528return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009529 ;
9530 return 0;
9531}
9532_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009533if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009534 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009535 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 +02009536 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'` ;;
9537 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9538 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009539fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009540rm -f core conftest.err conftest.$ac_objext \
9541 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009542 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009543fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009544if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009546$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009547
9548else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009550$as_echo "$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009551
9552cat >>confdefs.h <<_ACEOF
9553#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9554_ACEOF
9555
9556 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009557fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009558elif test "$ac_cv_header_curses_h" = "yes"
9559then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009561$as_echo_n "checking for -lcurses... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009562if test "${ac_cv_lib_soname_curses+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009563 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009564else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009565 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009566LIBS="-lcurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009568/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009569
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009570/* Override any GCC internal prototype to avoid an error.
9571 Use char because int might match the return type of a GCC
9572 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009573#ifdef __cplusplus
9574extern "C"
9575#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009576char waddch ();
9577int
9578main ()
9579{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009580return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009581 ;
9582 return 0;
9583}
9584_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009585if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009586 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009587 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 +02009588 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'` ;;
9589 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9590 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009591fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009592rm -f core conftest.err conftest.$ac_objext \
9593 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009594 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009595fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009596if test "x$ac_cv_lib_soname_curses" = "x"; then :
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009598$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009599
9600else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009602$as_echo "$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009603
9604cat >>confdefs.h <<_ACEOF
9605#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9606_ACEOF
9607
9608 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009609fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009610fi
9611ac_save_LIBS="$LIBS"
9612LIBS="$LIBS $CURSESLIBS"
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009613for ac_func in mousemask
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009614do :
9615 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9616if test "x$ac_cv_func_mousemask" = x""yes; then :
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009617 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009618#define HAVE_MOUSEMASK 1
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009619_ACEOF
9620
9621fi
9622done
9623
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009624LIBS="$ac_save_LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009625if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009626 case "x$with_curses" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009627 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 +01009628 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009629 *) as_fn_error "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9630This is an error since --with-curses was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009631esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009632fi
9633
Francois Gouget3fe5d802009-01-14 14:16:06 +01009634if test "x$with_sane" != "xno"
9635then
9636 ac_save_CPPFLAGS="$CPPFLAGS"
9637 # Extract the first word of "sane-config", so it can be a program name with args.
Shi Quan He6b0720f2002-03-21 02:58:39 +00009638set dummy sane-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009640$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009641if test "${ac_cv_prog_sane_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009642 $as_echo_n "(cached) " >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009643else
9644 if test -n "$sane_devel"; then
9645 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9646else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009647as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9648for as_dir in $PATH
9649do
9650 IFS=$as_save_IFS
9651 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009652 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009653 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 +00009654 ac_cv_prog_sane_devel="sane-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009656 break 2
9657 fi
9658done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009659 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009660IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +00009661
9662 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9663fi
9664fi
9665sane_devel=$ac_cv_prog_sane_devel
9666if test -n "$sane_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009668$as_echo "$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009669else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009671$as_echo "no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009672fi
9673
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009674
Francois Gouget3fe5d802009-01-14 14:16:06 +01009675 if test "$sane_devel" != "no"
9676 then
9677 ac_sane_incl="`$sane_devel --cflags`"
9678 ac_sane_libs="`$sane_devel --ldflags`"
9679 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9680 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009681 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9682if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009684$as_echo_n "checking for -lsane... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009685if test "${ac_cv_lib_soname_sane+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009686 $as_echo_n "(cached) " >&6
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009687else
9688 ac_check_soname_save_LIBS=$LIBS
Francois Gougeta9d7bab2008-07-20 22:41:41 +02009689LIBS="-lsane $ac_sane_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009691/* end confdefs.h. */
9692
9693/* Override any GCC internal prototype to avoid an error.
9694 Use char because int might match the return type of a GCC
9695 builtin and then its argument prototype would still apply. */
9696#ifdef __cplusplus
9697extern "C"
9698#endif
9699char sane_init ();
9700int
9701main ()
9702{
9703return sane_init ();
9704 ;
9705 return 0;
9706}
9707_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009708if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009709 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009710 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 +02009711 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'` ;;
9712 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9713 esac
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009714fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009715rm -f core conftest.err conftest.$ac_objext \
9716 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009717 LIBS=$ac_check_soname_save_LIBS
9718fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009719if test "x$ac_cv_lib_soname_sane" = "x"; then :
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009721$as_echo "not found" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009722
9723else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009725$as_echo "$ac_cv_lib_soname_sane" >&6; }
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009726
9727cat >>confdefs.h <<_ACEOF
9728#define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9729_ACEOF
9730
9731 SANEINCL="$ac_sane_incl"
9732
9733fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009734fi
9735
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009736
Shi Quan He6b0720f2002-03-21 02:58:39 +00009737 CPPFLAGS="$ac_save_CPPFLAGS"
9738fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009739if test "x$ac_cv_lib_soname_sane" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009740 case "x$with_sane" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009741 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 +01009742 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009743 *) as_fn_error "libsane ${notice_platform}development files not found, scanners won't be supported.
9744This is an error since --with-sane was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009745esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009746fi
9747
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009748if test "x$with_v4l" != "xno"
9749then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9751$as_echo_n "checking for -lv4l1... " >&6; }
9752if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9753 $as_echo_n "(cached) " >&6
9754else
9755 ac_check_soname_save_LIBS=$LIBS
9756LIBS="-lv4l1 $LIBS"
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758/* end confdefs.h. */
9759
9760/* Override any GCC internal prototype to avoid an error.
9761 Use char because int might match the return type of a GCC
9762 builtin and then its argument prototype would still apply. */
9763#ifdef __cplusplus
9764extern "C"
9765#endif
9766char v4l1_open ();
9767int
9768main ()
9769{
9770return v4l1_open ();
9771 ;
9772 return 0;
9773}
9774_ACEOF
9775if ac_fn_c_try_link "$LINENO"; then :
9776 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009777 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 +01009778 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'` ;;
9779 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9780 esac
9781fi
9782rm -f core conftest.err conftest.$ac_objext \
9783 conftest$ac_exeext conftest.$ac_ext
9784 LIBS=$ac_check_soname_save_LIBS
9785fi
9786if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9788$as_echo "not found" >&6; }
9789
9790else
9791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9792$as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9793
9794cat >>confdefs.h <<_ACEOF
9795#define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9796_ACEOF
9797
9798
9799fi
9800fi
9801if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9802 case "x$with_v4l" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009803 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009804 xno) ;;
9805 *) as_fn_error "libv4l ${notice_platform}development files not found.
9806This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9807esac
9808fi
9809
Francois Gouget3fe5d802009-01-14 14:16:06 +01009810if test "x$with_gphoto" != "xno"
9811then
9812 ac_save_CPPFLAGS="$CPPFLAGS"
9813 # Extract the first word of "gphoto2-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009814set dummy gphoto2-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009816$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009817if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009818 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009819else
9820 if test -n "$gphoto2_devel"; then
9821 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9822else
9823as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9824for as_dir in $PATH
9825do
9826 IFS=$as_save_IFS
9827 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009828 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009829 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 +02009830 ac_cv_prog_gphoto2_devel="gphoto2-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009832 break 2
9833 fi
9834done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009835 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009836IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009837
9838 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9839fi
9840fi
9841gphoto2_devel=$ac_cv_prog_gphoto2_devel
9842if test -n "$gphoto2_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009844$as_echo "$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009845else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009847$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009848fi
9849
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009850
Francois Gouget3fe5d802009-01-14 14:16:06 +01009851 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009852set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009854$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009855if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009856 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009857else
9858 if test -n "$gphoto2port_devel"; then
9859 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9860else
9861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9862for as_dir in $PATH
9863do
9864 IFS=$as_save_IFS
9865 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009866 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009867 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 +02009868 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009870 break 2
9871 fi
9872done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009873 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009874IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009875
9876 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9877fi
9878fi
9879gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9880if test -n "$gphoto2port_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009882$as_echo "$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009883else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009885$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009886fi
9887
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009888
Francois Gouget3fe5d802009-01-14 14:16:06 +01009889 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9890 then
9891 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9892 ac_gphoto2_libs=""
9893 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9894 do
9895 case "$i" in
9896 -L/usr/lib|-L/usr/lib64) ;;
9897 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9898 esac
9899 done
9900 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9901 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +09009902 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009903 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9904if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009906$as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009907if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009908 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009909else
9910 ac_check_lib_save_LIBS=$LIBS
Francois Gouget4bc03fe2008-07-21 17:10:45 +02009911LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009913/* end confdefs.h. */
9914
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009915/* Override any GCC internal prototype to avoid an error.
9916 Use char because int might match the return type of a GCC
9917 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009918#ifdef __cplusplus
9919extern "C"
9920#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009921char gp_camera_new ();
9922int
9923main ()
9924{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009925return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009926 ;
9927 return 0;
9928}
9929_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009930if ac_fn_c_try_link "$LINENO"; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009931 ac_cv_lib_gphoto2_gp_camera_new=yes
9932else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009933 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009934fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009935rm -f core conftest.err conftest.$ac_objext \
9936 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009937LIBS=$ac_check_lib_save_LIBS
9938fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009940$as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009941if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009942
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009943$as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009944
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009945 GPHOTO2LIBS="$ac_gphoto2_libs"
9946
9947 GPHOTO2INCL="$ac_gphoto2_incl"
9948
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009949fi
9950
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009951fi
9952
9953
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009954 CPPFLAGS="$ac_save_CPPFLAGS"
9955fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009956if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009957 case "x$with_gphoto" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009958 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 +01009959 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009960 *) as_fn_error "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9961This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009962esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009963fi
9964
9965
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009966RESOLVLIBS=""
9967
9968if test "$ac_cv_header_resolv_h" = "yes"
9969then
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +01009970 ac_save_LIBS="$LIBS"
9971 LIBS="$LIBS -lresolv"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009973/* end confdefs.h. */
Rob Shearmanba349212009-01-02 12:12:06 +00009974#ifdef HAVE_NETINET_IN_H
9975#include <netinet/in.h>
9976#endif
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +01009977#include <resolv.h>
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009978int
9979main ()
9980{
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +01009981res_init();
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009982 ;
9983 return 0;
9984}
9985_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009986if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009987
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009988$as_echo "#define HAVE_RESOLV 1" >>confdefs.h
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009989
9990 RESOLVLIBS="-lresolv"
9991fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009992rm -f core conftest.err conftest.$ac_objext \
9993 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +01009994 LIBS="$ac_save_LIBS"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009995fi
9996
Hans Leidekkerd3447022005-07-15 10:09:43 +00009997LCMSLIBS=""
9998
9999if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10000then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010002$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010003if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010004 $as_echo_n "(cached) " >&6
Hans Leidekkerd3447022005-07-15 10:09:43 +000010005else
10006 ac_check_lib_save_LIBS=$LIBS
10007LIBS="-llcms $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010009/* end confdefs.h. */
10010
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010011/* Override any GCC internal prototype to avoid an error.
10012 Use char because int might match the return type of a GCC
10013 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +000010014#ifdef __cplusplus
10015extern "C"
10016#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +000010017char cmsOpenProfileFromFile ();
10018int
10019main ()
10020{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010021return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000010022 ;
10023 return 0;
10024}
10025_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010026if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010027 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10028else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010029 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000010030fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010031rm -f core conftest.err conftest.$ac_objext \
10032 conftest$ac_exeext conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010033LIBS=$ac_check_lib_save_LIBS
10034fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010036$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010037if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010038
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010039$as_echo "#define HAVE_LCMS 1" >>confdefs.h
Hans Leidekkerd3447022005-07-15 10:09:43 +000010040
10041 LCMSLIBS="-llcms"
10042fi
10043
10044fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010045if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010046 case "x$with_cms" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010047 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 +010010048 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010049 *) as_fn_error "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10050This is an error since --with-cms was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010051esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010052fi
10053
Francois Gouget3fe5d802009-01-14 14:16:06 +010010054if test "x$with_freetype" != "xno"
10055then
10056 for ac_prog in freetype-config freetype2-config
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010057do
10058 # Extract the first word of "$ac_prog", so it can be a program name with args.
10059set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010061$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010062if test "${ac_cv_prog_ft_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010063 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010064else
10065 if test -n "$ft_devel"; then
10066 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10067else
10068as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069for as_dir in $PATH
10070do
10071 IFS=$as_save_IFS
10072 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010073 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010074 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 +020010075 ac_cv_prog_ft_devel="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010077 break 2
10078 fi
10079done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010080 done
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010081IFS=$as_save_IFS
10082
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010083fi
10084fi
10085ft_devel=$ac_cv_prog_ft_devel
10086if test -n "$ft_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010088$as_echo "$ft_devel" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010089else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010091$as_echo "no" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010092fi
10093
10094
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010095 test -n "$ft_devel" && break
10096done
Francois Gouget3fe5d802009-01-14 14:16:06 +010010097test -n "$ft_devel" || ft_devel="no"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010098
Francois Gouget3fe5d802009-01-14 14:16:06 +010010099 if test "$ft_devel" != "no"
10100 then
10101 ac_freetype_incl=`$ft_devel --cflags`
10102 ac_freetype_libs=`$ft_devel --libs`
10103 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010104 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010106$as_echo_n "checking for -lfreetype... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010107if test "${ac_cv_lib_soname_freetype+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010108 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010109else
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010110 ac_check_soname_save_LIBS=$LIBS
10111LIBS="-lfreetype $ac_freetype_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010113/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010114
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010115/* Override any GCC internal prototype to avoid an error.
10116 Use char because int might match the return type of a GCC
10117 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010118#ifdef __cplusplus
10119extern "C"
10120#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010121char FT_Init_FreeType ();
10122int
10123main ()
10124{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010125return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010126 ;
10127 return 0;
10128}
10129_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010130if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010131 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010132 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 +020010133 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'` ;;
10134 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10135 esac
Ian Pilcher563598d2001-05-16 20:56:05 +000010136fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010137rm -f core conftest.err conftest.$ac_objext \
10138 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010139 LIBS=$ac_check_soname_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010140fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010141if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010143$as_echo "not found" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010144 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010145else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010147$as_echo "$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010148
10149cat >>confdefs.h <<_ACEOF
10150#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10151_ACEOF
10152
10153 ft_lib=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010154fi
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010155 if test "$ft_lib" = "yes"
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010156 then
Ian Pilcher40432fe2001-06-06 21:05:23 +000010157 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010158 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010159 for ac_header in ft2build.h \
Rein Klazese617a9c2003-11-19 02:18:13 +000010160 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010161 freetype/ftglyph.h \
Dmitry Timoshkovb0d15902007-09-20 19:10:31 +090010162 freetype/fttypes.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010163 freetype/tttables.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010164 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010165 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010166 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010167 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010010168 freetype/ftmodapi.h \
ByeongSik Jeon028617b2008-12-10 23:50:44 +090010169 freetype/ftlcdfil.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010170 freetype/internal/sfnt.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010171do :
10172 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10173ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
Francois Gouget9e67edf2008-03-06 12:34:48 +010010174 # include <ft2build.h>
Rein Klazes9c269172003-11-20 04:17:33 +000010175 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010176"
10177eval as_val=\$$as_ac_Header
10178 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010179 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010180#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010181_ACEOF
10182
10183fi
10184
Ian Pilcher40432fe2001-06-06 21:05:23 +000010185done
10186
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010188/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010189#include <ft2build.h>
10190 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010191_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010192if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010193
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010194$as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
Alexandre Julliard18d75732002-01-29 03:02:50 +000010195
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010196 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010197else
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010198 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010199fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010200rm -f conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010201 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10202"
10203if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
Huw Daviesd8a6c272006-02-22 12:24:25 +000010204
10205cat >>confdefs.h <<_ACEOF
10206#define HAVE_FT_TRUETYPEENGINETYPE 1
10207_ACEOF
10208
10209
10210fi
10211
Huw Davies35bca772006-04-12 12:14:27 +010010212 ac_save_CFLAGS="$CFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010213 CFLAGS="$CFLAGS $ac_freetype_libs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010214 for ac_func in FT_Load_Sfnt_Table
10215do :
10216 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10217if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
Huw Davies35bca772006-04-12 12:14:27 +010010218 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010219#define HAVE_FT_LOAD_SFNT_TABLE 1
Huw Davies35bca772006-04-12 12:14:27 +010010220_ACEOF
10221
10222fi
10223done
10224
10225 CFLAGS="$ac_save_CFLAGS"
Ian Pilcher40432fe2001-06-06 21:05:23 +000010226 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010227 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010228 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010229
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010230$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010231
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010232 FREETYPELIBS="$ac_freetype_libs"
10233
10234 FREETYPEINCL="$ac_freetype_incl"
10235
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010236 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010237 fi
10238fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010239if test "x$FREETYPELIBS" = "x"; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010240 case "x$with_freetype" in
10241 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010242 *) as_fn_error "FreeType ${notice_platform}development files not found. Fonts will not be built.
10243Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010244esac
Huw Davies00acb5f2004-08-17 22:33:14 +000010245fi
Alexandre Julliard6de0af12008-08-25 14:41:03 +020010246test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010247
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010249$as_echo_n "checking for parport header/ppdev.h... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010250if test "${ac_cv_c_ppdev+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010251 $as_echo_n "(cached) " >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010252else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010254/* end confdefs.h. */
Yann Droneauddd33ee92010-03-08 14:46:46 +010010255#ifdef HAVE_SYS_IOCTL_H
10256# include <sys/ioctl.h>
10257#endif
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010258#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010259int
10260main ()
10261{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010262ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010263 ;
10264 return 0;
10265}
10266_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010267if ac_fn_c_try_compile "$LINENO"; then :
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010268 ac_cv_c_ppdev="yes"
10269else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010270 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010271fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010273fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010275$as_echo "$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010276if test "$ac_cv_c_ppdev" = "yes"
10277then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010278
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010279$as_echo "#define HAVE_PPDEV 1" >>confdefs.h
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010280
10281fi
10282
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010283ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010284LIBS="$LIBS $LIBPTHREAD"
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010285for ac_func in \
Tijl Coosemansfc8172f2006-08-05 23:31:07 +020010286 pthread_attr_get_np \
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010287 pthread_getattr_np \
10288 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010289 pthread_get_stacksize_np
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010290do :
10291 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10292ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10293eval as_val=\$$as_ac_var
10294 if test "x$as_val" = x""yes; then :
Alexandre Julliard821ab862003-11-12 22:44:56 +000010295 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010296#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010297_ACEOF
10298
10299fi
10300done
10301
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010302LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010303
Jacek Caban11ca05f2009-05-29 23:35:13 +020010304if test "$ac_cv_header_zlib_h" = "yes"
10305then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010307$as_echo_n "checking for inflate in -lz... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010308if test "${ac_cv_lib_z_inflate+set}" = set; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010309 $as_echo_n "(cached) " >&6
10310else
10311 ac_check_lib_save_LIBS=$LIBS
10312LIBS="-lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010314/* end confdefs.h. */
10315
10316/* Override any GCC internal prototype to avoid an error.
10317 Use char because int might match the return type of a GCC
10318 builtin and then its argument prototype would still apply. */
10319#ifdef __cplusplus
10320extern "C"
10321#endif
10322char inflate ();
10323int
10324main ()
10325{
10326return inflate ();
10327 ;
10328 return 0;
10329}
10330_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010331if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010332 ac_cv_lib_z_inflate=yes
10333else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010334 ac_cv_lib_z_inflate=no
Jacek Caban11ca05f2009-05-29 23:35:13 +020010335fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010336rm -f core conftest.err conftest.$ac_objext \
10337 conftest$ac_exeext conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010338LIBS=$ac_check_lib_save_LIBS
10339fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010341$as_echo "$ac_cv_lib_z_inflate" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010342if test "x$ac_cv_lib_z_inflate" = x""yes; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010343
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010344$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
Jacek Caban11ca05f2009-05-29 23:35:13 +020010345
10346 ZLIB="-lz"
10347
10348fi
10349
10350fi
10351
Francois Gouget3fe5d802009-01-14 14:16:06 +010010352if test "x$with_esd" != xno
10353then
10354 save_CFLAGS="$CFLAGS"
10355 # Extract the first word of "esd-config", so it can be a program name with args.
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010356set dummy esd-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010358$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010359if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010360 $as_echo_n "(cached) " >&6
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010361else
10362 case $ESDCONFIG in
10363 [\\/]* | ?:[\\/]*)
10364 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10365 ;;
10366 *)
10367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10368for as_dir in $PATH
10369do
10370 IFS=$as_save_IFS
10371 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010372 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010373 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 +000010374 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010376 break 2
10377 fi
10378done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010379 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010380IFS=$as_save_IFS
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010381
Francois Gouget3fe5d802009-01-14 14:16:06 +010010382 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010383 ;;
10384esac
10385fi
10386ESDCONFIG=$ac_cv_path_ESDCONFIG
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010387if test -n "$ESDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010389$as_echo "$ESDCONFIG" >&6; }
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010390else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010392$as_echo "no" >&6; }
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010393fi
10394
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010395
Francois Gouget3fe5d802009-01-14 14:16:06 +010010396 if test "x$ESDCONFIG" != "xno"
10397 then
10398 ac_esd_incl=""
10399 for i in `$ESDCONFIG --cflags`
10400 do
10401 case "$i" in
10402 -I*) ac_esd_incl="$ac_esd_incl $i";;
10403 esac
10404 done
10405 ac_esd_libs=`$ESDCONFIG --libs`
10406 CFLAGS="$CFLAGS $ac_esd_incl"
10407 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010408 ac_esd_libs=${ac_esd_libs:-"-lesd"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010409 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10410if test "x$ac_cv_header_esd_h" = x""yes; then :
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010412$as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010413if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010414 $as_echo_n "(cached) " >&6
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010415else
10416 ac_check_lib_save_LIBS=$LIBS
Francois Gougete9b1a402008-07-21 23:41:21 +020010417LIBS="-lesd $ac_esd_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010419/* end confdefs.h. */
10420
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010421/* Override any GCC internal prototype to avoid an error.
10422 Use char because int might match the return type of a GCC
10423 builtin and then its argument prototype would still apply. */
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010424#ifdef __cplusplus
10425extern "C"
10426#endif
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010427char esd_open_sound ();
10428int
10429main ()
10430{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010431return esd_open_sound ();
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010432 ;
10433 return 0;
10434}
10435_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010436if ac_fn_c_try_link "$LINENO"; then :
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010437 ac_cv_lib_esd_esd_open_sound=yes
10438else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010439 ac_cv_lib_esd_esd_open_sound=no
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010440fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010441rm -f core conftest.err conftest.$ac_objext \
10442 conftest$ac_exeext conftest.$ac_ext
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010443LIBS=$ac_check_lib_save_LIBS
10444fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010446$as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010447if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
Francois Gougete9b1a402008-07-21 23:41:21 +020010448 ESDINCL="$ac_esd_incl"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010449
Francois Gouget3fe5d802009-01-14 14:16:06 +010010450 ESDLIBS="$ac_esd_libs"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010451
10452
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010453$as_echo "#define HAVE_ESD 1" >>confdefs.h
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010454
10455fi
10456
Francois Gouget3fe5d802009-01-14 14:16:06 +010010457fi
10458
10459
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010460 CFLAGS="$save_CFLAGS"
10461fi
10462
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010463ALSALIBS=""
10464
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010465if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010466then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_pcm_hw_params_get_access in -lasound" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010468$as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010469if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010470 $as_echo_n "(cached) " >&6
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010471else
10472 ac_check_lib_save_LIBS=$LIBS
10473LIBS="-lasound $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010474cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010475/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010476
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010477/* Override any GCC internal prototype to avoid an error.
10478 Use char because int might match the return type of a GCC
10479 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010480#ifdef __cplusplus
10481extern "C"
10482#endif
Vincent Béron151015f2005-01-10 13:26:33 +000010483char snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010484int
10485main ()
10486{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010487return snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010488 ;
10489 return 0;
10490}
10491_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010492if ac_fn_c_try_link "$LINENO"; then :
Vincent Béron151015f2005-01-10 13:26:33 +000010493 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010494else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010495 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010496fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010497rm -f core conftest.err conftest.$ac_objext \
10498 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010499LIBS=$ac_check_lib_save_LIBS
10500fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010502$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010503if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Vincent Béron151015f2005-01-10 13:26:33 +000010505/* end confdefs.h. */
10506#ifdef HAVE_ALSA_ASOUNDLIB_H
10507#include <alsa/asoundlib.h>
10508#elif defined(HAVE_SYS_ASOUNDLIB_H)
10509#include <sys/asoundlib.h>
10510#endif
10511int
10512main ()
10513{
10514int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10515 ;
10516 return 0;
10517}
10518_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010519if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010520
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010521$as_echo "#define HAVE_ALSA 1" >>confdefs.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010522
Vincent Béron151015f2005-01-10 13:26:33 +000010523 ALSALIBS="-lasound"
Vincent Béron151015f2005-01-10 13:26:33 +000010524fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010526fi
10527
10528fi
10529
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010530AUDIOIOLIBS=""
10531
Alexandre Julliard73482142005-08-03 19:21:04 +000010532if test "$ac_cv_header_libaudioio_h" = "yes"
10533then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010535$as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010536if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010537 $as_echo_n "(cached) " >&6
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010538else
10539 ac_check_lib_save_LIBS=$LIBS
10540LIBS="-laudioio $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010541cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010542/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010543
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010544/* Override any GCC internal prototype to avoid an error.
10545 Use char because int might match the return type of a GCC
10546 builtin and then its argument prototype would still apply. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010547#ifdef __cplusplus
10548extern "C"
10549#endif
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010550char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010551int
10552main ()
10553{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010554return AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010555 ;
10556 return 0;
10557}
10558_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010559if ac_fn_c_try_link "$LINENO"; then :
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010560 ac_cv_lib_audioio_AudioIOGetVersion=yes
10561else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010562 ac_cv_lib_audioio_AudioIOGetVersion=no
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010563fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010564rm -f core conftest.err conftest.$ac_objext \
10565 conftest$ac_exeext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010566LIBS=$ac_check_lib_save_LIBS
10567fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010568{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010569$as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010570if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010571 AUDIOIOLIBS="-laudioio"
10572
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010573$as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010574
10575fi
10576
10577fi
10578
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010579
Alexandre Julliard73482142005-08-03 19:21:04 +000010580if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10581then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010583$as_echo_n "checking for -lcapi20... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010584if test "${ac_cv_lib_soname_capi20+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010585 $as_echo_n "(cached) " >&6
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010586else
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010587 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010588LIBS="-lcapi20 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010590/* end confdefs.h. */
10591
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010592/* Override any GCC internal prototype to avoid an error.
10593 Use char because int might match the return type of a GCC
10594 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010595#ifdef __cplusplus
10596extern "C"
10597#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010598char capi20_register ();
10599int
10600main ()
10601{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010602return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010603 ;
10604 return 0;
10605}
10606_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010607if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010608 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010609 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 +020010610 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'` ;;
10611 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10612 esac
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010613fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010614rm -f core conftest.err conftest.$ac_objext \
10615 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010616 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010617fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010618if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010620$as_echo "not found" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010621
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010622else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010624$as_echo "$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010625
10626cat >>confdefs.h <<_ACEOF
10627#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010628_ACEOF
10629
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010630
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010631fi
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010632fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010633if test "x$ac_cv_lib_soname_capi20" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010634 case "x$with_capi" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010635 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 +010010636 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010637 *) as_fn_error "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10638This is an error since --with-capi was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010639esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010640fi
10641
Francois Gouget289ea332008-07-24 16:09:07 +020010642CUPSINCL=""
10643
10644if test "x$with_cups" != "xno"
Alexandre Julliard702d3552007-07-02 17:30:44 +020010645then
Francois Gouget289ea332008-07-24 16:09:07 +020010646 ac_save_CPPFLAGS="$CPPFLAGS"
10647 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
Alexandre Julliarda991a562008-07-28 12:04:46 +020010648 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
Francois Gouget289ea332008-07-24 16:09:07 +020010649 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010650 for ac_header in cups/cups.h
10651do :
10652 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10653if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
Francois Gouget289ea332008-07-24 16:09:07 +020010654 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010655#define HAVE_CUPS_CUPS_H 1
Francois Gouget289ea332008-07-24 16:09:07 +020010656_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010658$as_echo_n "checking for -lcups... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010659if test "${ac_cv_lib_soname_cups+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010660 $as_echo_n "(cached) " >&6
Alexandre Julliard702d3552007-07-02 17:30:44 +020010661else
10662 ac_check_soname_save_LIBS=$LIBS
Francois Gouget289ea332008-07-24 16:09:07 +020010663LIBS="-lcups $ac_cups_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020010665/* end confdefs.h. */
10666
10667/* Override any GCC internal prototype to avoid an error.
10668 Use char because int might match the return type of a GCC
10669 builtin and then its argument prototype would still apply. */
10670#ifdef __cplusplus
10671extern "C"
10672#endif
10673char cupsGetDefault ();
10674int
10675main ()
10676{
10677return cupsGetDefault ();
10678 ;
10679 return 0;
10680}
10681_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010682if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard702d3552007-07-02 17:30:44 +020010683 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010684 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 +020010685 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'` ;;
10686 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10687 esac
Alexandre Julliard702d3552007-07-02 17:30:44 +020010688fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010689rm -f core conftest.err conftest.$ac_objext \
10690 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020010691 LIBS=$ac_check_soname_save_LIBS
10692fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010693if test "x$ac_cv_lib_soname_cups" = "x"; then :
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010695$as_echo "not found" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020010696
10697else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010699$as_echo "$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020010700
10701cat >>confdefs.h <<_ACEOF
10702#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10703_ACEOF
10704
Francois Gouget289ea332008-07-24 16:09:07 +020010705 CUPSINCL="$ac_cups_cflags"
10706fi
Alexandre Julliard702d3552007-07-02 17:30:44 +020010707fi
10708
Francois Gouget289ea332008-07-24 16:09:07 +020010709done
10710
10711 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliard702d3552007-07-02 17:30:44 +020010712fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010713if test "x$ac_cv_lib_soname_cups" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010714 case "x$with_cups" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010715 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 +010010716 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010717 *) as_fn_error "libcups ${notice_platform}development files not found, CUPS won't be supported.
10718This is an error since --with-cups was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010719esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010720fi
10721
Alexandre Julliard34200c32007-07-02 17:31:19 +020010722if test "$ac_cv_header_jack_jack_h" = "yes"
10723then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010725$as_echo_n "checking for -ljack... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010726if test "${ac_cv_lib_soname_jack+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010727 $as_echo_n "(cached) " >&6
Alexandre Julliard34200c32007-07-02 17:31:19 +020010728else
10729 ac_check_soname_save_LIBS=$LIBS
10730LIBS="-ljack $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard34200c32007-07-02 17:31:19 +020010732/* end confdefs.h. */
10733
10734/* Override any GCC internal prototype to avoid an error.
10735 Use char because int might match the return type of a GCC
10736 builtin and then its argument prototype would still apply. */
10737#ifdef __cplusplus
10738extern "C"
10739#endif
10740char jack_client_new ();
10741int
10742main ()
10743{
10744return jack_client_new ();
10745 ;
10746 return 0;
10747}
10748_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010749if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard34200c32007-07-02 17:31:19 +020010750 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010751 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 +020010752 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'` ;;
10753 *) 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 +020010754 esac
Alexandre Julliard34200c32007-07-02 17:31:19 +020010755fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010756rm -f core conftest.err conftest.$ac_objext \
10757 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard34200c32007-07-02 17:31:19 +020010758 LIBS=$ac_check_soname_save_LIBS
10759fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010760if test "x$ac_cv_lib_soname_jack" = "x"; then :
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010762$as_echo "not found" >&6; }
Alexandre Julliard34200c32007-07-02 17:31:19 +020010763
10764else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010766$as_echo "$ac_cv_lib_soname_jack" >&6; }
Alexandre Julliard34200c32007-07-02 17:31:19 +020010767
10768cat >>confdefs.h <<_ACEOF
10769#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
10770_ACEOF
10771
10772
10773fi
Alexandre Julliard34200c32007-07-02 17:31:19 +020010774fi
10775
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010776if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10777then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010779$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010780if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010781 $as_echo_n "(cached) " >&6
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010782else
10783 ac_check_soname_save_LIBS=$LIBS
10784LIBS="-lfontconfig $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010786/* end confdefs.h. */
10787
10788/* Override any GCC internal prototype to avoid an error.
10789 Use char because int might match the return type of a GCC
10790 builtin and then its argument prototype would still apply. */
10791#ifdef __cplusplus
10792extern "C"
10793#endif
10794char FcInit ();
10795int
10796main ()
10797{
10798return FcInit ();
10799 ;
10800 return 0;
10801}
10802_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010803if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010804 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010805 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 +020010806 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'` ;;
10807 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10808 esac
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010809fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010810rm -f core conftest.err conftest.$ac_objext \
10811 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010812 LIBS=$ac_check_soname_save_LIBS
10813fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010814if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010816$as_echo "not found" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010817
10818else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010820$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010821
10822cat >>confdefs.h <<_ACEOF
10823#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10824_ACEOF
10825
10826
10827fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010828elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
Alexandre Julliard5c076732007-10-17 17:04:01 +020010829then
10830 ac_save_CPPFLAGS="$CPPFLAGS"
10831 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10832 $as_unset ac_cv_header_fontconfig_fontconfig_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010833 for ac_header in fontconfig/fontconfig.h
10834do :
10835 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
10836if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020010837 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010838#define HAVE_FONTCONFIG_FONTCONFIG_H 1
Alexandre Julliard5c076732007-10-17 17:04:01 +020010839_ACEOF
10840
10841fi
10842
10843done
10844
10845 CPPFLAGS="$ac_save_CPPFLAGS"
10846 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10847 then
10848 FONTCONFIGINCL="$X_CFLAGS"
10849
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010851$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010852if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010853 $as_echo_n "(cached) " >&6
Alexandre Julliard5c076732007-10-17 17:04:01 +020010854else
10855 ac_check_soname_save_LIBS=$LIBS
10856LIBS="-lfontconfig $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020010858/* end confdefs.h. */
10859
10860/* Override any GCC internal prototype to avoid an error.
10861 Use char because int might match the return type of a GCC
10862 builtin and then its argument prototype would still apply. */
10863#ifdef __cplusplus
10864extern "C"
10865#endif
10866char FcInit ();
10867int
10868main ()
10869{
10870return FcInit ();
10871 ;
10872 return 0;
10873}
10874_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010875if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020010876 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010877 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 +020010878 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'` ;;
10879 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10880 esac
Alexandre Julliard5c076732007-10-17 17:04:01 +020010881fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010882rm -f core conftest.err conftest.$ac_objext \
10883 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020010884 LIBS=$ac_check_soname_save_LIBS
10885fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010886if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010888$as_echo "not found" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020010889
10890else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010892$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020010893
10894cat >>confdefs.h <<_ACEOF
10895#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10896_ACEOF
10897
10898
10899fi
Alexandre Julliard5c076732007-10-17 17:04:01 +020010900 fi
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010901fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010902if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010903 case "x$with_fontconfig" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010904 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 +010010905 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010906 *) as_fn_error "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
10907This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010908esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020010909fi
10910
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010911if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
10912then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010914$as_echo_n "checking for -lssl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010915if test "${ac_cv_lib_soname_ssl+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010916 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010917else
10918 ac_check_soname_save_LIBS=$LIBS
10919LIBS="-lssl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010921/* end confdefs.h. */
10922
10923/* Override any GCC internal prototype to avoid an error.
10924 Use char because int might match the return type of a GCC
10925 builtin and then its argument prototype would still apply. */
10926#ifdef __cplusplus
10927extern "C"
10928#endif
10929char SSL_library_init ();
10930int
10931main ()
10932{
10933return SSL_library_init ();
10934 ;
10935 return 0;
10936}
10937_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010938if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010939 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010940 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 +020010941 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'` ;;
10942 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10943 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010944fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010945rm -f core conftest.err conftest.$ac_objext \
10946 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010947 LIBS=$ac_check_soname_save_LIBS
10948fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010949if test "x$ac_cv_lib_soname_ssl" = "x"; then :
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010951$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010952
10953else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010955$as_echo "$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010956
10957cat >>confdefs.h <<_ACEOF
10958#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
10959_ACEOF
10960
10961
10962fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010964$as_echo_n "checking for -lcrypto... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010965if test "${ac_cv_lib_soname_crypto+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010966 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010967else
10968 ac_check_soname_save_LIBS=$LIBS
10969LIBS="-lcrypto $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010971/* end confdefs.h. */
10972
10973/* Override any GCC internal prototype to avoid an error.
10974 Use char because int might match the return type of a GCC
10975 builtin and then its argument prototype would still apply. */
10976#ifdef __cplusplus
10977extern "C"
10978#endif
10979char BIO_new_socket ();
10980int
10981main ()
10982{
10983return BIO_new_socket ();
10984 ;
10985 return 0;
10986}
10987_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010988if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010989 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010990 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 +020010991 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'` ;;
10992 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10993 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010994fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010995rm -f core conftest.err conftest.$ac_objext \
10996 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010997 LIBS=$ac_check_soname_save_LIBS
10998fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010999if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011001$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011002
11003else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011005$as_echo "$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011006
11007cat >>confdefs.h <<_ACEOF
11008#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11009_ACEOF
11010
11011
11012fi
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011013fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011014if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011015 case "x$with_openssl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011016 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 +010011017 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011018 *) as_fn_error "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11019This is an error since --with-openssl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011020esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011021fi
11022
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +020011023if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011024then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011026$as_echo_n "checking for -lgsm... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011027if test "${ac_cv_lib_soname_gsm+set}" = set; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011028 $as_echo_n "(cached) " >&6
11029else
11030 ac_check_soname_save_LIBS=$LIBS
11031LIBS="-lgsm $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011033/* end confdefs.h. */
11034
11035/* Override any GCC internal prototype to avoid an error.
11036 Use char because int might match the return type of a GCC
11037 builtin and then its argument prototype would still apply. */
11038#ifdef __cplusplus
11039extern "C"
11040#endif
11041char gsm_create ();
11042int
11043main ()
11044{
11045return gsm_create ();
11046 ;
11047 return 0;
11048}
11049_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011050if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011051 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011052 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 +020011053 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'` ;;
11054 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11055 esac
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011056fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011057rm -f core conftest.err conftest.$ac_objext \
11058 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011059 LIBS=$ac_check_soname_save_LIBS
11060fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011061if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011063$as_echo "not found" >&6; }
11064
11065else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011067$as_echo "$ac_cv_lib_soname_gsm" >&6; }
11068
11069cat >>confdefs.h <<_ACEOF
11070#define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11071_ACEOF
11072
11073
11074fi
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011075fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011076if test "x$ac_cv_lib_soname_gsm" = "x"; then :
Alexandre Julliard6ce32e02009-08-19 15:53:04 +020011077 case "x$with_gsm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011078 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 +020011079 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011080 *) as_fn_error "libgsm ${notice_platform}development files not found, gsm 06.10 codec won't be supported.
Alexandre Julliard6ce32e02009-08-19 15:53:04 +020011081This is an error since --with-gsm was requested." "$LINENO" 5 ;;
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011082esac
11083fi
11084
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011085if test "$ac_cv_header_jpeglib_h" = "yes"
11086then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011088$as_echo_n "checking for -ljpeg... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011089if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011090 $as_echo_n "(cached) " >&6
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011091else
11092 ac_check_soname_save_LIBS=$LIBS
11093LIBS="-ljpeg $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011095/* end confdefs.h. */
11096
11097/* Override any GCC internal prototype to avoid an error.
11098 Use char because int might match the return type of a GCC
11099 builtin and then its argument prototype would still apply. */
11100#ifdef __cplusplus
11101extern "C"
11102#endif
11103char jpeg_start_decompress ();
11104int
11105main ()
11106{
11107return jpeg_start_decompress ();
11108 ;
11109 return 0;
11110}
11111_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011112if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011113 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011114 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 +020011115 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'` ;;
11116 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11117 esac
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011118fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011119rm -f core conftest.err conftest.$ac_objext \
11120 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011121 LIBS=$ac_check_soname_save_LIBS
11122fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011123if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011125$as_echo "not found" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011126
11127else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011129$as_echo "$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011130
11131cat >>confdefs.h <<_ACEOF
11132#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11133_ACEOF
11134
11135
11136fi
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011137fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011138if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011139 case "x$with_jpeg" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011140 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 +010011141 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011142 *) as_fn_error "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11143This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011144esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011145fi
11146
Alexandre Julliard00302152007-07-02 19:54:00 +020011147if test "$ac_cv_header_png_h" = "yes"
11148then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011150$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011151if test "${ac_cv_lib_soname_png+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011152 $as_echo_n "(cached) " >&6
Alexandre Julliard00302152007-07-02 19:54:00 +020011153else
11154 ac_check_soname_save_LIBS=$LIBS
Austin Englishfe8879e2008-12-28 19:10:19 -060011155LIBS="-lpng -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011157/* end confdefs.h. */
11158
11159/* Override any GCC internal prototype to avoid an error.
11160 Use char because int might match the return type of a GCC
11161 builtin and then its argument prototype would still apply. */
11162#ifdef __cplusplus
11163extern "C"
11164#endif
11165char png_create_read_struct ();
11166int
11167main ()
11168{
11169return png_create_read_struct ();
11170 ;
11171 return 0;
11172}
11173_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011174if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard00302152007-07-02 19:54:00 +020011175 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011176 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 +020011177 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'` ;;
11178 *) 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'` ;;
11179 esac
Alexandre Julliard00302152007-07-02 19:54:00 +020011180fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011181rm -f core conftest.err conftest.$ac_objext \
11182 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011183 LIBS=$ac_check_soname_save_LIBS
11184fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011185if test "x$ac_cv_lib_soname_png" = "x"; then :
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011187$as_echo "not found" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011188
11189else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011191$as_echo "$ac_cv_lib_soname_png" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011192
11193cat >>confdefs.h <<_ACEOF
11194#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11195_ACEOF
11196
11197
11198fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11200$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11201if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11202 $as_echo_n "(cached) " >&6
11203else
11204 ac_check_lib_save_LIBS=$LIBS
11205LIBS="-lpng -lm -lz $LIBS"
11206cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207/* end confdefs.h. */
11208
11209/* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
11212#ifdef __cplusplus
11213extern "C"
11214#endif
11215char png_set_expand_gray_1_2_4_to_8 ();
11216int
11217main ()
11218{
11219return png_set_expand_gray_1_2_4_to_8 ();
11220 ;
11221 return 0;
11222}
11223_ACEOF
11224if ac_fn_c_try_link "$LINENO"; then :
11225 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11226else
11227 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11228fi
11229rm -f core conftest.err conftest.$ac_objext \
11230 conftest$ac_exeext conftest.$ac_ext
11231LIBS=$ac_check_lib_save_LIBS
11232fi
11233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11234$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11235if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11236
11237$as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11238
11239
11240fi
11241
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011242elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11243then
11244 ac_save_CPPFLAGS="$CPPFLAGS"
11245 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11246 $as_unset ac_cv_header_png_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011247 for ac_header in png.h
11248do :
11249 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11250if test "x$ac_cv_header_png_h" = x""yes; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011251 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011252#define HAVE_PNG_H 1
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011253_ACEOF
11254
11255fi
11256
11257done
11258
11259 CPPFLAGS="$ac_save_CPPFLAGS"
11260 if test "$ac_cv_header_png_h" = "yes"
11261 then
11262 PNGINCL="$X_CFLAGS"
11263
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011265$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011266if test "${ac_cv_lib_soname_png+set}" = set; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011267 $as_echo_n "(cached) " >&6
11268else
11269 ac_check_soname_save_LIBS=$LIBS
11270LIBS="-lpng $X_LIBS -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011272/* end confdefs.h. */
11273
11274/* Override any GCC internal prototype to avoid an error.
11275 Use char because int might match the return type of a GCC
11276 builtin and then its argument prototype would still apply. */
11277#ifdef __cplusplus
11278extern "C"
11279#endif
11280char png_create_read_struct ();
11281int
11282main ()
11283{
11284return png_create_read_struct ();
11285 ;
11286 return 0;
11287}
11288_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011289if ac_fn_c_try_link "$LINENO"; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011290 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011291 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 +020011292 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'` ;;
11293 *) 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'` ;;
11294 esac
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011295fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011296rm -f core conftest.err conftest.$ac_objext \
11297 conftest$ac_exeext conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011298 LIBS=$ac_check_soname_save_LIBS
11299fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011300if test "x$ac_cv_lib_soname_png" = "x"; then :
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011302$as_echo "not found" >&6; }
11303
11304else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011305 { $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 +020011306$as_echo "$ac_cv_lib_soname_png" >&6; }
11307
11308cat >>confdefs.h <<_ACEOF
11309#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11310_ACEOF
11311
11312
11313fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11315$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11316if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11317 $as_echo_n "(cached) " >&6
11318else
11319 ac_check_lib_save_LIBS=$LIBS
11320LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11322/* end confdefs.h. */
11323
11324/* Override any GCC internal prototype to avoid an error.
11325 Use char because int might match the return type of a GCC
11326 builtin and then its argument prototype would still apply. */
11327#ifdef __cplusplus
11328extern "C"
11329#endif
11330char png_set_expand_gray_1_2_4_to_8 ();
11331int
11332main ()
11333{
11334return png_set_expand_gray_1_2_4_to_8 ();
11335 ;
11336 return 0;
11337}
11338_ACEOF
11339if ac_fn_c_try_link "$LINENO"; then :
11340 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11341else
11342 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11343fi
11344rm -f core conftest.err conftest.$ac_objext \
11345 conftest$ac_exeext conftest.$ac_ext
11346LIBS=$ac_check_lib_save_LIBS
11347fi
11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11349$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11350if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11351 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11352
11353fi
11354
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011355 fi
Alexandre Julliard00302152007-07-02 19:54:00 +020011356fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011357if test "x$ac_cv_lib_soname_png" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011358 case "x$with_png" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011359 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 +010011360 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011361 *) as_fn_error "libpng ${notice_platform}development files not found, PNG won't be supported.
11362This is an error since --with-png was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011363esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011364fi
11365
Vincent Povirk73cd5692010-03-08 17:07:29 -060011366if test "$ac_cv_header_tiffio_h" = "yes"
11367then
11368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11369$as_echo_n "checking for -ltiff... " >&6; }
11370if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11371 $as_echo_n "(cached) " >&6
11372else
11373 ac_check_soname_save_LIBS=$LIBS
11374LIBS="-ltiff $LIBS"
11375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11376/* end confdefs.h. */
11377
11378/* Override any GCC internal prototype to avoid an error.
11379 Use char because int might match the return type of a GCC
11380 builtin and then its argument prototype would still apply. */
11381#ifdef __cplusplus
11382extern "C"
11383#endif
11384char TIFFClientOpen ();
11385int
11386main ()
11387{
11388return TIFFClientOpen ();
11389 ;
11390 return 0;
11391}
11392_ACEOF
11393if ac_fn_c_try_link "$LINENO"; then :
11394 case "$LIBEXT" in
11395 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11396 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'` ;;
11397 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11398 esac
11399fi
11400rm -f core conftest.err conftest.$ac_objext \
11401 conftest$ac_exeext conftest.$ac_ext
11402 LIBS=$ac_check_soname_save_LIBS
11403fi
11404if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11406$as_echo "not found" >&6; }
11407
11408else
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11410$as_echo "$ac_cv_lib_soname_tiff" >&6; }
11411
11412cat >>confdefs.h <<_ACEOF
11413#define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11414_ACEOF
11415
11416
11417fi
11418fi
11419if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11420 case "x$with_tiff" in
11421 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11422 xno) ;;
11423 *) as_fn_error "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11424This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11425esac
11426fi
11427
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011428if test "$ac_cv_header_mpg123_h" = "yes"
11429then
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11431$as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11432if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011433 $as_echo_n "(cached) " >&6
11434else
11435 ac_check_lib_save_LIBS=$LIBS
11436LIBS="-lmpg123 $LIBS"
11437cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438/* end confdefs.h. */
11439
11440/* Override any GCC internal prototype to avoid an error.
11441 Use char because int might match the return type of a GCC
11442 builtin and then its argument prototype would still apply. */
11443#ifdef __cplusplus
11444extern "C"
11445#endif
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011446char mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011447int
11448main ()
11449{
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011450return mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011451 ;
11452 return 0;
11453}
11454_ACEOF
11455if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011456 ac_cv_lib_mpg123_mpg123_feed=yes
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011457else
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011458 ac_cv_lib_mpg123_mpg123_feed=no
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011459fi
11460rm -f core conftest.err conftest.$ac_objext \
11461 conftest$ac_exeext conftest.$ac_ext
11462LIBS=$ac_check_lib_save_LIBS
11463fi
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011464{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11465$as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11466if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011467 LIBMPG123="-lmpg123"
11468
11469fi
11470
11471fi
Aric Stewart4430ab42010-03-17 10:58:32 -050011472if 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 -050011473 case "x$with_mpg123" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011474 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 -050011475 xno) ;;
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011476 *) as_fn_error "libmpg123 ${notice_platform}development files not found (or too old), mp3 codec won't be supported.
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011477This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11478esac
11479fi
Aric Stewart4430ab42010-03-17 10:58:32 -050011480test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_func_AudioFileStreamOpen" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011481
Chris Robinson862965f2009-08-25 03:26:35 -070011482if test "$ac_cv_header_AL_al_h" = "yes"
11483then
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11485$as_echo_n "checking for -lopenal... " >&6; }
11486if test "${ac_cv_lib_soname_openal+set}" = set; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011487 $as_echo_n "(cached) " >&6
11488else
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011489 ac_check_soname_save_LIBS=$LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011490LIBS="-lopenal $LIBS"
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson862965f2009-08-25 03:26:35 -070011492/* end confdefs.h. */
11493
11494/* Override any GCC internal prototype to avoid an error.
11495 Use char because int might match the return type of a GCC
11496 builtin and then its argument prototype would still apply. */
11497#ifdef __cplusplus
11498extern "C"
11499#endif
11500char alGetSource3i ();
11501int
11502main ()
11503{
11504return alGetSource3i ();
11505 ;
11506 return 0;
11507}
11508_ACEOF
11509if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011510 case "$LIBEXT" in
11511 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11512 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'` ;;
11513 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11514 esac
Chris Robinson862965f2009-08-25 03:26:35 -070011515fi
11516rm -f core conftest.err conftest.$ac_objext \
11517 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011518 LIBS=$ac_check_soname_save_LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011519fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011520if test "x$ac_cv_lib_soname_openal" = "x"; then :
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11522$as_echo "not found" >&6; }
11523
11524else
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11526$as_echo "$ac_cv_lib_soname_openal" >&6; }
11527
11528cat >>confdefs.h <<_ACEOF
11529#define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11530_ACEOF
11531
11532 LIBOPENAL="-lopenal"
11533
11534 ac_cv_lib_openal=yes
11535
11536cat >>confdefs.h <<_ACEOF
11537#define HAVE_OPENAL 1
11538_ACEOF
Chris Robinson862965f2009-08-25 03:26:35 -070011539
11540fi
Chris Robinson862965f2009-08-25 03:26:35 -070011541fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011542if test "x$ac_cv_lib_openal" != xyes; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011543 case "x$with_openal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011544 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 -070011545 xno) ;;
11546 *) as_fn_error "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11547This is an error since --with-openal was requested." "$LINENO" 5 ;;
11548esac
11549fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011550test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
Chris Robinson862965f2009-08-25 03:26:35 -070011551
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011552if test "$ac_cv_header_kstat_h" = "yes"
11553then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011555$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011556if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011557 $as_echo_n "(cached) " >&6
11558else
11559 ac_check_lib_save_LIBS=$LIBS
11560LIBS="-lkstat $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011562/* end confdefs.h. */
11563
11564/* Override any GCC internal prototype to avoid an error.
11565 Use char because int might match the return type of a GCC
11566 builtin and then its argument prototype would still apply. */
11567#ifdef __cplusplus
11568extern "C"
11569#endif
11570char kstat_open ();
11571int
11572main ()
11573{
11574return kstat_open ();
11575 ;
11576 return 0;
11577}
11578_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011579if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011580 ac_cv_lib_kstat_kstat_open=yes
11581else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011582 ac_cv_lib_kstat_kstat_open=no
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011583fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011584rm -f core conftest.err conftest.$ac_objext \
11585 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011586LIBS=$ac_check_lib_save_LIBS
11587fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011589$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011590if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011591
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011592$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011593
11594 LIBKSTAT="-lkstat"
11595
11596fi
11597
11598fi
11599
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011601$as_echo_n "checking for -lodbc... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011602if test "${ac_cv_lib_soname_odbc+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011603 $as_echo_n "(cached) " >&6
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011604else
11605 ac_check_soname_save_LIBS=$LIBS
11606LIBS="-lodbc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011608/* end confdefs.h. */
11609
11610/* Override any GCC internal prototype to avoid an error.
11611 Use char because int might match the return type of a GCC
11612 builtin and then its argument prototype would still apply. */
11613#ifdef __cplusplus
11614extern "C"
11615#endif
11616char SQLConnect ();
11617int
11618main ()
11619{
11620return SQLConnect ();
11621 ;
11622 return 0;
11623}
11624_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011625if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011626 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011627 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 +010011628 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'` ;;
11629 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11630 esac
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011631fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011632rm -f core conftest.err conftest.$ac_objext \
11633 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011634 LIBS=$ac_check_soname_save_LIBS
11635fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011636if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011638$as_echo "not found" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011639 cat >>confdefs.h <<_ACEOF
11640#define SONAME_LIBODBC "libodbc.$LIBEXT"
11641_ACEOF
11642
11643else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011645$as_echo "$ac_cv_lib_soname_odbc" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011646
11647cat >>confdefs.h <<_ACEOF
11648#define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11649_ACEOF
11650
11651
11652fi
11653
Francois Gouget3089a9f2008-07-31 18:59:50 +020011654if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011655 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
11656 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
11657 "$ac_cv_header_soundcard_h" != "yes" -a \
11658 "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
11659then
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011660 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
Alexandre Julliardf9dec942007-07-10 15:14:15 +020011661fi
11662
11663
Alexandre Julliardfc094232003-04-14 21:46:41 +000011664EXTRACFLAGS=""
11665
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011666if test "x${GCC}" = "xyes"
11667then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000011668 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000011669
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011671$as_echo_n "checking for gcc strength-reduce bug... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011672if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011673 $as_echo_n "(cached) " >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011674else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011675 if test "$cross_compiling" = yes; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011676 ac_cv_c_gcc_strength_bug="yes"
11677else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011679/* end confdefs.h. */
Alexandre Julliardad356de2007-06-08 20:23:16 +020011680int L[4] = {0,1,2,3};
11681int
11682main ()
11683{
11684static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011685 unsigned int B = 3;
11686 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000011687 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000011688 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11689 L[i] = 4;
Alexandre Julliard95251a72009-02-16 12:46:58 +010011690 return (Array[1] != -2 || L[2] != 3)
Alexandre Julliardad356de2007-06-08 20:23:16 +020011691 ;
11692 return 0;
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011693}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011694_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011695if ac_fn_c_try_run "$LINENO"; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011696 ac_cv_c_gcc_strength_bug="no"
11697else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011698 ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011699fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011700rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11701 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011702fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011703
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011704fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011706$as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011707 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11708 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011709 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011710 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000011711
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011713$as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011714if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011715 $as_echo_n "(cached) " >&6
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011716else
11717 ac_wine_try_cflags_saved=$CFLAGS
11718CFLAGS="$CFLAGS -fno-builtin"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011719cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011720/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011721int main(int argc, char **argv) { return 0; }
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011722_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011723if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011724 ac_cv_cflags__fno_builtin=yes
11725else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011726 ac_cv_cflags__fno_builtin=no
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011727fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011728rm -f core conftest.err conftest.$ac_objext \
11729 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011730CFLAGS=$ac_wine_try_cflags_saved
11731fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011733$as_echo "$ac_cv_cflags__fno_builtin" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011734if test $ac_cv_cflags__fno_builtin = yes; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011735 BUILTINFLAG="-fno-builtin"
11736
11737fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011739$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011740if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011741 $as_echo_n "(cached) " >&6
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011742else
11743 ac_wine_try_cflags_saved=$CFLAGS
11744CFLAGS="$CFLAGS -fno-strict-aliasing"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011746/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011747int main(int argc, char **argv) { return 0; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011748_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011749if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011750 ac_cv_cflags__fno_strict_aliasing=yes
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011751else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011752 ac_cv_cflags__fno_strict_aliasing=no
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011753fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011754rm -f core conftest.err conftest.$ac_objext \
11755 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011756CFLAGS=$ac_wine_try_cflags_saved
11757fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011759$as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011760if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011761 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11762fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011764$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011765if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011766 $as_echo_n "(cached) " >&6
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011767else
11768 ac_wine_try_cflags_saved=$CFLAGS
11769CFLAGS="$CFLAGS -Wdeclaration-after-statement"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011771/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011772int main(int argc, char **argv) { return 0; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011773_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011774if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011775 ac_cv_cflags__Wdeclaration_after_statement=yes
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011776else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011777 ac_cv_cflags__Wdeclaration_after_statement=no
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011778fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011779rm -f core conftest.err conftest.$ac_objext \
11780 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011781CFLAGS=$ac_wine_try_cflags_saved
11782fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011784$as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011785if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011786 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11787fi
Alexandre Julliard295806f2009-10-07 13:46:06 +020011788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11789$as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11790if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
11791 $as_echo_n "(cached) " >&6
11792else
11793 ac_wine_try_cflags_saved=$CFLAGS
11794CFLAGS="$CFLAGS -Wstrict-prototypes"
11795cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11796/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011797int main(int argc, char **argv) { return 0; }
Alexandre Julliard295806f2009-10-07 13:46:06 +020011798_ACEOF
11799if ac_fn_c_try_link "$LINENO"; then :
11800 ac_cv_cflags__Wstrict_prototypes=yes
11801else
11802 ac_cv_cflags__Wstrict_prototypes=no
11803fi
11804rm -f core conftest.err conftest.$ac_objext \
11805 conftest$ac_exeext conftest.$ac_ext
11806CFLAGS=$ac_wine_try_cflags_saved
11807fi
11808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11809$as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11810if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11811 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11812fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011814$as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011815if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011816 $as_echo_n "(cached) " >&6
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011817else
11818 ac_wine_try_cflags_saved=$CFLAGS
11819CFLAGS="$CFLAGS -Wtype-limits"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011821/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011822int main(int argc, char **argv) { return 0; }
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011823_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011824if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011825 ac_cv_cflags__Wtype_limits=yes
11826else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011827 ac_cv_cflags__Wtype_limits=no
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011828fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011829rm -f core conftest.err conftest.$ac_objext \
11830 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011831CFLAGS=$ac_wine_try_cflags_saved
11832fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011834$as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011835if test $ac_cv_cflags__Wtype_limits = yes; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011836 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
11837fi
Gerald Pfeifereae58292010-01-02 15:13:43 +010011838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
11839$as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
11840if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
11841 $as_echo_n "(cached) " >&6
11842else
11843 ac_wine_try_cflags_saved=$CFLAGS
11844CFLAGS="$CFLAGS -Wwrite-strings"
11845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11846/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011847int main(int argc, char **argv) { return 0; }
Gerald Pfeifereae58292010-01-02 15:13:43 +010011848_ACEOF
11849if ac_fn_c_try_link "$LINENO"; then :
11850 ac_cv_cflags__Wwrite_strings=yes
11851else
11852 ac_cv_cflags__Wwrite_strings=no
11853fi
11854rm -f core conftest.err conftest.$ac_objext \
11855 conftest$ac_exeext conftest.$ac_ext
11856CFLAGS=$ac_wine_try_cflags_saved
11857fi
11858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
11859$as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
11860if test $ac_cv_cflags__Wwrite_strings = yes; then :
11861 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
11862fi
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011863
Alexandre Julliard4d52d372003-03-24 19:33:20 +000011864 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000011865 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011867$as_echo_n "checking for broken string.h that generates warnings... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011868if test "${ac_cv_c_string_h_warnings+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011869 $as_echo_n "(cached) " >&6
Mike McCormackc509bc42003-02-25 04:01:58 +000011870else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000011872/* end confdefs.h. */
11873#include <string.h>
11874int
11875main ()
11876{
11877
11878 ;
11879 return 0;
11880}
11881_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011882if ac_fn_c_try_compile "$LINENO"; then :
Mike McCormackc509bc42003-02-25 04:01:58 +000011883 ac_cv_c_string_h_warnings=no
11884else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011885 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000011886fi
Jeremy White0ebeb532006-06-20 13:18:41 +020011887rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000011888fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011890$as_echo "$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000011891 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000011892 if test "$ac_cv_c_string_h_warnings" = "no"
11893 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011894 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000011895 fi
Alexandre Julliard12753c52009-10-02 14:39:49 +020011896
11897 if test "${enable_maintainer_mode+set}" = set
11898 then
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
11900$as_echo_n "checking whether the compiler supports -Werror... " >&6; }
11901if test "${ac_cv_cflags__Werror+set}" = set; then :
11902 $as_echo_n "(cached) " >&6
11903else
11904 ac_wine_try_cflags_saved=$CFLAGS
11905CFLAGS="$CFLAGS -Werror"
11906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011908int main(int argc, char **argv) { return 0; }
Alexandre Julliard12753c52009-10-02 14:39:49 +020011909_ACEOF
11910if ac_fn_c_try_link "$LINENO"; then :
11911 ac_cv_cflags__Werror=yes
11912else
11913 ac_cv_cflags__Werror=no
11914fi
11915rm -f core conftest.err conftest.$ac_objext \
11916 conftest$ac_exeext conftest.$ac_ext
11917CFLAGS=$ac_wine_try_cflags_saved
11918fi
11919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
11920$as_echo "$ac_cv_cflags__Werror" >&6; }
11921if test $ac_cv_cflags__Werror = yes; then :
11922 EXTRACFLAGS="$EXTRACFLAGS -Werror"
11923fi
11924 fi
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020011925
11926 saved_CFLAGS="$CFLAGS"
11927 CFLAGS="$CFLAGS -Werror"
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
11929$as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
11930if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
11931 $as_echo_n "(cached) " >&6
11932else
11933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11934/* end confdefs.h. */
11935int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
11936int
11937main ()
11938{
11939
11940 ;
11941 return 0;
11942}
11943_ACEOF
11944if ac_fn_c_try_compile "$LINENO"; then :
11945 ac_cv_have_ms_hook_prologue="yes"
11946else
11947 ac_cv_have_ms_hook_prologue="no"
11948fi
11949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11950fi
11951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
11952$as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
11953 CFLAGS="$saved_CFLAGS"
11954 if test "$ac_cv_have_ms_hook_prologue" = "yes"
11955 then
11956
11957$as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
11958
11959 else
11960 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
11961
11962 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011963fi
11964
Alexandre Julliarddaa28862002-04-11 21:54:01 +000011965
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020011967$as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011968if test "${ac_cv_c_extern_prefix+set}" = set; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020011969 $as_echo_n "(cached) " >&6
11970else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020011972/* end confdefs.h. */
11973extern int ac_test;
11974int
11975main ()
11976{
11977asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
11978 ;
11979 return 0;
11980}
11981_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011982if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020011983 ac_cv_c_extern_prefix="yes"
11984else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011985 ac_cv_c_extern_prefix="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020011986fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011987rm -f core conftest.err conftest.$ac_objext \
11988 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020011989fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020011991$as_echo "$ac_cv_c_extern_prefix" >&6; }
11992
Alexandre Julliard9cebf092009-06-14 11:24:20 +020011993case $host_cpu in
11994 *i[3456789]86*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020011996$as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011997if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020011998 $as_echo_n "(cached) " >&6
11999else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012001/* end confdefs.h. */
12002#ifndef _MSC_VER
12003#define __stdcall __attribute__((__stdcall__))
12004#endif
12005int __stdcall ac_test(int i) { return i; }
12006int
12007main ()
12008{
12009asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12010 ;
12011 return 0;
12012}
12013_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012014if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012015 ac_cv_c_stdcall_suffix="yes"
12016else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012017 ac_cv_c_stdcall_suffix="no"
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012018fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012019rm -f core conftest.err conftest.$ac_objext \
12020 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012021fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012023$as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12024 *) ac_cv_c_stdcall_suffix="no" ;;
12025esac
12026
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012027
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012028if test "$ac_cv_c_extern_prefix" = "yes"
12029then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012030 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012031
12032 asm_name_prefix="_"
12033else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012034 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012035
12036 asm_name_prefix=""
12037fi
12038
12039
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012040if test "$ac_cv_c_stdcall_suffix" = "yes"
12041then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012042 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012043
12044else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012045 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012046
12047fi
12048
12049
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012051$as_echo_n "checking how to define a function in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012052if test "${ac_cv_asm_func_def+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012053 $as_echo_n "(cached) " >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012054else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012056/* end confdefs.h. */
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012057
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012058int
12059main ()
12060{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012061asm("\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 +000012062 ;
12063 return 0;
12064}
12065_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012066if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012067 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012068else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012070/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012071
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012072int
12073main ()
12074{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012075asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012076 ;
12077 return 0;
12078}
12079_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012080if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012081 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012082else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012084/* end confdefs.h. */
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012085
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012086int
12087main ()
12088{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012089asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012090 ;
12091 return 0;
12092}
12093_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012094if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012095 ac_cv_asm_func_def=".type 2"
12096else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012097 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012098fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012099rm -f core conftest.err conftest.$ac_objext \
12100 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012101fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012102rm -f core conftest.err conftest.$ac_objext \
12103 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012104fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012105rm -f core conftest.err conftest.$ac_objext \
12106 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012107fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012109$as_echo "$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012110
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012111
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012112case "$ac_cv_asm_func_def" in
12113 ".def")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012114 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012115
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012116 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012117 ".type @function")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012118 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012119
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012120 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012121 ".type 2")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012122 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012123
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012124 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012125 *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012126 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012127
12128 asm_func_header="" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012129esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012130
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012132$as_echo_n "checking whether asm() works outside of functions... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012133if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012134 $as_echo_n "(cached) " >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012135else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012137/* end confdefs.h. */
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012138asm(".text\n\t.long 0");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012139int
12140main ()
12141{
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012142
12143 ;
12144 return 0;
12145}
12146_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012147if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012148 ac_cv_c_asm_outside_funcs="yes"
12149else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012150 ac_cv_c_asm_outside_funcs="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012151fi
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12153fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012155$as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12156
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012158$as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012159if test "${ac_cv_c_dot_previous+set}" = set; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012160 $as_echo_n "(cached) " >&6
12161else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012163/* end confdefs.h. */
12164
12165int
12166main ()
12167{
12168asm(".text\nac_test:\t.long 0\n\t.previous");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012169 ;
12170 return 0;
12171}
12172_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012173if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012174 ac_cv_c_dot_previous="yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012175else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012176 ac_cv_c_dot_previous="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012177fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012178rm -f core conftest.err conftest.$ac_objext \
12179 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012180fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012182$as_echo "$ac_cv_c_dot_previous" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012183
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012185$as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012186if test "${ac_cv_c_cfi_support+set}" = set; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012187 $as_echo_n "(cached) " >&6
12188else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012190/* end confdefs.h. */
12191asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12192int
12193main ()
12194{
12195
12196 ;
12197 return 0;
12198}
12199_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012200if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012201 ac_cv_c_cfi_support="yes"
12202else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012203 ac_cv_c_cfi_support="no"
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012204fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12206fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012208$as_echo "$ac_cv_c_cfi_support" >&6; }
12209
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012210asm_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 +020012211asm_func_trailer=""
12212if test "$ac_cv_c_dot_previous" = "yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012213then
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012214 asm_func_trailer="\\n\\t.previous"
12215fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012216if test "$ac_cv_c_cfi_support" = "yes"
12217then
12218 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12219 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012220
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012221$as_echo "#define __ASM_CFI(str) str" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012222
Alexandre Julliard6c142382010-04-11 12:47:30 +020012223 UNWINDFLAGS=-fasynchronous-unwind-tables
12224
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012225else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012226 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012227
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012228fi
12229
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012230asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12231
12232
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012233if test "$ac_cv_c_asm_outside_funcs" = "yes"
12234then
12235 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012236#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 +000012237_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012238
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012239else
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012240 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012241#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 +000012242_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012243
12244fi
12245
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012246$as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012247
12248
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012249$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 +020012250
12251
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012252
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012253LDPATH=""
12254
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012255case $build_os in
12256 cygwin*|mingw32*)
Alexandre Julliardb860c4a2009-09-01 22:36:13 +020012257 TOOLSEXT=".exe"
12258
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012259 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012260 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000012261 darwin*|macosx*)
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012262 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012263 *)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012264 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012265 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012266esac
12267
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012268case $host_os in
12269 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000012270 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012271
Alexandre Julliarddc1a9f12008-12-22 17:36:18 +010012272 SOCKETLIBS="-L\$(TOPOBJDIR)/dlls/ws2_32 -lws2_32"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012273
12274 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000012275esac
12276
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012277MAIN_BINARY="wine"
12278
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020012279test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012280
Alexandre Julliardf4a19c82009-03-10 18:22:38 +010012281case $host_cpu in
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010012282 *i[3456789]86*)
12283 case $host_os in
Austin English5e185962009-10-28 19:51:17 -050012284 linux*)
Alexandre Julliardf4a19c82009-03-10 18:22:38 +010012285 EXTRA_BINARIES="wine-preloader"
Tijl Coosemans9f5c69c2007-08-24 15:46:36 +020012286 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010012287 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000012288 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012289esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012290
12291
Alexandre Julliard95251a72009-02-16 12:46:58 +010012292ac_save_CFLAGS="$CFLAGS"
12293CFLAGS="$CFLAGS $BUILTINFLAG"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012294for ac_func in \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012295 _pclose \
12296 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012297 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000012298 _spawnvp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012299 _strdup \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012300 _stricmp \
12301 _strnicmp \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012302 _strtoi64 \
12303 _strtoui64 \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012304 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010012305 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012306 chsize \
Alexandre Julliarde533e972006-08-15 12:11:30 +020012307 dlopen \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000012308 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000012309 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012310 finite \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +020012311 fnmatch \
Hans Leidekkerbed38422004-10-14 03:08:57 +000012312 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012313 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000012314 fstatfs \
12315 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012316 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000012317 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000012318 futimesat \
Alexandre Julliarda9f214c2006-11-13 15:42:48 +010012319 getdirentries \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000012320 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012321 getpagesize \
Alexandre Julliard142dab82002-07-01 18:17:30 +000012322 getpwuid \
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000012323 gettid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000012324 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000012325 getuid \
Alexandre Julliardc8278922006-08-04 22:11:00 +020012326 kqueue \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000012327 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012328 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000012329 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012330 pclose \
Alexandre Julliard6f68b772009-07-01 12:13:34 +020012331 pipe2 \
Alexandre Julliard10892602006-08-15 11:41:59 +020012332 poll \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012333 popen \
Albert Lee01b972d2009-11-20 18:35:26 -050012334 port_create \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020012335 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012336 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000012337 pwrite \
Rob Shearman87175c62008-10-03 12:55:21 +010012338 readdir \
Alexandre Julliarde2930742004-01-08 05:07:05 +000012339 readlink \
Juan Lang474b2e42009-09-29 09:17:30 -070012340 sched_setaffinity \
Jeremy White08c0f692004-10-09 02:26:29 +000012341 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012342 select \
Gerald Pfeifer39f67272008-01-20 21:23:08 +010012343 setproctitle \
Paul Millardf10b7d2006-07-16 15:06:28 +010012344 setrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012345 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012346 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000012347 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012348 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000012349 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012350 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000012351 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012352 strcasecmp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012353 strdup \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012354 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012355 strncasecmp \
Louis Lenders6c04a182006-12-17 17:56:50 +000012356 strtold \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012357 strtoll \
12358 strtoull \
Alexandre Julliard0fbd5562008-12-22 10:47:16 +010012359 symlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012360 tcgetattr \
Tijl Coosemans0c4f1522007-08-23 14:12:37 +020012361 thr_kill2 \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012362 timegm \
12363 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012364 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012365 wait4 \
12366 waitpid \
12367
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012368do :
12369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12370ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12371eval as_val=\$$as_ac_var
12372 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012373 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012374#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012375_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012376
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012377fi
12378done
12379
Alexandre Julliard95251a72009-02-16 12:46:58 +010012380CFLAGS="$ac_save_CFLAGS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012381
Alexandre Julliarde533e972006-08-15 12:11:30 +020012382if test "$ac_cv_func_dlopen" = no
12383then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012385$as_echo_n "checking for dlopen in -ldl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012386if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012387 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012388else
12389 ac_check_lib_save_LIBS=$LIBS
12390LIBS="-ldl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012392/* end confdefs.h. */
12393
12394/* Override any GCC internal prototype to avoid an error.
12395 Use char because int might match the return type of a GCC
12396 builtin and then its argument prototype would still apply. */
12397#ifdef __cplusplus
12398extern "C"
12399#endif
12400char dlopen ();
12401int
12402main ()
12403{
12404return dlopen ();
12405 ;
12406 return 0;
12407}
12408_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012409if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012410 ac_cv_lib_dl_dlopen=yes
12411else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012412 ac_cv_lib_dl_dlopen=no
Alexandre Julliarde533e972006-08-15 12:11:30 +020012413fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012414rm -f core conftest.err conftest.$ac_objext \
12415 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012416LIBS=$ac_check_lib_save_LIBS
12417fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012419$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012420if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12421 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
Alexandre Julliarde533e972006-08-15 12:11:30 +020012422 LIBDL="-ldl"
12423
12424fi
12425
12426fi
12427ac_wine_check_funcs_save_LIBS="$LIBS"
12428LIBS="$LIBS $LIBDL"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012429for ac_func in dladdr
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012430do :
12431 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12432if test "x$ac_cv_func_dladdr" = x""yes; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012433 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012434#define HAVE_DLADDR 1
Alexandre Julliarde533e972006-08-15 12:11:30 +020012435_ACEOF
12436
12437fi
12438done
12439
12440LIBS="$ac_wine_check_funcs_save_LIBS"
12441
Alexandre Julliard10892602006-08-15 11:41:59 +020012442if test "$ac_cv_func_poll" = no
12443then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012445$as_echo_n "checking for poll in -lpoll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012446if test "${ac_cv_lib_poll_poll+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012447 $as_echo_n "(cached) " >&6
Alexandre Julliard10892602006-08-15 11:41:59 +020012448else
12449 ac_check_lib_save_LIBS=$LIBS
12450LIBS="-lpoll $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012451cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012452/* end confdefs.h. */
12453
12454/* Override any GCC internal prototype to avoid an error.
12455 Use char because int might match the return type of a GCC
12456 builtin and then its argument prototype would still apply. */
12457#ifdef __cplusplus
12458extern "C"
12459#endif
12460char poll ();
12461int
12462main ()
12463{
12464return poll ();
12465 ;
12466 return 0;
12467}
12468_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012469if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard10892602006-08-15 11:41:59 +020012470 ac_cv_lib_poll_poll=yes
12471else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012472 ac_cv_lib_poll_poll=no
Alexandre Julliard10892602006-08-15 11:41:59 +020012473fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012474rm -f core conftest.err conftest.$ac_objext \
12475 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012476LIBS=$ac_check_lib_save_LIBS
12477fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012479$as_echo "$ac_cv_lib_poll_poll" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012480if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12481 $as_echo "#define HAVE_POLL 1" >>confdefs.h
Alexandre Julliard10892602006-08-15 11:41:59 +020012482 LIBPOLL="-lpoll"
12483
12484fi
12485
12486fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012487
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012489$as_echo_n "checking for library containing gethostbyname... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012490if test "${ac_cv_search_gethostbyname+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012491 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012492else
Alexandre Julliard28710412007-04-23 16:31:58 +020012493 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012495/* end confdefs.h. */
12496
12497/* Override any GCC internal prototype to avoid an error.
12498 Use char because int might match the return type of a GCC
12499 builtin and then its argument prototype would still apply. */
12500#ifdef __cplusplus
12501extern "C"
12502#endif
12503char gethostbyname ();
12504int
12505main ()
12506{
12507return gethostbyname ();
12508 ;
12509 return 0;
12510}
12511_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012512for ac_lib in '' nsl; do
12513 if test -z "$ac_lib"; then
12514 ac_res="none required"
12515 else
12516 ac_res=-l$ac_lib
12517 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12518 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012519 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012520 ac_cv_search_gethostbyname=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012521fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012522rm -f core conftest.err conftest.$ac_objext \
12523 conftest$ac_exeext
12524 if test "${ac_cv_search_gethostbyname+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012525 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012526fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012527done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012528if test "${ac_cv_search_gethostbyname+set}" = set; then :
12529
Alexandre Julliard28710412007-04-23 16:31:58 +020012530else
12531 ac_cv_search_gethostbyname=no
12532fi
12533rm conftest.$ac_ext
12534LIBS=$ac_func_search_save_LIBS
12535fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012537$as_echo "$ac_cv_search_gethostbyname" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012538ac_res=$ac_cv_search_gethostbyname
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012539if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012540 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012541
12542fi
12543
Alexandre Julliarde533e972006-08-15 12:11:30 +020012544
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012546$as_echo_n "checking for library containing connect... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012547if test "${ac_cv_search_connect+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012548 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012549else
Alexandre Julliard28710412007-04-23 16:31:58 +020012550 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012552/* end confdefs.h. */
12553
12554/* Override any GCC internal prototype to avoid an error.
12555 Use char because int might match the return type of a GCC
12556 builtin and then its argument prototype would still apply. */
12557#ifdef __cplusplus
12558extern "C"
12559#endif
12560char connect ();
12561int
12562main ()
12563{
12564return connect ();
12565 ;
12566 return 0;
12567}
12568_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012569for ac_lib in '' socket; do
12570 if test -z "$ac_lib"; then
12571 ac_res="none required"
12572 else
12573 ac_res=-l$ac_lib
12574 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12575 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012576 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012577 ac_cv_search_connect=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012578fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012579rm -f core conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext
12581 if test "${ac_cv_search_connect+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012582 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012583fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012584done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012585if test "${ac_cv_search_connect+set}" = set; then :
12586
Alexandre Julliard28710412007-04-23 16:31:58 +020012587else
12588 ac_cv_search_connect=no
12589fi
12590rm conftest.$ac_ext
12591LIBS=$ac_func_search_save_LIBS
12592fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012594$as_echo "$ac_cv_search_connect" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012595ac_res=$ac_cv_search_connect
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012596if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012597 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012598
12599fi
12600
Alexandre Julliarde533e972006-08-15 12:11:30 +020012601
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012602{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012603$as_echo_n "checking for library containing inet_aton... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012604if test "${ac_cv_search_inet_aton+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012605 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012606else
Alexandre Julliard28710412007-04-23 16:31:58 +020012607 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012609/* end confdefs.h. */
12610
12611/* Override any GCC internal prototype to avoid an error.
12612 Use char because int might match the return type of a GCC
12613 builtin and then its argument prototype would still apply. */
12614#ifdef __cplusplus
12615extern "C"
12616#endif
12617char inet_aton ();
12618int
12619main ()
12620{
12621return inet_aton ();
12622 ;
12623 return 0;
12624}
12625_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012626for ac_lib in '' resolv; do
12627 if test -z "$ac_lib"; then
12628 ac_res="none required"
12629 else
12630 ac_res=-l$ac_lib
12631 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12632 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012633 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012634 ac_cv_search_inet_aton=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012635fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012636rm -f core conftest.err conftest.$ac_objext \
12637 conftest$ac_exeext
12638 if test "${ac_cv_search_inet_aton+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012639 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012640fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012641done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012642if test "${ac_cv_search_inet_aton+set}" = set; then :
12643
Alexandre Julliard28710412007-04-23 16:31:58 +020012644else
12645 ac_cv_search_inet_aton=no
12646fi
12647rm conftest.$ac_ext
12648LIBS=$ac_func_search_save_LIBS
12649fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012651$as_echo "$ac_cv_search_inet_aton" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012652ac_res=$ac_cv_search_inet_aton
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012653if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012654 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012655
12656fi
12657
Alexandre Julliarde533e972006-08-15 12:11:30 +020012658
Ben Taylor41c59962007-04-23 13:41:42 +000012659for ac_func in \
12660 getaddrinfo \
12661 getnameinfo \
12662 getnetbyname \
12663 getprotobyname \
12664 getprotobynumber \
12665 getservbyport \
12666 inet_network \
Austin English06566912009-03-28 00:13:09 -050012667 inet_ntop \
12668 inet_pton \
Ben Taylor41c59962007-04-23 13:41:42 +000012669 sendmsg \
Alexandre Julliard98bec052009-03-26 11:07:28 +010012670 socketpair \
Ben Taylor41c59962007-04-23 13:41:42 +000012671
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012672do :
12673 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12674ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12675eval as_val=\$$as_ac_var
12676 if test "x$as_val" = x""yes; then :
Ben Taylor41c59962007-04-23 13:41:42 +000012677 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012678#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Ben Taylor41c59962007-04-23 13:41:42 +000012679_ACEOF
12680
12681fi
12682done
12683
12684
Francois Gougetbcba2702008-07-10 12:36:06 +020012685LDAPLIBS=""
12686
12687if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12688then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012689 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12690"
12691if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012693$as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012694if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012695 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020012696else
12697 ac_check_lib_save_LIBS=$LIBS
12698LIBS="-lldap_r $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012700/* end confdefs.h. */
12701
12702/* Override any GCC internal prototype to avoid an error.
12703 Use char because int might match the return type of a GCC
12704 builtin and then its argument prototype would still apply. */
12705#ifdef __cplusplus
12706extern "C"
12707#endif
12708char ldap_initialize ();
12709int
12710main ()
12711{
12712return ldap_initialize ();
12713 ;
12714 return 0;
12715}
12716_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012717if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012718 ac_cv_lib_ldap_r_ldap_initialize=yes
12719else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012720 ac_cv_lib_ldap_r_ldap_initialize=no
Francois Gougetbcba2702008-07-10 12:36:06 +020012721fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012722rm -f core conftest.err conftest.$ac_objext \
12723 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012724LIBS=$ac_check_lib_save_LIBS
12725fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012727$as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012728if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
12729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012730$as_echo_n "checking for ber_init in -llber... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012731if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012732 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020012733else
12734 ac_check_lib_save_LIBS=$LIBS
12735LIBS="-llber $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012736cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012737/* end confdefs.h. */
12738
12739/* Override any GCC internal prototype to avoid an error.
12740 Use char because int might match the return type of a GCC
12741 builtin and then its argument prototype would still apply. */
12742#ifdef __cplusplus
12743extern "C"
12744#endif
12745char ber_init ();
12746int
12747main ()
12748{
12749return ber_init ();
12750 ;
12751 return 0;
12752}
12753_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012754if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012755 ac_cv_lib_lber_ber_init=yes
12756else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012757 ac_cv_lib_lber_ber_init=no
Francois Gougetbcba2702008-07-10 12:36:06 +020012758fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012759rm -f core conftest.err conftest.$ac_objext \
12760 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012761LIBS=$ac_check_lib_save_LIBS
12762fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012764$as_echo "$ac_cv_lib_lber_ber_init" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012765if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012766
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012767$as_echo "#define HAVE_LDAP 1" >>confdefs.h
Francois Gougetbcba2702008-07-10 12:36:06 +020012768
12769 LDAPLIBS="-lldap_r -llber"
12770fi
12771
12772fi
12773
12774fi
12775
12776 ac_wine_check_funcs_save_LIBS="$LIBS"
12777LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Francois Gougetbcba2702008-07-10 12:36:06 +020012778for ac_func in \
12779 ldap_count_references \
12780 ldap_first_reference \
12781 ldap_next_reference \
12782 ldap_parse_reference \
12783 ldap_parse_sort_control \
12784 ldap_parse_sortresponse_control \
12785 ldap_parse_vlv_control \
12786 ldap_parse_vlvresponse_control
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012787do :
12788 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12789ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12790eval as_val=\$$as_ac_var
12791 if test "x$as_val" = x""yes; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012792 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012793#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Francois Gougetbcba2702008-07-10 12:36:06 +020012794_ACEOF
12795
12796fi
12797done
12798
12799LIBS="$ac_wine_check_funcs_save_LIBS"
12800fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012801if test "x$LDAPLIBS" = "x"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012802 case "x$with_ldap" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010012803 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 +020012804 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012805 *) as_fn_error "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
12806This is an error since --with-ldap was requested." "$LINENO" 5 ;;
Francois Gougetbcba2702008-07-10 12:36:06 +020012807esac
12808fi
12809
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010012811$as_echo_n "checking whether mkdir takes only one argument... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012812if test "${wine_cv_one_arg_mkdir+set}" = set; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010012813 $as_echo_n "(cached) " >&6
12814else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard921e6622008-12-22 10:39:11 +010012816/* end confdefs.h. */
12817#include <sys/stat.h>
12818int
12819main ()
12820{
12821mkdir("foo");
12822 ;
12823 return 0;
12824}
12825_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012826if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010012827 wine_cv_one_arg_mkdir=yes
12828else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012829 wine_cv_one_arg_mkdir=no
Alexandre Julliard921e6622008-12-22 10:39:11 +010012830fi
Alexandre Julliard921e6622008-12-22 10:39:11 +010012831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12832fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010012834$as_echo "$wine_cv_one_arg_mkdir" >&6; }
12835if test "$wine_cv_one_arg_mkdir" = "yes"
12836then
12837
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012838$as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
Alexandre Julliard921e6622008-12-22 10:39:11 +010012839
12840fi
12841
Ben Taylor41c59962007-04-23 13:41:42 +000012842
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012843{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012844$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012845if test "${ac_cv_c_const+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012846 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012847else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012849/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012850
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012851int
12852main ()
12853{
12854/* FIXME: Include the comments suggested by Paul. */
12855#ifndef __cplusplus
12856 /* Ultrix mips cc rejects this. */
12857 typedef int charset[2];
Phil Krylovf0ca5862006-11-05 23:03:46 +030012858 const charset cs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012859 /* SunOS 4.1.1 cc rejects this. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030012860 char const *const *pcpcc;
12861 char **ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012862 /* NEC SVR4.0.2 mips cc rejects this. */
12863 struct point {int x, y;};
12864 static struct point const zero = {0,0};
12865 /* AIX XL C 1.02.0.0 rejects this.
12866 It does not let you subtract one const X* pointer from another in
12867 an arm of an if-expression whose if-part is not a constant
12868 expression */
12869 const char *g = "string";
Phil Krylovf0ca5862006-11-05 23:03:46 +030012870 pcpcc = &g + (g ? g-g : 0);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012871 /* HPUX 7.0 cc rejects these. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030012872 ++pcpcc;
12873 ppc = (char**) pcpcc;
12874 pcpcc = (char const *const *) ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012875 { /* SCO 3.2v4 cc rejects this. */
12876 char *t;
12877 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012878
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012879 *t++ = 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012880 if (s) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012881 }
12882 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12883 int x[] = {25, 17};
12884 const int *foo = &x[0];
12885 ++foo;
12886 }
12887 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12888 typedef const int *iptr;
12889 iptr p = 0;
12890 ++p;
12891 }
12892 { /* AIX XL C 1.02.0.0 rejects this saying
12893 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12894 struct s { int j; const int *ap[3]; };
12895 struct s *b; b->j = 5;
12896 }
12897 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12898 const int foo = 10;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012899 if (!foo) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012900 }
Phil Krylovf0ca5862006-11-05 23:03:46 +030012901 return !cs[0] && !zero.x;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012902#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012903
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012904 ;
12905 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012906}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012907_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012908if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012909 ac_cv_c_const=yes
12910else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012911 ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012912fi
Jeremy White0ebeb532006-06-20 13:18:41 +020012913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012914fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012916$as_echo "$ac_cv_c_const" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012917if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012918
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012919$as_echo "#define const /**/" >>confdefs.h
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012920
12921fi
12922
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012924$as_echo_n "checking for inline... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012925if test "${ac_cv_c_inline+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012926 $as_echo_n "(cached) " >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012927else
12928 ac_cv_c_inline=no
12929for ac_kw in inline __inline__ __inline; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012931/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012932#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000012933typedef int foo_t;
12934static $ac_kw foo_t static_foo () {return 0; }
12935$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012936#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012937
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012938_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012939if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012940 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012941fi
Jeremy White0ebeb532006-06-20 13:18:41 +020012942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020012943 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012944done
12945
12946fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012948$as_echo "$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000012949
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012950case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012951 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000012952 *)
12953 case $ac_cv_c_inline in
12954 no) ac_val=;;
12955 *) ac_val=$ac_cv_c_inline;;
12956 esac
12957 cat >>confdefs.h <<_ACEOF
12958#ifndef __cplusplus
12959#define inline $ac_val
12960#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012961_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000012962 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000012963esac
12964
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012965ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
12966if test "x$ac_cv_type_mode_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012967
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012968cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012969#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012970_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012971
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012972
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012973fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012974ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12975if test "x$ac_cv_type_off_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012976
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012977cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012978#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012979_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012980
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012981
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012982fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012983ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12984if test "x$ac_cv_type_pid_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012985
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012986cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012987#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012988_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012989
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012990
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012991fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012992ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12993if test "x$ac_cv_type_size_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012994
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012995cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012996#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012997_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012998
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000012999
13000fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013001ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13002if test "x$ac_cv_type_ssize_t" = x""yes; then :
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013003
13004cat >>confdefs.h <<_ACEOF
13005#define HAVE_SSIZE_T 1
13006_ACEOF
13007
13008
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013009fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013010ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13011if test "x$ac_cv_type_long_long" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013012
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013013cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013014#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013015_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013016
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013017
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013018fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013019ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13020if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013021
13022cat >>confdefs.h <<_ACEOF
13023#define HAVE_FSBLKCNT_T 1
13024_ACEOF
13025
13026
13027fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013028ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13029if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013030
13031cat >>confdefs.h <<_ACEOF
13032#define HAVE_FSFILCNT_T 1
13033_ACEOF
13034
13035
13036fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013037
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013038ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
Alexandre Julliardabf50482008-10-31 12:56:53 +010013039#include <signal.h>
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013040"
13041if test "x$ac_cv_type_sigset_t" = x""yes; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013042
13043cat >>confdefs.h <<_ACEOF
13044#define HAVE_SIGSET_T 1
13045_ACEOF
13046
13047
13048fi
13049
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013050ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13051"
13052if test "x$ac_cv_type_request_sense" = x""yes; then :
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000013053
13054cat >>confdefs.h <<_ACEOF
13055#define HAVE_REQUEST_SENSE 1
13056_ACEOF
13057
13058
13059fi
13060
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013061
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013062ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
Austin English68f2db22009-01-29 08:28:37 -060013063#ifdef HAVE_SYS_SOCKET_H
13064#include <sys/socket.h>
13065#endif
13066#ifdef HAVE_SYS_SOCKETVAR_H
13067#include <sys/socketvar.h>
13068#endif
13069#ifdef HAVE_NET_ROUTE_H
13070#include <net/route.h>
13071#endif
13072#ifdef HAVE_NETINET_IN_H
13073#include <netinet/in.h>
13074#endif
13075#ifdef HAVE_NETINET_IN_SYSTM_H
13076#include <netinet/in_systm.h>
13077#endif
13078#ifdef HAVE_NETINET_IP_H
13079#include <netinet/ip.h>
13080#endif
13081#ifdef HAVE_NETINET_IN_PCB_H
13082#include <netinet/in_pcb.h>
13083#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013084"
13085if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
Austin English68f2db22009-01-29 08:28:37 -060013086
13087cat >>confdefs.h <<_ACEOF
13088#define HAVE_STRUCT_XINPGEN 1
13089_ACEOF
13090
13091
13092fi
13093
13094
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013095ac_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 +000013096#include <linux/input.h>
13097#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013098"
13099if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
Daniel Remenake491e8f2005-07-29 14:18:58 +000013100
13101cat >>confdefs.h <<_ACEOF
13102#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13103_ACEOF
13104
13105
13106fi
13107
13108
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013110$as_echo_n "checking for sigaddset... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013111if test "${wine_cv_have_sigaddset+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013112 $as_echo_n "(cached) " >&6
Paul Millar10a6c562004-12-07 17:19:54 +000013113else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013115/* end confdefs.h. */
13116#include <signal.h>
13117int
13118main ()
13119{
13120sigset_t set; sigaddset(&set,SIGTERM);
13121 ;
13122 return 0;
13123}
13124_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013125if ac_fn_c_try_link "$LINENO"; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013126 wine_cv_have_sigaddset=yes
13127else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013128 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000013129fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013130rm -f core conftest.err conftest.$ac_objext \
13131 conftest$ac_exeext conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013132fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013134$as_echo "$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000013135if test "$wine_cv_have_sigaddset" = "yes"
13136then
13137
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013138$as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
Paul Millar10a6c562004-12-07 17:19:54 +000013139
13140fi
13141
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013142
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013143{ $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 +010013144$as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013145if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013146 $as_echo_n "(cached) " >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013147else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013149/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000013150#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013151int
13152main ()
13153{
Rein Klazesff7a61f2000-09-24 19:41:57 +000013154
Ken Thomases20d9bad2007-10-19 16:18:51 -050013155 char *name=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013156 struct hostent he;
13157 struct hostent *result;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013158 char *buf=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013159 int bufsize=0;
13160 int res,errnr;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013161 char *addr=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013162 int addrlen=0;
13163 int addrtype=0;
13164 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13165 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013166
13167 ;
13168 return 0;
13169}
13170_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013171if ac_fn_c_try_link "$LINENO"; then :
Rein Klazesff7a61f2000-09-24 19:41:57 +000013172 wine_cv_linux_gethostbyname_r_6=yes
13173else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013174 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000013175
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013176fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013177rm -f core conftest.err conftest.$ac_objext \
13178 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013179
13180fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013182$as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000013183 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13184 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013185
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013186$as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
Rein Klazesff7a61f2000-09-24 19:41:57 +000013187
13188 fi
13189
Marcus Meissner028e9a11999-08-04 15:07:56 +000013190if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013191then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013192 { $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 +010013193$as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013194if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013195 $as_echo_n "(cached) " >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013196else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013198/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013199
Marcus Meissner028e9a11999-08-04 15:07:56 +000013200 #include <sys/ioctl.h>
Marcus Meissner7c434992007-04-12 12:12:05 +020013201 #include <sys/types.h>
Marcus Meissner028e9a11999-08-04 15:07:56 +000013202 #include <linux/joystick.h>
13203
13204 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000013205 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13206 #error "no 2.2 header"
13207 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013208
13209int
13210main ()
13211{
Marcus Meissner028e9a11999-08-04 15:07:56 +000013212/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013213 ;
13214 return 0;
13215}
13216_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013217if ac_fn_c_try_compile "$LINENO"; then :
Marcus Meissner028e9a11999-08-04 15:07:56 +000013218 wine_cv_linux_joystick_22_api=yes
13219else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013220 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000013221fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000013223
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013224fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013226$as_echo "$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000013227 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013228 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013229
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013230$as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
Marcus Meissner028e9a11999-08-04 15:07:56 +000013231
13232 fi
13233fi
13234
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013235
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013236ac_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 +000013237#ifdef HAVE_SYS_PARAM_H
13238# include <sys/param.h>
13239#endif
Robert Millan55b74482006-02-06 21:53:27 +010013240#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013241# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013242#endif
13243#ifdef HAVE_SYS_VFS_H
13244# include <sys/vfs.h>
13245#endif
13246#ifdef HAVE_SYS_STATFS_H
13247# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013248#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013249"
13250if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013251
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013252cat >>confdefs.h <<_ACEOF
13253#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013254_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013255
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013256
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013257fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013258ac_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 +000013259#ifdef HAVE_SYS_PARAM_H
13260# include <sys/param.h>
13261#endif
Robert Millan55b74482006-02-06 21:53:27 +010013262#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013263# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013264#endif
13265#ifdef HAVE_SYS_VFS_H
13266# include <sys/vfs.h>
13267#endif
13268#ifdef HAVE_SYS_STATFS_H
13269# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013270#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013271"
13272if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
Patrik Stridvall09da9662001-07-08 22:30:50 +000013273
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013274cat >>confdefs.h <<_ACEOF
13275#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013276_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013277
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013278
Patrik Stridvall09da9662001-07-08 22:30:50 +000013279fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013280ac_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 +000013281#ifdef HAVE_SYS_PARAM_H
13282# include <sys/param.h>
13283#endif
Robert Millan55b74482006-02-06 21:53:27 +010013284#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013285# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013286#endif
13287#ifdef HAVE_SYS_VFS_H
13288# include <sys/vfs.h>
13289#endif
13290#ifdef HAVE_SYS_STATFS_H
13291# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013292#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013293"
13294if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013295
13296cat >>confdefs.h <<_ACEOF
13297#define HAVE_STRUCT_STATFS_F_FRSIZE 1
13298_ACEOF
13299
13300
13301fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013302ac_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 +000013303#ifdef HAVE_SYS_PARAM_H
13304# include <sys/param.h>
13305#endif
Robert Millan55b74482006-02-06 21:53:27 +010013306#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013307# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013308#endif
13309#ifdef HAVE_SYS_VFS_H
13310# include <sys/vfs.h>
13311#endif
13312#ifdef HAVE_SYS_STATFS_H
13313# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013314#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013315"
13316if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013317
13318cat >>confdefs.h <<_ACEOF
13319#define HAVE_STRUCT_STATFS_F_FFREE 1
13320_ACEOF
13321
13322
13323fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013324ac_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 +000013325#ifdef HAVE_SYS_PARAM_H
13326# include <sys/param.h>
13327#endif
Robert Millan55b74482006-02-06 21:53:27 +010013328#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013329# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013330#endif
13331#ifdef HAVE_SYS_VFS_H
13332# include <sys/vfs.h>
13333#endif
13334#ifdef HAVE_SYS_STATFS_H
13335# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013336#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013337"
13338if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013339
13340cat >>confdefs.h <<_ACEOF
13341#define HAVE_STRUCT_STATFS_F_FAVAIL 1
13342_ACEOF
13343
13344
13345fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013346ac_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 +000013347#ifdef HAVE_SYS_PARAM_H
13348# include <sys/param.h>
13349#endif
Robert Millan55b74482006-02-06 21:53:27 +010013350#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000013351# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013352#endif
13353#ifdef HAVE_SYS_VFS_H
13354# include <sys/vfs.h>
13355#endif
13356#ifdef HAVE_SYS_STATFS_H
13357# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000013358#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013359"
13360if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
Alexandre Julliardb859a682004-03-07 03:16:43 +000013361
13362cat >>confdefs.h <<_ACEOF
13363#define HAVE_STRUCT_STATFS_F_NAMELEN 1
13364_ACEOF
13365
13366
13367fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000013368
13369
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013370ac_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 +000013371#include <sys/statvfs.h>
13372#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013373"
13374if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013375
13376cat >>confdefs.h <<_ACEOF
13377#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13378_ACEOF
13379
13380
13381fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000013382
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013383
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013384ac_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 +000013385#ifdef HAVE_SYS_SOCKET_H
13386# include <sys/socket.h>
13387#endif
13388#ifdef HAVE_SYS_UN_H
13389# include <sys/un.h>
13390#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013391"
13392if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
Juergen Lock2d33ab92000-02-13 16:03:29 +000013393
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013394cat >>confdefs.h <<_ACEOF
13395#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013396_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013397
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013398
13399fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013400ac_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 +000013401#ifdef HAVE_SYS_SOCKET_H
13402# include <sys/socket.h>
13403#endif
13404#ifdef HAVE_SYS_UN_H
13405# include <sys/un.h>
13406#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013407"
13408if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013409
13410cat >>confdefs.h <<_ACEOF
13411#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13412_ACEOF
13413
13414
13415fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013416ac_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 +000013417#ifdef HAVE_SYS_SOCKET_H
13418# include <sys/socket.h>
13419#endif
13420#ifdef HAVE_SYS_UN_H
13421# include <sys/un.h>
13422#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013423"
13424if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013425
13426cat >>confdefs.h <<_ACEOF
13427#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13428_ACEOF
13429
13430
Juergen Lock2d33ab92000-02-13 16:03:29 +000013431fi
13432
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013433
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013434ac_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 +000013435#ifdef HAVE_SCSI_SG_H
13436#include <scsi/sg.h>
13437#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013438"
13439if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013440
13441cat >>confdefs.h <<_ACEOF
13442#define HAVE_SCSIREQ_T_CMD 1
13443_ACEOF
13444
13445
13446fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013447ac_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 +000013448#ifdef HAVE_SCSI_SG_H
13449#include <scsi/sg.h>
13450#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013451"
13452if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013453
13454cat >>confdefs.h <<_ACEOF
13455#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13456_ACEOF
13457
13458
13459fi
13460
13461
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013462ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13463"
13464if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013465
13466cat >>confdefs.h <<_ACEOF
13467#define HAVE_SIGINFO_T_SI_FD 1
13468_ACEOF
13469
13470
13471fi
13472
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013473
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013474ac_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 +010013475#ifdef HAVE_SYS_MTIO_H
13476#include <sys/mtio.h>
13477#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013478"
13479if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013480
13481cat >>confdefs.h <<_ACEOF
13482#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13483_ACEOF
13484
13485
13486fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013487ac_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 +010013488#ifdef HAVE_SYS_MTIO_H
13489#include <sys/mtio.h>
13490#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013491"
13492if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013493
13494cat >>confdefs.h <<_ACEOF
13495#define HAVE_STRUCT_MTGET_MT_GSTAT 1
13496_ACEOF
13497
13498
13499fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013500ac_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 +010013501#ifdef HAVE_SYS_MTIO_H
13502#include <sys/mtio.h>
13503#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013504"
13505if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010013506
13507cat >>confdefs.h <<_ACEOF
13508#define HAVE_STRUCT_MTGET_MT_BLKNO 1
13509_ACEOF
13510
13511
13512fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013513
13514
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013515ac_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 +000013516#include <getopt.h>
13517#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013518"
13519if test "x$ac_cv_member_struct_option_name" = x""yes; then :
Alexandre Julliarddb89a542003-04-20 02:56:14 +000013520
13521cat >>confdefs.h <<_ACEOF
13522#define HAVE_STRUCT_OPTION_NAME 1
13523_ACEOF
13524
13525
13526fi
13527
13528
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013529ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13530if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
Pavel Roskind6507192003-10-03 03:28:40 +000013531
13532cat >>confdefs.h <<_ACEOF
13533#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13534_ACEOF
13535
13536
13537fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013538ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13539if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013540
13541cat >>confdefs.h <<_ACEOF
13542#define HAVE_STRUCT_STAT_ST_MTIM 1
13543_ACEOF
13544
13545
13546fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013547ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13548if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013549
13550cat >>confdefs.h <<_ACEOF
13551#define HAVE_STRUCT_STAT_ST_CTIM 1
13552_ACEOF
13553
13554
13555fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013556ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13557if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013558
13559cat >>confdefs.h <<_ACEOF
13560#define HAVE_STRUCT_STAT_ST_ATIM 1
13561_ACEOF
13562
13563
13564fi
Pavel Roskind6507192003-10-03 03:28:40 +000013565
13566
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013567ac_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 +030013568#include <sys/types.h>
13569#endif
13570#ifdef HAVE_NETINET_IN_H
13571#include <netinet/in.h>
13572#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013573"
13574if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030013575
13576cat >>confdefs.h <<_ACEOF
13577#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13578_ACEOF
13579
13580
13581fi
13582
13583
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013584ac_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 +020013585#include <sys/types.h>
13586#endif
13587#ifdef HAVE_NETINET_IN_H
13588# include <netinet/in.h>
13589#endif
13590#ifdef HAVE_ARPA_NAMESER_H
13591# include <arpa/nameser.h>
13592#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013593"
13594if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
Alexandre Julliard788e30f2006-05-31 14:43:21 +020013595
13596cat >>confdefs.h <<_ACEOF
13597#define HAVE_NS_MSG__MSG_PTR 1
13598_ACEOF
13599
13600
13601fi
13602
13603
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013604ac_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 -060013605#include <sys/types.h>
13606#endif
13607#ifdef HAVE_ALIAS_H
13608#include <alias.h>
13609#endif
13610#ifdef HAVE_SYS_SOCKET_H
13611#include <sys/socket.h>
13612#endif
13613#ifdef HAVE_SYS_SOCKETVAR_H
13614#include <sys/socketvar.h>
13615#endif
13616#ifdef HAVE_SYS_TIMEOUT_H
13617#include <sys/timeout.h>
13618#endif
13619#ifdef HAVE_NETINET_IN_H
13620#include <netinet/in.h>
13621#endif
13622#ifdef HAVE_NETINET_IN_SYSTM_H
13623#include <netinet/in_systm.h>
13624#endif
13625#ifdef HAVE_NETINET_IP_H
13626#include <netinet/ip.h>
13627#endif
13628#ifdef HAVE_NETINET_IP_VAR_H
13629#include <netinet/ip_var.h>
13630#endif
13631#ifdef HAVE_NETINET_IP_ICMP_H
13632#include <netinet/ip_icmp.h>
13633#endif
13634#ifdef HAVE_NETINET_ICMP_VAR
13635#include <netinet/icmp_var.h>
13636#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013637"
13638if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
Austin Englishac0252d2009-01-30 10:18:10 -060013639
13640cat >>confdefs.h <<_ACEOF
13641#define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13642_ACEOF
13643
13644
13645fi
13646
13647
Juan Lang984c3b22010-03-12 10:38:46 -080013648ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13649#include <sys/types.h>
13650#endif
13651#ifdef HAVE_NET_IF_H
13652# include <net/if.h>
13653#endif
13654"
13655if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
13656
13657cat >>confdefs.h <<_ACEOF
13658#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13659_ACEOF
13660
13661
13662fi
13663
13664
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013666$as_echo_n "checking for timezone variable... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013667if test "${ac_cv_have_timezone+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013668 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000013669else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013671/* end confdefs.h. */
13672#include <time.h>
13673int
13674main ()
13675{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020013676timezone = 1
Phil Krylov6618b032005-05-24 11:52:46 +000013677 ;
13678 return 0;
13679}
13680_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013681if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000013682 ac_cv_have_timezone="yes"
13683else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013684 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000013685fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013686rm -f core conftest.err conftest.$ac_objext \
13687 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013688fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013690$as_echo "$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000013691if test "$ac_cv_have_timezone" = "yes"
13692then
13693
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013694$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000013695
13696fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013698$as_echo_n "checking for daylight variable... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013699if test "${ac_cv_have_daylight+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013700 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000013701else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013703/* end confdefs.h. */
13704#include <time.h>
13705int
13706main ()
13707{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020013708daylight = 1
Phil Krylov6618b032005-05-24 11:52:46 +000013709 ;
13710 return 0;
13711}
13712_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013713if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000013714 ac_cv_have_daylight="yes"
13715else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013716 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000013717fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013718rm -f core conftest.err conftest.$ac_objext \
13719 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013720fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013722$as_echo "$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000013723if test "$ac_cv_have_daylight" = "yes"
13724then
13725
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013726$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000013727
13728fi
13729
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013731$as_echo_n "checking for isinf... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013732if test "${ac_cv_have_isinf+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013733 $as_echo_n "(cached) " >&6
Petr Sumbera4992b652008-04-29 17:08:53 +020013734else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020013736/* end confdefs.h. */
13737#include <math.h>
13738int
13739main ()
13740{
Francois Gouget2fef93a2008-06-26 15:59:05 +020013741float f = 0.0; int i=isinf(f)
Petr Sumbera4992b652008-04-29 17:08:53 +020013742 ;
13743 return 0;
13744}
13745_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013746if ac_fn_c_try_link "$LINENO"; then :
Petr Sumbera4992b652008-04-29 17:08:53 +020013747 ac_cv_have_isinf="yes"
13748else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013749 ac_cv_have_isinf="no"
Petr Sumbera4992b652008-04-29 17:08:53 +020013750fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013751rm -f core conftest.err conftest.$ac_objext \
13752 conftest$ac_exeext conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020013753fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013755$as_echo "$ac_cv_have_isinf" >&6; }
Petr Sumbera4992b652008-04-29 17:08:53 +020013756if test "$ac_cv_have_isinf" = "yes"
13757then
13758
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013759$as_echo "#define HAVE_ISINF 1" >>confdefs.h
Petr Sumbera4992b652008-04-29 17:08:53 +020013760
13761fi
13762
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013764$as_echo_n "checking for isnan... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013765if test "${ac_cv_have_isnan+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013766 $as_echo_n "(cached) " >&6
Jacek Caban1715dcb2008-10-14 16:06:49 -050013767else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050013769/* end confdefs.h. */
13770#include <math.h>
13771int
13772main ()
13773{
13774float f = 0.0; int i=isnan(f)
13775 ;
13776 return 0;
13777}
13778_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013779if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban1715dcb2008-10-14 16:06:49 -050013780 ac_cv_have_isnan="yes"
13781else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013782 ac_cv_have_isnan="no"
Jacek Caban1715dcb2008-10-14 16:06:49 -050013783fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013784rm -f core conftest.err conftest.$ac_objext \
13785 conftest$ac_exeext conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050013786fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013788$as_echo "$ac_cv_have_isnan" >&6; }
Jacek Caban1715dcb2008-10-14 16:06:49 -050013789if test "$ac_cv_have_isnan" = "yes"
13790then
13791
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013792$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
Jacek Caban1715dcb2008-10-14 16:06:49 -050013793
13794fi
13795
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013796
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013797case $host_cpu in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013798 *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 +010013799$as_echo_n "checking whether we need to define __i386__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013800if test "${ac_cv_cpp_def___i386__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013801 $as_echo_n "(cached) " >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000013802else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013804/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013805#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013806yes
13807#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013808_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013809if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013810 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013811 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013812else
Alexandre Julliard05783b52002-12-11 00:21:55 +000013813 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013814fi
13815rm -f conftest*
13816
13817fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013819$as_echo "$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013820if test $ac_cv_cpp_def___i386__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013821 CFLAGS="$CFLAGS -D__i386__"
13822 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013823fi ;;
13824 *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 +010013825$as_echo_n "checking whether we need to define __x86_64__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013826if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013827 $as_echo_n "(cached) " >&6
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013828else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013830/* end confdefs.h. */
13831#ifndef __x86_64__
13832yes
13833#endif
13834_ACEOF
13835if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013836 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013837 ac_cv_cpp_def___x86_64__=yes
13838else
13839 ac_cv_cpp_def___x86_64__=no
13840fi
13841rm -f conftest*
13842
13843fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013845$as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013846if test $ac_cv_cpp_def___x86_64__ = yes; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013847 CFLAGS="$CFLAGS -D__x86_64__"
13848 LINTFLAGS="$LINTFLAGS -D__x86_64__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013849fi ;;
13850 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013851$as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013852if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013853 $as_echo_n "(cached) " >&6
Steven Edwards69b67862002-12-10 22:48:48 +000013854else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013856/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000013857#ifndef __ALPHA__
13858yes
13859#endif
13860_ACEOF
13861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013862 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013863 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000013864else
Alexandre Julliard05783b52002-12-11 00:21:55 +000013865 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000013866fi
13867rm -f conftest*
13868
13869fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013871$as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013872if test $ac_cv_cpp_def___ALPHA__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013873 CFLAGS="$CFLAGS -D__ALPHA__"
13874 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013875fi ;;
13876 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013877$as_echo_n "checking whether we need to define __sparc__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013878if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013879 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013880else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013882/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013883#ifndef __sparc__
13884yes
13885#endif
13886_ACEOF
13887if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013888 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013889 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013890else
Alexandre Julliard05783b52002-12-11 00:21:55 +000013891 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013892fi
13893rm -f conftest*
13894
13895fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013897$as_echo "$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013898if test $ac_cv_cpp_def___sparc__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013899 CFLAGS="$CFLAGS -D__sparc__"
13900 LINTFLAGS="$LINTFLAGS -D__sparc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013901fi ;;
13902 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013903$as_echo_n "checking whether we need to define __powerpc__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013904if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013905 $as_echo_n "(cached) " >&6
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000013906else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000013908/* end confdefs.h. */
13909#ifndef __powerpc__
13910yes
13911#endif
13912_ACEOF
13913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013914 $EGREP "yes" >/dev/null 2>&1; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000013915 ac_cv_cpp_def___powerpc__=yes
13916else
13917 ac_cv_cpp_def___powerpc__=no
13918fi
13919rm -f conftest*
13920
13921fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013923$as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013924if test $ac_cv_cpp_def___powerpc__ = yes; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000013925 CFLAGS="$CFLAGS -D__powerpc__"
13926 LINTFLAGS="$LINTFLAGS -D__powerpc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013927fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000013928esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013929
13930case $host_vendor in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013931 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013932$as_echo_n "checking whether we need to define __sun__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013933if test "${ac_cv_cpp_def___sun__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013934 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013935else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013937/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013938#ifndef __sun__
13939yes
13940#endif
13941_ACEOF
13942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013943 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013944 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013945else
Alexandre Julliard05783b52002-12-11 00:21:55 +000013946 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013947fi
13948rm -f conftest*
13949
13950fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013952$as_echo "$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013953if test $ac_cv_cpp_def___sun__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013954 CFLAGS="$CFLAGS -D__sun__"
13955 LINTFLAGS="$LINTFLAGS -D__sun__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013956fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000013957esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000013958
13959
Alexandre Julliarda360e932008-08-20 16:02:37 +020013960
Alexandre Julliard7d831152010-03-20 15:07:45 +010013961
Alexandre Julliard6c142382010-04-11 12:47:30 +020013962
Alexandre Julliard7d831152010-03-20 15:07:45 +010013963ac_config_commands="$ac_config_commands include/stamp-h"
13964
Alexandre Julliard03642412010-03-20 15:24:22 +010013965
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010013966ALL_MAKEFILE_DEPENDS="
13967# Rules automatically generated by configure
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010013968
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010013969.INIT: Makefile
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010013970.MAKEFILEDEPS:
Alexandre Julliardbd3110d2010-05-23 10:34:36 +020013971all: Makefile
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010013972Makefile: Makefile.in Make.rules config.status
13973 @./config.status Make.tmp Makefile"
Alexandre Julliarda360e932008-08-20 16:02:37 +020013974
Alexandre Julliardd5addea2010-02-08 21:27:54 +010013975ALL_WINETEST_DEPENDS="# Test binaries"
13976
Alexandre Julliard454fb3c2010-02-08 21:29:13 +010013977ALL_TEST_BINARIES=""
13978
Alexandre Julliard49163da2008-08-25 12:02:27 +020013979
Alexandre Julliard2de10c42010-02-11 23:23:45 +010013980wine_fn_append_file ()
13981{
13982 as_fn_append $1 " \\$as_nl $2"
13983}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010013984
Alexandre Julliard2de10c42010-02-11 23:23:45 +010013985wine_fn_append_rule ()
13986{
13987 as_fn_append $1 "$as_nl$2"
13988}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010013989
Alexandre Julliard943cd732010-03-25 21:52:56 +010013990wine_fn_all_dir_rules ()
13991{
13992 wine_fn_append_file ALL_DIRS $1
13993 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020013994"__clean__: $1/__clean__
13995.PHONY: $1/__clean__
Alexandre Julliard3cc14dc2010-03-25 22:12:12 +010013996$1/__clean__: $1/Makefile
13997 @cd $1 && \$(MAKE) clean
13998 \$(RM) $1/Makefile
Alexandre Julliard18e53132010-03-25 22:00:00 +010013999$1/Makefile: $1/Makefile.in config.status $2
14000 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014001depend: $1/__depend__
14002.PHONY: $1/__depend__
Alexandre Julliard18e53132010-03-25 22:00:00 +010014003$1/__depend__: \$(MAKEDEP) dummy
Alexandre Julliard943cd732010-03-25 21:52:56 +010014004 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend"
14005}
14006
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014007wine_fn_config_makefile ()
14008{
14009 ac_dir=$1
Alexandre Julliard03642412010-03-20 15:24:22 +010014010 ac_enable=$2
Alexandre Julliard943cd732010-03-25 21:52:56 +010014011 wine_fn_all_dir_rules $ac_dir "Make.rules \$(MAKEDEP)"
Alexandre Julliarde84063b2010-03-25 21:46:41 +010014012
Alexandre Julliard03642412010-03-20 15:24:22 +010014013 eval as_val=\$$ac_enable
14014 if test "x$as_val" = x""no; then :
14015
14016else
Alexandre Julliarde84063b2010-03-25 21:46:41 +010014017 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014018"all: $ac_dir
14019.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014020$ac_dir: $ac_dir/Makefile dummy
14021 @cd $ac_dir && \$(MAKE)
Alexandre Julliarde84063b2010-03-25 21:46:41 +010014022install:: $ac_dir
14023 @cd $ac_dir && \$(MAKE) install
14024install-lib:: $ac_dir
14025 @cd $ac_dir && \$(MAKE) install-lib
14026install-dev:: $ac_dir
14027 @cd $ac_dir && \$(MAKE) install-dev
14028uninstall:: $ac_dir/Makefile
14029 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliard03642412010-03-20 15:24:22 +010014030fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014031}
14032
14033wine_fn_config_lib ()
14034{
14035 ac_name=$1
Alexandre Julliardb8fb1d52010-03-20 14:50:53 +010014036 ac_dir=dlls/$ac_name
Alexandre Julliard943cd732010-03-25 21:52:56 +010014037 wine_fn_all_dir_rules $ac_dir "dlls/Makeimplib.rules \$(MAKEDEP)"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014038 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014039"all __builddeps__: $ac_dir
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014040__buildcrossdeps__: $ac_dir/lib$ac_name.cross.a
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014041$ac_dir $ac_dir/lib$ac_name.cross.a: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014042$ac_dir: dummy
14043 @cd $ac_dir && \$(MAKE)
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014044$ac_dir/lib$ac_name.cross.a: dummy
Alexandre Julliardb8fb1d52010-03-20 14:50:53 +010014045 @cd $ac_dir && \$(MAKE) lib$ac_name.cross.a
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014046install install-dev:: $ac_dir
14047 @cd $ac_dir && \$(MAKE) install
14048uninstall:: $ac_dir/Makefile
14049 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014050}
14051
Alexandre Julliard50231942010-03-16 22:00:02 +010014052wine_fn_config_dll ()
14053{
14054 ac_dir=$1
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014055 ac_enable=$2
14056 ac_implib=$3
14057 ac_implibsrc=$4
Alexandre Julliard50231942010-03-16 22:00:02 +010014058 ac_file="dlls/$ac_dir/lib$ac_implib"
14059 ac_deps="tools/widl tools/winebuild tools/winegcc include"
14060
Alexandre Julliard943cd732010-03-25 21:52:56 +010014061 wine_fn_all_dir_rules dlls/$ac_dir "dlls/Makedll.rules \$(MAKEDEP)"
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014062
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014063 eval as_val=\$$ac_enable
14064 if test "x$as_val" = x""no; then :
14065 test "$ac_enable" != enable_win16 || return 0
14066else
Alexandre Julliard60a05ad2010-03-25 12:05:44 +010014067 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014068"all: dlls/$ac_dir
14069.PHONY: dlls/$ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014070dlls/$ac_dir: dlls/$ac_dir/Makefile __builddeps__ dummy
14071 @cd dlls/$ac_dir && \$(MAKE)
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014072install:: dlls/$ac_dir/Makefile __builddeps__
14073 @cd dlls/$ac_dir && \$(MAKE) install
14074install-lib:: dlls/$ac_dir/Makefile __builddeps__
14075 @cd dlls/$ac_dir && \$(MAKE) install-lib
Alexandre Julliard60a05ad2010-03-25 12:05:44 +010014076uninstall manpages htmlpages sgmlpages xmlpages:: dlls/$ac_dir/Makefile
14077 @cd dlls/$ac_dir && \$(MAKE) \$@"
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014078fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014079
14080 if test -n "$ac_implibsrc"
14081 then
14082 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014083"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
14084__buildcrossdeps__: $ac_file.cross.a
14085$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
Alexandre Julliard50231942010-03-16 22:00:02 +010014086$ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile
14087 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
14088$ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/Makefile dummy
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014089 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
14090install-dev:: dlls/$ac_dir/Makefile __builddeps__
14091 @cd dlls/$ac_dir && \$(MAKE) install-dev"
Alexandre Julliard50231942010-03-16 22:00:02 +010014092 elif test -n "$ac_implib"
14093 then
14094 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014095"__builddeps__: $ac_file.$IMPLIBEXT
14096__buildcrossdeps__: $ac_file.cross.a
14097$ac_file.$IMPLIBEXT $ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile $ac_deps
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014098 @cd dlls/$ac_dir && \$(MAKE) \`basename \$@\`
14099install-dev:: dlls/$ac_dir/Makefile __builddeps__
14100 @cd dlls/$ac_dir && \$(MAKE) install-dev"
Alexandre Julliard50231942010-03-16 22:00:02 +010014101
14102 if test "$ac_dir" != "$ac_implib"
14103 then
14104 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014105"__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
14106__buildcrossdeps__: dlls/lib$ac_implib.cross.a
14107dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
Alexandre Julliard50231942010-03-16 22:00:02 +010014108 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.$IMPLIBEXT \$@
14109dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14110 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.cross.a \$@
14111clean::
14112 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
14113 fi
14114 fi
14115}
14116
14117wine_fn_config_program ()
14118{
14119 ac_dir=$1
Alexandre Julliardd394e042010-03-20 14:53:39 +010014120 ac_enable=$2
14121 ac_install=$3
Alexandre Julliard943cd732010-03-25 21:52:56 +010014122 wine_fn_all_dir_rules programs/$ac_dir "programs/Makeprog.rules \$(MAKEDEP)"
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014123
Alexandre Julliardd394e042010-03-20 14:53:39 +010014124 eval as_val=\$$ac_enable
14125 if test "x$as_val" = x""no; then :
14126
14127else
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014128 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014129"all: programs/$ac_dir
14130.PHONY: programs/$ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014131programs/$ac_dir: programs/$ac_dir/Makefile __builddeps__ dummy
14132 @cd programs/$ac_dir && \$(MAKE)"
14133
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014134 test -n "$ac_install" || return
14135 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014136"install install-lib:: programs/$ac_dir/Makefile __builddeps__
14137 @cd programs/$ac_dir && \$(MAKE) install
14138uninstall:: programs/$ac_dir/Makefile
14139 @cd programs/$ac_dir && \$(MAKE) uninstall"
Alexandre Julliard718ea422010-03-26 09:29:10 +010014140 if test "$ac_install" = installbin -a -n "$DLLEXT" -a "x$enable_tools" != xno
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014141 then
14142 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard718ea422010-03-26 09:29:10 +010014143"install install-lib:: tools \$(DESTDIR)\$(bindir)
14144 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_dir
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014145uninstall::
14146 \$(RM) \$(DESTDIR)\$(bindir)/$ac_dir"
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014147 fi
Alexandre Julliardd394e042010-03-20 14:53:39 +010014148fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014149}
14150
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014151wine_fn_config_test ()
14152{
14153 ac_dir=$1
14154 ac_name=$2
14155 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14156 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14157"$ac_name.exe: \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT
14158 cp \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14159$ac_name.rc:
14160 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14161$ac_name.res: $ac_name.rc $ac_name.exe"
Alexandre Julliard943cd732010-03-25 21:52:56 +010014162 wine_fn_all_dir_rules $ac_dir "Maketest.rules \$(MAKEDEP)"
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014163
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014164 if test "x$enable_tests" = x""no; then :
14165
14166else
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014167 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014168"all programs/winetest: $ac_dir
14169.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014170$ac_dir: $ac_dir/Makefile __builddeps__ dummy
14171 @cd $ac_dir && \$(MAKE)
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014172crosstest: $ac_dir/__crosstest__
14173.PHONY: $ac_dir/__crosstest__
Alexandre Julliardeab7efd2010-03-25 21:42:54 +010014174$ac_dir/__crosstest__: $ac_dir/Makefile __buildcrossdeps__ dummy
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014175 @cd $ac_dir && \$(MAKE) crosstest
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014176test: $ac_dir/__test__
14177.PHONY: $ac_dir/__test__
Alexandre Julliardeab7efd2010-03-25 21:42:54 +010014178$ac_dir/__test__: dummy
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014179 @cd $ac_dir && \$(MAKE) test
14180testclean::
14181 \$(RM) $ac_dir/*.ok"
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014182fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014183}
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014184
14185wine_fn_config_tool ()
14186{
14187 ac_dir=$1
14188 ac_deps="Make.rules"
14189 if test "$ac_dir" != tools
14190 then
14191 ac_deps="$ac_deps \$(MAKEDEP)"
14192 fi
Alexandre Julliard943cd732010-03-25 21:52:56 +010014193 wine_fn_all_dir_rules $ac_dir "$ac_deps"
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014194
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014195 if test "x$enable_tools" = x""no; then :
14196
14197else
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014198 case $ac_dir in
14199 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14200"install:: $ac_dir
14201 @cd $ac_dir && \$(MAKE) install
14202install-lib:: $ac_dir
14203 @cd $ac_dir && \$(MAKE) install-lib
14204install-dev:: $ac_dir
14205 @cd $ac_dir && \$(MAKE) install-dev" ;;
14206 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14207"install install-dev:: $ac_dir
14208 @cd $ac_dir && \$(MAKE) install" ;;
14209 esac
14210 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14211"uninstall:: $ac_dir/Makefile
14212 @cd $ac_dir && \$(MAKE) uninstall
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014213all __tooldeps__: $ac_dir
14214.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014215$ac_dir: $ac_dir/Makefile libs/port dummy
14216 @cd $ac_dir && \$(MAKE)"
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014217fi
14218}
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014219
14220wine_fn_config_makerules ()
14221{
14222 ac_rules=$1
14223 ac_deps=$2
14224 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14225"$ac_rules: $ac_rules.in $ac_deps config.status
14226 @./config.status $ac_rules
14227distclean::
14228 \$(RM) $ac_rules"
14229}
14230
14231wine_fn_config_symlink ()
14232{
14233 ac_link=$1
14234 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14235"$ac_link:
14236 @./config.status $ac_link
14237distclean::
14238 \$(RM) $ac_link"
14239}
Alexandre Julliarda6320522010-02-03 13:14:03 +010014240ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014241test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014242if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014243ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014244test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014245fi
14246if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014247ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014248test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014249fi
14250if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014251ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014252test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014253fi
14254if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014255ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014256test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014257fi
Alexandre Julliard321d3882010-05-06 20:51:53 +020014258ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14259test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014260ac_config_links="$ac_config_links wine:tools/winewrapper"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014261wine_fn_config_symlink wine
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014262
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014263ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014264
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014265ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014266
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020014267ac_config_commands="$ac_config_commands dlls/kernel32/nls"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014268
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010014269ac_config_commands="$ac_config_commands dlls/user32/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014270
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014271ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014272
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014273ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014274
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014275
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014276wine_fn_config_makerules Make.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014277MAKE_RULES=Make.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014278ac_config_files="$ac_config_files Make.rules"
14279
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014280wine_fn_config_makerules Maketest.rules Make.rules
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010014281MAKE_TEST_RULES=Maketest.rules
14282ac_config_files="$ac_config_files Maketest.rules"
14283
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014284wine_fn_config_makerules dlls/Makedll.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014285MAKE_DLL_RULES=dlls/Makedll.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014286ac_config_files="$ac_config_files dlls/Makedll.rules"
14287
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014288wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014289MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014290ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14291
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014292wine_fn_config_makerules programs/Makeprog.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014293MAKE_PROG_RULES=programs/Makeprog.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014294ac_config_files="$ac_config_files programs/Makeprog.rules"
14295
Alexandre Julliarda360e932008-08-20 16:02:37 +020014296
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014297wine_fn_config_dll acledit enable_acledit
14298wine_fn_config_dll aclui enable_aclui aclui
14299wine_fn_config_dll activeds enable_activeds activeds
14300wine_fn_config_dll actxprxy enable_actxprxy
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014301wine_fn_config_lib adsiid
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014302wine_fn_config_dll advapi32 enable_advapi32 advapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014303wine_fn_config_test dlls/advapi32/tests advapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014304wine_fn_config_dll advpack enable_advpack advpack
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014305wine_fn_config_test dlls/advpack/tests advpack_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014306wine_fn_config_dll amstream enable_amstream
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014307wine_fn_config_test dlls/amstream/tests amstream_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014308wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14309wine_fn_config_dll atl enable_atl atl
14310wine_fn_config_dll authz enable_authz
14311wine_fn_config_dll avicap32 enable_avicap32 avicap32
14312wine_fn_config_dll avifil32 enable_avifil32 avifil32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014313wine_fn_config_test dlls/avifil32/tests avifil32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014314wine_fn_config_dll avifile.dll16 enable_win16
14315wine_fn_config_dll avrt enable_avrt avrt
14316wine_fn_config_dll bcrypt enable_bcrypt
14317wine_fn_config_dll browseui enable_browseui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014318wine_fn_config_test dlls/browseui/tests browseui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014319wine_fn_config_dll cabinet enable_cabinet cabinet
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014320wine_fn_config_test dlls/cabinet/tests cabinet_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014321wine_fn_config_dll capi2032 enable_capi2032 capi2032
14322wine_fn_config_dll cards enable_cards cards
14323wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14324wine_fn_config_dll clusapi enable_clusapi clusapi
14325wine_fn_config_dll comcat enable_comcat
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014326wine_fn_config_test dlls/comcat/tests comcat_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014327wine_fn_config_dll comctl32 enable_comctl32 comctl32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014328wine_fn_config_test dlls/comctl32/tests comctl32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014329wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014330wine_fn_config_test dlls/comdlg32/tests comdlg32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014331wine_fn_config_dll comm.drv16 enable_win16
14332wine_fn_config_dll commdlg.dll16 enable_win16
14333wine_fn_config_dll compobj.dll16 enable_win16
14334wine_fn_config_dll compstui enable_compstui compstui
14335wine_fn_config_dll credui enable_credui credui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014336wine_fn_config_test dlls/credui/tests credui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014337wine_fn_config_dll crtdll enable_crtdll crtdll
14338wine_fn_config_dll crypt32 enable_crypt32 crypt32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014339wine_fn_config_test dlls/crypt32/tests crypt32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014340wine_fn_config_dll cryptdlg enable_cryptdlg
14341wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14342wine_fn_config_dll cryptnet enable_cryptnet cryptnet
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014343wine_fn_config_test dlls/cryptnet/tests cryptnet_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014344wine_fn_config_dll cryptui enable_cryptui cryptui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014345wine_fn_config_test dlls/cryptui/tests cryptui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014346wine_fn_config_dll ctapi32 enable_ctapi32
14347wine_fn_config_dll ctl3d.dll16 enable_win16
14348wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14349wine_fn_config_dll ctl3dv2.dll16 enable_win16
14350wine_fn_config_dll d3d10 enable_d3d10 d3d10
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014351wine_fn_config_test dlls/d3d10/tests d3d10_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014352wine_fn_config_dll d3d10core enable_d3d10core d3d10core
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014353wine_fn_config_test dlls/d3d10core/tests d3d10core_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014354wine_fn_config_dll d3d8 enable_d3d8 d3d8
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014355wine_fn_config_test dlls/d3d8/tests d3d8_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014356wine_fn_config_dll d3d9 enable_d3d9 d3d9
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014357wine_fn_config_test dlls/d3d9/tests d3d9_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014358wine_fn_config_dll d3dim enable_d3dim d3dim
14359wine_fn_config_dll d3drm enable_d3drm d3drm
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014360wine_fn_config_test dlls/d3drm/tests d3drm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014361wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14362wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14363wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14364wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14365wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14366wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14367wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14368wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14369wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14370wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14371wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14372wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14373wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014374wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014375wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14376wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14377wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14378wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14379wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14380wine_fn_config_dll d3dx9_42 enable_d3dx9_42
14381wine_fn_config_dll d3dxof enable_d3dxof d3dxof
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014382wine_fn_config_test dlls/d3dxof/tests d3dxof_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014383wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14384wine_fn_config_dll dciman32 enable_dciman32 dciman32
14385wine_fn_config_dll ddeml.dll16 enable_win16
14386wine_fn_config_dll ddraw enable_ddraw ddraw
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014387wine_fn_config_test dlls/ddraw/tests ddraw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014388wine_fn_config_dll ddrawex enable_ddrawex
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014389wine_fn_config_test dlls/ddrawex/tests ddrawex_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014390wine_fn_config_dll devenum enable_devenum
14391wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014392wine_fn_config_test dlls/dinput/tests dinput_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014393wine_fn_config_dll dinput8 enable_dinput8 dinput8
14394wine_fn_config_dll dispdib.dll16 enable_win16
14395wine_fn_config_dll dispex enable_dispex
Huw Daviesdf075612010-03-19 13:34:53 +000014396wine_fn_config_test dlls/dispex/tests dispex_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014397wine_fn_config_dll display.drv16 enable_win16
14398wine_fn_config_dll dmband enable_dmband
14399wine_fn_config_dll dmcompos enable_dmcompos
14400wine_fn_config_dll dmime enable_dmime
14401wine_fn_config_dll dmloader enable_dmloader
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014402wine_fn_config_test dlls/dmloader/tests dmloader_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014403wine_fn_config_dll dmscript enable_dmscript
14404wine_fn_config_dll dmstyle enable_dmstyle
14405wine_fn_config_dll dmsynth enable_dmsynth
14406wine_fn_config_dll dmusic enable_dmusic
14407wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14408wine_fn_config_dll dnsapi enable_dnsapi dnsapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014409wine_fn_config_test dlls/dnsapi/tests dnsapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014410wine_fn_config_dll dplay enable_dplay dplay
14411wine_fn_config_dll dplayx enable_dplayx dplayx
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014412wine_fn_config_test dlls/dplayx/tests dplayx_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014413wine_fn_config_dll dpnaddr enable_dpnaddr
14414wine_fn_config_dll dpnet enable_dpnet dpnet
14415wine_fn_config_dll dpnhpast enable_dpnhpast
14416wine_fn_config_dll dpnlobby enable_dpnlobby
14417wine_fn_config_dll dpwsockx enable_dpwsockx
14418wine_fn_config_dll drmclien enable_drmclien
14419wine_fn_config_dll dsound enable_dsound dsound
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014420wine_fn_config_test dlls/dsound/tests dsound_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014421wine_fn_config_dll dssenh enable_dssenh
14422wine_fn_config_dll dswave enable_dswave
14423wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14424wine_fn_config_dll dxdiagn enable_dxdiagn
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014425wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014426wine_fn_config_lib dxerr8
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014427wine_fn_config_lib dxerr9
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014428wine_fn_config_dll dxgi enable_dxgi dxgi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014429wine_fn_config_test dlls/dxgi/tests dxgi_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014430wine_fn_config_lib dxguid
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014431wine_fn_config_dll faultrep enable_faultrep
14432wine_fn_config_dll fltlib enable_fltlib
14433wine_fn_config_dll fusion enable_fusion
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014434wine_fn_config_test dlls/fusion/tests fusion_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014435wine_fn_config_dll fwpuclnt enable_fwpuclnt
14436wine_fn_config_dll gdi.exe16 enable_win16
14437wine_fn_config_dll gdi32 enable_gdi32 gdi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014438wine_fn_config_test dlls/gdi32/tests gdi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014439wine_fn_config_dll gdiplus enable_gdiplus gdiplus
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014440wine_fn_config_test dlls/gdiplus/tests gdiplus_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014441wine_fn_config_dll glu32 enable_glu32 glu32
14442wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14443wine_fn_config_dll gpkcsp enable_gpkcsp
14444wine_fn_config_dll hal enable_hal
14445wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14446wine_fn_config_dll hid enable_hid hid
14447wine_fn_config_dll hlink enable_hlink hlink
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014448wine_fn_config_test dlls/hlink/tests hlink_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014449wine_fn_config_dll hnetcfg enable_hnetcfg
14450wine_fn_config_dll httpapi enable_httpapi
14451wine_fn_config_dll iccvid enable_iccvid
14452wine_fn_config_dll icmp enable_icmp
14453wine_fn_config_dll ifsmgr.vxd enable_win16
14454wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14455wine_fn_config_dll imagehlp enable_imagehlp imagehlp
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014456wine_fn_config_test dlls/imagehlp/tests imagehlp_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014457wine_fn_config_dll imm.dll16 enable_win16
14458wine_fn_config_dll imm32 enable_imm32 imm32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014459wine_fn_config_test dlls/imm32/tests imm32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014460wine_fn_config_dll inetcomm enable_inetcomm inetcomm
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014461wine_fn_config_test dlls/inetcomm/tests inetcomm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014462wine_fn_config_dll inetmib1 enable_inetmib1
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014463wine_fn_config_test dlls/inetmib1/tests inetmib1_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014464wine_fn_config_dll infosoft enable_infosoft
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014465wine_fn_config_test dlls/infosoft/tests infosoft_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014466wine_fn_config_dll initpki enable_initpki
14467wine_fn_config_dll inkobj enable_inkobj
14468wine_fn_config_dll inseng enable_inseng
14469wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014470wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014471wine_fn_config_dll itircl enable_itircl
14472wine_fn_config_dll itss enable_itss
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014473wine_fn_config_test dlls/itss/tests itss_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014474wine_fn_config_dll jscript enable_jscript
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014475wine_fn_config_test dlls/jscript/tests jscript_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014476wine_fn_config_dll kernel32 enable_kernel32 kernel32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014477wine_fn_config_test dlls/kernel32/tests kernel32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014478wine_fn_config_dll keyboard.drv16 enable_win16
14479wine_fn_config_dll krnl386.exe16 enable_win16 kernel
14480wine_fn_config_dll loadperf enable_loadperf loadperf
14481wine_fn_config_dll localspl enable_localspl
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014482wine_fn_config_test dlls/localspl/tests localspl_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014483wine_fn_config_dll localui enable_localui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014484wine_fn_config_test dlls/localui/tests localui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014485wine_fn_config_dll lz32 enable_lz32 lz32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014486wine_fn_config_test dlls/lz32/tests lz32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014487wine_fn_config_dll lzexpand.dll16 enable_win16
14488wine_fn_config_dll mapi32 enable_mapi32 mapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014489wine_fn_config_test dlls/mapi32/tests mapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014490wine_fn_config_dll mapistub enable_mapistub
14491wine_fn_config_dll mciavi32 enable_mciavi32
14492wine_fn_config_dll mcicda enable_mcicda
14493wine_fn_config_dll mciqtz32 enable_mciqtz32
14494wine_fn_config_dll mciseq enable_mciseq
14495wine_fn_config_dll mciwave enable_mciwave
14496wine_fn_config_dll midimap enable_midimap
14497wine_fn_config_dll mlang enable_mlang mlang
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014498wine_fn_config_test dlls/mlang/tests mlang_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014499wine_fn_config_dll mmdevapi enable_mmdevapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014500wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014501wine_fn_config_dll mmdevldr.vxd enable_win16
14502wine_fn_config_dll mmsystem.dll16 enable_win16
14503wine_fn_config_dll monodebg.vxd enable_win16
14504wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14505wine_fn_config_dll mouse.drv16 enable_win16
14506wine_fn_config_dll mpr enable_mpr mpr
14507wine_fn_config_dll mprapi enable_mprapi mprapi
14508wine_fn_config_dll msacm.dll16 enable_win16
14509wine_fn_config_dll msacm32.drv enable_msacm32_drv
14510wine_fn_config_dll msacm32 enable_msacm32 msacm32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014511wine_fn_config_test dlls/msacm32/tests msacm32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014512wine_fn_config_dll msadp32.acm enable_msadp32_acm
14513wine_fn_config_dll mscat32 enable_mscat32
14514wine_fn_config_dll mscms enable_mscms mscms
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014515wine_fn_config_test dlls/mscms/tests mscms_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014516wine_fn_config_dll mscoree enable_mscoree
14517wine_fn_config_dll msctf enable_msctf
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014518wine_fn_config_test dlls/msctf/tests msctf_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014519wine_fn_config_dll msdaps enable_msdaps
14520wine_fn_config_dll msdmo enable_msdmo msdmo
14521wine_fn_config_dll msftedit enable_msftedit
14522wine_fn_config_dll msg711.acm enable_msg711_acm
14523wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14524wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
14525wine_fn_config_dll mshtml enable_mshtml mshtml
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014526wine_fn_config_test dlls/mshtml/tests mshtml_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014527wine_fn_config_dll msi enable_msi msi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014528wine_fn_config_test dlls/msi/tests msi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014529wine_fn_config_dll msimg32 enable_msimg32 msimg32
14530wine_fn_config_dll msimtf enable_msimtf
14531wine_fn_config_dll msisip enable_msisip
14532wine_fn_config_dll msisys.ocx enable_msisys_ocx
14533wine_fn_config_dll msnet32 enable_msnet32
14534wine_fn_config_dll msrle32 enable_msrle32
14535wine_fn_config_dll mssign32 enable_mssign32
14536wine_fn_config_dll mssip32 enable_mssip32
14537wine_fn_config_dll mstask enable_mstask
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014538wine_fn_config_test dlls/mstask/tests mstask_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014539wine_fn_config_dll msvcirt enable_msvcirt
Detlef Riekenberg1434ef42010-04-30 14:07:34 +020014540wine_fn_config_dll msvcr100 enable_msvcr100
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014541wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
14542wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
Piotr Cabanc4522492010-03-25 11:06:29 +010014543wine_fn_config_dll msvcr80 enable_msvcr80
14544wine_fn_config_dll msvcr90 enable_msvcr90
Detlef Riekenberg73e669c2010-03-20 00:32:17 +010014545wine_fn_config_test dlls/msvcr90/tests msvcr90_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014546wine_fn_config_dll msvcrt enable_msvcrt msvcrt
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014547wine_fn_config_test dlls/msvcrt/tests msvcrt_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014548wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
14549wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
14550wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014551wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014552wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014553wine_fn_config_test dlls/msvfw32/tests msvfw32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014554wine_fn_config_dll msvidc32 enable_msvidc32
14555wine_fn_config_dll msvideo.dll16 enable_win16
14556wine_fn_config_dll mswsock enable_mswsock mswsock
14557wine_fn_config_dll msxml3 enable_msxml3
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014558wine_fn_config_test dlls/msxml3/tests msxml3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014559wine_fn_config_dll msxml4 enable_msxml4
14560wine_fn_config_dll nddeapi enable_nddeapi nddeapi
14561wine_fn_config_dll netapi32 enable_netapi32 netapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014562wine_fn_config_test dlls/netapi32/tests netapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014563wine_fn_config_dll newdev enable_newdev newdev
14564wine_fn_config_dll ntdll enable_ntdll ntdll
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014565wine_fn_config_test dlls/ntdll/tests ntdll_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014566wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014567wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014568wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
14569wine_fn_config_dll ntprint enable_ntprint
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014570wine_fn_config_test dlls/ntprint/tests ntprint_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014571wine_fn_config_dll objsel enable_objsel
14572wine_fn_config_dll odbc32 enable_odbc32 odbc32
14573wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014574wine_fn_config_test dlls/odbccp32/tests odbccp32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014575wine_fn_config_dll ole2.dll16 enable_win16
14576wine_fn_config_dll ole2conv.dll16 enable_win16
14577wine_fn_config_dll ole2disp.dll16 enable_win16
14578wine_fn_config_dll ole2nls.dll16 enable_win16
14579wine_fn_config_dll ole2prox.dll16 enable_win16
14580wine_fn_config_dll ole2thk.dll16 enable_win16
14581wine_fn_config_dll ole32 enable_ole32 ole32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014582wine_fn_config_test dlls/ole32/tests ole32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014583wine_fn_config_dll oleacc enable_oleacc oleacc
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014584wine_fn_config_test dlls/oleacc/tests oleacc_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014585wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014586wine_fn_config_test dlls/oleaut32/tests oleaut32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014587wine_fn_config_dll olecli.dll16 enable_win16
14588wine_fn_config_dll olecli32 enable_olecli32 olecli32
14589wine_fn_config_dll oledb32 enable_oledb32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014590wine_fn_config_test dlls/oledb32/tests oledb32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014591wine_fn_config_dll oledlg enable_oledlg oledlg
14592wine_fn_config_dll olepro32 enable_olepro32 olepro32
14593wine_fn_config_dll olesvr.dll16 enable_win16
14594wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
14595wine_fn_config_dll olethk32 enable_olethk32
14596wine_fn_config_dll openal32 enable_openal32
14597wine_fn_config_dll opengl32 enable_opengl32 opengl32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014598wine_fn_config_test dlls/opengl32/tests opengl32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014599wine_fn_config_dll pdh enable_pdh pdh
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014600wine_fn_config_test dlls/pdh/tests pdh_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014601wine_fn_config_dll pidgen enable_pidgen
14602wine_fn_config_dll powrprof enable_powrprof powrprof
14603wine_fn_config_dll printui enable_printui
14604wine_fn_config_dll propsys enable_propsys
14605wine_fn_config_dll psapi enable_psapi psapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014606wine_fn_config_test dlls/psapi/tests psapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014607wine_fn_config_dll pstorec enable_pstorec
14608wine_fn_config_dll qcap enable_qcap
14609wine_fn_config_dll qedit enable_qedit
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014610wine_fn_config_test dlls/qedit/tests qedit_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014611wine_fn_config_dll qmgr enable_qmgr
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014612wine_fn_config_test dlls/qmgr/tests qmgr_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014613wine_fn_config_dll qmgrprxy enable_qmgrprxy
14614wine_fn_config_dll quartz enable_quartz quartz
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014615wine_fn_config_test dlls/quartz/tests quartz_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014616wine_fn_config_dll query enable_query
14617wine_fn_config_dll rasapi16.dll16 enable_win16
14618wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014619wine_fn_config_test dlls/rasapi32/tests rasapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014620wine_fn_config_dll rasdlg enable_rasdlg rasdlg
14621wine_fn_config_dll resutils enable_resutils resutils
14622wine_fn_config_dll riched20 enable_riched20 riched20
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014623wine_fn_config_test dlls/riched20/tests riched20_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014624wine_fn_config_dll riched32 enable_riched32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014625wine_fn_config_test dlls/riched32/tests riched32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014626wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014627wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014628wine_fn_config_dll rsabase enable_rsabase
14629wine_fn_config_dll rsaenh enable_rsaenh rsaenh
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014630wine_fn_config_test dlls/rsaenh/tests rsaenh_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014631wine_fn_config_dll rtutils enable_rtutils rtutils
Louis Lenders1ae673f2010-05-11 22:59:22 +020014632wine_fn_config_dll samlib enable_samlib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014633wine_fn_config_dll sane.ds enable_sane_ds
14634wine_fn_config_dll sccbase enable_sccbase
14635wine_fn_config_dll schannel enable_schannel
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014636wine_fn_config_test dlls/schannel/tests schannel_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014637wine_fn_config_dll secur32 enable_secur32 secur32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014638wine_fn_config_test dlls/secur32/tests secur32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014639wine_fn_config_dll security enable_security
14640wine_fn_config_dll sensapi enable_sensapi sensapi
14641wine_fn_config_dll serialui enable_serialui serialui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014642wine_fn_config_test dlls/serialui/tests serialui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014643wine_fn_config_dll setupapi enable_setupapi setupapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014644wine_fn_config_test dlls/setupapi/tests setupapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014645wine_fn_config_dll setupx.dll16 enable_win16
14646wine_fn_config_dll sfc enable_sfc sfc
14647wine_fn_config_dll sfc_os enable_sfc_os sfc_os
14648wine_fn_config_dll shdoclc enable_shdoclc
14649wine_fn_config_dll shdocvw enable_shdocvw shdocvw
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014650wine_fn_config_test dlls/shdocvw/tests shdocvw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014651wine_fn_config_dll shell.dll16 enable_win16
14652wine_fn_config_dll shell32 enable_shell32 shell32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014653wine_fn_config_test dlls/shell32/tests shell32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014654wine_fn_config_dll shfolder enable_shfolder shfolder
14655wine_fn_config_dll shlwapi enable_shlwapi shlwapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014656wine_fn_config_test dlls/shlwapi/tests shlwapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014657wine_fn_config_dll slbcsp enable_slbcsp
14658wine_fn_config_dll slc enable_slc slc
14659wine_fn_config_dll snmpapi enable_snmpapi snmpapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014660wine_fn_config_test dlls/snmpapi/tests snmpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014661wine_fn_config_dll softpub enable_softpub
14662wine_fn_config_dll sound.drv16 enable_win16
14663wine_fn_config_dll spoolss enable_spoolss spoolss
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014664wine_fn_config_test dlls/spoolss/tests spoolss_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014665wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
14666wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
14667wine_fn_config_dll sti enable_sti sti
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014668wine_fn_config_test dlls/sti/tests sti_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014669wine_fn_config_dll storage.dll16 enable_win16
14670wine_fn_config_dll stress.dll16 enable_win16
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014671wine_fn_config_lib strmiids
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014672wine_fn_config_dll svrapi enable_svrapi
14673wine_fn_config_dll sxs enable_sxs
14674wine_fn_config_dll system.drv16 enable_win16
14675wine_fn_config_dll t2embed enable_t2embed
14676wine_fn_config_dll tapi32 enable_tapi32 tapi32
14677wine_fn_config_dll toolhelp.dll16 enable_win16
14678wine_fn_config_dll traffic enable_traffic
14679wine_fn_config_dll twain.dll16 enable_win16
14680wine_fn_config_dll twain_32 enable_twain_32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014681wine_fn_config_test dlls/twain_32/tests twain_32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014682wine_fn_config_dll typelib.dll16 enable_win16
14683wine_fn_config_dll unicows enable_unicows unicows
14684wine_fn_config_dll updspapi enable_updspapi
14685wine_fn_config_dll url enable_url url
14686wine_fn_config_dll urlmon enable_urlmon urlmon
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014687wine_fn_config_test dlls/urlmon/tests urlmon_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014688wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
14689wine_fn_config_dll user.exe16 enable_win16
14690wine_fn_config_dll user32 enable_user32 user32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014691wine_fn_config_test dlls/user32/tests user32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014692wine_fn_config_dll userenv enable_userenv userenv
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014693wine_fn_config_test dlls/userenv/tests userenv_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014694wine_fn_config_dll usp10 enable_usp10 usp10
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014695wine_fn_config_test dlls/usp10/tests usp10_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014696wine_fn_config_lib uuid
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014697wine_fn_config_dll uxtheme enable_uxtheme uxtheme
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014698wine_fn_config_test dlls/uxtheme/tests uxtheme_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014699wine_fn_config_dll vdhcp.vxd enable_win16
14700wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
14701wine_fn_config_dll ver.dll16 enable_win16
14702wine_fn_config_dll version enable_version version
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014703wine_fn_config_test dlls/version/tests version_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014704wine_fn_config_dll vmm.vxd enable_win16
14705wine_fn_config_dll vnbt.vxd enable_win16
14706wine_fn_config_dll vnetbios.vxd enable_win16
14707wine_fn_config_dll vtdapi.vxd enable_win16
14708wine_fn_config_dll vwin32.vxd enable_win16
14709wine_fn_config_dll w32skrnl enable_win16
14710wine_fn_config_dll w32sys.dll16 enable_win16
14711wine_fn_config_dll wbemprox enable_wbemprox
14712wine_fn_config_dll wiaservc enable_wiaservc
14713wine_fn_config_dll win32s16.dll16 enable_win16
14714wine_fn_config_dll win87em.dll16 enable_win16
14715wine_fn_config_dll winaspi.dll16 enable_win16
14716wine_fn_config_dll windebug.dll16 enable_win16
14717wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014718wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014719wine_fn_config_dll winealsa.drv enable_winealsa_drv
14720wine_fn_config_dll wineaudioio.drv enable_wineaudioio_drv
14721wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014722wine_fn_config_lib winecrt0
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014723wine_fn_config_dll wined3d enable_wined3d wined3d
14724wine_fn_config_dll wineesd.drv enable_wineesd_drv
14725wine_fn_config_dll winejack.drv enable_winejack_drv
14726wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
14727wine_fn_config_dll winemapi enable_winemapi
14728wine_fn_config_dll winemp3.acm enable_winemp3_acm
14729wine_fn_config_dll winenas.drv enable_winenas_drv
14730wine_fn_config_dll wineoss.drv enable_wineoss_drv
14731wine_fn_config_dll wineps.drv enable_wineps_drv
14732wine_fn_config_dll wineps16.drv16 enable_win16
14733wine_fn_config_dll winequartz.drv enable_winequartz_drv
14734wine_fn_config_dll winex11.drv enable_winex11_drv
14735wine_fn_config_dll wing.dll16 enable_win16
14736wine_fn_config_dll wing32 enable_wing32
14737wine_fn_config_dll winhttp enable_winhttp winhttp
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014738wine_fn_config_test dlls/winhttp/tests winhttp_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014739wine_fn_config_dll wininet enable_wininet wininet
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014740wine_fn_config_test dlls/wininet/tests wininet_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014741wine_fn_config_dll winmm enable_winmm winmm
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014742wine_fn_config_test dlls/winmm/tests winmm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014743wine_fn_config_dll winnls.dll16 enable_win16
14744wine_fn_config_dll winnls32 enable_winnls32 winnls32
14745wine_fn_config_dll winscard enable_winscard winscard
14746wine_fn_config_dll winsock.dll16 enable_win16
14747wine_fn_config_dll winspool.drv enable_winspool_drv winspool
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014748wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014749wine_fn_config_dll wintab.dll16 enable_win16
14750wine_fn_config_dll wintab32 enable_wintab32 wintab32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014751wine_fn_config_test dlls/wintab32/tests wintab32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014752wine_fn_config_dll wintrust enable_wintrust wintrust
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014753wine_fn_config_test dlls/wintrust/tests wintrust_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014754wine_fn_config_dll wldap32 enable_wldap32 wldap32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014755wine_fn_config_test dlls/wldap32/tests wldap32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014756wine_fn_config_dll wmi enable_wmi
14757wine_fn_config_dll wmiutils enable_wmiutils
14758wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
14759wine_fn_config_dll wow32 enable_win16 wow32
14760wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014761wine_fn_config_test dlls/ws2_32/tests ws2_32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014762wine_fn_config_dll wsock32 enable_wsock32 wsock32
14763wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
14764wine_fn_config_dll wuapi enable_wuapi
14765wine_fn_config_dll wuaueng enable_wuaueng
14766wine_fn_config_dll xinput1_1 enable_xinput1_1
14767wine_fn_config_dll xinput1_2 enable_xinput1_2
14768wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014769wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014770wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
14771wine_fn_config_dll xmllite enable_xmllite
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014772wine_fn_config_test dlls/xmllite/tests xmllite_test
Alexandre Julliard03642412010-03-20 15:24:22 +010014773wine_fn_config_makefile documentation enable_documentation
14774wine_fn_config_makefile fonts enable_fonts
14775wine_fn_config_makefile include enable_include
14776wine_fn_config_makefile libs/port enable_libs_port
14777wine_fn_config_makefile libs/wine enable_libs_wine
14778wine_fn_config_makefile libs/wpp enable_libs_wpp
14779wine_fn_config_makefile loader enable_loader
Alexandre Julliardd394e042010-03-20 14:53:39 +010014780wine_fn_config_program attrib enable_attrib install
14781wine_fn_config_program cacls enable_cacls install
14782wine_fn_config_program clock enable_clock install
14783wine_fn_config_program cmd enable_cmd install
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014784wine_fn_config_test programs/cmd/tests cmd.exe_test
Alexandre Julliardd394e042010-03-20 14:53:39 +010014785wine_fn_config_program cmdlgtst enable_cmdlgtst
14786wine_fn_config_program control enable_control install
14787wine_fn_config_program dxdiag enable_dxdiag install
14788wine_fn_config_program eject enable_eject install
14789wine_fn_config_program expand enable_expand install
14790wine_fn_config_program explorer enable_explorer install
14791wine_fn_config_program extrac32 enable_extrac32 install
14792wine_fn_config_program hh enable_hh install
14793wine_fn_config_program icinfo enable_icinfo install
14794wine_fn_config_program iexplore enable_iexplore install
14795wine_fn_config_program lodctr enable_lodctr install
14796wine_fn_config_program mshta enable_mshta install
14797wine_fn_config_program msiexec enable_msiexec installbin
14798wine_fn_config_program net enable_net install
Vincent Povirk4d3e6f42010-04-02 10:19:18 -050014799wine_fn_config_program ngen enable_ngen install
Alexandre Julliardd394e042010-03-20 14:53:39 +010014800wine_fn_config_program notepad enable_notepad installbin
14801wine_fn_config_program oleview enable_oleview install
14802wine_fn_config_program ping enable_ping install
14803wine_fn_config_program progman enable_progman install
14804wine_fn_config_program reg enable_reg install
14805wine_fn_config_program regedit enable_regedit installbin
14806wine_fn_config_program regsvr32 enable_regsvr32 installbin
14807wine_fn_config_program rpcss enable_rpcss install
14808wine_fn_config_program rundll32 enable_rundll32 install
Hans Leidekker544da282010-05-03 12:56:58 +020014809wine_fn_config_program sc enable_sc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010014810wine_fn_config_program secedit enable_secedit install
14811wine_fn_config_program services enable_services install
14812wine_fn_config_program spoolsv enable_spoolsv install
14813wine_fn_config_program start enable_start install
14814wine_fn_config_program svchost enable_svchost install
14815wine_fn_config_program taskmgr enable_taskmgr install
14816wine_fn_config_program termsv enable_termsv install
14817wine_fn_config_program uninstaller enable_uninstaller install
14818wine_fn_config_program unlodctr enable_unlodctr install
14819wine_fn_config_program view enable_view
14820wine_fn_config_program wineboot enable_wineboot installbin
14821wine_fn_config_program winebrowser enable_winebrowser install
14822wine_fn_config_program winecfg enable_winecfg installbin
14823wine_fn_config_program wineconsole enable_wineconsole installbin
14824wine_fn_config_program winedbg enable_winedbg installbin
14825wine_fn_config_program winedevice enable_winedevice install
14826wine_fn_config_program winefile enable_winefile installbin
14827wine_fn_config_program winemenubuilder enable_winemenubuilder install
14828wine_fn_config_program winemine enable_winemine installbin
14829wine_fn_config_program winepath enable_winepath installbin
14830wine_fn_config_program winetest enable_winetest
14831wine_fn_config_program winevdm enable_win16 install
14832wine_fn_config_program winhelp.exe16 enable_win16 install
14833wine_fn_config_program winhlp32 enable_winhlp32 install
14834wine_fn_config_program winoldap.mod16 enable_win16 install
14835wine_fn_config_program winver enable_winver install
14836wine_fn_config_program wordpad enable_wordpad install
14837wine_fn_config_program write enable_write install
14838wine_fn_config_program xcopy enable_xcopy install
Alexandre Julliard03642412010-03-20 15:24:22 +010014839wine_fn_config_makefile server enable_server
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014840wine_fn_config_tool tools
14841wine_fn_config_tool tools/widl
14842wine_fn_config_tool tools/winebuild
14843wine_fn_config_tool tools/winedump
14844wine_fn_config_tool tools/winegcc
14845wine_fn_config_tool tools/wmc
14846wine_fn_config_tool tools/wrc
Alexandre Julliard626f4252000-11-10 23:35:20 +000014847
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014848ac_config_commands="$ac_config_commands Makefile"
14849
14850
14851ac_config_files="$ac_config_files Make.tmp:Makefile.in"
Alexandre Julliard92b57312010-03-22 20:25:30 +010014852
14853
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020014854
14855if test -n "$with_wine64"
14856then
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020014857wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020014858fonts server:
14859 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020014860$with_wine64/loader/wine:
14861 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020014862clean::
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020014863 \$(RM) fonts server $with_wine64/loader/wine"
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020014864fi
14865
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014866wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
14867 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
14868
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014869cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014870# This file is a shell script that caches the results of configure
14871# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014872# scripts and configure runs, see configure's option --config-cache.
14873# It is not useful on other systems. If it contains results you don't
14874# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014875#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014876# config.status only pays attention to the cache file if you give it
14877# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014878#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014879# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014880# loading this file, other *unset* `ac_cv_foo' will be assigned the
14881# following values.
14882
14883_ACEOF
14884
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000014885# The following way of writing the cache mishandles newlines in values,
14886# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014887# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014888# Ultrix sh set writes to stderr and can't be redirected directly,
14889# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014890(
14891 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14892 eval ac_val=\$$ac_var
14893 case $ac_val in #(
14894 *${as_nl}*)
14895 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014896 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014897$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014898 esac
14899 case $ac_var in #(
14900 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010014901 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014902 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014903 esac ;;
14904 esac
14905 done
14906
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014907 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014908 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14909 *${as_nl}ac_space=\ *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014910 # `set' does not quote correctly, so add quotes: double-quote
14911 # substitution turns \\\\ into \\, and sed turns \\ into \.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014912 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000014913 "s/'/'\\\\''/g;
14914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014915 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014916 *)
14917 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014919 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014920 esac |
14921 sort
14922) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014923 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014924 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014925 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014926 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14928 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014929 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14930 :end' >>confcache
Jeremy White0ebeb532006-06-20 13:18:41 +020014931if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14932 if test -w "$cache_file"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014933 test "x$cache_file" != "x/dev/null" &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014934 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014935$as_echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014936 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014937 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014938 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014939$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014940 fi
14941fi
14942rm -f confcache
14943
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014944test "x$prefix" = xNONE && prefix=$ac_default_prefix
14945# Let make expand exec_prefix.
14946test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14947
Alexandre Julliard18f92e71996-07-17 20:02:21 +000014948DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014949
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014950ac_libobjs=
14951ac_ltlibobjs=
14952for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14953 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014954 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Alexandre Julliardabf50482008-10-31 12:56:53 +010014955 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014956 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14957 # will be set to the directory where LIBOBJS objects are built.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014958 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14959 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014960done
14961LIBOBJS=$ac_libobjs
14962
14963LTLIBOBJS=$ac_ltlibobjs
14964
14965
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014966
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014967: ${CONFIG_STATUS=./config.status}
Alexandre Julliardabf50482008-10-31 12:56:53 +010014968ac_write_fail=0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014969ac_clean_files_save=$ac_clean_files
14970ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014971{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014972$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014973as_write_fail=0
14974cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014975#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014976# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014977# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014978# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014979# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014980
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014981debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014982ac_cs_recheck=false
14983ac_cs_silent=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000014984
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014985SHELL=\${CONFIG_SHELL-$SHELL}
14986export SHELL
14987_ASEOF
14988cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14989## -------------------- ##
14990## M4sh Initialization. ##
14991## -------------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +000014992
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010014993# Be more Bourne compatible
14994DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014995if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014996 emulate sh
14997 NULLCMD=:
Alexandre Julliardabf50482008-10-31 12:56:53 +010014998 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Alexandre Julliard11af04e2002-10-10 03:48:04 +000014999 # is contrary to our usage. Disable this feature.
15000 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015001 setopt NO_GLOB_SUBST
15002else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015003 case `(set -o) 2>/dev/null` in #(
15004 *posix*) :
15005 set -o posix ;; #(
15006 *) :
15007 ;;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015008esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015009fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015010
15011
Alexandre Julliardabf50482008-10-31 12:56:53 +010015012as_nl='
15013'
15014export as_nl
15015# Printing a long string crashes Solaris 7 /usr/bin/printf.
15016as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15017as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15018as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015019# Prefer a ksh shell builtin over an external printf program on Solaris,
15020# but without wasting forks for bash or zsh.
15021if test -z "$BASH_VERSION$ZSH_VERSION" \
15022 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15023 as_echo='print -r --'
15024 as_echo_n='print -rn --'
15025elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015026 as_echo='printf %s\n'
15027 as_echo_n='printf %s'
15028else
15029 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15030 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15031 as_echo_n='/usr/ucb/echo -n'
15032 else
15033 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15034 as_echo_n_body='eval
15035 arg=$1;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015036 case $arg in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015037 *"$as_nl"*)
15038 expr "X$arg" : "X\\(.*\\)$as_nl";
15039 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15040 esac;
15041 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15042 '
15043 export as_echo_n_body
15044 as_echo_n='sh -c $as_echo_n_body as_echo'
15045 fi
15046 export as_echo_body
15047 as_echo='sh -c $as_echo_body as_echo'
15048fi
15049
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015050# The user is always right.
15051if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015052 PATH_SEPARATOR=:
15053 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15054 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15055 PATH_SEPARATOR=';'
15056 }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015057fi
15058
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015059
15060# IFS
15061# We need space, tab and new line, in precisely that order. Quoting is
15062# there to prevent editors from complaining about space-tab.
15063# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15064# splitting by setting IFS to empty value.)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015065IFS=" "" $as_nl"
15066
15067# Find who we are. Look in the path if we contain no directory separator.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015068case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015069 *[\\/]* ) as_myself=$0 ;;
15070 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015071for as_dir in $PATH
15072do
15073 IFS=$as_save_IFS
15074 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015075 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15076 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015077IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015078
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015079 ;;
15080esac
15081# We did not find ourselves, most probably we were run as `sh COMMAND'
15082# in which case we are not to be found in the path.
15083if test "x$as_myself" = x; then
15084 as_myself=$0
15085fi
15086if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015087 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015088 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015089fi
15090
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015091# Unset variables that we do not need and which cause bugs (e.g. in
15092# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15093# suppresses any "Segmentation fault" message there. '((' could
15094# trigger a bug in pdksh 5.2.14.
15095for as_var in BASH_ENV ENV MAIL MAILPATH
15096do eval test x\${$as_var+set} = xset \
15097 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015098done
15099PS1='$ '
15100PS2='> '
15101PS4='+ '
15102
15103# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +010015104LC_ALL=C
15105export LC_ALL
15106LANGUAGE=C
15107export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015108
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015109# CDPATH.
15110(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15111
15112
15113# as_fn_error ERROR [LINENO LOG_FD]
15114# ---------------------------------
15115# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15116# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15117# script with status $?, using 1 if that was 0.
15118as_fn_error ()
15119{
15120 as_status=$?; test $as_status -eq 0 && as_status=1
15121 if test "$3"; then
15122 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15123 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15124 fi
15125 $as_echo "$as_me: error: $1" >&2
15126 as_fn_exit $as_status
15127} # as_fn_error
15128
15129
15130# as_fn_set_status STATUS
15131# -----------------------
15132# Set $? to STATUS, without forking.
15133as_fn_set_status ()
15134{
15135 return $1
15136} # as_fn_set_status
15137
15138# as_fn_exit STATUS
15139# -----------------
15140# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15141as_fn_exit ()
15142{
15143 set +e
15144 as_fn_set_status $1
15145 exit $1
15146} # as_fn_exit
15147
15148# as_fn_unset VAR
15149# ---------------
15150# Portably unset VAR.
15151as_fn_unset ()
15152{
15153 { eval $1=; unset $1;}
15154}
15155as_unset=as_fn_unset
15156# as_fn_append VAR VALUE
15157# ----------------------
15158# Append the text in VALUE to the end of the definition contained in VAR. Take
15159# advantage of any shell optimizations that allow amortized linear growth over
15160# repeated appends, instead of the typical quadratic growth present in naive
15161# implementations.
15162if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15163 eval 'as_fn_append ()
15164 {
15165 eval $1+=\$2
15166 }'
15167else
15168 as_fn_append ()
15169 {
15170 eval $1=\$$1\$2
15171 }
15172fi # as_fn_append
15173
15174# as_fn_arith ARG...
15175# ------------------
15176# Perform arithmetic evaluation on the ARGs, and store the result in the
15177# global $as_val. Take advantage of shells that can avoid forks. The arguments
15178# must be portable across $(()) and expr.
15179if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15180 eval 'as_fn_arith ()
15181 {
15182 as_val=$(( $* ))
15183 }'
15184else
15185 as_fn_arith ()
15186 {
15187 as_val=`expr "$@" || test $? -eq 1`
15188 }
15189fi # as_fn_arith
15190
15191
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015192if expr a : '\(a\)' >/dev/null 2>&1 &&
15193 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15194 as_expr=expr
15195else
15196 as_expr=false
15197fi
15198
15199if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15200 as_basename=basename
15201else
15202 as_basename=false
15203fi
15204
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015205if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15206 as_dirname=dirname
15207else
15208 as_dirname=false
15209fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015210
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015211as_me=`$as_basename -- "$0" ||
15212$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15213 X"$0" : 'X\(//\)$' \| \
15214 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010015215$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015216 sed '/^.*\/\([^/][^/]*\)\/*$/{
15217 s//\1/
15218 q
15219 }
15220 /^X\/\(\/\/\)$/{
15221 s//\1/
15222 q
15223 }
15224 /^X\/\(\/\).*/{
15225 s//\1/
15226 q
15227 }
15228 s/.*/./; q'`
15229
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015230# Avoid depending upon Character Ranges.
15231as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15232as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15233as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15234as_cr_digits='0123456789'
15235as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015236
15237ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015238case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015239-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015240 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015241 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015242 xy) ECHO_C='\c';;
15243 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15244 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015245 esac;;
15246*)
15247 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015248esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015249
15250rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015251if test -d conf$$.dir; then
15252 rm -f conf$$.dir/conf$$.file
15253else
15254 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +010015255 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015256fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010015257if (echo >conf$$.file) 2>/dev/null; then
15258 if ln -s conf$$.file conf$$ 2>/dev/null; then
15259 as_ln_s='ln -s'
15260 # ... but there are two gotchas:
15261 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15262 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15263 # In both cases, we have to default to `cp -p'.
15264 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15265 as_ln_s='cp -p'
15266 elif ln conf$$.file conf$$ 2>/dev/null; then
15267 as_ln_s=ln
15268 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015269 as_ln_s='cp -p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015270 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015271else
15272 as_ln_s='cp -p'
15273fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015274rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15275rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015276
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015277
15278# as_fn_mkdir_p
15279# -------------
15280# Create "$as_dir" as a directory, including parents if necessary.
15281as_fn_mkdir_p ()
15282{
15283
15284 case $as_dir in #(
15285 -*) as_dir=./$as_dir;;
15286 esac
15287 test -d "$as_dir" || eval $as_mkdir_p || {
15288 as_dirs=
15289 while :; do
15290 case $as_dir in #(
15291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15292 *) as_qdir=$as_dir;;
15293 esac
15294 as_dirs="'$as_qdir' $as_dirs"
15295 as_dir=`$as_dirname -- "$as_dir" ||
15296$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15297 X"$as_dir" : 'X\(//\)[^/]' \| \
15298 X"$as_dir" : 'X\(//\)$' \| \
15299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15300$as_echo X"$as_dir" |
15301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15302 s//\1/
15303 q
15304 }
15305 /^X\(\/\/\)[^/].*/{
15306 s//\1/
15307 q
15308 }
15309 /^X\(\/\/\)$/{
15310 s//\1/
15311 q
15312 }
15313 /^X\(\/\).*/{
15314 s//\1/
15315 q
15316 }
15317 s/.*/./; q'`
15318 test -d "$as_dir" && break
15319 done
15320 test -z "$as_dirs" || eval "mkdir $as_dirs"
15321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15322
15323
15324} # as_fn_mkdir_p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015325if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015326 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015327else
Alexandre Julliard875927f2004-01-02 01:55:29 +000015328 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015329 as_mkdir_p=false
15330fi
15331
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015332if test -x / >/dev/null 2>&1; then
15333 as_test_x='test -x'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015334else
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015335 if ls -dL / >/dev/null 2>&1; then
15336 as_ls_L_option=L
15337 else
15338 as_ls_L_option=
15339 fi
15340 as_test_x='
15341 eval sh -c '\''
15342 if test -d "$1"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015343 test -d "$1/.";
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015344 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015345 case $1 in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015346 -*)set "./$1";;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015347 esac;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015348 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015349 ???[sx]*):;;*)false;;esac;fi
15350 '\'' sh
15351 '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015352fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015353as_executable_p=$as_test_x
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015354
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015355# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000015356as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015357
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015358# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000015359as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015360
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015361
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015362exec 6>&1
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015363## ----------------------------------- ##
15364## Main body of $CONFIG_STATUS script. ##
15365## ----------------------------------- ##
15366_ASEOF
15367test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015368
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015369cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15370# Save the log message, to keep $0 and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015371# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015372# values after options handling.
15373ac_log="
Alexandre Julliard821cd382010-05-21 21:30:30 +020015374This file was extended by Wine $as_me 1.2-rc1, which was
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015375generated by GNU Autoconf 2.65. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015376
15377 CONFIG_FILES = $CONFIG_FILES
15378 CONFIG_HEADERS = $CONFIG_HEADERS
15379 CONFIG_LINKS = $CONFIG_LINKS
15380 CONFIG_COMMANDS = $CONFIG_COMMANDS
15381 $ $0 $@
15382
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015383on `(hostname || uname -n) 2>/dev/null | sed 1q`
15384"
15385
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015386_ACEOF
15387
Alexandre Julliardabf50482008-10-31 12:56:53 +010015388case $ac_config_files in *"
15389"*) set x $ac_config_files; shift; ac_config_files=$*;;
15390esac
15391
15392case $ac_config_headers in *"
15393"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15394esac
15395
15396
15397cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015398# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015399config_files="$ac_config_files"
15400config_headers="$ac_config_headers"
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015401config_links="$ac_config_links"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015402config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015403
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015404_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015405
Alexandre Julliardabf50482008-10-31 12:56:53 +010015406cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015407ac_cs_usage="\
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015408\`$as_me' instantiates files and other configuration actions
15409from templates according to the current configuration. Unless the files
15410and actions are specified as TAGs, all are instantiated by default.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015411
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015412Usage: $0 [OPTION]... [TAG]...
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015413
15414 -h, --help print this help, then exit
Alexandre Julliard78bd1942006-08-14 20:42:56 +020015415 -V, --version print version number and configuration settings, then exit
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015416 --config print configuration, then exit
Alexandre Julliardabf50482008-10-31 12:56:53 +010015417 -q, --quiet, --silent
15418 do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015419 -d, --debug don't remove temporary files
15420 --recheck update $as_me by reconfiguring in the same conditions
Alexandre Julliardabf50482008-10-31 12:56:53 +010015421 --file=FILE[:TEMPLATE]
15422 instantiate the configuration file FILE
15423 --header=FILE[:TEMPLATE]
15424 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015425
15426Configuration files:
15427$config_files
15428
15429Configuration headers:
15430$config_headers
15431
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015432Configuration links:
15433$config_links
15434
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015435Configuration commands:
15436$config_commands
15437
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015438Report bugs to <wine-devel@winehq.org>.
15439Wine home page: <http://www.winehq.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015440
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015441_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015442cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015443ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015444ac_cs_version="\\
Alexandre Julliard821cd382010-05-21 21:30:30 +020015445Wine config.status 1.2-rc1
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015446configured by $0, generated by GNU Autoconf 2.65,
15447 with options \\"\$ac_cs_config\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015448
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015449Copyright (C) 2009 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015450This config.status script is free software; the Free Software Foundation
15451gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015452
15453ac_pwd='$ac_pwd'
15454srcdir='$srcdir'
15455INSTALL='$INSTALL'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015456test -n "\$AWK" || AWK=awk
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015457_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015458
Alexandre Julliardabf50482008-10-31 12:56:53 +010015459cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15460# The default lists apply if the user does not specify any file.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015461ac_need_defaults=:
15462while test $# != 0
15463do
15464 case $1 in
15465 --*=*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015466 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15467 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015468 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015469 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015470 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015471 ac_option=$1
15472 ac_optarg=$2
15473 ac_shift=shift
15474 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015475 esac
15476
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015477 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015478 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015479 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15480 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015481 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Alexandre Julliardabf50482008-10-31 12:56:53 +010015482 $as_echo "$ac_cs_version"; exit ;;
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015483 --config | --confi | --conf | --con | --co | --c )
15484 $as_echo "$ac_cs_config"; exit ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015485 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015486 debug=: ;;
15487 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015488 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010015489 case $ac_optarg in
15490 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15491 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015492 as_fn_append CONFIG_FILES " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015493 ac_need_defaults=false;;
15494 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015495 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010015496 case $ac_optarg in
15497 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15498 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015499 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015500 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015501 --he | --h)
15502 # Conflict between --help and --header
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015503 as_fn_error "ambiguous option: \`$1'
15504Try \`$0 --help' for more information.";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015505 --help | --hel | -h )
Alexandre Julliardabf50482008-10-31 12:56:53 +010015506 $as_echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15508 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15509 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015510
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015511 # This is an error.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015512 -*) as_fn_error "unrecognized option: \`$1'
15513Try \`$0 --help' for more information." ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015514
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015515 *) as_fn_append ac_config_targets " $1"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015516 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015517
15518 esac
15519 shift
15520done
15521
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015522ac_configure_extra_args=
15523
15524if $ac_cs_silent; then
15525 exec 6>/dev/null
15526 ac_configure_extra_args="$ac_configure_extra_args --silent"
15527fi
15528
15529_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015531if \$ac_cs_recheck; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015532 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15533 shift
15534 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15535 CONFIG_SHELL='$SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015536 export CONFIG_SHELL
Alexandre Julliardabf50482008-10-31 12:56:53 +010015537 exec "\$@"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015538fi
15539
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015540_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015541cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015542exec 5>>config.log
15543{
15544 echo
15545 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15546## Running $as_me. ##
15547_ASBOX
Alexandre Julliardabf50482008-10-31 12:56:53 +010015548 $as_echo "$ac_log"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015549} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015550
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015551_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015552cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015553#
15554# INIT-COMMANDS
15555#
15556wine_fn_output_makefile ()
15557{
15558 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
15559$ALL_MAKEFILE_DEPENDS
15560_WINE_EOF
15561 as_fn_error "could not create Makefile" "$LINENO" 5
15562}
15563
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015564_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015565
Alexandre Julliardabf50482008-10-31 12:56:53 +010015566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015567
15568# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015569for ac_config_target in $ac_config_targets
15570do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015571 case $ac_config_target in
15572 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliardc4704c22006-09-22 09:33:00 +020015573 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
Alexandre Julliarda6320522010-02-03 13:14:03 +010015574 "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 +010015575 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
15576 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
15577 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
15578 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
Alexandre Julliard321d3882010-05-06 20:51:53 +020015579 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015580 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020015581 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
15582 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020015583 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010015584 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015585 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
15586 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
15587 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010015588 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015589 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15590 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015591 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015592 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
15593 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Makefile.in" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015594
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015595 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015596 esac
15597done
15598
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015599
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015600# If the user did not use the arguments to specify the items to instantiate,
15601# then the envvar interface is used. Set only those that are not.
15602# We use the long form for the default assignment because of an extremely
15603# bizarre bug on SunOS 4.1.3.
15604if $ac_need_defaults; then
15605 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15606 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015607 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015608 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15609fi
15610
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015611# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015612# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015613# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015614# Hook for its removal unless debugging.
15615# Note that there is a small window in which the directory will not be cleaned:
15616# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015617$debug ||
15618{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015619 tmp=
15620 trap 'exit_status=$?
15621 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15622' 0
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015623 trap 'as_fn_exit 1' 1 2 13 15
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015624}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015625# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015626
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015627{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015628 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015629 test -n "$tmp" && test -d "$tmp"
15630} ||
15631{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015632 tmp=./conf$$-$RANDOM
15633 (umask 077 && mkdir "$tmp")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015634} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015635
Alexandre Julliardabf50482008-10-31 12:56:53 +010015636# Set up the scripts for CONFIG_FILES section.
15637# No need to generate them if there are no CONFIG_FILES.
15638# This happens for instance with `./config.status config.h'.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015639if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015640
Alexandre Julliardabf50482008-10-31 12:56:53 +010015641if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15642 ac_cs_awk_getline=:
15643 ac_cs_awk_pipe_init=
15644 ac_cs_awk_read_file='
15645 while ((getline aline < (F[key])) > 0)
15646 print(aline)
15647 close(F[key])'
15648 ac_cs_awk_pipe_fini=
15649else
15650 ac_cs_awk_getline=false
15651 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15652 ac_cs_awk_read_file='
15653 print "|#_!!_#|"
15654 print "cat " F[key] " &&"
15655 '$ac_cs_awk_pipe_init
15656 # The final `:' finishes the AND list.
15657 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15658fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015659ac_cr=`echo X | tr X '\015'`
15660# On cygwin, bash can eat \r inside `` if the user requested igncr.
15661# But we know of no other shell where ac_cr would be empty at this
15662# point, so we can use a bashism as a fallback.
15663if test "x$ac_cr" = x; then
15664 eval ac_cr=\$\'\\r\'
15665fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010015666ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15667if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015668 ac_cs_awk_cr='\r'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015669else
15670 ac_cs_awk_cr=$ac_cr
15671fi
15672
15673echo 'BEGIN {' >"$tmp/subs1.awk" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015674_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015675
Alexandre Julliardabf50482008-10-31 12:56:53 +010015676# Create commands to substitute file output variables.
15677{
15678 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15679 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15680 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15681 echo "_ACAWK" &&
15682 echo "_ACEOF"
15683} >conf$$files.sh &&
15684. ./conf$$files.sh ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015685 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015686rm -f conf$$files.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015687
Alexandre Julliardabf50482008-10-31 12:56:53 +010015688{
15689 echo "cat >conf$$subs.awk <<_ACEOF" &&
15690 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15691 echo "_ACEOF"
15692} >conf$$subs.sh ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015693 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015694ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015695ac_delim='%!_!# '
15696for ac_last_try in false false false false false :; do
Alexandre Julliardabf50482008-10-31 12:56:53 +010015697 . ./conf$$subs.sh ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015698 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015699
Alexandre Julliardabf50482008-10-31 12:56:53 +010015700 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15701 if test $ac_delim_n = $ac_delim_num; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015702 break
15703 elif $ac_last_try; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015704 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015705 else
15706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015707 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015708done
Alexandre Julliardabf50482008-10-31 12:56:53 +010015709rm -f conf$$subs.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015710
Alexandre Julliardabf50482008-10-31 12:56:53 +010015711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15712cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015713_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015714sed -n '
15715h
15716s/^/S["/; s/!.*/"]=/
15717p
15718g
15719s/^[^!]*!//
15720:repl
15721t repl
15722s/'"$ac_delim"'$//
15723t delim
15724:nl
15725h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015726s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010015727t more1
15728s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15729p
15730n
15731b repl
15732:more1
15733s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15734p
15735g
15736s/.\{148\}//
15737t nl
15738:delim
15739h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015740s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010015741t more2
15742s/["\\]/\\&/g; s/^/"/; s/$/"/
15743p
15744b
15745:more2
15746s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15747p
15748g
15749s/.\{148\}//
15750t delim
15751' <conf$$subs.awk | sed '
15752/^[^""]/{
15753 N
15754 s/\n//
15755}
15756' >>$CONFIG_STATUS || ac_write_fail=1
15757rm -f conf$$subs.awk
15758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15759_ACAWK
15760cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15761 for (key in S) S_is_set[key] = 1
15762 FS = ""
15763 \$ac_cs_awk_pipe_init
15764}
15765{
15766 line = $ 0
15767 nfields = split(line, field, "@")
15768 substed = 0
15769 len = length(field[1])
15770 for (i = 2; i < nfields; i++) {
15771 key = field[i]
15772 keylen = length(key)
15773 if (S_is_set[key]) {
15774 value = S[key]
15775 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15776 len += length(value) + length(field[++i])
15777 substed = 1
15778 } else
15779 len += 1 + keylen
15780 }
15781 if (nfields == 3 && !substed) {
15782 key = field[2]
15783 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15784 \$ac_cs_awk_read_file
15785 next
15786 }
15787 }
15788 print line
15789}
15790\$ac_cs_awk_pipe_fini
15791_ACAWK
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015792_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15794if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15795 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15796else
15797 cat
15798fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015799 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015800_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015801
15802# VPATH may cause trouble with some makes, so we remove $(srcdir),
15803# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15804# trailing colons and then remove the whole line if VPATH becomes empty
15805# (actually we leave an empty line to preserve line numbers).
15806if test "x$srcdir" = x.; then
15807 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15808s/:*\$(srcdir):*/:/
15809s/:*\${srcdir}:*/:/
15810s/:*@srcdir@:*/:/
15811s/^\([^=]*=[ ]*\):*/\1/
15812s/:*$//
15813s/^[^=]*=[ ]*$//
15814}'
15815fi
15816
Alexandre Julliardabf50482008-10-31 12:56:53 +010015817cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015818fi # test -n "$CONFIG_FILES"
15819
Alexandre Julliardabf50482008-10-31 12:56:53 +010015820# Set up the scripts for CONFIG_HEADERS section.
15821# No need to generate them if there are no CONFIG_HEADERS.
15822# This happens for instance with `./config.status Makefile'.
15823if test -n "$CONFIG_HEADERS"; then
15824cat >"$tmp/defines.awk" <<\_ACAWK ||
15825BEGIN {
15826_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015827
Alexandre Julliardabf50482008-10-31 12:56:53 +010015828# Transform confdefs.h into an awk script `defines.awk', embedded as
15829# here-document in config.status, that substitutes the proper values into
15830# config.h.in to produce config.h.
15831
15832# Create a delimiter string that does not exist in confdefs.h, to ease
15833# handling of long lines.
15834ac_delim='%!_!# '
15835for ac_last_try in false false :; do
15836 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
15837 if test -z "$ac_t"; then
15838 break
15839 elif $ac_last_try; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015840 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015841 else
15842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15843 fi
15844done
15845
15846# For the awk script, D is an array of macro values keyed by name,
15847# likewise P contains macro parameters if any. Preserve backslash
15848# newline sequences.
15849
15850ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15851sed -n '
15852s/.\{148\}/&'"$ac_delim"'/g
15853t rset
15854:rset
15855s/^[ ]*#[ ]*define[ ][ ]*/ /
15856t def
15857d
15858:def
15859s/\\$//
15860t bsnl
15861s/["\\]/\\&/g
15862s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15863D["\1"]=" \3"/p
15864s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15865d
15866:bsnl
15867s/["\\]/\\&/g
15868s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15869D["\1"]=" \3\\\\\\n"\\/p
15870t cont
15871s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15872t cont
15873d
15874:cont
15875n
15876s/.\{148\}/&'"$ac_delim"'/g
15877t clear
15878:clear
15879s/\\$//
15880t bsnlc
15881s/["\\]/\\&/g; s/^/"/; s/$/"/p
15882d
15883:bsnlc
15884s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15885b cont
15886' <confdefs.h | sed '
15887s/'"$ac_delim"'/"\\\
15888"/g' >>$CONFIG_STATUS || ac_write_fail=1
15889
15890cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15891 for (key in D) D_is_set[key] = 1
15892 FS = ""
15893}
15894/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15895 line = \$ 0
15896 split(line, arg, " ")
15897 if (arg[1] == "#") {
15898 defundef = arg[2]
15899 mac1 = arg[3]
15900 } else {
15901 defundef = substr(arg[1], 2)
15902 mac1 = arg[2]
15903 }
15904 split(mac1, mac2, "(") #)
15905 macro = mac2[1]
15906 prefix = substr(line, 1, index(line, defundef) - 1)
15907 if (D_is_set[macro]) {
15908 # Preserve the white space surrounding the "#".
15909 print prefix "define", macro P[macro] D[macro]
15910 next
15911 } else {
15912 # Replace #undef with comments. This is necessary, for example,
15913 # in the case of _POSIX_SOURCE, which is predefined and required
15914 # on some systems where configure will not decide to define it.
15915 if (defundef == "undef") {
15916 print "/*", prefix defundef, macro, "*/"
15917 next
15918 }
15919 }
15920}
15921{ print }
15922_ACAWK
15923_ACEOF
15924cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015925 as_fn_error "could not setup config headers machinery" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015926fi # test -n "$CONFIG_HEADERS"
15927
15928
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015929eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
Alexandre Julliardabf50482008-10-31 12:56:53 +010015930shift
15931for ac_tag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015932do
15933 case $ac_tag in
15934 :[FHLC]) ac_mode=$ac_tag; continue;;
15935 esac
15936 case $ac_mode$ac_tag in
15937 :[FHL]*:*);;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015938 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015939 :[FH]-) ac_tag=-:-;;
15940 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15941 esac
15942 ac_save_IFS=$IFS
15943 IFS=:
15944 set x $ac_tag
15945 IFS=$ac_save_IFS
15946 shift
15947 ac_file=$1
15948 shift
15949
15950 case $ac_mode in
15951 :L) ac_source=$1;;
15952 :[FH])
15953 ac_file_inputs=
15954 for ac_f
15955 do
15956 case $ac_f in
15957 -) ac_f="$tmp/stdin";;
15958 *) # Look for the file first in the build tree, then in the source tree
15959 # (if the path is not absolute). The absolute path cannot be DOS-style,
15960 # because $ac_f cannot contain `:'.
15961 test -f "$ac_f" ||
15962 case $ac_f in
15963 [\\/$]*) false;;
15964 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15965 esac ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015966 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015967 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +010015968 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015969 as_fn_append ac_file_inputs " '$ac_f'"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015970 done
15971
15972 # Let's still pretend it is `configure' which instantiates (i.e., don't
15973 # use $as_me), people would be surprised to read:
15974 # /* config.h. Generated by config.status. */
Alexandre Julliardabf50482008-10-31 12:56:53 +010015975 configure_input='Generated from '`
15976 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15977 `' by configure.'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015978 if test x"$ac_file" != x-; then
15979 configure_input="$ac_file. $configure_input"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015981$as_echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015982 fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010015983 # Neutralize special characters interpreted by sed in replacement strings.
15984 case $configure_input in #(
15985 *\&* | *\|* | *\\* )
15986 ac_sed_conf_input=`$as_echo "$configure_input" |
15987 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15988 *) ac_sed_conf_input=$configure_input;;
15989 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015990
15991 case $ac_tag in
Alexandre Julliardabf50482008-10-31 12:56:53 +010015992 *:-:* | *:-) cat >"$tmp/stdin" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015993 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015994 esac
15995 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015996 esac
15997
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015998 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015999$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016000 X"$ac_file" : 'X\(//\)[^/]' \| \
16001 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016002 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016003$as_echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016004 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16005 s//\1/
16006 q
16007 }
16008 /^X\(\/\/\)[^/].*/{
16009 s//\1/
16010 q
16011 }
16012 /^X\(\/\/\)$/{
16013 s//\1/
16014 q
16015 }
16016 /^X\(\/\).*/{
16017 s//\1/
16018 q
16019 }
16020 s/.*/./; q'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016021 as_dir="$ac_dir"; as_fn_mkdir_p
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016022 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016023
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016024case "$ac_dir" in
16025.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16026*)
Alexandre Julliardabf50482008-10-31 12:56:53 +010016027 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016028 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +010016029 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016030 case $ac_top_builddir_sub in
16031 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16032 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16033 esac ;;
16034esac
16035ac_abs_top_builddir=$ac_pwd
16036ac_abs_builddir=$ac_pwd$ac_dir_suffix
16037# for backward compatibility:
16038ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016039
16040case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016041 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016042 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016043 ac_top_srcdir=$ac_top_builddir_sub
16044 ac_abs_top_srcdir=$ac_pwd ;;
16045 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016046 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016047 ac_top_srcdir=$srcdir
16048 ac_abs_top_srcdir=$srcdir ;;
16049 *) # Relative name.
16050 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16051 ac_top_srcdir=$ac_top_build_prefix$srcdir
16052 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016053esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016054ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000016055
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016056
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016057 case $ac_mode in
16058 :F)
16059 #
16060 # CONFIG_FILE
16061 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016062
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016063 case $INSTALL in
16064 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016065 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000016066 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016067_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016068
Alexandre Julliardabf50482008-10-31 12:56:53 +010016069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016070# If the template does not know about datarootdir, expand it.
16071# FIXME: This hack should be removed a few years after 2.60.
Jeremy White0ebeb532006-06-20 13:18:41 +020016072ac_datarootdir_hack=; ac_datarootdir_seen=
Alexandre Julliardabf50482008-10-31 12:56:53 +010016073ac_sed_dataroot='
16074/datarootdir/ {
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016075 p
16076 q
16077}
16078/@datadir@/p
16079/@docdir@/p
16080/@infodir@/p
16081/@localedir@/p
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016082/@mandir@/p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016083case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jeremy White0ebeb532006-06-20 13:18:41 +020016084*datarootdir*) ac_datarootdir_seen=yes;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016085*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016086 { $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 +010016087$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016088_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016089cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016090 ac_datarootdir_hack='
16091 s&@datadir@&$datadir&g
16092 s&@docdir@&$docdir&g
16093 s&@infodir@&$infodir&g
16094 s&@localedir@&$localedir&g
16095 s&@mandir@&$mandir&g
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016096 s&\\\${datarootdir}&$datarootdir&g' ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016097esac
16098_ACEOF
16099
16100# Neutralize VPATH when `$srcdir' = `.'.
16101# Shell code in configure.ac might set extrasub.
16102# FIXME: do we really want to maintain this feature?
Alexandre Julliardabf50482008-10-31 12:56:53 +010016103cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16104ac_sed_extra="$ac_vpsub
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016105$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016106_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016107cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016108:t
16109/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardabf50482008-10-31 12:56:53 +010016110s|@configure_input@|$ac_sed_conf_input|;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016111s&@top_builddir@&$ac_top_builddir_sub&;t t
Alexandre Julliardabf50482008-10-31 12:56:53 +010016112s&@top_build_prefix@&$ac_top_build_prefix&;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016113s&@srcdir@&$ac_srcdir&;t t
16114s&@abs_srcdir@&$ac_abs_srcdir&;t t
16115s&@top_srcdir@&$ac_top_srcdir&;t t
16116s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16117s&@builddir@&$ac_builddir&;t t
16118s&@abs_builddir@&$ac_abs_builddir&;t t
16119s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16120s&@INSTALL@&$ac_INSTALL&;t t
16121$ac_datarootdir_hack
Alexandre Julliardabf50482008-10-31 12:56:53 +010016122"
16123eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16124if $ac_cs_awk_getline; then
16125 $AWK -f "$tmp/subs.awk"
16126else
16127 $AWK -f "$tmp/subs.awk" | $SHELL
16128fi >$tmp/out \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016129 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016130
Jeremy White0ebeb532006-06-20 13:18:41 +020016131test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16132 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020016133 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016134 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Jeremy White0ebeb532006-06-20 13:18:41 +020016135which seems to be undefined. Please make sure it is defined." >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016136$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Jeremy White0ebeb532006-06-20 13:18:41 +020016137which seems to be undefined. Please make sure it is defined." >&2;}
16138
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016139 rm -f "$tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016140 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +010016141 -) cat "$tmp/out" && rm -f "$tmp/out";;
16142 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16143 esac \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016144 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016145 ;;
16146 :H)
16147 #
16148 # CONFIG_HEADER
16149 #
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016150 if test x"$ac_file" != x-; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016151 {
16152 $as_echo "/* $configure_input */" \
16153 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16154 } >"$tmp/config.h" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016155 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016156 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016157 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016158$as_echo "$as_me: $ac_file is unchanged" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016159 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016160 rm -f "$ac_file"
16161 mv "$tmp/config.h" "$ac_file" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016162 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016163 fi
16164 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016165 $as_echo "/* $configure_input */" \
16166 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016167 || as_fn_error "could not create -" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016168 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016169 ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016170 :L)
16171 #
16172 # CONFIG_LINK
16173 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016174
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016175 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16176 :
16177 else
16178 # Prefer the file from the source tree if names are identical.
16179 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16180 ac_source=$srcdir/$ac_source
16181 fi
16182
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16184$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16185
16186 if test ! -r "$ac_source"; then
16187 as_fn_error "$ac_source: file not found" "$LINENO" 5
16188 fi
16189 rm -f "$ac_file"
16190
16191 # Try a relative symlink, then a hard link, then a copy.
16192 case $srcdir in
16193 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16194 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16195 esac
16196 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16197 ln "$ac_source" "$ac_file" 2>/dev/null ||
16198 cp -p "$ac_source" "$ac_file" ||
16199 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16200 fi
16201 ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016202 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016203$as_echo "$as_me: executing $ac_file commands" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016204 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016205 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016206
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016207
16208 case $ac_file$ac_mode in
Alexandre Julliardc4704c22006-09-22 09:33:00 +020016209 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
Alexandre Julliarda1c253e2010-02-11 20:26:35 +010016210 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16211$as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16212 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16213$as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16214 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16215$as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16216 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16217$as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16218 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16219$as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16220 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16221$as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016222 "Makefile":C) wine_fn_output_makefile Makefile ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016223
16224 esac
16225done # for ac_tag
16226
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000016227
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016228as_fn_exit 0
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016229_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016230ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016231
Alexandre Julliardabf50482008-10-31 12:56:53 +010016232test $ac_write_fail = 0 ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016233 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016234
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016235
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016236# configure is writing to config.log, and then calls config.status.
16237# config.status does its own redirection, appending to config.log.
16238# Unfortunately, on DOS this fails, as config.log is still kept open
16239# by configure, so config.status won't be able to write to it; its
16240# output is simply discarded. So we exec the FD to /dev/null,
16241# effectively closing config.log, so it can be properly (re)opened and
16242# appended to by config.status. When coming back to configure, we
16243# need to make the FD available again.
16244if test "$no_create" != yes; then
16245 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016246 ac_config_status_args=
16247 test "$silent" = yes &&
16248 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016249 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016250 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016251 exec 5>>config.log
16252 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16253 # would make configure fail if this is the last instruction.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016254 $ac_cs_success || as_fn_exit $?
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016255fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016256if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016258$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16259fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016260
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016261
Alexandre Julliarde3bd1112006-09-21 11:14:38 +020016262if test "$no_create" = "yes"
16263then
16264 exit 0
16265fi
16266
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016267ac_save_IFS="$IFS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016268if test "x$wine_notices != "x; then
16269 echo >&6
Rafał Mużyło4736c992008-10-20 21:43:21 +020016270 IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016271 for msg in $wine_notices; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020016272 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016273 if test -n "$msg"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016274 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016275$as_echo "$as_me: $msg" >&6;}
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016276 fi
16277 done
16278fi
Rafał Mużyło4736c992008-10-20 21:43:21 +020016279IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016280for msg in $wine_warnings; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020016281 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016282 if test -n "$msg"; then
16283 echo >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016285$as_echo "$as_me: WARNING: $msg" >&2;}
Detlef Riekenberge84a3822006-08-21 05:28:17 +020016286 fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016287done
16288IFS="$ac_save_IFS"
Francois Gouget99d026f2005-03-19 17:08:18 +000016289
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016290echo "
Alexandre Julliard64362ac2010-02-23 13:33:52 +010016291$as_me: Finished. Do '${ac_make}' to compile Wine.
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016292" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016293