blob: b2481f49add01fea66b9889decc4f82695f70f38 [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 Julliard740e4ff2010-08-20 19:23:50 +02003# Generated by GNU Autoconf 2.65 for Wine 1.3.1.
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 Julliard740e4ff2010-08-20 19:23:50 +0200555PACKAGE_VERSION='1.3.1'
556PACKAGE_STRING='Wine 1.3.1'
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 +0100649CROSSCC
Alexandre Julliard7d2e7722010-07-26 12:13:47 +0200650CROSSTEST_DISABLE
Alexandre Julliardb5d824b2010-08-24 13:42:10 +0200651PRELINK
Alexandre Julliardabf50482008-10-31 12:56:53 +0100652CARBONLIB
Maarten Lankhorstd4354992009-12-09 11:52:09 +0100653FRAMEWORK_OPENAL
Alexandre Julliardabf50482008-10-31 12:56:53 +0100654COREAUDIO
655DISKARBITRATIONLIB
656LDEXECFLAGS
657IOKITLIB
658COREFOUNDATIONLIB
659SECURITYLIB
Alexandre Julliardabf50482008-10-31 12:56:53 +0100660DLLWRAP
661DLLTOOL
662LDD
663LDRPATH_LOCAL
664LDRPATH_INSTALL
665IMPLIBEXT
666LIBEXT
667LDDLLFLAGS
668LDSHARED
669DLLFLAGS
670DLLEXT
Alexandre Julliard40664c02009-02-11 20:40:58 +0100671CPP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100672OPENGL_LIBS
673XLIB
Andrew Nguyen2eda9c72010-05-25 22:20:14 -0500674MAINTAINER_MODE
Alexandre Julliardabf50482008-10-31 12:56:53 +0100675ICOTOOL
Joel Holdsworth476a2be2010-04-05 11:15:03 +0100676CONVERT
Alexandre Julliardabf50482008-10-31 12:56:53 +0100677RSVG
678PKG_CONFIG
679FONTFORGE
680LINTFLAGS
681LINT
682INSTALL_DATA
683INSTALL_SCRIPT
684INSTALL_PROGRAM
685LDCONFIG
686EGREP
687GREP
Alexandre Julliardabf50482008-10-31 12:56:53 +0100688LN_S
Alexandre Julliardabf50482008-10-31 12:56:53 +0100689STRIP
690RANLIB
691ARFLAGS
692ac_ct_AR
693AR
Alexandre Julliardabf50482008-10-31 12:56:53 +0100694BISON
695FLEX
Alexandre Julliardabf50482008-10-31 12:56:53 +0100696TOOLSDIR
Alexandre Julliard90647772009-08-13 19:48:42 +0200697WOW64_DISABLE
Alexandre Julliard07f77c42009-01-15 21:17:51 +0100698TARGETFLAGS
Alexandre Julliardabf50482008-10-31 12:56:53 +0100699CPPBIN
700ac_ct_CXX
701CXXFLAGS
702CXX
703OBJEXT
704EXEEXT
705ac_ct_CC
706CPPFLAGS
707LDFLAGS
708CFLAGS
709CC
710SET_MAKE
Alexandre Julliardabf50482008-10-31 12:56:53 +0100711host_os
712host_vendor
713host_cpu
714host
715build_os
716build_vendor
717build_cpu
718build
Alexandre Julliardabf50482008-10-31 12:56:53 +0100719target_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
Damjan Jovanovicebee1972010-08-22 19:12:45 +0200783with_icns
Alexandre Julliardabf50482008-10-31 12:56:53 +0100784with_jack
785with_jpeg
786with_ldap
Aric Stewartdb71d7c2009-08-19 09:37:48 -0500787with_mpg123
Alexandre Julliardabf50482008-10-31 12:56:53 +0100788with_nas
Chris Robinson862965f2009-08-25 03:26:35 -0700789with_openal
Alexandre Julliardabf50482008-10-31 12:56:53 +0100790with_opengl
791with_openssl
792with_oss
793with_png
Alexandre Julliardc891f6b2009-02-11 20:41:50 +0100794with_pthread
Alexandre Julliardabf50482008-10-31 12:56:53 +0100795with_sane
Vincent Povirk73cd5692010-03-08 17:07:29 -0600796with_tiff
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +0100797with_v4l
Alexandre Julliardabf50482008-10-31 12:56:53 +0100798with_xcomposite
799with_xcursor
800with_xinerama
801with_xinput
802with_xml
803with_xrandr
804with_xrender
805with_xshape
806with_xshm
807with_xslt
808with_xxf86vm
809with_wine_tools
Alexandre Julliard39a75d32009-08-13 19:45:31 +0200810with_wine64
Eric Pouechbc56c4e2009-08-25 19:33:28 +0200811enable_largefile
Alexandre Julliardabf50482008-10-31 12:56:53 +0100812with_x
813'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200814 ac_precious_vars='build_alias
815host_alias
816target_alias
817CC
818CFLAGS
819LDFLAGS
Alexandre Julliarddc9f3842006-12-19 16:17:09 +0100820LIBS
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200821CPPFLAGS
822CXX
823CXXFLAGS
824CCC
Alexandre Julliard40664c02009-02-11 20:40:58 +0100825CPP
826XMKMF'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200827
Alexandre Julliarddaa28862002-04-11 21:54:01 +0000828
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000829# Initialize some variables set by options.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000830ac_init_help=
831ac_init_version=false
Alexandre Julliardabf50482008-10-31 12:56:53 +0100832ac_unrecognized_opts=
833ac_unrecognized_sep=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000834# The variables have the same names as the options, with
835# dashes changed to underlines.
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000836cache_file=/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000837exec_prefix=NONE
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000838no_create=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000839no_recursion=
840prefix=NONE
841program_prefix=NONE
842program_suffix=NONE
843program_transform_name=s,x,x,
844silent=
845site=
846srcdir=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000847verbose=
848x_includes=NONE
849x_libraries=NONE
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000850
851# Installation directory options.
852# These are left unexpanded so users can "make install exec_prefix=/foo"
853# and all the variables that are supposed to be based on exec_prefix
854# by default will actually change.
855# Use braces instead of parens because sh, perl, etc. also accept them.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200856# (The list follows the same order as the GNU Coding Standards.)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000857bindir='${exec_prefix}/bin'
858sbindir='${exec_prefix}/sbin'
859libexecdir='${exec_prefix}/libexec'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200860datarootdir='${prefix}/share'
861datadir='${datarootdir}'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000862sysconfdir='${prefix}/etc'
863sharedstatedir='${prefix}/com'
864localstatedir='${prefix}/var'
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000865includedir='${prefix}/include'
866oldincludedir='/usr/include'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200867docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
868infodir='${datarootdir}/info'
869htmldir='${docdir}'
870dvidir='${docdir}'
871pdfdir='${docdir}'
872psdir='${docdir}'
873libdir='${exec_prefix}/lib'
874localedir='${datarootdir}/locale'
875mandir='${datarootdir}/man'
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000876
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000877ac_prev=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200878ac_dashdash=
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000879for ac_option
880do
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200883 eval $ac_prev=\$ac_option
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000884 ac_prev=
885 continue
886 fi
887
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200888 case $ac_option in
889 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
890 *) ac_optarg=yes ;;
891 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000892
893 # Accept the important Cygnus configure options, so we can diagnose typos.
894
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200895 case $ac_dashdash$ac_option in
896 --)
897 ac_dashdash=yes ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000898
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000899 -bindir | --bindir | --bindi | --bind | --bin | --bi)
900 ac_prev=bindir ;;
901 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000902 bindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000903
904 -build | --build | --buil | --bui | --bu)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000905 ac_prev=build_alias ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000906 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000907 build_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000908
909 -cache-file | --cache-file | --cache-fil | --cache-fi \
910 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
911 ac_prev=cache_file ;;
912 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
913 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000914 cache_file=$ac_optarg ;;
915
916 --config-cache | -C)
917 cache_file=config.cache ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000918
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200919 -datadir | --datadir | --datadi | --datad)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000920 ac_prev=datadir ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200921 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000922 datadir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +0000923
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200924 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
925 | --dataroo | --dataro | --datar)
926 ac_prev=datarootdir ;;
927 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
928 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
929 datarootdir=$ac_optarg ;;
930
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000931 -disable-* | --disable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100932 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000933 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100934 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200935 as_fn_error "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100936 ac_useropt_orig=$ac_useropt
937 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
938 case $ac_user_opts in
939 *"
940"enable_$ac_useropt"
941"*) ;;
942 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
943 ac_unrecognized_sep=', ';;
944 esac
945 eval enable_$ac_useropt=no ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200946
947 -docdir | --docdir | --docdi | --doc | --do)
948 ac_prev=docdir ;;
949 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
950 docdir=$ac_optarg ;;
951
952 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
953 ac_prev=dvidir ;;
954 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
955 dvidir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000956
957 -enable-* | --enable-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +0100958 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000959 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +0100960 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +0200961 as_fn_error "invalid feature name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +0100962 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in
965 *"
966"enable_$ac_useropt"
967"*) ;;
968 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
969 ac_unrecognized_sep=', ';;
970 esac
971 eval enable_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000972
973 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
974 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
975 | --exec | --exe | --ex)
976 ac_prev=exec_prefix ;;
977 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
978 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
979 | --exec=* | --exe=* | --ex=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000980 exec_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000981
982 -gas | --gas | --ga | --g)
983 # Obsolete; use --with-gas.
984 with_gas=yes ;;
985
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000986 -help | --help | --hel | --he | -h)
987 ac_init_help=long ;;
988 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
989 ac_init_help=recursive ;;
990 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
991 ac_init_help=short ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000992
993 -host | --host | --hos | --ho)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000994 ac_prev=host_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000995 -host=* | --host=* | --hos=* | --ho=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +0000996 host_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +0000997
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +0200998 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
999 ac_prev=htmldir ;;
1000 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1001 | --ht=*)
1002 htmldir=$ac_optarg ;;
1003
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001004 -includedir | --includedir | --includedi | --included | --include \
1005 | --includ | --inclu | --incl | --inc)
1006 ac_prev=includedir ;;
1007 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1008 | --includ=* | --inclu=* | --incl=* | --inc=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001009 includedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001010
1011 -infodir | --infodir | --infodi | --infod | --info | --inf)
1012 ac_prev=infodir ;;
1013 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001014 infodir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001015
1016 -libdir | --libdir | --libdi | --libd)
1017 ac_prev=libdir ;;
1018 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001019 libdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001020
1021 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1022 | --libexe | --libex | --libe)
1023 ac_prev=libexecdir ;;
1024 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1025 | --libexe=* | --libex=* | --libe=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001026 libexecdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001027
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001028 -localedir | --localedir | --localedi | --localed | --locale)
1029 ac_prev=localedir ;;
1030 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1031 localedir=$ac_optarg ;;
1032
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001033 -localstatedir | --localstatedir | --localstatedi | --localstated \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001034 | --localstate | --localstat | --localsta | --localst | --locals)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001035 ac_prev=localstatedir ;;
1036 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001037 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001038 localstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001039
1040 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1041 ac_prev=mandir ;;
1042 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001043 mandir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001044
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001045 -nfp | --nfp | --nf)
1046 # Obsolete; use --without-fp.
1047 with_fp=no ;;
1048
1049 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001050 | --no-cr | --no-c | -n)
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001051 no_create=yes ;;
1052
1053 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1054 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1055 no_recursion=yes ;;
1056
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001057 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1058 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1059 | --oldin | --oldi | --old | --ol | --o)
1060 ac_prev=oldincludedir ;;
1061 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1062 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1063 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001064 oldincludedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001065
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001066 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1067 ac_prev=prefix ;;
1068 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001069 prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001070
1071 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1072 | --program-pre | --program-pr | --program-p)
1073 ac_prev=program_prefix ;;
1074 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1075 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001076 program_prefix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001077
1078 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1079 | --program-suf | --program-su | --program-s)
1080 ac_prev=program_suffix ;;
1081 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1082 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001083 program_suffix=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001084
1085 -program-transform-name | --program-transform-name \
1086 | --program-transform-nam | --program-transform-na \
1087 | --program-transform-n | --program-transform- \
1088 | --program-transform | --program-transfor \
1089 | --program-transfo | --program-transf \
1090 | --program-trans | --program-tran \
1091 | --progr-tra | --program-tr | --program-t)
1092 ac_prev=program_transform_name ;;
1093 -program-transform-name=* | --program-transform-name=* \
1094 | --program-transform-nam=* | --program-transform-na=* \
1095 | --program-transform-n=* | --program-transform-=* \
1096 | --program-transform=* | --program-transfor=* \
1097 | --program-transfo=* | --program-transf=* \
1098 | --program-trans=* | --program-tran=* \
1099 | --progr-tra=* | --program-tr=* | --program-t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001100 program_transform_name=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001101
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001102 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1103 ac_prev=pdfdir ;;
1104 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1105 pdfdir=$ac_optarg ;;
1106
1107 -psdir | --psdir | --psdi | --psd | --ps)
1108 ac_prev=psdir ;;
1109 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1110 psdir=$ac_optarg ;;
1111
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil)
1114 silent=yes ;;
1115
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001116 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1117 ac_prev=sbindir ;;
1118 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1119 | --sbi=* | --sb=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001120 sbindir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001121
1122 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1123 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1124 | --sharedst | --shareds | --shared | --share | --shar \
1125 | --sha | --sh)
1126 ac_prev=sharedstatedir ;;
1127 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1128 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1129 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1130 | --sha=* | --sh=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001131 sharedstatedir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001132
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001133 -site | --site | --sit)
1134 ac_prev=site ;;
1135 -site=* | --site=* | --sit=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001136 site=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001137
1138 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1139 ac_prev=srcdir ;;
1140 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001141 srcdir=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001142
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001143 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1144 | --syscon | --sysco | --sysc | --sys | --sy)
1145 ac_prev=sysconfdir ;;
1146 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1147 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001148 sysconfdir=$ac_optarg ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001149
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001150 -target | --target | --targe | --targ | --tar | --ta | --t)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001151 ac_prev=target_alias ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001152 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001153 target_alias=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001154
1155 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1156 verbose=yes ;;
1157
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001158 -version | --version | --versio | --versi | --vers | -V)
1159 ac_init_version=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001160
1161 -with-* | --with-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001162 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001163 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001165 as_fn_error "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001166 ac_useropt_orig=$ac_useropt
1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1168 case $ac_user_opts in
1169 *"
1170"with_$ac_useropt"
1171"*) ;;
1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1173 ac_unrecognized_sep=', ';;
1174 esac
1175 eval with_$ac_useropt=\$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001176
1177 -without-* | --without-*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001178 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001179 # Reject names that are not valid shell variable names.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001180 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001181 as_fn_error "invalid package name: $ac_useropt"
Alexandre Julliardabf50482008-10-31 12:56:53 +01001182 ac_useropt_orig=$ac_useropt
1183 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1184 case $ac_user_opts in
1185 *"
1186"with_$ac_useropt"
1187"*) ;;
1188 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1189 ac_unrecognized_sep=', ';;
1190 esac
1191 eval with_$ac_useropt=no ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001192
1193 --x)
1194 # Obsolete; use --with-x.
1195 with_x=yes ;;
1196
1197 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1198 | --x-incl | --x-inc | --x-in | --x-i)
1199 ac_prev=x_includes ;;
1200 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1201 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001202 x_includes=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001203
1204 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1205 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1206 ac_prev=x_libraries ;;
1207 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1208 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001209 x_libraries=$ac_optarg ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001210
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001211 -*) as_fn_error "unrecognized option: \`$ac_option'
1212Try \`$0 --help' for more information."
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001213 ;;
1214
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001215 *=*)
1216 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1217 # Reject names that are not valid shell variable names.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001218 case $ac_envvar in #(
1219 '' | [0-9]* | *[!_$as_cr_alnum]* )
1220 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1221 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001222 eval $ac_envvar=\$ac_optarg
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001223 export $ac_envvar ;;
1224
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00001225 *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001226 # FIXME: should be removed in autoconf 3.0.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001227 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001228 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01001229 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001230 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001231 ;;
1232
1233 esac
1234done
1235
1236if test -n "$ac_prev"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001237 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001238 as_fn_error "missing argument to $ac_option"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001239fi
1240
Alexandre Julliardabf50482008-10-31 12:56:53 +01001241if test -n "$ac_unrecognized_opts"; then
1242 case $enable_option_checking in
1243 no) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001244 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
Alexandre Julliardabf50482008-10-31 12:56:53 +01001245 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1246 esac
1247fi
1248
1249# Check all directory arguments for consistency.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001250for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1251 datadir sysconfdir sharedstatedir localstatedir includedir \
1252 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1253 libdir localedir mandir
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001254do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001255 eval ac_val=\$$ac_var
Alexandre Julliardabf50482008-10-31 12:56:53 +01001256 # Remove trailing slashes.
1257 case $ac_val in
1258 */ )
1259 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1260 eval $ac_var=\$ac_val;;
1261 esac
1262 # Be sure to have absolute directory names.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001263 case $ac_val in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001264 [\\/$]* | ?:[\\/]* ) continue;;
1265 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001266 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001267 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001268done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001269
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001270# There might be people who depend on the old broken behavior: `$host'
1271# used to hold the argument of --host etc.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001272# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001273build=$build_alias
1274host=$host_alias
1275target=$target_alias
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001276
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001277# FIXME: To remove some day.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001278if test "x$host_alias" != x; then
1279 if test "x$build_alias" = x; then
1280 cross_compiling=maybe
Alexandre Julliardabf50482008-10-31 12:56:53 +01001281 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001282 If a cross compiler is detected then cross compile mode will be used." >&2
1283 elif test "x$build_alias" != "x$host_alias"; then
1284 cross_compiling=yes
1285 fi
1286fi
1287
1288ac_tool_prefix=
1289test -n "$host_alias" && ac_tool_prefix=$host_alias-
1290
1291test "$silent" = yes && exec 6>/dev/null
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001292
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001293
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001294ac_pwd=`pwd` && test -n "$ac_pwd" &&
1295ac_ls_di=`ls -di .` &&
1296ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001297 as_fn_error "working directory cannot be determined"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001298test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001299 as_fn_error "pwd does not report name of working directory"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001300
1301
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001302# Find the source files, if location was not specified.
1303if test -z "$srcdir"; then
1304 ac_srcdir_defaulted=yes
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001305 # Try the directory containing this script, then the parent directory.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001306 ac_confdir=`$as_dirname -- "$as_myself" ||
1307$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1308 X"$as_myself" : 'X\(//\)[^/]' \| \
1309 X"$as_myself" : 'X\(//\)$' \| \
1310 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1311$as_echo X"$as_myself" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001312 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1313 s//\1/
1314 q
1315 }
1316 /^X\(\/\/\)[^/].*/{
1317 s//\1/
1318 q
1319 }
1320 /^X\(\/\/\)$/{
1321 s//\1/
1322 q
1323 }
1324 /^X\(\/\).*/{
1325 s//\1/
1326 q
1327 }
1328 s/.*/./; q'`
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001329 srcdir=$ac_confdir
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001330 if test ! -r "$srcdir/$ac_unique_file"; then
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001331 srcdir=..
1332 fi
1333else
1334 ac_srcdir_defaulted=no
1335fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001336if test ! -r "$srcdir/$ac_unique_file"; then
1337 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001338 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001339fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001340ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1341ac_abs_confdir=`(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001342 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001343 pwd)`
1344# When building in place, set srcdir=.
1345if test "$ac_abs_confdir" = "$ac_pwd"; then
1346 srcdir=.
1347fi
1348# Remove unnecessary trailing slashes from srcdir.
1349# Double slashes in file names in object file debugging info
1350# mess up M-x gdb in Emacs.
1351case $srcdir in
1352*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1353esac
1354for ac_var in $ac_precious_vars; do
1355 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1356 eval ac_env_${ac_var}_value=\$${ac_var}
1357 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1358 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1359done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00001360
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001361#
1362# Report the --help message.
1363#
1364if test "$ac_init_help" = "long"; then
1365 # Omit some internal or obsolete options to make the list less imposing.
1366 # This message is too long to be a string in the A/UX 3.1 sh.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001367 cat <<_ACEOF
Alexandre Julliard740e4ff2010-08-20 19:23:50 +02001368\`configure' configures Wine 1.3.1 to adapt to many kinds of systems.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001369
1370Usage: $0 [OPTION]... [VAR=VALUE]...
1371
1372To assign environment variables (e.g., CC, CFLAGS...), specify them as
1373VAR=VALUE. See below for descriptions of some of the useful variables.
1374
1375Defaults for the options are specified in brackets.
1376
1377Configuration:
1378 -h, --help display this help and exit
1379 --help=short display options specific to this package
1380 --help=recursive display the short help of all the included packages
1381 -V, --version display version information and exit
1382 -q, --quiet, --silent do not print \`checking...' messages
1383 --cache-file=FILE cache test results in FILE [disabled]
1384 -C, --config-cache alias for \`--cache-file=config.cache'
1385 -n, --no-create do not create output files
1386 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1387
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001388Installation directories:
1389 --prefix=PREFIX install architecture-independent files in PREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001390 [$ac_default_prefix]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001391 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Alexandre Julliardabf50482008-10-31 12:56:53 +01001392 [PREFIX]
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001393
1394By default, \`make install' will install all the files in
1395\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1396an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1397for instance \`--prefix=\$HOME'.
1398
1399For better control, use the options below.
1400
1401Fine tuning of the installation directories:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001402 --bindir=DIR user executables [EPREFIX/bin]
1403 --sbindir=DIR system admin executables [EPREFIX/sbin]
1404 --libexecdir=DIR program executables [EPREFIX/libexec]
1405 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1406 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1407 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1408 --libdir=DIR object code libraries [EPREFIX/lib]
1409 --includedir=DIR C header files [PREFIX/include]
1410 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1411 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1412 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1413 --infodir=DIR info documentation [DATAROOTDIR/info]
1414 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1415 --mandir=DIR man documentation [DATAROOTDIR/man]
1416 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1417 --htmldir=DIR html documentation [DOCDIR]
1418 --dvidir=DIR dvi documentation [DOCDIR]
1419 --pdfdir=DIR pdf documentation [DOCDIR]
1420 --psdir=DIR ps documentation [DOCDIR]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001421_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001422
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001423 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001424
1425X features:
1426 --x-includes=DIR X include files are in DIR
1427 --x-libraries=DIR X library files are in DIR
1428
1429System types:
1430 --build=BUILD configure for building on BUILD [guessed]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001431 --host=HOST cross-compile to build programs to run on HOST [BUILD]
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001432_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001433fi
1434
1435if test -n "$ac_init_help"; then
1436 case $ac_init_help in
Alexandre Julliard740e4ff2010-08-20 19:23:50 +02001437 short | recursive ) echo "Configuration of Wine 1.3.1:";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001438 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001439 cat <<\_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001440
1441Optional Features:
Alexandre Julliardabf50482008-10-31 12:56:53 +01001442 --disable-option-checking ignore unrecognized --enable/--with options
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001443 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1444 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Eric Pouech53fa0d52004-02-05 01:27:38 +00001445 --disable-win16 do not include Win16 support
Alexandre Julliard2aa8e872004-10-08 23:39:16 +00001446 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1447 binaries)
Alexandre Julliard35078f42008-11-21 10:16:12 +01001448 --disable-tests do not build the regression tests
Alexandre Julliard9d037222008-03-20 13:00:12 +01001449 --enable-maintainer-mode
1450 enable maintainer-specific build rules
Eric Pouechbc56c4e2009-08-25 19:33:28 +02001451 --disable-largefile omit support for large files
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001452
1453Optional Packages:
1454 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1455 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001456 --without-alsa do not use the Alsa sound support
1457 --without-audioio do not use the AudioIO sound support
1458 --without-capi do not use CAPI (ISDN support)
1459 --without-cms do not use CMS (color management support)
1460 --without-coreaudio do not use the CoreAudio sound support
1461 --without-cups do not use CUPS
1462 --without-curses do not use (n)curses
1463 --without-esd do not use the EsounD sound support
1464 --without-fontconfig do not use fontconfig
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02001465 --without-freetype do not use the FreeType library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001466 --without-gphoto do not use gphoto (Digital Camera support)
Alexandre Julliardad798732008-05-01 13:29:02 +02001467 --without-glu do not use the GLU library
Henri Verbeet874c9ef2008-09-22 22:13:19 +02001468 --without-gnutls do not use GnuTLS (schannel support)
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02001469 --without-gsm do not use libgsm (GSM 06.10 codec support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001470 --without-hal do not use HAL (dynamic device support)
Damjan Jovanovicebee1972010-08-22 19:12:45 +02001471 --without-icns do not use ICNS icon support
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001472 --without-jack do not use the Jack sound support
1473 --without-jpeg do not use JPEG
1474 --without-ldap do not use LDAP
Aric Stewartdb71d7c2009-08-19 09:37:48 -05001475 --without-mpg123 do not use the mpg123 library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001476 --without-nas do not use the NAS sound support
Chris Robinson862965f2009-08-25 03:26:35 -07001477 --without-openal do not use OpenAL
Eric Pouech53fa0d52004-02-05 01:27:38 +00001478 --without-opengl do not use OpenGL
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001479 --without-openssl do not use OpenSSL
1480 --without-oss do not use the OSS sound support
1481 --without-png do not use PNG
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01001482 --without-pthread do not use the pthread library
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001483 --without-sane do not use SANE (scanner support)
Vincent Povirk73cd5692010-03-08 17:07:29 -06001484 --without-tiff do not use TIFF
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01001485 --without-v4l do not use v4l1 (v4l support)
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001486 --without-xcomposite do not use the Xcomposite extension
1487 --without-xcursor do not use the Xcursor extension
1488 --without-xinerama do not use Xinerama (multi-monitor support)
1489 --without-xinput do not use the Xinput extension
1490 --without-xml do not use XML
1491 --without-xrandr do not use Xrandr (resolution changes)
1492 --without-xrender do not use the Xrender extension
1493 --without-xshape do not use the Xshape extension
1494 --without-xshm do not use XShm (shared memory extension)
1495 --without-xslt do not use XSLT
Francois Gougeta49beb42008-06-26 14:02:17 +02001496 --without-xxf86vm do not use XFree video mode extension
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01001497 --with-wine-tools=DIR use Wine tools from directory DIR
Alexandre Julliard39a75d32009-08-13 19:45:31 +02001498 --with-wine64=DIR use the 64-bit Wine in DIR for a Wow64 build
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001499 --with-x use the X Window System
1500
1501Some influential environment variables:
Eric Pouech53fa0d52004-02-05 01:27:38 +00001502 CC C compiler command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01001506 LIBS libraries to pass to the linker, e.g. -l<library>
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001507 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001508 you have headers in a nonstandard directory <include dir>
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00001509 CXX C++ compiler command
1510 CXXFLAGS C++ compiler flags
Eric Pouech53fa0d52004-02-05 01:27:38 +00001511 CPP C preprocessor
Alexandre Julliard40664c02009-02-11 20:40:58 +01001512 XMKMF Path to xmkmf, Makefile generator for X Window System
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001513
1514Use these variables to override the choices made by `configure' or to help
1515it to find libraries and programs with nonstandard names/locations.
1516
Alexandre Julliard875927f2004-01-02 01:55:29 +00001517Report bugs to <wine-devel@winehq.org>.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001518Wine home page: <http://www.winehq.org>.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001519_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001520ac_status=$?
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001521fi
1522
1523if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Alexandre Julliardabf50482008-10-31 12:56:53 +01001526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 continue
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001529 ac_builddir=.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001530
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001531case "$ac_dir" in
1532.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1533*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01001534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001535 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +01001536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541esac
1542ac_abs_top_builddir=$ac_pwd
1543ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544# for backward compatibility:
1545ac_top_builddir=$ac_top_build_prefix
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001546
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001547case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001548 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001549 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001553 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001560esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001561ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +00001562
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
Jeremy White0ebeb532006-06-20 13:18:41 +02001565 if test -f "$ac_srcdir/configure.gnu"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001566 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001569 echo &&
Jeremy White0ebeb532006-06-20 13:18:41 +02001570 $SHELL "$ac_srcdir/configure" --help=recursive
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001571 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01001572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001573 fi || ac_status=$?
1574 cd "$ac_pwd" || { ac_status=$?; break; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001575 done
1576fi
1577
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001578test -n "$ac_init_help" && exit $ac_status
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001579if $ac_init_version; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001580 cat <<\_ACEOF
Alexandre Julliard740e4ff2010-08-20 19:23:50 +02001581Wine configure 1.3.1
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001582generated by GNU Autoconf 2.65
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001583
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001584Copyright (C) 2009 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001585This configure script is free software; the Free Software Foundation
1586gives unlimited permission to copy, distribute and modify it.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00001587_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02001588 exit
Alexandre Julliardf5818d22002-02-14 19:47:29 +00001589fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001590
1591## ------------------------ ##
1592## Autoconf initialization. ##
1593## ------------------------ ##
1594
1595# ac_fn_c_try_compile LINENO
1596# --------------------------
1597# Try to compile conftest.$ac_ext, and return whether this succeeded.
1598ac_fn_c_try_compile ()
1599{
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext
1602 if { { ac_try="$ac_compile"
1603case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606esac
1607eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608$as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1615 fi
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.$ac_objext; then :
1621 ac_retval=0
1622else
1623 $as_echo "$as_me: failed program was:" >&5
1624sed 's/^/| /' conftest.$ac_ext >&5
1625
1626 ac_retval=1
1627fi
1628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001629 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001630
1631} # ac_fn_c_try_compile
1632
1633# ac_fn_cxx_try_compile LINENO
1634# ----------------------------
1635# Try to compile conftest.$ac_ext, and return whether this succeeded.
1636ac_fn_cxx_try_compile ()
1637{
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext
1640 if { { ac_try="$ac_compile"
1641case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644esac
1645eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646$as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_compile") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1653 fi
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_cxx_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest.$ac_objext; then :
1659 ac_retval=0
1660else
1661 $as_echo "$as_me: failed program was:" >&5
1662sed 's/^/| /' conftest.$ac_ext >&5
1663
1664 ac_retval=1
1665fi
1666 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001667 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001668
1669} # ac_fn_cxx_try_compile
1670
1671# ac_fn_c_try_link LINENO
1672# -----------------------
1673# Try to link conftest.$ac_ext, and return whether this succeeded.
1674ac_fn_c_try_link ()
1675{
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext conftest$ac_exeext
1678 if { { ac_try="$ac_link"
1679case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682esac
1683eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684$as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_link") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest$ac_exeext && {
1697 test "$cross_compiling" = yes ||
1698 $as_test_x conftest$ac_exeext
1699 }; then :
1700 ac_retval=0
1701else
1702 $as_echo "$as_me: failed program was:" >&5
1703sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706fi
1707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1709 # interfere with the next link command; also delete a directory that is
1710 # left behind by Apple's compiler. We do this before executing the actions.
1711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1712 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001713 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001714
1715} # ac_fn_c_try_link
1716
1717# ac_fn_c_try_cpp LINENO
1718# ----------------------
1719# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_c_try_cpp ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 if { { ac_try="$ac_cpp conftest.$ac_ext"
1724case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1736 fi
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } >/dev/null && {
1739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 }; then :
1742 ac_retval=0
1743else
1744 $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
1746
1747 ac_retval=1
1748fi
1749 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001750 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001751
1752} # ac_fn_c_try_cpp
1753
1754# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1755# -------------------------------------------------------
1756# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1757# the include files in INCLUDES and setting the cache variable VAR
1758# accordingly.
1759ac_fn_c_check_header_mongrel ()
1760{
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1762 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764$as_echo_n "checking for $2... " >&6; }
1765if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1766 $as_echo_n "(cached) " >&6
1767fi
1768eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
1771else
1772 # Is the header compilable?
1773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1774$as_echo_n "checking $2 usability... " >&6; }
1775cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1776/* end confdefs.h. */
1777$4
1778#include <$2>
1779_ACEOF
1780if ac_fn_c_try_compile "$LINENO"; then :
1781 ac_header_compiler=yes
1782else
1783 ac_header_compiler=no
1784fi
1785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1787$as_echo "$ac_header_compiler" >&6; }
1788
1789# Is the header present?
1790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1791$as_echo_n "checking $2 presence... " >&6; }
1792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h. */
1794#include <$2>
1795_ACEOF
1796if ac_fn_c_try_cpp "$LINENO"; then :
1797 ac_header_preproc=yes
1798else
1799 ac_header_preproc=no
1800fi
1801rm -f conftest.err conftest.$ac_ext
1802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1803$as_echo "$ac_header_preproc" >&6; }
1804
1805# So? What about this header?
1806case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1807 yes:no: )
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1809$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1811$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1812 ;;
1813 no:yes:* )
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1815$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1817$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1819$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1821$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1823$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1824( cat <<\_ASBOX
1825## ------------------------------------ ##
1826## Report this to wine-devel@winehq.org ##
1827## ------------------------------------ ##
1828_ASBOX
1829 ) | sed "s/^/$as_me: WARNING: /" >&2
1830 ;;
1831esac
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833$as_echo_n "checking for $2... " >&6; }
1834if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1835 $as_echo_n "(cached) " >&6
1836else
1837 eval "$3=\$ac_header_compiler"
1838fi
1839eval ac_res=\$$3
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1841$as_echo "$ac_res" >&6; }
1842fi
1843 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1844
1845} # ac_fn_c_check_header_mongrel
1846
1847# ac_fn_c_try_run LINENO
1848# ----------------------
1849# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1850# that executables *can* be run.
1851ac_fn_c_try_run ()
1852{
1853 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1854 if { { ac_try="$ac_link"
1855case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858esac
1859eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860$as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>&5
1862 ac_status=$?
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1865 { { case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868esac
1869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870$as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_try") 2>&5
1872 ac_status=$?
1873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1874 test $ac_status = 0; }; }; then :
1875 ac_retval=0
1876else
1877 $as_echo "$as_me: program exited with status $ac_status" >&5
1878 $as_echo "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
1880
1881 ac_retval=$ac_status
1882fi
1883 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1884 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01001885 as_fn_set_status $ac_retval
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02001886
1887} # ac_fn_c_try_run
1888
1889# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1890# -------------------------------------------------------
1891# Tests whether HEADER exists and can be compiled using the include files in
1892# INCLUDES, setting the cache variable VAR accordingly.
1893ac_fn_c_check_header_compile ()
1894{
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1897$as_echo_n "checking for $2... " >&6; }
1898if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1899 $as_echo_n "(cached) " >&6
1900else
1901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1902/* end confdefs.h. */
1903$4
1904#include <$2>
1905_ACEOF
1906if ac_fn_c_try_compile "$LINENO"; then :
1907 eval "$3=yes"
1908else
1909 eval "$3=no"
1910fi
1911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912fi
1913eval ac_res=\$$3
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1915$as_echo "$ac_res" >&6; }
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917
1918} # ac_fn_c_check_header_compile
1919
1920# ac_fn_c_check_func LINENO FUNC VAR
1921# ----------------------------------
1922# Tests whether FUNC exists, setting the cache variable VAR accordingly
1923ac_fn_c_check_func ()
1924{
1925 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927$as_echo_n "checking for $2... " >&6; }
1928if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1929 $as_echo_n "(cached) " >&6
1930else
1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1932/* end confdefs.h. */
1933/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1934 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1935#define $2 innocuous_$2
1936
1937/* System header to define __stub macros and hopefully few prototypes,
1938 which can conflict with char $2 (); below.
1939 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1940 <limits.h> exists even on freestanding compilers. */
1941
1942#ifdef __STDC__
1943# include <limits.h>
1944#else
1945# include <assert.h>
1946#endif
1947
1948#undef $2
1949
1950/* Override any GCC internal prototype to avoid an error.
1951 Use char because int might match the return type of a GCC
1952 builtin and then its argument prototype would still apply. */
1953#ifdef __cplusplus
1954extern "C"
1955#endif
1956char $2 ();
1957/* The GNU C library defines this for functions which it implements
1958 to always fail with ENOSYS. Some functions are actually named
1959 something starting with __ and the normal name is an alias. */
1960#if defined __stub_$2 || defined __stub___$2
1961choke me
1962#endif
1963
1964int
1965main ()
1966{
1967return $2 ();
1968 ;
1969 return 0;
1970}
1971_ACEOF
1972if ac_fn_c_try_link "$LINENO"; then :
1973 eval "$3=yes"
1974else
1975 eval "$3=no"
1976fi
1977rm -f core conftest.err conftest.$ac_objext \
1978 conftest$ac_exeext conftest.$ac_ext
1979fi
1980eval ac_res=\$$3
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982$as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984
1985} # ac_fn_c_check_func
1986
1987# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1988# ----------------------------------------------------
1989# Tries to find if the field MEMBER exists in type AGGR, after including
1990# INCLUDES, setting cache variable VAR accordingly.
1991ac_fn_c_check_member ()
1992{
1993 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1995$as_echo_n "checking for $2.$3... " >&6; }
1996if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1997 $as_echo_n "(cached) " >&6
1998else
1999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2000/* end confdefs.h. */
2001$5
2002int
2003main ()
2004{
2005static $2 ac_aggr;
2006if (ac_aggr.$3)
2007return 0;
2008 ;
2009 return 0;
2010}
2011_ACEOF
2012if ac_fn_c_try_compile "$LINENO"; then :
2013 eval "$4=yes"
2014else
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017$5
2018int
2019main ()
2020{
2021static $2 ac_aggr;
2022if (sizeof ac_aggr.$3)
2023return 0;
2024 ;
2025 return 0;
2026}
2027_ACEOF
2028if ac_fn_c_try_compile "$LINENO"; then :
2029 eval "$4=yes"
2030else
2031 eval "$4=no"
2032fi
2033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034fi
2035rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2036fi
2037eval ac_res=\$$4
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2039$as_echo "$ac_res" >&6; }
2040 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2041
2042} # ac_fn_c_check_member
2043
2044# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2045# -------------------------------------------
2046# Tests whether TYPE exists after having included INCLUDES, setting cache
2047# variable VAR accordingly.
2048ac_fn_c_check_type ()
2049{
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052$as_echo_n "checking for $2... " >&6; }
2053if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2054 $as_echo_n "(cached) " >&6
2055else
2056 eval "$3=no"
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058/* end confdefs.h. */
2059$4
2060int
2061main ()
2062{
2063if (sizeof ($2))
2064 return 0;
2065 ;
2066 return 0;
2067}
2068_ACEOF
2069if ac_fn_c_try_compile "$LINENO"; then :
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h. */
2072$4
2073int
2074main ()
2075{
2076if (sizeof (($2)))
2077 return 0;
2078 ;
2079 return 0;
2080}
2081_ACEOF
2082if ac_fn_c_try_compile "$LINENO"; then :
2083
2084else
2085 eval "$3=yes"
2086fi
2087rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2088fi
2089rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2090fi
2091eval ac_res=\$$3
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093$as_echo "$ac_res" >&6; }
2094 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2095
2096} # ac_fn_c_check_type
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002097cat >config.log <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002098This file contains any messages produced by compilers while
2099running configure, to aid debugging if configure makes a mistake.
2100
Alexandre Julliard740e4ff2010-08-20 19:23:50 +02002101It was created by Wine $as_me 1.3.1, which was
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002102generated by GNU Autoconf 2.65. Invocation command line was
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002103
2104 $ $0 $@
2105
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002106_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002107exec 5>>config.log
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002108{
2109cat <<_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002110## --------- ##
2111## Platform. ##
2112## --------- ##
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002113
2114hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2115uname -m = `(uname -m) 2>/dev/null || echo unknown`
2116uname -r = `(uname -r) 2>/dev/null || echo unknown`
2117uname -s = `(uname -s) 2>/dev/null || echo unknown`
2118uname -v = `(uname -v) 2>/dev/null || echo unknown`
2119
2120/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2121/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2122
2123/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2124/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2125/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002126/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002127/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2128/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2129/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2130
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002131_ASUNAME
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002132
2133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134for as_dir in $PATH
2135do
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002138 $as_echo "PATH: $as_dir"
2139 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002140IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002141
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002142} >&5
2143
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002144cat >&5 <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002145
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002146
2147## ----------- ##
2148## Core tests. ##
2149## ----------- ##
2150
2151_ACEOF
2152
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002153
2154# Keep a trace of the command line.
2155# Strip out --no-create and --no-recursion so they do not pile up.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002156# Strip out --silent because we don't want to record it for future runs.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002157# Also quote any args containing shell meta-characters.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002158# Make two passes to allow for proper duplicate-argument suppression.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002159ac_configure_args=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002160ac_configure_args0=
2161ac_configure_args1=
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002162ac_must_keep_next=false
2163for ac_pass in 1 2
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002164do
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002165 for ac_arg
2166 do
2167 case $ac_arg in
2168 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2170 | -silent | --silent | --silen | --sile | --sil)
2171 continue ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002172 *\'*)
Alexandre Julliardabf50482008-10-31 12:56:53 +01002173 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002174 esac
2175 case $ac_pass in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002176 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002177 2)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002178 as_fn_append ac_configure_args1 " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002179 if test $ac_must_keep_next = true; then
Alexandre Julliard875927f2004-01-02 01:55:29 +00002180 ac_must_keep_next=false # Got value, back to normal.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002181 else
Alexandre Julliard875927f2004-01-02 01:55:29 +00002182 case $ac_arg in
2183 *=* | --config-cache | -C | -disable-* | --disable-* \
2184 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2185 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2186 | -with-* | --with-* | -without-* | --without-* | --x)
2187 case "$ac_configure_args0 " in
2188 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2189 esac
2190 ;;
2191 -* ) ac_must_keep_next=true ;;
2192 esac
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002193 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002194 as_fn_append ac_configure_args " '$ac_arg'"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00002195 ;;
2196 esac
2197 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002198done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002199{ ac_configure_args0=; unset ac_configure_args0;}
2200{ ac_configure_args1=; unset ac_configure_args1;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002201
2202# When interrupted or exit'd, cleanup temporary files, and complete
2203# config.log. We remove comments because anyway the quotes in there
2204# would cause problems or look ugly.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002205# WARNING: Use '\'' to represent an apostrophe within the trap.
2206# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002207trap 'exit_status=$?
2208 # Save into config.log some information that might help in debugging.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002209 {
2210 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002211
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002212 cat <<\_ASBOX
2213## ---------------- ##
2214## Cache variables. ##
2215## ---------------- ##
2216_ASBOX
2217 echo
2218 # The following way of writing the cache mishandles newlines in values,
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002219(
2220 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2221 eval ac_val=\$$ac_var
2222 case $ac_val in #(
2223 *${as_nl}*)
2224 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002225 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002226$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002227 esac
2228 case $ac_var in #(
2229 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +01002230 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002231 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002232 esac ;;
2233 esac
2234 done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002235 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002236 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2237 *${as_nl}ac_space=\ *)
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002238 sed -n \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002239 "s/'\''/'\''\\\\'\'''\''/g;
2240 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2241 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002242 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002243 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002244 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002245 esac |
2246 sort
2247)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002248 echo
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002249
2250 cat <<\_ASBOX
2251## ----------------- ##
2252## Output variables. ##
2253## ----------------- ##
2254_ASBOX
2255 echo
2256 for ac_var in $ac_subst_vars
2257 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002258 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002259 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002261 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002262 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002263 done | sort
2264 echo
2265
2266 if test -n "$ac_subst_files"; then
2267 cat <<\_ASBOX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002268## ------------------- ##
2269## File substitutions. ##
2270## ------------------- ##
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002271_ASBOX
2272 echo
2273 for ac_var in $ac_subst_files
2274 do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002275 eval ac_val=\$$ac_var
Jeremy White0ebeb532006-06-20 13:18:41 +02002276 case $ac_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002277 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Jeremy White0ebeb532006-06-20 13:18:41 +02002278 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01002279 $as_echo "$ac_var='\''$ac_val'\''"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00002280 done | sort
2281 echo
2282 fi
2283
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002284 if test -s confdefs.h; then
2285 cat <<\_ASBOX
2286## ----------- ##
2287## confdefs.h. ##
2288## ----------- ##
2289_ASBOX
2290 echo
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002291 cat confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002292 echo
2293 fi
2294 test "$ac_signal" != 0 &&
Alexandre Julliardabf50482008-10-31 12:56:53 +01002295 $as_echo "$as_me: caught signal $ac_signal"
2296 $as_echo "$as_me: exit $exit_status"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002297 } >&5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002298 rm -f core *.core core.conftest.* &&
2299 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002300 exit $exit_status
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002301' 0
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002302for ac_signal in 1 2 13 15; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002303 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002304done
2305ac_signal=0
2306
2307# confdefs.h avoids OS command line length limits that DEFS can exceed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002308rm -f -r conftest* confdefs.h
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002309
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002310$as_echo "/* confdefs.h */" > confdefs.h
2311
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002312# Predefined preprocessor variables.
2313
2314cat >>confdefs.h <<_ACEOF
2315#define PACKAGE_NAME "$PACKAGE_NAME"
2316_ACEOF
2317
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002318cat >>confdefs.h <<_ACEOF
2319#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2320_ACEOF
2321
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002322cat >>confdefs.h <<_ACEOF
2323#define PACKAGE_VERSION "$PACKAGE_VERSION"
2324_ACEOF
2325
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002326cat >>confdefs.h <<_ACEOF
2327#define PACKAGE_STRING "$PACKAGE_STRING"
2328_ACEOF
2329
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002330cat >>confdefs.h <<_ACEOF
2331#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2332_ACEOF
2333
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002334cat >>confdefs.h <<_ACEOF
2335#define PACKAGE_URL "$PACKAGE_URL"
2336_ACEOF
2337
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002338
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002339# Let the site file select an alternate cache file if it wants to.
Alexandre Julliardabf50482008-10-31 12:56:53 +01002340# Prefer an explicitly selected file to automatically selected ones.
2341ac_site_file1=NONE
2342ac_site_file2=NONE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002343if test -n "$CONFIG_SITE"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002344 ac_site_file1=$CONFIG_SITE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002345elif test "x$prefix" != xNONE; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002346 ac_site_file1=$prefix/share/config.site
2347 ac_site_file2=$prefix/etc/config.site
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002348else
Alexandre Julliardabf50482008-10-31 12:56:53 +01002349 ac_site_file1=$ac_default_prefix/share/config.site
2350 ac_site_file2=$ac_default_prefix/etc/config.site
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002351fi
Alexandre Julliardabf50482008-10-31 12:56:53 +01002352for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002353do
Alexandre Julliardabf50482008-10-31 12:56:53 +01002354 test "x$ac_site_file" = xNONE && continue
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002355 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002356 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002357$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002358 sed 's/^/| /' "$ac_site_file" >&5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002359 . "$ac_site_file"
2360 fi
2361done
2362
2363if test -r "$cache_file"; then
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01002364 # Some versions of bash will fail to source /dev/null (special files
2365 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2366 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002367 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002368$as_echo "$as_me: loading cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002369 case $cache_file in
Jeremy White0ebeb532006-06-20 13:18:41 +02002370 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2371 *) . "./$cache_file";;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002372 esac
2373 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002374else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002375 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002376$as_echo "$as_me: creating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002377 >$cache_file
2378fi
2379
2380# Check that the precious variables saved in the cache have kept the same
2381# value.
2382ac_cache_corrupted=false
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002383for ac_var in $ac_precious_vars; do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002384 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2385 eval ac_new_set=\$ac_env_${ac_var}_set
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002386 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2387 eval ac_new_val=\$ac_env_${ac_var}_value
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002388 case $ac_old_set,$ac_new_set in
2389 set,)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002390 { $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 +01002391$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 +00002392 ac_cache_corrupted=: ;;
2393 ,set)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002394 { $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 +01002395$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002396 ac_cache_corrupted=: ;;
2397 ,);;
2398 *)
2399 if test "x$ac_old_val" != "x$ac_new_val"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +01002400 # differences in whitespace do not lead to failure.
2401 ac_old_val_w=`echo x $ac_old_val`
2402 ac_new_val_w=`echo x $ac_new_val`
2403 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002405$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2406 ac_cache_corrupted=:
2407 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002408 { $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 +01002409$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2410 eval $ac_var=\$ac_old_val
2411 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002412 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002413$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002414 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002415$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002416 fi;;
2417 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002418 # Pass precious variables to config.status.
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002419 if test "$ac_new_set" = set; then
2420 case $ac_new_val in
Alexandre Julliardabf50482008-10-31 12:56:53 +01002421 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002422 *) ac_arg=$ac_var=$ac_new_val ;;
2423 esac
2424 case " $ac_configure_args " in
2425 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002426 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002427 esac
2428 fi
2429done
2430if $ac_cache_corrupted; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002431 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002432$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002433 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002434$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002435 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002436fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002437## -------------------- ##
2438## Main body of script. ##
2439## -------------------- ##
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002440
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002441ac_ext=c
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002442ac_cpp='$CPP $CPPFLAGS'
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2445ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002446
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002447
2448
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002449ac_config_headers="$ac_config_headers include/config.h"
Alexandre Julliard18f92e71996-07-17 20:02:21 +00002450
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002451ac_aux_dir=
Jeremy White0ebeb532006-06-20 13:18:41 +02002452for ac_dir in tools "$srcdir"/tools; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002453 for ac_t in install-sh install.sh shtool; do
2454 if test -f "$ac_dir/$ac_t"; then
2455 ac_aux_dir=$ac_dir
2456 ac_install_sh="$ac_aux_dir/$ac_t -c"
2457 break 2
2458 fi
2459 done
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002460done
2461if test -z "$ac_aux_dir"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002462 as_fn_error "cannot find install-sh, install.sh, or shtool in tools \"$srcdir\"/tools" "$LINENO" 5
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00002463fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002464
2465# These three variables are undocumented and unsupported,
2466# and are intended to be withdrawn in a future Autoconf release.
2467# They can cause serious problems if a builder's source tree is in a directory
2468# whose full name contains unusual characters.
2469ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2470ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2471ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2472
Howard Abrams13277481999-07-10 13:16:29 +00002473
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002474
2475
Alexandre Julliardd59227e2010-02-20 12:36:04 +01002476
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002477# Check whether --enable-win16 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002478if test "${enable_win16+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002479 enableval=$enable_win16;
2480fi
Alexandre Julliardc728efc2002-10-02 02:34:09 +00002481
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002482# Check whether --enable-win64 was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002483if test "${enable_win64+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002484 enableval=$enable_win64;
2485fi
Alexandre Julliardb8074992002-11-21 21:51:24 +00002486
Alexandre Julliard35078f42008-11-21 10:16:12 +01002487# Check whether --enable-tests was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002488if test "${enable_tests+set}" = set; then :
Alexandre Julliard35078f42008-11-21 10:16:12 +01002489 enableval=$enable_tests;
2490fi
2491
Alexandre Julliard9d037222008-03-20 13:00:12 +01002492# Check whether --enable-maintainer-mode was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002493if test "${enable_maintainer_mode+set}" = set; then :
Alexandre Julliard9d037222008-03-20 13:00:12 +01002494 enableval=$enable_maintainer_mode;
Alexandre Julliard9d037222008-03-20 13:00:12 +01002495fi
2496
Alexandre Julliardb8074992002-11-21 21:51:24 +00002497
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002498
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002499# Check whether --with-alsa was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002500if test "${with_alsa+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002501 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2502fi
2503
2504
2505# Check whether --with-audioio was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002506if test "${with_audioio+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002507 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2508fi
2509
2510
2511# Check whether --with-capi was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002512if test "${with_capi+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002513 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2514fi
2515
2516
2517# Check whether --with-cms was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002518if test "${with_cms+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002519 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2520fi
2521
2522
2523# Check whether --with-coreaudio was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002524if test "${with_coreaudio+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002525 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2526fi
2527
2528
2529# Check whether --with-cups was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002530if test "${with_cups+set}" = set; then :
Francois Gouget289ea332008-07-24 16:09:07 +02002531 withval=$with_cups;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002532fi
2533
2534
2535# Check whether --with-curses was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002536if test "${with_curses+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002537 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2538fi
2539
2540
2541# Check whether --with-esd was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002542if test "${with_esd+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002543 withval=$with_esd;
2544fi
2545
2546
2547# Check whether --with-fontconfig was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002548if test "${with_fontconfig+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002549 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2550fi
2551
2552
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002553# Check whether --with-freetype was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002554if test "${with_freetype+set}" = set; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +02002555 withval=$with_freetype;
2556fi
2557
2558
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002559# Check whether --with-gphoto was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002560if test "${with_gphoto+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002561 withval=$with_gphoto;
2562fi
2563
2564
Alexandre Julliardad798732008-05-01 13:29:02 +02002565# Check whether --with-glu was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002566if test "${with_glu+set}" = set; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02002567 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2568fi
2569
2570
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002571# Check whether --with-gnutls was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002572if test "${with_gnutls+set}" = set; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02002573 withval=$with_gnutls;
2574fi
2575
2576
Alexandre Julliard6ce32e02009-08-19 15:53:04 +02002577# Check whether --with-gsm was given.
2578if test "${with_gsm+set}" = set; then :
2579 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 +02002580fi
2581
2582
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002583# Check whether --with-hal was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002584if test "${with_hal+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002585 withval=$with_hal;
2586fi
2587
2588
Damjan Jovanovicebee1972010-08-22 19:12:45 +02002589# Check whether --with-icns was given.
2590if test "${with_icns+set}" = set; then :
2591 withval=$with_icns; if test "x$withval" = "xno"; then ac_cv_header_icns_h=no; fi
2592fi
2593
2594
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002595# Check whether --with-jack was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002596if test "${with_jack+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002597 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2598fi
2599
2600
2601# Check whether --with-jpeg was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002602if test "${with_jpeg+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002603 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2604fi
2605
2606
2607# Check whether --with-ldap was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002608if test "${with_ldap+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002609 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2610fi
2611
2612
Aric Stewartdb71d7c2009-08-19 09:37:48 -05002613# Check whether --with-mpg123 was given.
2614if test "${with_mpg123+set}" = set; then :
2615 withval=$with_mpg123; if test "x$withval" = "xno"; then ac_cv_header_mpg123_h=no; fi
2616fi
2617
2618
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002619# Check whether --with-nas was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002620if test "${with_nas+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002621 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2622fi
2623
2624
Chris Robinson862965f2009-08-25 03:26:35 -07002625# Check whether --with-openal was given.
2626if test "${with_openal+set}" = set; then :
Ken Thomases0b08f192009-09-09 22:23:35 -05002627 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 -07002628fi
2629
2630
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002631# Check whether --with-opengl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002632if test "${with_opengl+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002633 withval=$with_opengl;
2634fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002635
Alexandre Julliardf90efa91998-06-14 15:24:15 +00002636
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002637# Check whether --with-openssl was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002638if test "${with_openssl+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002639 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2640fi
2641
2642
2643# Check whether --with-oss was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002644if test "${with_oss+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002645 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
2646fi
2647
2648
2649# Check whether --with-png was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002650if test "${with_png+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002651 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2652fi
2653
2654
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002655# Check whether --with-pthread was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002656if test "${with_pthread+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01002657 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2658fi
2659
2660
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002661# Check whether --with-sane was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002662if test "${with_sane+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002663 withval=$with_sane;
2664fi
2665
2666
Vincent Povirk73cd5692010-03-08 17:07:29 -06002667# Check whether --with-tiff was given.
2668if test "${with_tiff+set}" = set; then :
2669 withval=$with_tiff; if test "x$withval" = "xno"; then ac_cv_header_tiffio_h=no; fi
2670fi
2671
2672
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01002673# Check whether --with-v4l was given.
2674if test "${with_v4l+set}" = set; then :
2675 withval=$with_v4l;
2676fi
2677
2678
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002679# Check whether --with-xcomposite was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002680if test "${with_xcomposite+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002681 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2682fi
2683
2684
2685# Check whether --with-xcursor was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002686if test "${with_xcursor+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002687 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2688fi
2689
2690
2691# Check whether --with-xinerama was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002692if test "${with_xinerama+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002693 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2694fi
2695
2696
2697# Check whether --with-xinput was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002698if test "${with_xinput+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002699 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2700fi
2701
2702
2703# Check whether --with-xml was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002704if test "${with_xml+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002705 withval=$with_xml;
2706fi
2707
2708
2709# Check whether --with-xrandr was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002710if test "${with_xrandr+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002711 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2712fi
2713
2714
2715# Check whether --with-xrender was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002716if test "${with_xrender+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002717 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2718fi
2719
2720
2721# Check whether --with-xshape was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002722if test "${with_xshape+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002723 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2724fi
2725
2726
2727# Check whether --with-xshm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002728if test "${with_xshm+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002729 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2730fi
2731
2732
2733# Check whether --with-xslt was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002734if test "${with_xslt+set}" = set; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01002735 withval=$with_xslt;
2736fi
2737
2738
Francois Gougeta49beb42008-06-26 14:02:17 +02002739# Check whether --with-xxf86vm was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002740if test "${with_xxf86vm+set}" = set; then :
André Hentschel7b285a42009-09-19 19:08:09 +02002741 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 +01002742fi
2743
2744
2745
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002746# Check whether --with-wine-tools was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002747if test "${with_wine_tools+set}" = set; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002748 withval=$with_wine_tools;
2749fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002750
Alexandre Julliardfc01b722002-05-12 03:16:39 +00002751
Alexandre Julliard39a75d32009-08-13 19:45:31 +02002752# Check whether --with-wine64 was given.
2753if test "${with_wine64+set}" = set; then :
2754 withval=$with_wine64;
2755fi
2756
2757
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002758# Make sure we can run config.sub.
Jeremy White0ebeb532006-06-20 13:18:41 +02002759$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002760 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Alexandre Julliarda0b2b1d1997-11-16 17:38:29 +00002761
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002763$as_echo_n "checking build system type... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002764if test "${ac_cv_build+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002765 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002766else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002767 ac_build_alias=$build_alias
2768test "x$ac_build_alias" = x &&
Jeremy White0ebeb532006-06-20 13:18:41 +02002769 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002770test "x$ac_build_alias" = x &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002771 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
Jeremy White0ebeb532006-06-20 13:18:41 +02002772ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002773 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002774
2775fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002777$as_echo "$ac_cv_build" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002778case $ac_cv_build in
2779*-*-*) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002780*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002781esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002782build=$ac_cv_build
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002783ac_save_IFS=$IFS; IFS='-'
2784set x $ac_cv_build
2785shift
2786build_cpu=$1
2787build_vendor=$2
2788shift; shift
2789# Remember, the first character of IFS is used to create $*,
2790# except with old shells:
2791build_os=$*
2792IFS=$ac_save_IFS
2793case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002794
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002795
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002797$as_echo_n "checking host system type... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002798if test "${ac_cv_host+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002799 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002800else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002801 if test "x$host_alias" = x; then
2802 ac_cv_host=$ac_cv_build
2803else
Jeremy White0ebeb532006-06-20 13:18:41 +02002804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002805 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002806fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002807
2808fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002810$as_echo "$ac_cv_host" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002811case $ac_cv_host in
2812*-*-*) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002813*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002814esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002815host=$ac_cv_host
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002816ac_save_IFS=$IFS; IFS='-'
2817set x $ac_cv_host
2818shift
2819host_cpu=$1
2820host_vendor=$2
2821shift; shift
2822# Remember, the first character of IFS is used to create $*,
2823# except with old shells:
2824host_os=$*
2825IFS=$ac_save_IFS
2826case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002827
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002828
Alexandre Julliard71440f32005-05-19 14:28:17 +00002829
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002830case "$srcdir" in
2831 .) ;;
2832 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002833 as_fn_error "you are building out of the source tree, but the source tree contains object files.
2834You need to run 'make distclean' in the source tree first." "$LINENO" 5
Alexandre Julliard73b724e2006-12-28 11:40:19 +01002835 fi ;;
2836esac
2837
Alexandre Julliard71440f32005-05-19 14:28:17 +00002838
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002840$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2841set x ${MAKE-make}
2842ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002843if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002844 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002845else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002846 cat >conftest.make <<\_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002847SHELL = /bin/sh
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002848all:
Jeremy White0ebeb532006-06-20 13:18:41 +02002849 @echo '@@@%%%=$(MAKE)=@@@%%%'
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002850_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002851# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Jeremy White0ebeb532006-06-20 13:18:41 +02002852case `${MAKE-make} -f conftest.make 2>/dev/null` in
2853 *@@@%%%=?*=@@@%%%*)
2854 eval ac_cv_prog_make_${ac_make}_set=yes;;
2855 *)
2856 eval ac_cv_prog_make_${ac_make}_set=no;;
2857esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002858rm -f conftest.make
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002859fi
Jeremy White0ebeb532006-06-20 13:18:41 +02002860if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002862$as_echo "yes" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002863 SET_MAKE=
2864else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002866$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002867 SET_MAKE="MAKE=${MAKE-make}"
2868fi
2869
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002870ac_ext=c
2871ac_cpp='$CPP $CPPFLAGS'
2872ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2873ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2874ac_compiler_gnu=$ac_cv_c_compiler_gnu
2875if test -n "$ac_tool_prefix"; then
2876 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2877set dummy ${ac_tool_prefix}gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002879$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002880if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002881 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002882else
2883 if test -n "$CC"; then
2884 ac_cv_prog_CC="$CC" # Let the user override the test.
2885else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887for as_dir in $PATH
2888do
2889 IFS=$as_save_IFS
2890 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002891 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002892 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 +00002893 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002895 break 2
2896 fi
2897done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002898 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002899IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002900
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002901fi
2902fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002903CC=$ac_cv_prog_CC
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002904if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002906$as_echo "$CC" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002907else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002909$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002910fi
2911
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002912
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002913fi
2914if test -z "$ac_cv_prog_CC"; then
2915 ac_ct_CC=$CC
2916 # Extract the first word of "gcc", so it can be a program name with args.
2917set dummy gcc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002919$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002920if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002921 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002922else
2923 if test -n "$ac_ct_CC"; then
2924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2925else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927for as_dir in $PATH
2928do
2929 IFS=$as_save_IFS
2930 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002931 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002932 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 +00002933 ac_cv_prog_ac_ct_CC="gcc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002935 break 2
2936 fi
2937done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002938 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002939IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002940
2941fi
2942fi
2943ac_ct_CC=$ac_cv_prog_ac_ct_CC
2944if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002946$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002947else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002949$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002950fi
2951
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002952 if test "x$ac_ct_CC" = x; then
2953 CC=""
2954 else
2955 case $cross_compiling:$ac_tool_warned in
2956yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002959ac_tool_warned=yes ;;
2960esac
2961 CC=$ac_ct_CC
2962 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002963else
2964 CC="$ac_cv_prog_CC"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00002965fi
2966
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002967if test -z "$CC"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002968 if test -n "$ac_tool_prefix"; then
2969 # 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 +00002970set dummy ${ac_tool_prefix}cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002972$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002973if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01002974 $as_echo_n "(cached) " >&6
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00002975else
2976 if test -n "$CC"; then
2977 ac_cv_prog_CC="$CC" # Let the user override the test.
2978else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980for as_dir in $PATH
2981do
2982 IFS=$as_save_IFS
2983 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002984 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01002985 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 +00002986 ac_cv_prog_CC="${ac_tool_prefix}cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00002988 break 2
2989 fi
2990done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002991 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02002992IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00002993
2994fi
2995fi
2996CC=$ac_cv_prog_CC
2997if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02002998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01002999$as_echo "$CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003000else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003002$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003003fi
3004
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003005
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003006 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003007fi
3008if test -z "$CC"; then
3009 # Extract the first word of "cc", so it can be a program name with args.
3010set dummy cc; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003012$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003013if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003014 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003015else
3016 if test -n "$CC"; then
3017 ac_cv_prog_CC="$CC" # Let the user override the test.
3018else
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003019 ac_prog_rejected=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021for as_dir in $PATH
3022do
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003025 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003026 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 +00003027 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3028 ac_prog_rejected=yes
3029 continue
3030 fi
3031 ac_cv_prog_CC="cc"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003033 break 2
3034 fi
3035done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003036 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003037IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003038
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003039if test $ac_prog_rejected = yes; then
3040 # We found a bogon in the path, so make sure we never use it.
3041 set dummy $ac_cv_prog_CC
3042 shift
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003043 if test $# != 0; then
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003044 # We chose a different compiler from the bogus one.
3045 # However, it has the same basename, so the bogon will be chosen
3046 # first if we set CC to just the basename; use the full file name.
3047 shift
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003048 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003049 fi
3050fi
3051fi
3052fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003053CC=$ac_cv_prog_CC
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003054if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003056$as_echo "$CC" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003057else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003059$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003060fi
3061
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003062
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003063fi
3064if test -z "$CC"; then
3065 if test -n "$ac_tool_prefix"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003066 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003067 do
3068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3069set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003071$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003072if test "${ac_cv_prog_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003073 $as_echo_n "(cached) " >&6
Eric Pouech18ad24a2000-01-16 22:16:33 +00003074else
3075 if test -n "$CC"; then
3076 ac_cv_prog_CC="$CC" # Let the user override the test.
3077else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003078as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3079for as_dir in $PATH
3080do
3081 IFS=$as_save_IFS
3082 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003083 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003084 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 +00003085 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003087 break 2
3088 fi
3089done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003090 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003091IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003092
Eric Pouech18ad24a2000-01-16 22:16:33 +00003093fi
3094fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003095CC=$ac_cv_prog_CC
Eric Pouech18ad24a2000-01-16 22:16:33 +00003096if test -n "$CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003098$as_echo "$CC" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003099else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003101$as_echo "no" >&6; }
Alexandre Julliardb817f4f1996-03-14 18:08:34 +00003102fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003103
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003104
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003105 test -n "$CC" && break
3106 done
3107fi
3108if test -z "$CC"; then
3109 ac_ct_CC=$CC
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003110 for ac_prog in cl.exe
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003111do
3112 # Extract the first word of "$ac_prog", so it can be a program name with args.
3113set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003115$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003116if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003117 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003118else
3119 if test -n "$ac_ct_CC"; then
3120 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3121else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123for as_dir in $PATH
3124do
3125 IFS=$as_save_IFS
3126 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003127 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003128 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 +00003129 ac_cv_prog_ac_ct_CC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003131 break 2
3132 fi
3133done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003134 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003135IFS=$as_save_IFS
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003136
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003137fi
3138fi
3139ac_ct_CC=$ac_cv_prog_ac_ct_CC
3140if test -n "$ac_ct_CC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003142$as_echo "$ac_ct_CC" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003143else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003145$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003146fi
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003147
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003148
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003149 test -n "$ac_ct_CC" && break
3150done
Eric Pouech18ad24a2000-01-16 22:16:33 +00003151
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003152 if test "x$ac_ct_CC" = x; then
3153 CC=""
3154 else
3155 case $cross_compiling:$ac_tool_warned in
3156yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003157{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003158$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003159ac_tool_warned=yes ;;
3160esac
3161 CC=$ac_ct_CC
3162 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003163fi
3164
3165fi
3166
Alexandre Julliarddaa28862002-04-11 21:54:01 +00003167
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003168test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003169$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003170as_fn_error "no acceptable C compiler found in \$PATH
3171See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003172
3173# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003174$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003175set X $ac_compile
3176ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003177for ac_option in --version -v -V -qversion; do
3178 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003179case "(($ac_try" in
3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3181 *) ac_try_echo=$ac_try;;
3182esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184$as_echo "$ac_try_echo"; } >&5
3185 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003186 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003187 if test -s conftest.err; then
3188 sed '10a\
3189... rest of stderr output deleted ...
3190 10q' conftest.err >conftest.er1
3191 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003192 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003193 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003194 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3195 test $ac_status = 0; }
3196done
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003197
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003199/* end confdefs.h. */
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003200
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003201int
3202main ()
3203{
3204
3205 ;
3206 return 0;
3207}
3208_ACEOF
3209ac_clean_files_save=$ac_clean_files
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003210ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003211# Try to create an executable without -o first, disregard a.out.
3212# It will help us diagnose broken compilers, and finding out an intuition
3213# of exeext.
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3215$as_echo_n "checking whether the C compiler works... " >&6; }
Alexandre Julliardabf50482008-10-31 12:56:53 +01003216ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3217
3218# The possible output files:
3219ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3220
Jeremy White0ebeb532006-06-20 13:18:41 +02003221ac_rmfiles=
3222for ac_file in $ac_files
3223do
3224 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003226 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3227 esac
3228done
3229rm -f $ac_rmfiles
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003230
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003231if { { ac_try="$ac_link_default"
Jeremy White0ebeb532006-06-20 13:18:41 +02003232case "(($ac_try" in
3233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3234 *) ac_try_echo=$ac_try;;
3235esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003236eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3237$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003238 (eval "$ac_link_default") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003239 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003242 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3243# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3244# in a Makefile. We should not override ac_cv_exeext if it was cached,
3245# so that the user can short-circuit this test for compilers unknown to
3246# Autoconf.
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003247for ac_file in $ac_files ''
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003248do
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003249 test -f "$ac_file" || continue
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003250 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003251 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Jeremy White0ebeb532006-06-20 13:18:41 +02003252 ;;
3253 [ab].out )
3254 # We found the default executable, but exeext='' is most
3255 # certainly right.
3256 break;;
3257 *.* )
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003258 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Jeremy White0ebeb532006-06-20 13:18:41 +02003259 then :; else
3260 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3261 fi
3262 # We set ac_cv_exeext here because the later test for it is not
3263 # safe: cross compilers may not add the suffix if given an `-o'
3264 # argument, so we may need to know it at that point already.
3265 # Even if this section looks crufty: it has the advantage of
3266 # actually working.
3267 break;;
3268 * )
3269 break;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003270 esac
3271done
Jeremy White0ebeb532006-06-20 13:18:41 +02003272test "$ac_cv_exeext" = no && ac_cv_exeext=
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003273
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003274else
Alexandre Julliard78bd1942006-08-14 20:42:56 +02003275 ac_file=''
3276fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003277if test -z "$ac_file"; then :
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279$as_echo "no" >&6; }
3280$as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003281sed 's/^/| /' conftest.$ac_ext >&5
3282
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003283{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003284$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003285{ as_fn_set_status 77
3286as_fn_error "C compiler cannot create executables
3287See \`config.log' for more details." "$LINENO" 5; }; }
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003288else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290$as_echo "yes" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003291fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3293$as_echo_n "checking for C compiler default output file name... " >&6; }
3294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3295$as_echo "$ac_file" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003296ac_exeext=$ac_cv_exeext
Jeremy White0ebeb532006-06-20 13:18:41 +02003297
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003298rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Jeremy White0ebeb532006-06-20 13:18:41 +02003299ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003301$as_echo_n "checking for suffix of executables... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003302if { { ac_try="$ac_link"
Jeremy White0ebeb532006-06-20 13:18:41 +02003303case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003309 (eval "$ac_link") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003310 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; then :
Jeremy White0ebeb532006-06-20 13:18:41 +02003313 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3314# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3315# work properly (i.e., refer to `conftest.exe'), while it won't with
3316# `rm'.
3317for ac_file in conftest.exe conftest conftest.*; do
3318 test -f "$ac_file" || continue
3319 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003320 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Jeremy White0ebeb532006-06-20 13:18:41 +02003321 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3322 break;;
3323 * ) break;;
3324 esac
3325done
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003326else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003327 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003329as_fn_error "cannot compute suffix of executables: cannot compile and link
3330See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003331fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003332rm -f conftest conftest$ac_cv_exeext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003334$as_echo "$ac_cv_exeext" >&6; }
Jeremy White0ebeb532006-06-20 13:18:41 +02003335
3336rm -f conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003337EXEEXT=$ac_cv_exeext
3338ac_exeext=$EXEEXT
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3340/* end confdefs.h. */
3341#include <stdio.h>
3342int
3343main ()
3344{
3345FILE *f = fopen ("conftest.out", "w");
3346 return ferror (f) || fclose (f) != 0;
3347
3348 ;
3349 return 0;
3350}
3351_ACEOF
3352ac_clean_files="$ac_clean_files conftest.out"
3353# Check that the compiler produces executables we can run. If not, either
3354# the compiler is broken, or we cross compile.
3355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3356$as_echo_n "checking whether we are cross compiling... " >&6; }
3357if test "$cross_compiling" != yes; then
3358 { { ac_try="$ac_link"
3359case "(($ac_try" in
3360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3361 *) ac_try_echo=$ac_try;;
3362esac
3363eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3364$as_echo "$ac_try_echo"; } >&5
3365 (eval "$ac_link") 2>&5
3366 ac_status=$?
3367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3368 test $ac_status = 0; }
3369 if { ac_try='./conftest$ac_cv_exeext'
3370 { { case "(($ac_try" in
3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3373esac
3374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3375$as_echo "$ac_try_echo"; } >&5
3376 (eval "$ac_try") 2>&5
3377 ac_status=$?
3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3379 test $ac_status = 0; }; }; then
3380 cross_compiling=no
3381 else
3382 if test "$cross_compiling" = maybe; then
3383 cross_compiling=yes
3384 else
3385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387as_fn_error "cannot run C compiled programs.
3388If you meant to cross compile, use \`--host'.
3389See \`config.log' for more details." "$LINENO" 5; }
3390 fi
3391 fi
3392fi
3393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3394$as_echo "$cross_compiling" >&6; }
3395
3396rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3397ac_clean_files=$ac_clean_files_save
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003399$as_echo_n "checking for suffix of object files... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003400if test "${ac_cv_objext+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003401 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003402else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jeremy White0ebeb532006-06-20 13:18:41 +02003404/* end confdefs.h. */
3405
3406int
3407main ()
3408{
3409
3410 ;
3411 return 0;
3412}
3413_ACEOF
3414rm -f conftest.o conftest.obj
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003415if { { ac_try="$ac_compile"
Jeremy White0ebeb532006-06-20 13:18:41 +02003416case "(($ac_try" in
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3419esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003420eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3421$as_echo "$ac_try_echo"; } >&5
Jeremy White0ebeb532006-06-20 13:18:41 +02003422 (eval "$ac_compile") 2>&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003423 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3425 test $ac_status = 0; }; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003426 for ac_file in conftest.o conftest.obj conftest.*; do
3427 test -f "$ac_file" || continue;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003428 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +01003429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003430 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3431 break;;
3432 esac
3433done
3434else
Alexandre Julliardabf50482008-10-31 12:56:53 +01003435 $as_echo "$as_me: failed program was:" >&5
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003436sed 's/^/| /' conftest.$ac_ext >&5
3437
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003438{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003440as_fn_error "cannot compute suffix of object files: cannot compile
3441See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003442fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003443rm -f conftest.$ac_cv_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003444fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003446$as_echo "$ac_cv_objext" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003447OBJEXT=$ac_cv_objext
3448ac_objext=$OBJEXT
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003450$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003451if test "${ac_cv_c_compiler_gnu+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003452 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003453else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003455/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003456
3457int
3458main ()
3459{
3460#ifndef __GNUC__
3461 choke me
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003462#endif
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +00003463
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003464 ;
3465 return 0;
3466}
3467_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003468if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003469 ac_compiler_gnu=yes
Eric Pouech18ad24a2000-01-16 22:16:33 +00003470else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003471 ac_compiler_gnu=no
Eric Pouech18ad24a2000-01-16 22:16:33 +00003472fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003474ac_cv_c_compiler_gnu=$ac_compiler_gnu
Eric Pouech18ad24a2000-01-16 22:16:33 +00003475
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003476fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003478$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3479if test $ac_compiler_gnu = yes; then
3480 GCC=yes
3481else
3482 GCC=
3483fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003484ac_test_CFLAGS=${CFLAGS+set}
3485ac_save_CFLAGS=$CFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003487$as_echo_n "checking whether $CC accepts -g... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003488if test "${ac_cv_prog_cc_g+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003489 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003490else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003491 ac_save_c_werror_flag=$ac_c_werror_flag
3492 ac_c_werror_flag=yes
3493 ac_cv_prog_cc_g=no
3494 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003496/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003497
3498int
3499main ()
3500{
3501
3502 ;
3503 return 0;
3504}
3505_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003506if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00003507 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003508else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003509 CFLAGS=""
3510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003511/* end confdefs.h. */
3512
3513int
3514main ()
3515{
3516
3517 ;
3518 return 0;
3519}
3520_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003521if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003522
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003523else
3524 ac_c_werror_flag=$ac_save_c_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003525 CFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003527/* end confdefs.h. */
3528
3529int
3530main ()
3531{
3532
3533 ;
3534 return 0;
3535}
3536_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003537if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003538 ac_cv_prog_cc_g=yes
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003539fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003541fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003542rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003543fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003544rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003545 ac_c_werror_flag=$ac_save_c_werror_flag
3546fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003548$as_echo "$ac_cv_prog_cc_g" >&6; }
Eric Pouech18ad24a2000-01-16 22:16:33 +00003549if test "$ac_test_CFLAGS" = set; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003550 CFLAGS=$ac_save_CFLAGS
Eric Pouech18ad24a2000-01-16 22:16:33 +00003551elif test $ac_cv_prog_cc_g = yes; then
3552 if test "$GCC" = yes; then
Alexandre Julliardda0cfb31996-12-01 17:17:47 +00003553 CFLAGS="-g -O2"
3554 else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003555 CFLAGS="-g"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003556 fi
3557else
Eric Pouech18ad24a2000-01-16 22:16:33 +00003558 if test "$GCC" = yes; then
3559 CFLAGS="-O2"
3560 else
3561 CFLAGS=
3562 fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00003563fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003565$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003566if test "${ac_cv_prog_cc_c89+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003567 $as_echo_n "(cached) " >&6
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003568else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003569 ac_cv_prog_cc_c89=no
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003570ac_save_CC=$CC
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003572/* end confdefs.h. */
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003573#include <stdarg.h>
3574#include <stdio.h>
3575#include <sys/types.h>
3576#include <sys/stat.h>
3577/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3578struct buf { int x; };
3579FILE * (*rcsopen) (struct buf *, struct stat *, int);
3580static char *e (p, i)
3581 char **p;
3582 int i;
3583{
3584 return p[i];
3585}
3586static char *f (char * (*g) (char **, int), char **p, ...)
3587{
3588 char *s;
3589 va_list v;
3590 va_start (v,p);
3591 s = g (p, va_arg (v,int));
3592 va_end (v);
3593 return s;
3594}
Alexandre Julliard875927f2004-01-02 01:55:29 +00003595
3596/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3597 function prototypes and stuff, but not '\xHH' hex character constants.
3598 These don't provoke an error unfortunately, instead are silently treated
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003599 as 'x'. The following induces an error, until -std is added to get
Alexandre Julliard875927f2004-01-02 01:55:29 +00003600 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3601 array size at least. It's necessary to write '\x00'==0 to get something
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003602 that's true only with -std. */
Alexandre Julliard875927f2004-01-02 01:55:29 +00003603int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3604
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02003605/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3606 inside strings and character constants. */
3607#define FOO(x) 'x'
3608int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3609
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003610int test (int i, double x);
3611struct s1 {int (*f) (int a);};
3612struct s2 {int (*f) (double a);};
3613int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3614int argc;
3615char **argv;
3616int
3617main ()
3618{
3619return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3620 ;
3621 return 0;
3622}
3623_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003624for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3625 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003626do
3627 CC="$ac_save_CC $ac_arg"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003628 if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003629 ac_cv_prog_cc_c89=$ac_arg
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003630fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003631rm -f core conftest.err conftest.$ac_objext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003632 test "x$ac_cv_prog_cc_c89" != "xno" && break
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003633done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003634rm -f conftest.$ac_ext
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003635CC=$ac_save_CC
3636
3637fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003638# AC_CACHE_VAL
3639case "x$ac_cv_prog_cc_c89" in
3640 x)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003642$as_echo "none needed" >&6; } ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003643 xno)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003645$as_echo "unsupported" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003646 *)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003647 CC="$CC $ac_cv_prog_cc_c89"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003649$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003650esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003651if test "x$ac_cv_prog_cc_c89" != xno; then :
Alexandre Julliard11af04e2002-10-10 03:48:04 +00003652
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003653fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00003654
Alexandre Julliardf5818d22002-02-14 19:47:29 +00003655ac_ext=c
3656ac_cpp='$CPP $CPPFLAGS'
3657ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3658ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3659ac_compiler_gnu=$ac_cv_c_compiler_gnu
3660
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003661ac_ext=cpp
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003662ac_cpp='$CXXCPP $CPPFLAGS'
3663ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3664ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3665ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003666if test -z "$CXX"; then
3667 if test -n "$CCC"; then
3668 CXX=$CCC
3669 else
3670 if test -n "$ac_tool_prefix"; then
3671 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 +00003672 do
3673 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3674set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003676$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003677if test "${ac_cv_prog_CXX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003678 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003679else
3680 if test -n "$CXX"; then
3681 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3682else
3683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684for as_dir in $PATH
3685do
3686 IFS=$as_save_IFS
3687 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003688 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003689 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 +00003690 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003692 break 2
3693 fi
3694done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003695 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003696IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003697
3698fi
3699fi
3700CXX=$ac_cv_prog_CXX
3701if test -n "$CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003703$as_echo "$CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003704else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003706$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003707fi
3708
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003709
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003710 test -n "$CXX" && break
3711 done
3712fi
3713if test -z "$CXX"; then
3714 ac_ct_CXX=$CXX
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003715 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 +00003716do
3717 # Extract the first word of "$ac_prog", so it can be a program name with args.
3718set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003720$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003721if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003722 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003723else
3724 if test -n "$ac_ct_CXX"; then
3725 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3726else
3727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3728for as_dir in $PATH
3729do
3730 IFS=$as_save_IFS
3731 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003732 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003733 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 +00003734 ac_cv_prog_ac_ct_CXX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003736 break 2
3737 fi
3738done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003739 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003740IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003741
3742fi
3743fi
3744ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3745if test -n "$ac_ct_CXX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003747$as_echo "$ac_ct_CXX" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003748else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003750$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003751fi
3752
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003753
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003754 test -n "$ac_ct_CXX" && break
3755done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003756
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003757 if test "x$ac_ct_CXX" = x; then
3758 CXX="g++"
3759 else
3760 case $cross_compiling:$ac_tool_warned in
3761yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003762{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003763$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003764ac_tool_warned=yes ;;
3765esac
3766 CXX=$ac_ct_CXX
3767 fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003768fi
3769
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003770 fi
3771fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003772# Provide some information about the compiler.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003773$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003774set X $ac_compile
3775ac_compiler=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003776for ac_option in --version -v -V -qversion; do
3777 { { ac_try="$ac_compiler $ac_option >&5"
Jeremy White0ebeb532006-06-20 13:18:41 +02003778case "(($ac_try" in
3779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3780 *) ac_try_echo=$ac_try;;
3781esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3783$as_echo "$ac_try_echo"; } >&5
3784 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003785 ac_status=$?
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003786 if test -s conftest.err; then
3787 sed '10a\
3788... rest of stderr output deleted ...
3789 10q' conftest.err >conftest.er1
3790 cat conftest.er1 >&5
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003791 fi
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +01003792 rm -f conftest.er1 conftest.err
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3794 test $ac_status = 0; }
3795done
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003796
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003798$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003799if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003800 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003801else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003803/* end confdefs.h. */
3804
3805int
3806main ()
3807{
3808#ifndef __GNUC__
3809 choke me
3810#endif
3811
3812 ;
3813 return 0;
3814}
3815_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003816if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003817 ac_compiler_gnu=yes
3818else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003819 ac_compiler_gnu=no
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003820fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003822ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3823
3824fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003826$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3827if test $ac_compiler_gnu = yes; then
3828 GXX=yes
3829else
3830 GXX=
3831fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003832ac_test_CXXFLAGS=${CXXFLAGS+set}
3833ac_save_CXXFLAGS=$CXXFLAGS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003835$as_echo_n "checking whether $CXX accepts -g... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003836if test "${ac_cv_prog_cxx_g+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003837 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003838else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003839 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3840 ac_cxx_werror_flag=yes
3841 ac_cv_prog_cxx_g=no
3842 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003844/* end confdefs.h. */
3845
3846int
3847main ()
3848{
3849
3850 ;
3851 return 0;
3852}
3853_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003854if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003855 ac_cv_prog_cxx_g=yes
3856else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003857 CXXFLAGS=""
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003859/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003860
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003861int
3862main ()
3863{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003864
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003865 ;
3866 return 0;
3867}
3868_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003869if ac_fn_cxx_try_compile "$LINENO"; then :
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003870
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003871else
3872 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003873 CXXFLAGS="-g"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003875/* end confdefs.h. */
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003876
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003877int
3878main ()
3879{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003880
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003881 ;
3882 return 0;
3883}
3884_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003885if ac_fn_cxx_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003886 ac_cv_prog_cxx_g=yes
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003887fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003889fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003891fi
Jeremy White0ebeb532006-06-20 13:18:41 +02003892rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003893 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3894fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003896$as_echo "$ac_cv_prog_cxx_g" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003897if test "$ac_test_CXXFLAGS" = set; then
3898 CXXFLAGS=$ac_save_CXXFLAGS
3899elif test $ac_cv_prog_cxx_g = yes; then
3900 if test "$GXX" = yes; then
3901 CXXFLAGS="-g -O2"
3902 else
3903 CXXFLAGS="-g"
3904 fi
3905else
3906 if test "$GXX" = yes; then
3907 CXXFLAGS="-O2"
3908 else
3909 CXXFLAGS=
3910 fi
3911fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003912ac_ext=c
3913ac_cpp='$CPP $CPPFLAGS'
3914ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3915ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3916ac_compiler_gnu=$ac_cv_c_compiler_gnu
3917
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003918if test -n "$ac_tool_prefix"; then
3919 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3920set dummy ${ac_tool_prefix}cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003922$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003923if test "${ac_cv_prog_CPPBIN+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003924 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003925else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003926 if test -n "$CPPBIN"; then
3927 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003928else
3929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH
3931do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003934 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003935 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 +00003936 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003938 break 2
3939 fi
3940done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003941 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003942IFS=$as_save_IFS
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003943
3944fi
3945fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003946CPPBIN=$ac_cv_prog_CPPBIN
3947if test -n "$CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003949$as_echo "$CPPBIN" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003950else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003952$as_echo "no" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00003953fi
3954
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003955
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003956fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003957if test -z "$ac_cv_prog_CPPBIN"; then
3958 ac_ct_CPPBIN=$CPPBIN
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003959 # Extract the first word of "cpp", so it can be a program name with args.
3960set dummy cpp; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003962$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003963if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01003964 $as_echo_n "(cached) " >&6
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003965else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003966 if test -n "$ac_ct_CPPBIN"; then
3967 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003968else
3969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3970for as_dir in $PATH
3971do
3972 IFS=$as_save_IFS
3973 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003974 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01003975 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 +00003976 ac_cv_prog_ac_ct_CPPBIN="cpp"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003978 break 2
3979 fi
3980done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003981 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003982IFS=$as_save_IFS
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003983
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003984fi
3985fi
Alexandre Julliarda631ef62004-03-03 20:30:46 +00003986ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3987if test -n "$ac_ct_CPPBIN"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CPPBIN" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003989$as_echo "$ac_ct_CPPBIN" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003990else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02003991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01003992$as_echo "no" >&6; }
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00003993fi
3994
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02003995 if test "x$ac_ct_CPPBIN" = x; then
3996 CPPBIN="cpp"
3997 else
3998 case $cross_compiling:$ac_tool_warned in
3999yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004000{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004001$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004002ac_tool_warned=yes ;;
4003esac
4004 CPPBIN=$ac_ct_CPPBIN
4005 fi
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004006else
Alexandre Julliarda631ef62004-03-03 20:30:46 +00004007 CPPBIN="$ac_cv_prog_CPPBIN"
Alexandre Julliard3e61ef72004-03-02 06:48:48 +00004008fi
4009
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004010
Alexandre Julliard1aea4ef2009-08-27 13:35:46 +02004011cat >>confdefs.h <<_ACEOF
4012#define EXEEXT "$ac_exeext"
4013_ACEOF
4014
4015
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004016case $host in
Ken Thomases42664332009-05-01 22:59:52 -05004017 *-darwin*)
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004018 if test "x$enable_win64" = "xyes"
Ken Thomases42664332009-05-01 22:59:52 -05004019 then
4020 CC="$CC -m64"
4021 CXX="$CXX -m64"
4022 LD="${LD:-ld} -arch x86_64"
4023 AS="${AS:-as} -arch x86_64"
4024 host_cpu="x86_64"
4025 notice_platform="64-bit "
4026 TARGETFLAGS="-m64"
4027
4028 else
4029 CC="$CC -m32"
4030 CXX="$CXX -m32"
4031 LD="${LD:-ld} -arch i386"
4032 AS="${AS:-as} -arch i386"
4033 host_cpu="i386"
4034 notice_platform="32-bit "
4035 TARGETFLAGS="-m32"
4036
4037 enable_win16=${enable_win16:-yes}
4038 fi
4039 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004040 x86_64*)
Alexandre Julliard6b4ed0f2009-01-12 19:29:43 +01004041 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004042 then
4043 CC="$CC -m32"
4044 CXX="$CXX -m32"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC works" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004046$as_echo_n "checking whether $CC works... " >&6; }
4047
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004048cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004049/* end confdefs.h. */
4050
4051int
4052main ()
4053{
4054
4055 ;
4056 return 0;
4057}
4058_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004059if ac_fn_c_try_link "$LINENO"; then :
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004061$as_echo "yes" >&6; }
4062else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004064$as_echo "no" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004065 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 +01004066fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004067rm -f core conftest.err conftest.$ac_objext \
4068 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004069 LD="${LD:-ld} -m elf_i386"
4070 AS="${AS:-as} --32"
4071 host_cpu="i386"
4072 notice_platform="32-bit "
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004073 TARGETFLAGS="-m32"
4074
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004075 enable_win16=${enable_win16:-yes}
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004076 else
Alexandre Julliard8812d242009-06-14 11:19:54 +02004077 if test "x${GCC}" = "xyes"
4078 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports __builtin_ms_va_list" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004080$as_echo_n "checking whether $CC supports __builtin_ms_va_list... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard8812d242009-06-14 11:19:54 +02004082/* end confdefs.h. */
4083#include <stdarg.h>
4084int
4085main ()
4086{
4087void func(__builtin_ms_va_list *args);
4088 ;
4089 return 0;
4090}
4091_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004092if ac_fn_c_try_compile "$LINENO"; then :
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004094$as_echo "yes" >&6; }
4095else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004097$as_echo "no" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004098 as_fn_error "You need gcc >= 4.4 to build Wine as 64-bit." "$LINENO" 5
Alexandre Julliard8812d242009-06-14 11:19:54 +02004099fi
Alexandre Julliard8812d242009-06-14 11:19:54 +02004100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 fi
Alexandre Julliard07f77c42009-01-15 21:17:51 +01004102 TARGETFLAGS="-m64"
4103
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004104 fi
4105 ;;
Alexandre Julliard391fce62009-04-02 12:59:52 +02004106 *-mingw32*|*-cygwin*)
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004107 enable_win16=${enable_win16:-no}
Alexandre Goujonac0a38c2010-03-01 21:39:40 +01004108 CFLAGS="$CFLAGS -D_WIN32"
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004109 ;;
4110 i[3456789]86*)
4111 enable_win16=${enable_win16:-yes}
4112 ;;
Alexandre Julliarddfa66db2009-01-12 15:25:44 +01004113esac
4114
Alexandre Julliard9981f4c2009-02-26 15:00:12 +01004115enable_win16=${enable_win16:-no}
Alexandre Julliard776820e2009-02-23 17:46:33 +01004116
Alexandre Julliard95081552010-02-09 19:08:17 +01004117enable_winetest=${enable_winetest:-$enable_tests}
4118
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004119if test -n "$with_wine64"
4120then
4121 if test "x$enable_win64" = "xyes"
4122 then
4123 as_fn_error "--enable-win64 and --with-wine64 are mutually exclusive.
4124--enable-win64 should be used in the 64-bit build tree, --with-wine64 in the 32-bit Wow64 build tree." "$LINENO" 5
4125 fi
Alexandre Julliard90647772009-08-13 19:48:42 +02004126 WOW64_DISABLE=\#
4127
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004128 enable_fonts=${enable_fonts:-no}
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004129 enable_server=${enable_server:-no}
4130 enable_tools=${enable_tools:-no}
Alexandre Julliardb3265322010-04-21 12:28:22 +02004131elif test "x$enable_win64" = "xyes"
4132then
4133 test "x$libdir" != "x\${exec_prefix}/lib" || libdir="\${exec_prefix}/lib64"
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004134fi
4135
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the directory containing the Wine tools" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004137$as_echo_n "checking for the directory containing the Wine tools... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004138if test "${wine_cv_toolsdir+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004139 $as_echo_n "(cached) " >&6
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004140else
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004141 wine_cv_toolsdir="$with_wine_tools"
4142 if test -z "$with_wine_tools"; then
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004143 if test "$cross_compiling" = "yes"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004144 as_fn_error "you must use the --with-wine-tools option when cross-compiling." "$LINENO" 5
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004145 elif test -n "$with_wine64"; then
4146 wine_cv_toolsdir="$with_wine64"
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004147 fi
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004148 fi
4149 if test -z "$wine_cv_toolsdir"; then
4150 wine_cv_toolsdir="\$(TOPOBJDIR)"
4151 elif test -d "$wine_cv_toolsdir/tools/winebuild"; then
4152 case "$wine_cv_toolsdir" in
4153 /*) ;;
4154 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$wine_cv_toolsdir" ;;
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004155 esac
4156 else
Alexandre Julliard39a75d32009-08-13 19:45:31 +02004157 as_fn_error "could not find Wine tools in $wine_cv_toolsdir" "$LINENO" 5
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004158 fi
4159fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_toolsdir" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004161$as_echo "$wine_cv_toolsdir" >&6; }
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004162TOOLSDIR=$wine_cv_toolsdir
4163
Alexandre Julliard4d135d92009-02-16 13:08:44 +01004164if test -n "$host_alias" -a "$host_alias" != "$build_alias"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004165then
Alexandre Julliard0fea4a52009-02-12 10:28:23 +01004166 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
Alexandre Julliard424cb272008-12-26 17:54:50 +01004167
4168fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +00004169
Alexandre Julliard40916272007-03-08 13:19:50 +01004170for ac_prog in flex
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004171do
4172 # Extract the first word of "$ac_prog", so it can be a program name with args.
4173set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004175$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004176if test "${ac_cv_prog_FLEX+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004177 $as_echo_n "(cached) " >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004178else
Alexandre Julliard40916272007-03-08 13:19:50 +01004179 if test -n "$FLEX"; then
4180 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004181else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4183for as_dir in $PATH
4184do
4185 IFS=$as_save_IFS
4186 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004187 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004188 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 +01004189 ac_cv_prog_FLEX="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004191 break 2
4192 fi
4193done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004194 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004195IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004196
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004197fi
4198fi
Alexandre Julliard40916272007-03-08 13:19:50 +01004199FLEX=$ac_cv_prog_FLEX
4200if test -n "$FLEX"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004202$as_echo "$FLEX" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004203else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004205$as_echo "no" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004206fi
4207
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004208
Alexandre Julliard40916272007-03-08 13:19:50 +01004209 test -n "$FLEX" && break
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004210done
Alexandre Julliard40916272007-03-08 13:19:50 +01004211test -n "$FLEX" || FLEX="none"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004212
Alexandre Julliard40916272007-03-08 13:19:50 +01004213if test "$FLEX" = "none"
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004214then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004215 as_fn_error "no suitable flex found. Please install the 'flex' package." "$LINENO" 5
Marcus Meissnerb53bb412000-07-23 13:41:51 +00004216fi
Michael Stefaniucce307332009-12-29 18:07:02 +01004217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether flex is recent enough" >&5
4218$as_echo_n "checking whether flex is recent enough... " >&6; }
4219cat >conftest.l <<EOF
4220%top{
4221#include "prediluvian.h"
4222}
4223%%
4224EOF
Alexandre Julliard27816c72010-07-28 11:04:46 +02004225if $FLEX -t conftest.l >/dev/null 2>&5
Michael Stefaniucce307332009-12-29 18:07:02 +01004226then
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4228$as_echo "yes" >&6; }
4229else
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4231$as_echo "no" >&6; }
4232 as_fn_error "Your flex version is too old. Please install flex version 2.5.33 or newer." "$LINENO" 5
4233fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004234
Mike McCormackc068f672004-03-16 03:11:39 +00004235for ac_prog in bison
4236do
4237 # Extract the first word of "$ac_prog", so it can be a program name with args.
4238set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004240$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004241if test "${ac_cv_prog_BISON+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004242 $as_echo_n "(cached) " >&6
Mike McCormackc068f672004-03-16 03:11:39 +00004243else
4244 if test -n "$BISON"; then
4245 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4246else
4247as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4248for as_dir in $PATH
4249do
4250 IFS=$as_save_IFS
4251 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004252 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004253 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 +00004254 ac_cv_prog_BISON="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackc068f672004-03-16 03:11:39 +00004256 break 2
4257 fi
4258done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004259 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004260IFS=$as_save_IFS
Mike McCormackc068f672004-03-16 03:11:39 +00004261
4262fi
4263fi
4264BISON=$ac_cv_prog_BISON
4265if test -n "$BISON"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004267$as_echo "$BISON" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004268else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004270$as_echo "no" >&6; }
Mike McCormackc068f672004-03-16 03:11:39 +00004271fi
4272
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004273
Mike McCormackc068f672004-03-16 03:11:39 +00004274 test -n "$BISON" && break
4275done
4276test -n "$BISON" || BISON="none"
4277
4278if test "$BISON" = "none"
4279then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004280 as_fn_error "no suitable bison found. Please install the 'bison' package." "$LINENO" 5
Mike McCormackc068f672004-03-16 03:11:39 +00004281fi
4282
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004283if test -n "$ac_tool_prefix"; then
Francois Gouget86bd0462008-06-26 14:05:57 +02004284 for ac_prog in ar gar
4285 do
4286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004289$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004290if test "${ac_cv_prog_AR+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004291 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004292else
4293 if test -n "$AR"; then
4294 ac_cv_prog_AR="$AR" # Let the user override the test.
4295else
4296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4297for as_dir in $PATH
4298do
4299 IFS=$as_save_IFS
4300 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004301 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004302 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 +02004303 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004305 break 2
4306 fi
4307done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004308 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004309IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004310
4311fi
4312fi
4313AR=$ac_cv_prog_AR
4314if test -n "$AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004316$as_echo "$AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004317else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004319$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004320fi
4321
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004322
Francois Gouget86bd0462008-06-26 14:05:57 +02004323 test -n "$AR" && break
4324 done
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004325fi
Francois Gouget86bd0462008-06-26 14:05:57 +02004326if test -z "$AR"; then
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004327 ac_ct_AR=$AR
Francois Gouget86bd0462008-06-26 14:05:57 +02004328 for ac_prog in ar gar
4329do
4330 # Extract the first word of "$ac_prog", so it can be a program name with args.
4331set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004333$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004334if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004335 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004336else
4337 if test -n "$ac_ct_AR"; then
4338 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4339else
4340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341for as_dir in $PATH
4342do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004345 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004346 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 +02004347 ac_cv_prog_ac_ct_AR="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004349 break 2
4350 fi
4351done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004352 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004353IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004354
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004355fi
4356fi
4357ac_ct_AR=$ac_cv_prog_ac_ct_AR
4358if test -n "$ac_ct_AR"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004360$as_echo "$ac_ct_AR" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004361else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004363$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004364fi
4365
Francois Gouget86bd0462008-06-26 14:05:57 +02004366
4367 test -n "$ac_ct_AR" && break
4368done
4369
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004370 if test "x$ac_ct_AR" = x; then
4371 AR="ar"
4372 else
4373 case $cross_compiling:$ac_tool_warned in
4374yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004377ac_tool_warned=yes ;;
4378esac
4379 AR=$ac_ct_AR
4380 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004381fi
4382
Rob Shearman0c694d72008-03-04 15:53:41 +00004383ARFLAGS=rc
4384
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004385if test -n "$ac_tool_prefix"; then
4386 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4387set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004389$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004390if test "${ac_cv_prog_RANLIB+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004391 $as_echo_n "(cached) " >&6
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004392else
4393 if test -n "$RANLIB"; then
4394 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4395else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004396as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397for as_dir in $PATH
4398do
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004401 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004402 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 +00004403 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004405 break 2
4406 fi
4407done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004408 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004409IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004410
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004411fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004412fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004413RANLIB=$ac_cv_prog_RANLIB
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004414if test -n "$RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004416$as_echo "$RANLIB" >&6; }
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004417else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004419$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004420fi
4421
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004422
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004423fi
4424if test -z "$ac_cv_prog_RANLIB"; then
4425 ac_ct_RANLIB=$RANLIB
4426 # Extract the first word of "ranlib", so it can be a program name with args.
4427set dummy ranlib; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004429$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004430if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004431 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004432else
4433 if test -n "$ac_ct_RANLIB"; then
4434 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4435else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437for as_dir in $PATH
4438do
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004441 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004442 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 +00004443 ac_cv_prog_ac_ct_RANLIB="ranlib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004445 break 2
4446 fi
4447done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004448 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004449IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004450
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004451fi
4452fi
4453ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4454if test -n "$ac_ct_RANLIB"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004456$as_echo "$ac_ct_RANLIB" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004457else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004459$as_echo "no" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004460fi
4461
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004462 if test "x$ac_ct_RANLIB" = x; then
4463 RANLIB=":"
4464 else
4465 case $cross_compiling:$ac_tool_warned in
4466yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004467{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004468$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004469ac_tool_warned=yes ;;
4470esac
4471 RANLIB=$ac_ct_RANLIB
4472 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004473else
4474 RANLIB="$ac_cv_prog_RANLIB"
Alexandre Julliardff8331e1995-09-18 11:19:54 +00004475fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +00004476
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004477if test -n "$ac_tool_prefix"; then
4478 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4479set dummy ${ac_tool_prefix}strip; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004481$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004482if test "${ac_cv_prog_STRIP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004483 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004484else
4485 if test -n "$STRIP"; then
4486 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4487else
4488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489for as_dir in $PATH
4490do
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004493 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004494 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 +00004495 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004497 break 2
4498 fi
4499done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004500 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004501IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004502
4503fi
4504fi
4505STRIP=$ac_cv_prog_STRIP
4506if test -n "$STRIP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004508$as_echo "$STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004509else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004511$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004512fi
4513
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004514
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004515fi
4516if test -z "$ac_cv_prog_STRIP"; then
4517 ac_ct_STRIP=$STRIP
4518 # Extract the first word of "strip", so it can be a program name with args.
4519set dummy strip; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004521$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004522if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004523 $as_echo_n "(cached) " >&6
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004524else
4525 if test -n "$ac_ct_STRIP"; then
4526 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4527else
4528as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529for as_dir in $PATH
4530do
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004533 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004534 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 +00004535 ac_cv_prog_ac_ct_STRIP="strip"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004537 break 2
4538 fi
4539done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004540 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004541IFS=$as_save_IFS
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004542
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004543fi
4544fi
4545ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4546if test -n "$ac_ct_STRIP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004548$as_echo "$ac_ct_STRIP" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004549else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004551$as_echo "no" >&6; }
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004552fi
4553
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004554 if test "x$ac_ct_STRIP" = x; then
4555 STRIP="strip"
4556 else
4557 case $cross_compiling:$ac_tool_warned in
4558yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004559{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004560$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004561ac_tool_warned=yes ;;
4562esac
4563 STRIP=$ac_ct_STRIP
4564 fi
Alexandre Julliardfc01b722002-05-12 03:16:39 +00004565else
4566 STRIP="$ac_cv_prog_STRIP"
4567fi
4568
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004570$as_echo_n "checking whether ln -s works... " >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004571LN_S=$as_ln_s
4572if test "$LN_S" = "ln -s"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004574$as_echo "yes" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004575else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004577$as_echo "no, using $LN_S" >&6; }
Alexandre Julliard641ee761997-08-04 16:34:36 +00004578fi
4579
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004581$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004582if test "${ac_cv_path_GREP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004583 $as_echo_n "(cached) " >&6
Alexandre Julliardc6264912004-08-16 20:09:37 +00004584else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004585 if test -z "$GREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004586 ac_path_GREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004587 # Loop through the user's path and test for each of PROGNAME-LIST
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004589for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4590do
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004593 for ac_prog in grep ggrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4596 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4597# Check for GNU ac_path_GREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004598 # Check for GNU $ac_path_GREP
4599case `"$ac_path_GREP" --version 2>&1` in
4600*GNU*)
4601 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4602*)
4603 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004604 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004605 while :
4606 do
4607 cat "conftest.in" "conftest.in" >"conftest.tmp"
4608 mv "conftest.tmp" "conftest.in"
4609 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004610 $as_echo 'GREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004611 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004613 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004614 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4615 # Best one so far, save it but keep looking for a better one
4616 ac_cv_path_GREP="$ac_path_GREP"
4617 ac_path_GREP_max=$ac_count
Alexandre Julliardc6264912004-08-16 20:09:37 +00004618 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004619 # 10*(2^10) chars as input seems more than enough
4620 test $ac_count -gt 10 && break
4621 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004623esac
4624
Alexandre Julliardabf50482008-10-31 12:56:53 +01004625 $ac_path_GREP_found && break 3
4626 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004627 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004628 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004629IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004630 if test -z "$ac_cv_path_GREP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004631 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 +01004632 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004633else
4634 ac_cv_path_GREP=$GREP
4635fi
4636
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004637fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004639$as_echo "$ac_cv_path_GREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004640 GREP="$ac_cv_path_GREP"
4641
4642
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004644$as_echo_n "checking for egrep... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004645if test "${ac_cv_path_EGREP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004646 $as_echo_n "(cached) " >&6
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004647else
4648 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4649 then ac_cv_path_EGREP="$GREP -E"
4650 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004651 if test -z "$EGREP"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004652 ac_path_EGREP_found=false
Alexandre Julliardabf50482008-10-31 12:56:53 +01004653 # Loop through the user's path and test for each of PROGNAME-LIST
4654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004655for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4656do
4657 IFS=$as_save_IFS
4658 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004659 for ac_prog in egrep; do
Alexandre Julliardabf50482008-10-31 12:56:53 +01004660 for ac_exec_ext in '' $ac_executable_extensions; do
4661 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4662 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4663# Check for GNU ac_path_EGREP and select it if it is found.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004664 # Check for GNU $ac_path_EGREP
4665case `"$ac_path_EGREP" --version 2>&1` in
4666*GNU*)
4667 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4668*)
4669 ac_count=0
Alexandre Julliardabf50482008-10-31 12:56:53 +01004670 $as_echo_n 0123456789 >"conftest.in"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004671 while :
4672 do
4673 cat "conftest.in" "conftest.in" >"conftest.tmp"
4674 mv "conftest.tmp" "conftest.in"
4675 cp "conftest.in" "conftest.nl"
Alexandre Julliardabf50482008-10-31 12:56:53 +01004676 $as_echo 'EGREP' >> "conftest.nl"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004677 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4678 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004679 as_fn_arith $ac_count + 1 && ac_count=$as_val
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004680 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4681 # Best one so far, save it but keep looking for a better one
4682 ac_cv_path_EGREP="$ac_path_EGREP"
4683 ac_path_EGREP_max=$ac_count
4684 fi
4685 # 10*(2^10) chars as input seems more than enough
4686 test $ac_count -gt 10 && break
4687 done
Jeremy White0ebeb532006-06-20 13:18:41 +02004688 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004689esac
4690
Alexandre Julliardabf50482008-10-31 12:56:53 +01004691 $ac_path_EGREP_found && break 3
4692 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004693 done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004694 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004695IFS=$as_save_IFS
Alexandre Julliardabf50482008-10-31 12:56:53 +01004696 if test -z "$ac_cv_path_EGREP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004697 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 +01004698 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004699else
4700 ac_cv_path_EGREP=$EGREP
4701fi
4702
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004703 fi
4704fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004706$as_echo "$ac_cv_path_EGREP" >&6; }
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004707 EGREP="$ac_cv_path_EGREP"
Alexandre Julliardc6264912004-08-16 20:09:37 +00004708
4709
James Juranffe6b761999-06-12 08:21:57 +00004710# Extract the first word of "ldconfig", so it can be a program name with args.
4711set dummy ldconfig; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004713$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004714if test "${ac_cv_path_LDCONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004715 $as_echo_n "(cached) " >&6
James Juranffe6b761999-06-12 08:21:57 +00004716else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004717 case $LDCONFIG in
4718 [\\/]* | ?:[\\/]*)
James Juranffe6b761999-06-12 08:21:57 +00004719 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4720 ;;
4721 *)
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Bill Medland91372b32002-04-20 21:00:42 +00004723for as_dir in /sbin /usr/sbin $PATH
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004724do
4725 IFS=$as_save_IFS
4726 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004727 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004728 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 +00004729 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004731 break 2
4732 fi
4733done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004734 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004735IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004736
Alexandre Julliard318f4ce2000-01-31 05:02:49 +00004737 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
James Juranffe6b761999-06-12 08:21:57 +00004738 ;;
4739esac
4740fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004741LDCONFIG=$ac_cv_path_LDCONFIG
James Juranffe6b761999-06-12 08:21:57 +00004742if test -n "$LDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004744$as_echo "$LDCONFIG" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004745else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004747$as_echo "no" >&6; }
James Juranffe6b761999-06-12 08:21:57 +00004748fi
4749
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004750
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004751# Find a good install program. We prefer a C program (faster),
4752# so one script is as good as another. But avoid the broken or
4753# incompatible versions:
4754# SysV /etc/install, /usr/sbin/install
4755# SunOS /usr/etc/install
4756# IRIX /sbin/install
4757# AIX /bin/install
4758# AmigaOS /C/install, which installs bootblocks on floppy discs
4759# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4760# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4761# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Alexandre Julliard875927f2004-01-02 01:55:29 +00004762# OS/2's system install, which has a completely different semantic
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004763# ./install, which can be erroneously created by make from ./install.sh.
Alexandre Julliardabf50482008-10-31 12:56:53 +01004764# Reject install programs that cannot install multiple files.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004766$as_echo_n "checking for a BSD-compatible install... " >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004767if test -z "$INSTALL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004768if test "${ac_cv_path_install+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004769 $as_echo_n "(cached) " >&6
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004770else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772for as_dir in $PATH
4773do
4774 IFS=$as_save_IFS
4775 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004776 # Account for people who put trailing slashes in PATH elements.
4777case $as_dir/ in #((
4778 ./ | .// | /[cC]/* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004779 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004780 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004781 /usr/ucb/* ) ;;
4782 *)
4783 # OSF1 and SCO ODT 3.0 have their own names for install.
4784 # Don't use installbsd from OSF since it installs stuff as root
4785 # by default.
4786 for ac_prog in ginstall scoinst install; do
4787 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004788 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 +00004789 if test $ac_prog = install &&
4790 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4791 # AIX install. It has an incompatible calling convention.
4792 :
4793 elif test $ac_prog = install &&
4794 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4795 # program-specific install script used by HP pwplus--don't use.
4796 :
4797 else
Alexandre Julliardabf50482008-10-31 12:56:53 +01004798 rm -rf conftest.one conftest.two conftest.dir
4799 echo one > conftest.one
4800 echo two > conftest.two
4801 mkdir conftest.dir
4802 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4803 test -s conftest.one && test -s conftest.two &&
4804 test -s conftest.dir/conftest.one &&
4805 test -s conftest.dir/conftest.two
4806 then
4807 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4808 break 3
4809 fi
Alexandre Julliard875927f2004-01-02 01:55:29 +00004810 fi
4811 fi
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004812 done
4813 done
4814 ;;
4815esac
Alexandre Julliardabf50482008-10-31 12:56:53 +01004816
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004817 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004818IFS=$as_save_IFS
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004819
Alexandre Julliardabf50482008-10-31 12:56:53 +01004820rm -rf conftest.one conftest.two conftest.dir
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004821
4822fi
4823 if test "${ac_cv_path_install+set}" = set; then
4824 INSTALL=$ac_cv_path_install
4825 else
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004826 # As a last resort, use the slow shell script. Don't cache a
4827 # value for INSTALL within a source directory, because that will
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004828 # break other packages using the cache if that directory is
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004829 # removed, or if the value is a relative name.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004830 INSTALL=$ac_install_sh
4831 fi
4832fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004834$as_echo "$INSTALL" >&6; }
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004835
4836# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4837# It thinks the first close brace ends the variable substitution.
4838test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4839
4840test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4841
4842test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4843
4844case "$INSTALL" in
Alexandre Julliard8418d8f2002-12-24 02:39:47 +00004845 [\\/$]* | ?:[\\/]* ) ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00004846 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
4847esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004848
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004849for ac_prog in lclint lint
4850do
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004851 # Extract the first word of "$ac_prog", so it can be a program name with args.
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004852set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004854$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004855if test "${ac_cv_prog_LINT+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004856 $as_echo_n "(cached) " >&6
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004857else
4858 if test -n "$LINT"; then
4859 ac_cv_prog_LINT="$LINT" # Let the user override the test.
4860else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4862for as_dir in $PATH
4863do
4864 IFS=$as_save_IFS
4865 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004866 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004868 ac_cv_prog_LINT="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004870 break 2
4871 fi
4872done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004873 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004874IFS=$as_save_IFS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004875
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004876fi
4877fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004878LINT=$ac_cv_prog_LINT
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004879if test -n "$LINT"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004881$as_echo "$LINT" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004882else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004884$as_echo "no" >&6; }
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004885fi
4886
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004887
Alexandre Julliardf5818d22002-02-14 19:47:29 +00004888 test -n "$LINT" && break
Patrik Stridvalla9be64e1999-07-31 17:39:44 +00004889done
4890
4891if test "$LINT" = "lint"
4892then
4893 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
4894 fi
4895
Alexandre Julliarddaa28862002-04-11 21:54:01 +00004896
4897
Huw Davies00acb5f2004-08-17 22:33:14 +00004898for ac_prog in fontforge
4899do
4900 # Extract the first word of "$ac_prog", so it can be a program name with args.
4901set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004903$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004904if test "${ac_cv_prog_FONTFORGE+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004905 $as_echo_n "(cached) " >&6
Huw Davies00acb5f2004-08-17 22:33:14 +00004906else
4907 if test -n "$FONTFORGE"; then
4908 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
4909else
4910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004915 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004916 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 +00004917 ac_cv_prog_FONTFORGE="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Huw Davies00acb5f2004-08-17 22:33:14 +00004919 break 2
4920 fi
4921done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004922 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004923IFS=$as_save_IFS
Huw Davies00acb5f2004-08-17 22:33:14 +00004924
4925fi
4926fi
4927FONTFORGE=$ac_cv_prog_FONTFORGE
4928if test -n "$FONTFORGE"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTFORGE" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004930$as_echo "$FONTFORGE" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004931else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004933$as_echo "no" >&6; }
Huw Davies00acb5f2004-08-17 22:33:14 +00004934fi
4935
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004936
Huw Davies00acb5f2004-08-17 22:33:14 +00004937 test -n "$FONTFORGE" && break
4938done
4939test -n "$FONTFORGE" || FONTFORGE="false"
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00004940
Mike McCormack90c75bd2005-08-08 18:36:53 +00004941for ac_prog in pkg-config
4942do
4943 # Extract the first word of "$ac_prog", so it can be a program name with args.
4944set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004946$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004947if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004948 $as_echo_n "(cached) " >&6
Mike McCormack90c75bd2005-08-08 18:36:53 +00004949else
4950 if test -n "$PKG_CONFIG"; then
4951 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4952else
4953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4954for as_dir in $PATH
4955do
4956 IFS=$as_save_IFS
4957 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004958 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01004959 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 +00004960 ac_cv_prog_PKG_CONFIG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormack90c75bd2005-08-08 18:36:53 +00004962 break 2
4963 fi
4964done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004965 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004966IFS=$as_save_IFS
Mike McCormack90c75bd2005-08-08 18:36:53 +00004967
4968fi
4969fi
4970PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4971if test -n "$PKG_CONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004973$as_echo "$PKG_CONFIG" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004974else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004976$as_echo "no" >&6; }
Mike McCormack90c75bd2005-08-08 18:36:53 +00004977fi
4978
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02004979
Mike McCormack90c75bd2005-08-08 18:36:53 +00004980 test -n "$PKG_CONFIG" && break
4981done
4982test -n "$PKG_CONFIG" || PKG_CONFIG="false"
4983
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004984for ac_prog in rsvg
4985do
4986 # Extract the first word of "$ac_prog", so it can be a program name with args.
4987set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01004989$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02004990if test "${ac_cv_prog_RSVG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01004991 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01004992else
4993 if test -n "$RSVG"; then
4994 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
4995else
4996as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997for as_dir in $PATH
4998do
4999 IFS=$as_save_IFS
5000 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005001 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5003 ac_cv_prog_RSVG="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005005 break 2
5006 fi
5007done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005008 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005009IFS=$as_save_IFS
5010
5011fi
5012fi
5013RSVG=$ac_cv_prog_RSVG
5014if test -n "$RSVG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005016$as_echo "$RSVG" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005017else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005019$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005020fi
5021
5022
5023 test -n "$RSVG" && break
5024done
5025test -n "$RSVG" || RSVG="false"
5026
Joel Holdsworth476a2be2010-04-05 11:15:03 +01005027for ac_prog in convert
5028do
5029 # Extract the first word of "$ac_prog", so it can be a program name with args.
5030set dummy $ac_prog; ac_word=$2
5031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5032$as_echo_n "checking for $ac_word... " >&6; }
5033if test "${ac_cv_prog_CONVERT+set}" = set; then :
5034 $as_echo_n "(cached) " >&6
5035else
5036 if test -n "$CONVERT"; then
5037 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
5038else
5039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040for as_dir in $PATH
5041do
5042 IFS=$as_save_IFS
5043 test -z "$as_dir" && as_dir=.
5044 for ac_exec_ext in '' $ac_executable_extensions; do
5045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5046 ac_cv_prog_CONVERT="$ac_prog"
5047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5048 break 2
5049 fi
5050done
5051 done
5052IFS=$as_save_IFS
5053
5054fi
5055fi
5056CONVERT=$ac_cv_prog_CONVERT
5057if test -n "$CONVERT"; then
5058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
5059$as_echo "$CONVERT" >&6; }
5060else
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5062$as_echo "no" >&6; }
5063fi
5064
5065
5066 test -n "$CONVERT" && break
5067done
5068test -n "$CONVERT" || CONVERT="false"
5069
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005070for ac_prog in icotool
5071do
5072 # Extract the first word of "$ac_prog", so it can be a program name with args.
5073set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005075$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005076if test "${ac_cv_prog_ICOTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005077 $as_echo_n "(cached) " >&6
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005078else
5079 if test -n "$ICOTOOL"; then
5080 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5081else
5082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5083for as_dir in $PATH
5084do
5085 IFS=$as_save_IFS
5086 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005087 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5089 ac_cv_prog_ICOTOOL="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005091 break 2
5092 fi
5093done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005094 done
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005095IFS=$as_save_IFS
5096
5097fi
5098fi
5099ICOTOOL=$ac_cv_prog_ICOTOOL
5100if test -n "$ICOTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ICOTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005102$as_echo "$ICOTOOL" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005103else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005105$as_echo "no" >&6; }
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005106fi
5107
5108
5109 test -n "$ICOTOOL" && break
5110done
5111test -n "$ICOTOOL" || ICOTOOL="false"
5112
5113
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005114if test "x$enable_maintainer_mode" != "xyes"
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005115then
Andrew Nguyen2eda9c72010-05-25 22:20:14 -05005116 MAINTAINER_MODE=\#
5117
5118else
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01005119 if test "$FONTFORGE" = "false"; then as_fn_append wine_warnings "|fontforge is missing, fonts can't be rebuilt."; fi
5120 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 +01005121
5122 if test "$CONVERT" = false
5123 then
5124 as_fn_append wine_warnings "|imagemagick is missing, icons can't be rebuilt."
5125 else
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough imagemagick" >&5
5127$as_echo_n "checking for recent enough imagemagick... " >&6; }
5128 convert_version=`convert --version | head -n1`
5129 if test "x$convert_version" != "x"
5130 then
5131 convert_version_major=`expr "$convert_version" : '.* \([0-9]*\)\.[0-9]*'`
5132 convert_version_minor=`expr "$convert_version" : '.* [0-9]*\.\([0-9]*\)'`
5133 if test "$convert_version_major" -eq 6 -a "$convert_version_minor" -lt 6
5134 then
5135 CONVERT=false
5136 as_fn_append wine_warnings "|imagemagick version 6.6 or newer is needed to rebuild icons."
5137 fi
5138 fi
5139 if test "$CONVERT" = false
5140 then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($convert_version_major.$convert_version_minor)" >&5
5142$as_echo "no ($convert_version_major.$convert_version_minor)" >&6; }
5143 else
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($convert_version_major.$convert_version_minor)" >&5
5145$as_echo "yes ($convert_version_major.$convert_version_minor)" >&6; }
5146 fi
5147 fi
Joel Holdsworth425f1382010-04-05 11:14:47 +01005148
5149 if test "$ICOTOOL" = false
5150 then
5151 as_fn_append wine_warnings "|icotool is missing, icons can't be rebuilt."
5152 else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent enough icotool" >&5
5154$as_echo_n "checking for recent enough icotool... " >&6; }
5155 icotool_version=`icotool --version | head -n1`
5156 if test "x$icotool_version" != "x"
5157 then
Joel Holdsworth9571f782010-05-16 23:07:33 +01005158 icotool_version_major=`expr "$icotool_version" : '.* \([0-9]*\)\.[0-9]*'`
5159 icotool_version_minor=`expr "$icotool_version" : '.* [0-9]*\.\([0-9]*\)'`
Joel Holdsworth425f1382010-04-05 11:14:47 +01005160 if test "$icotool_version_major" -eq 0 -a "$icotool_version_minor" -lt 29
5161 then
5162 ICOTOOL=false
5163 as_fn_append wine_warnings "|icotool version 0.29.0 or newer is needed to rebuild icons."
5164 fi
5165 fi
5166 if test "$ICOTOOL" = false
5167 then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($icotool_version_major.$icotool_version_minor)" >&5
5169$as_echo "no ($icotool_version_major.$icotool_version_minor)" >&6; }
5170 else
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($icotool_version_major.$icotool_version_minor)" >&5
5172$as_echo "yes ($icotool_version_major.$icotool_version_minor)" >&6; }
5173 fi
5174 fi
5175
Alexandre Julliarddc4a4752008-03-20 16:09:18 +01005176fi
Dimitrie O. Paunb817a3c2003-10-09 04:33:20 +00005177
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005178
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for i386_set_ldt in -li386" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005180$as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005181if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005182 $as_echo_n "(cached) " >&6
Alexandre Julliard902da691995-11-05 14:39:02 +00005183else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005184 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005185LIBS="-li386 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005186cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005187/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005188
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005189/* Override any GCC internal prototype to avoid an error.
5190 Use char because int might match the return type of a GCC
5191 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005192#ifdef __cplusplus
5193extern "C"
5194#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005195char i386_set_ldt ();
5196int
5197main ()
5198{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005199return i386_set_ldt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005200 ;
5201 return 0;
5202}
5203_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005204if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005205 ac_cv_lib_i386_i386_set_ldt=yes
Alexandre Julliard902da691995-11-05 14:39:02 +00005206else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005207 ac_cv_lib_i386_i386_set_ldt=no
Alexandre Julliard902da691995-11-05 14:39:02 +00005208fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005209rm -f core conftest.err conftest.$ac_objext \
5210 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005211LIBS=$ac_check_lib_save_LIBS
Alexandre Julliard902da691995-11-05 14:39:02 +00005212fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_i386_i386_set_ldt" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005214$as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005215if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005216 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005217#define HAVE_LIBI386 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005218_ACEOF
Alexandre Julliard02e90081998-01-04 17:49:09 +00005219
5220 LIBS="-li386 $LIBS"
5221
Alexandre Julliard02e90081998-01-04 17:49:09 +00005222fi
5223
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005225$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005226if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005227 $as_echo_n "(cached) " >&6
Todd Vierlingecc76691998-12-15 17:49:02 +00005228else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005229 ac_check_lib_save_LIBS=$LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005230LIBS="-lossaudio $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005232/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005233
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005234/* Override any GCC internal prototype to avoid an error.
5235 Use char because int might match the return type of a GCC
5236 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005237#ifdef __cplusplus
5238extern "C"
5239#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005240char _oss_ioctl ();
5241int
5242main ()
5243{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005244return _oss_ioctl ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005245 ;
5246 return 0;
5247}
5248_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005249if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005250 ac_cv_lib_ossaudio__oss_ioctl=yes
Todd Vierlingecc76691998-12-15 17:49:02 +00005251else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005252 ac_cv_lib_ossaudio__oss_ioctl=no
Todd Vierlingecc76691998-12-15 17:49:02 +00005253fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005254rm -f core conftest.err conftest.$ac_objext \
5255 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005256LIBS=$ac_check_lib_save_LIBS
Todd Vierlingecc76691998-12-15 17:49:02 +00005257fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005259$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005260if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005261 cat >>confdefs.h <<_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005262#define HAVE_LIBOSSAUDIO 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005263_ACEOF
Todd Vierlingecc76691998-12-15 17:49:02 +00005264
5265 LIBS="-lossaudio $LIBS"
5266
Todd Vierlingecc76691998-12-15 17:49:02 +00005267fi
5268
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005269
Alexandre Julliard82776022005-08-08 11:17:25 +00005270XLIB=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005271
Huw Daviese82dfab2004-08-04 19:10:26 +00005272OPENGL_LIBS=""
Huw Daviese82dfab2004-08-04 19:10:26 +00005273
Rein Klazes7ff12562004-11-09 20:16:35 +00005274
Alexandre Julliard82776022005-08-08 11:17:25 +00005275
Eric Pouechbc56c4e2009-08-25 19:33:28 +02005276# Check whether --enable-largefile was given.
5277if test "${enable_largefile+set}" = set; then :
5278 enableval=$enable_largefile;
5279fi
5280
5281if test "$enable_largefile" != no; then
5282
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5284$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5285if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5286 $as_echo_n "(cached) " >&6
5287else
5288 ac_cv_sys_largefile_CC=no
5289 if test "$GCC" != yes; then
5290 ac_save_CC=$CC
5291 while :; do
5292 # IRIX 6.2 and later do not support large files by default,
5293 # so use the C compiler's -n32 option if that helps.
5294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5295/* end confdefs.h. */
5296#include <sys/types.h>
5297 /* Check that off_t can represent 2**63 - 1 correctly.
5298 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5299 since some C++ compilers masquerading as C compilers
5300 incorrectly reject 9223372036854775807. */
5301#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5302 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5303 && LARGE_OFF_T % 2147483647 == 1)
5304 ? 1 : -1];
5305int
5306main ()
5307{
5308
5309 ;
5310 return 0;
5311}
5312_ACEOF
5313 if ac_fn_c_try_compile "$LINENO"; then :
5314 break
5315fi
5316rm -f core conftest.err conftest.$ac_objext
5317 CC="$CC -n32"
5318 if ac_fn_c_try_compile "$LINENO"; then :
5319 ac_cv_sys_largefile_CC=' -n32'; break
5320fi
5321rm -f core conftest.err conftest.$ac_objext
5322 break
5323 done
5324 CC=$ac_save_CC
5325 rm -f conftest.$ac_ext
5326 fi
5327fi
5328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5329$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5330 if test "$ac_cv_sys_largefile_CC" != no; then
5331 CC=$CC$ac_cv_sys_largefile_CC
5332 fi
5333
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5335$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5336if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5337 $as_echo_n "(cached) " >&6
5338else
5339 while :; do
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341/* end confdefs.h. */
5342#include <sys/types.h>
5343 /* Check that off_t can represent 2**63 - 1 correctly.
5344 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5345 since some C++ compilers masquerading as C compilers
5346 incorrectly reject 9223372036854775807. */
5347#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5348 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5349 && LARGE_OFF_T % 2147483647 == 1)
5350 ? 1 : -1];
5351int
5352main ()
5353{
5354
5355 ;
5356 return 0;
5357}
5358_ACEOF
5359if ac_fn_c_try_compile "$LINENO"; then :
5360 ac_cv_sys_file_offset_bits=no; break
5361fi
5362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5364/* end confdefs.h. */
5365#define _FILE_OFFSET_BITS 64
5366#include <sys/types.h>
5367 /* Check that off_t can represent 2**63 - 1 correctly.
5368 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5369 since some C++ compilers masquerading as C compilers
5370 incorrectly reject 9223372036854775807. */
5371#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5372 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5373 && LARGE_OFF_T % 2147483647 == 1)
5374 ? 1 : -1];
5375int
5376main ()
5377{
5378
5379 ;
5380 return 0;
5381}
5382_ACEOF
5383if ac_fn_c_try_compile "$LINENO"; then :
5384 ac_cv_sys_file_offset_bits=64; break
5385fi
5386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5387 ac_cv_sys_file_offset_bits=unknown
5388 break
5389done
5390fi
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5392$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5393case $ac_cv_sys_file_offset_bits in #(
5394 no | unknown) ;;
5395 *)
5396cat >>confdefs.h <<_ACEOF
5397#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5398_ACEOF
5399;;
5400esac
5401rm -rf conftest*
5402 if test $ac_cv_sys_file_offset_bits = unknown; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5404$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5405if test "${ac_cv_sys_large_files+set}" = set; then :
5406 $as_echo_n "(cached) " >&6
5407else
5408 while :; do
5409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5410/* end confdefs.h. */
5411#include <sys/types.h>
5412 /* Check that off_t can represent 2**63 - 1 correctly.
5413 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5414 since some C++ compilers masquerading as C compilers
5415 incorrectly reject 9223372036854775807. */
5416#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5417 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5418 && LARGE_OFF_T % 2147483647 == 1)
5419 ? 1 : -1];
5420int
5421main ()
5422{
5423
5424 ;
5425 return 0;
5426}
5427_ACEOF
5428if ac_fn_c_try_compile "$LINENO"; then :
5429 ac_cv_sys_large_files=no; break
5430fi
5431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h. */
5434#define _LARGE_FILES 1
5435#include <sys/types.h>
5436 /* Check that off_t can represent 2**63 - 1 correctly.
5437 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5438 since some C++ compilers masquerading as C compilers
5439 incorrectly reject 9223372036854775807. */
5440#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5441 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5442 && LARGE_OFF_T % 2147483647 == 1)
5443 ? 1 : -1];
5444int
5445main ()
5446{
5447
5448 ;
5449 return 0;
5450}
5451_ACEOF
5452if ac_fn_c_try_compile "$LINENO"; then :
5453 ac_cv_sys_large_files=1; break
5454fi
5455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5456 ac_cv_sys_large_files=unknown
5457 break
5458done
5459fi
5460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5461$as_echo "$ac_cv_sys_large_files" >&6; }
5462case $ac_cv_sys_large_files in #(
5463 no | unknown) ;;
5464 *)
5465cat >>confdefs.h <<_ACEOF
5466#define _LARGE_FILES $ac_cv_sys_large_files
5467_ACEOF
5468;;
5469esac
5470rm -rf conftest*
5471 fi
5472fi
5473
5474
Alexandre Julliard40664c02009-02-11 20:40:58 +01005475ac_ext=c
5476ac_cpp='$CPP $CPPFLAGS'
5477ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5478ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5479ac_compiler_gnu=$ac_cv_c_compiler_gnu
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005481$as_echo_n "checking how to run the C preprocessor... " >&6; }
5482# On Suns, sometimes $CPP names a directory.
5483if test -n "$CPP" && test -d "$CPP"; then
5484 CPP=
5485fi
5486if test -z "$CPP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005487 if test "${ac_cv_prog_CPP+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005488 $as_echo_n "(cached) " >&6
5489else
5490 # Double quotes because CPP needs to be expanded
5491 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5492 do
5493 ac_preproc_ok=false
5494for ac_c_preproc_warn_flag in '' yes
5495do
5496 # Use a header file that comes with gcc, so configuring glibc
5497 # with a fresh cross-compiler works.
5498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5499 # <limits.h> exists even on freestanding compilers.
5500 # On the NeXT, cc -E runs the code through the compiler's parser,
5501 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005503/* end confdefs.h. */
5504#ifdef __STDC__
5505# include <limits.h>
5506#else
5507# include <assert.h>
5508#endif
5509 Syntax error
5510_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005511if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005512
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005513else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005514 # Broken: fails on valid input.
5515continue
5516fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005517rm -f conftest.err conftest.$ac_ext
5518
5519 # OK, works on sane cases. Now check whether nonexistent headers
5520 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005522/* end confdefs.h. */
5523#include <ac_nonexistent.h>
5524_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005525if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005526 # Broken: success on invalid input.
5527continue
5528else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005529 # Passes both tests.
5530ac_preproc_ok=:
5531break
5532fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005533rm -f conftest.err conftest.$ac_ext
5534
5535done
5536# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5537rm -f conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005538if $ac_preproc_ok; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005539 break
5540fi
5541
5542 done
5543 ac_cv_prog_CPP=$CPP
5544
5545fi
5546 CPP=$ac_cv_prog_CPP
5547else
5548 ac_cv_prog_CPP=$CPP
5549fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005551$as_echo "$CPP" >&6; }
5552ac_preproc_ok=false
5553for ac_c_preproc_warn_flag in '' yes
5554do
5555 # Use a header file that comes with gcc, so configuring glibc
5556 # with a fresh cross-compiler works.
5557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5558 # <limits.h> exists even on freestanding compilers.
5559 # On the NeXT, cc -E runs the code through the compiler's parser,
5560 # not just through cpp. "Syntax error" is here to catch this case.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005562/* end confdefs.h. */
5563#ifdef __STDC__
5564# include <limits.h>
5565#else
5566# include <assert.h>
5567#endif
5568 Syntax error
5569_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005570if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005571
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005572else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005573 # Broken: fails on valid input.
5574continue
5575fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005576rm -f conftest.err conftest.$ac_ext
5577
5578 # OK, works on sane cases. Now check whether nonexistent headers
5579 # can be detected and how.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01005581/* end confdefs.h. */
5582#include <ac_nonexistent.h>
5583_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005584if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01005585 # Broken: success on invalid input.
5586continue
5587else
Alexandre Julliard40664c02009-02-11 20:40:58 +01005588 # Passes both tests.
5589ac_preproc_ok=:
5590break
5591fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01005592rm -f conftest.err conftest.$ac_ext
5593
5594done
5595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5596rm -f conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005597if $ac_preproc_ok; then :
5598
Alexandre Julliard40664c02009-02-11 20:40:58 +01005599else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01005601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005602as_fn_error "C preprocessor \"$CPP\" fails sanity check
5603See \`config.log' for more details." "$LINENO" 5; }
Alexandre Julliard40664c02009-02-11 20:40:58 +01005604fi
5605
5606ac_ext=c
5607ac_cpp='$CPP $CPPFLAGS'
5608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5610ac_compiler_gnu=$ac_cv_c_compiler_gnu
5611
5612
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005614$as_echo_n "checking for ANSI C header files... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005615if test "${ac_cv_header_stdc+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005616 $as_echo_n "(cached) " >&6
Marcus Meissner2d7be871999-12-05 23:06:40 +00005617else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005619/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005620#include <stdlib.h>
5621#include <stdarg.h>
5622#include <string.h>
5623#include <float.h>
5624
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005625int
5626main ()
5627{
5628
5629 ;
5630 return 0;
5631}
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005632_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005633if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005634 ac_cv_header_stdc=yes
Alexandre Julliardf5818d22002-02-14 19:47:29 +00005635else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005636 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005637fi
Jeremy White0ebeb532006-06-20 13:18:41 +02005638rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005639
5640if test $ac_cv_header_stdc = yes; then
5641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005643/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005644#include <string.h>
5645
5646_ACEOF
5647if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005648 $EGREP "memchr" >/dev/null 2>&1; then :
5649
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005650else
5651 ac_cv_header_stdc=no
Marcus Meissner2d7be871999-12-05 23:06:40 +00005652fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005653rm -f conftest*
5654
5655fi
5656
5657if test $ac_cv_header_stdc = yes; then
5658 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005660/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005661#include <stdlib.h>
5662
5663_ACEOF
5664if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005665 $EGREP "free" >/dev/null 2>&1; then :
5666
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005667else
5668 ac_cv_header_stdc=no
5669fi
5670rm -f conftest*
5671
5672fi
5673
5674if test $ac_cv_header_stdc = yes; then
5675 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005676 if test "$cross_compiling" = yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005677 :
5678else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005680/* end confdefs.h. */
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005681#include <ctype.h>
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005682#include <stdlib.h>
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005683#if ((' ' & 0x0FF) == 0x020)
5684# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5685# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5686#else
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00005687# define ISLOWER(c) \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005688 (('a' <= (c) && (c) <= 'i') \
5689 || ('j' <= (c) && (c) <= 'r') \
5690 || ('s' <= (c) && (c) <= 'z'))
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005691# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5692#endif
5693
5694#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5695int
5696main ()
5697{
5698 int i;
5699 for (i = 0; i < 256; i++)
5700 if (XOR (islower (i), ISLOWER (i))
Alexandre Julliard875927f2004-01-02 01:55:29 +00005701 || toupper (i) != TOUPPER (i))
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005702 return 2;
5703 return 0;
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005704}
5705_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005706if ac_fn_c_try_run "$LINENO"; then :
5707
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005708else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005709 ac_cv_header_stdc=no
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005710fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005711rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5712 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005713fi
5714
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005715fi
5716fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005718$as_echo "$ac_cv_header_stdc" >&6; }
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005719if test $ac_cv_header_stdc = yes; then
5720
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005721$as_echo "#define STDC_HEADERS 1" >>confdefs.h
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005722
5723fi
5724
5725# On IRIX 5.3, sys/types and inttypes.h are conflicting.
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005726for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
Alexandre Julliard875927f2004-01-02 01:55:29 +00005727 inttypes.h stdint.h unistd.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005728do :
5729 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5730ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5731"
5732eval as_val=\$$as_ac_Header
5733 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005734 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005735#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00005736_ACEOF
5737
5738fi
5739
5740done
5741
5742
Rein Klazes7ff12562004-11-09 20:16:35 +00005743for ac_header in \
Chris Robinson862965f2009-08-25 03:26:35 -07005744 AL/al.h \
Aric Stewart4430ab42010-03-17 10:58:32 -05005745 AudioToolbox/AudioConverter.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005746 AudioUnit/AudioUnit.h \
Pierre d'Herbemont08884512006-10-24 15:26:33 +02005747 Carbon/Carbon.h \
Emmanuel Maillard144a5352006-05-28 22:46:23 +02005748 CoreAudio/CoreAudio.h \
Alexandre Julliard66f45a52006-11-06 13:33:16 +01005749 DiskArbitration/DiskArbitration.h \
Phil Krylov0f6c0392005-07-01 19:15:26 +00005750 IOKit/IOKitLib.h \
Aric Stewart225a4942009-03-10 14:59:20 -05005751 IOKit/hid/IOHIDLib.h \
Ken Thomases0b08f192009-09-09 22:23:35 -05005752 OpenAL/al.h \
Eric Durbin020b0ef2008-06-24 22:45:51 -05005753 alias.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005754 alsa/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005755 arpa/inet.h \
5756 arpa/nameser.h \
Maarten Lankhorst888eaae2005-04-27 09:46:25 +00005757 asm/types.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005758 capi20.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005759 curses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005760 direct.h \
Rob Shearman87175c62008-10-03 12:55:21 +01005761 dirent.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005762 dlfcn.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005763 elf.h \
5764 float.h \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +02005765 fnmatch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005766 fontconfig/fontconfig.h \
5767 getopt.h \
Alexandre Julliard46678dc2008-12-09 17:09:42 +01005768 grp.h \
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +02005769 gsm.h \
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +02005770 gsm/gsm.h \
Damjan Jovanovicebee1972010-08-22 19:12:45 +02005771 icns.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005772 ieeefp.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005773 inet/mib2.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005774 io.h \
5775 jack/jack.h \
5776 jpeglib.h \
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +01005777 kstat.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005778 lber.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005779 lcms.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005780 lcms/lcms.h \
Hans Leidekkerea524de2005-07-15 16:39:42 +00005781 ldap.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005782 libaudioio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005783 link.h \
5784 linux/cdrom.h \
5785 linux/compiler.h \
5786 linux/hdreg.h \
5787 linux/input.h \
5788 linux/ioctl.h \
5789 linux/joystick.h \
5790 linux/major.h \
5791 linux/param.h \
5792 linux/serial.h \
Francois Gougetda1a3522008-12-28 10:35:02 +01005793 linux/types.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005794 linux/ucdrom.h \
Ken Thomasesd35c0e82009-03-11 09:05:53 -05005795 mach-o/nlist.h \
Alexandre Julliard150b5dc2006-12-29 20:02:02 +01005796 mach/mach.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005797 mach/machine.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005798 machine/cpu.h \
Emmanuel Maillard64c07782005-05-18 18:20:23 +00005799 machine/limits.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005800 machine/soundcard.h \
Austin English40b3d2e2010-05-23 21:18:17 -05005801 machine/sysarch.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005802 mntent.h \
Aric Stewartdb71d7c2009-08-19 09:37:48 -05005803 mpg123.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005804 ncurses.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005805 netdb.h \
5806 netinet/in.h \
5807 netinet/in_systm.h \
5808 netinet/tcp.h \
5809 netinet/tcp_fsm.h \
Robert Shearman1e5153c2005-12-01 11:18:43 +01005810 openssl/err.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005811 openssl/ssl.h \
Alexandre Julliard00302152007-07-02 19:54:00 +02005812 png.h \
Steven Edwards57279182005-03-04 12:38:36 +00005813 poll.h \
Albert Lee01b972d2009-11-20 18:35:26 -05005814 port.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005815 process.h \
5816 pthread.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005817 pwd.h \
5818 regex.h \
5819 sched.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005820 scsi/scsi.h \
5821 scsi/scsi_ioctl.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005822 scsi/sg.h \
5823 soundcard.h \
Austin English2d7ccb32009-06-13 18:01:24 -05005824 stdbool.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005825 stdint.h \
5826 strings.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005827 stropts.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005828 sys/asoundlib.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005829 sys/cdio.h \
5830 sys/elf32.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005831 sys/epoll.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005832 sys/errno.h \
Alexandre Julliardc8278922006-08-04 22:11:00 +02005833 sys/event.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005834 sys/exec_elf.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005835 sys/filio.h \
Alexandre Julliard61a70362009-06-26 15:45:03 +02005836 sys/inotify.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005837 sys/ioctl.h \
5838 sys/ipc.h \
Gerald Pfeiferebe04842005-08-22 09:33:37 +00005839 sys/limits.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005840 sys/link.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005841 sys/mman.h \
5842 sys/modem.h \
5843 sys/msg.h \
Hans Leidekker0844b702006-01-26 13:23:08 +01005844 sys/mtio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005845 sys/param.h \
5846 sys/poll.h \
Alexandre Julliard9603ee02006-04-06 11:57:37 +02005847 sys/prctl.h \
Austin English94021a12009-01-20 17:42:53 -06005848 sys/protosw.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005849 sys/ptrace.h \
Mike McCormack0cd06262006-03-01 01:07:04 +09005850 sys/resource.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005851 sys/scsiio.h \
5852 sys/shm.h \
5853 sys/signal.h \
5854 sys/socket.h \
Mark Adams25696352007-07-10 23:39:21 -04005855 sys/socketvar.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005856 sys/sockio.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00005857 sys/soundcard.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005858 sys/statvfs.h \
5859 sys/strtio.h \
5860 sys/syscall.h \
Alexandre Julliard801d9c32009-03-10 17:05:58 +01005861 sys/tihdr.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005862 sys/time.h \
Austin English8b195912009-01-21 21:59:11 -06005863 sys/timeout.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005864 sys/times.h \
5865 sys/uio.h \
5866 sys/un.h \
Alexandre Julliard66eb4bd2008-12-09 19:33:06 +01005867 sys/utsname.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005868 sys/vm86.h \
5869 sys/wait.h \
5870 syscall.h \
5871 termios.h \
Vincent Povirk73cd5692010-03-08 17:07:29 -06005872 tiffio.h \
Rein Klazes7ff12562004-11-09 20:16:35 +00005873 unistd.h \
5874 utime.h \
John Reiser0a2c94e2008-07-24 13:31:53 -07005875 valgrind/memcheck.h \
Jacek Caban11ca05f2009-05-29 23:35:13 +02005876 valgrind/valgrind.h \
5877 zlib.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005878
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005879do :
5880 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5881ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5882eval as_val=\$$as_ac_Header
5883 if test "x$as_val" = x""yes; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005884 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005885#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Rein Klazes7ff12562004-11-09 20:16:35 +00005886_ACEOF
5887
5888fi
5889
5890done
5891
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005893$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005894if test "${ac_cv_header_stat_broken+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01005895 $as_echo_n "(cached) " >&6
Rein Klazes7ff12562004-11-09 20:16:35 +00005896else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005898/* end confdefs.h. */
5899#include <sys/types.h>
5900#include <sys/stat.h>
5901
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005902#if defined S_ISBLK && defined S_IFDIR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005903extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005904#endif
5905
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005906#if defined S_ISBLK && defined S_IFCHR
Phil Krylovf0ca5862006-11-05 23:03:46 +03005907extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005908#endif
5909
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005910#if defined S_ISLNK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005911extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005912#endif
5913
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02005914#if defined S_ISSOCK && defined S_IFREG
Phil Krylovf0ca5862006-11-05 23:03:46 +03005915extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
Rein Klazes7ff12562004-11-09 20:16:35 +00005916#endif
5917
5918_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005919if ac_fn_c_try_compile "$LINENO"; then :
Rein Klazes7ff12562004-11-09 20:16:35 +00005920 ac_cv_header_stat_broken=no
Phil Krylovf0ca5862006-11-05 23:03:46 +03005921else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005922 ac_cv_header_stat_broken=yes
Phil Krylovf0ca5862006-11-05 23:03:46 +03005923fi
Phil Krylovf0ca5862006-11-05 23:03:46 +03005924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Rein Klazes7ff12562004-11-09 20:16:35 +00005925fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01005927$as_echo "$ac_cv_header_stat_broken" >&6; }
Rein Klazes7ff12562004-11-09 20:16:35 +00005928if test $ac_cv_header_stat_broken = yes; then
5929
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005930$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
Rein Klazes7ff12562004-11-09 20:16:35 +00005931
5932fi
5933
5934
5935
Austin English51094be2008-12-27 14:53:53 -06005936for 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 +02005937do :
5938 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5939ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005940 #ifdef HAVE_SYS_PARAM_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005941 # include <sys/param.h>
5942 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005943"
5944eval as_val=\$$as_ac_Header
5945 if test "x$as_val" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005946 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005947#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005948_ACEOF
5949
5950fi
5951
5952done
5953
5954
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005955for ac_header in \
5956 netinet/ip.h \
5957 net/if.h \
5958 net/if_arp.h \
5959 net/if_dl.h \
5960 net/if_types.h \
5961 net/route.h \
5962 netinet/if_ether.h \
Austin English337067a2009-01-22 10:44:06 -06005963 netinet/if_inarp.h \
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005964 netinet/in_pcb.h \
5965 netinet/ip_icmp.h \
5966 netinet/ip_var.h \
5967 netinet/udp.h \
5968 netipx/ipx.h \
5969
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005970do :
5971 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5972ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gouget9e67edf2008-03-06 12:34:48 +01005973 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005974 # include <sys/socket.h>
5975 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005976 #ifdef HAVE_SYS_SOCKETVAR_H
Ken Thomasesa609fee2007-10-19 16:18:17 -05005977 # include <sys/socketvar.h>
5978 #endif
Austin Englishbb3f2582009-01-26 23:34:42 -06005979 #ifdef HAVE_NET_ROUTE_H
5980 # include <net/route.h>
5981 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01005982 #ifdef HAVE_NETINET_IN_H
Ken Thomasesffd78b12007-10-19 16:18:27 -05005983 # include <netinet/in.h>
5984 #endif
Austin English03173932009-01-23 13:29:42 -06005985 #ifdef HAVE_NETINET_IN_SYSTM_H
5986 # include <netinet/in_systm.h>
5987 #endif
Alexandre Julliardd7e846c2009-01-30 14:01:12 +01005988 #ifdef HAVE_NET_IF_H
5989 # include <net/if.h>
5990 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02005991 #ifdef HAVE_NETINET_IP_H
5992 # include <netinet/ip.h>
5993 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02005994"
5995eval as_val=\$$as_ac_Header
5996 if test "x$as_val" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005997 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01005998#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02005999_ACEOF
6000
6001fi
6002
6003done
6004
Mark Adams25696352007-07-10 23:39:21 -04006005
Austin English03173932009-01-23 13:29:42 -06006006for 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 +02006007do :
6008 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6009ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Eric Durbin020b0ef2008-06-24 22:45:51 -05006010 #ifdef HAVE_ALIAS_H
6011 # include <alias.h>
6012 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006013 #ifdef HAVE_SYS_SOCKET_H
Mark Adams25696352007-07-10 23:39:21 -04006014 # include <sys/socket.h>
6015 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006016 #ifdef HAVE_SYS_SOCKETVAR_H
Mark Adams25696352007-07-10 23:39:21 -04006017 # include <sys/socketvar.h>
6018 #endif
Austin English53d3c462009-01-26 23:47:49 -06006019 #ifdef HAVE_SYS_TIMEOUT_H
6020 # include <sys/timeout.h>
6021 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006022 #ifdef HAVE_NETINET_IN_H
Mark Adams25696352007-07-10 23:39:21 -04006023 # include <netinet/in.h>
6024 #endif
Austin English03173932009-01-23 13:29:42 -06006025 #ifdef HAVE_NETINET_IN_SYSTM_H
6026 # include <netinet/in_systm.h>
6027 #endif
Alexandre Julliarddfb308a2008-06-27 14:06:47 +02006028 #ifdef HAVE_NETINET_IP_H
6029 # include <netinet/ip.h>
6030 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006031 #ifdef HAVE_NETINET_IP_VAR_H
6032 # include <netinet/ip_var.h>
6033 #endif
Eric Durbin020b0ef2008-06-24 22:45:51 -05006034 #ifdef HAVE_NETINET_IP_ICMP_H
6035 # include <netinet/ip_icmp.h>
6036 #endif
Eric Durbin6d4eab92008-06-24 22:44:13 -05006037 #ifdef HAVE_NETINET_UDP_H
6038 # include <netinet/udp.h>
6039 #endif
Mark Adams25696352007-07-10 23:39:21 -04006040 #ifdef HAVE_NETINET_TCP_H
6041 # include <netinet/tcp.h>
6042 #endif
Austin English03173932009-01-23 13:29:42 -06006043 #ifdef HAVE_NETINET_TCP_TIMER_H
6044 #include <netinet/tcp_timer.h>
6045 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006046"
6047eval as_val=\$$as_ac_Header
6048 if test "x$as_val" = x""yes; then :
Mark Adams25696352007-07-10 23:39:21 -04006049 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01006050#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mark Adams25696352007-07-10 23:39:21 -04006051_ACEOF
6052
6053fi
6054
6055done
6056
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006057
Juan Lang0ce420d2009-08-12 09:14:16 -07006058for ac_header in linux/ipx.h linux/irda.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006059do :
Juan Lang0ce420d2009-08-12 09:14:16 -07006060 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6061ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <sys/types.h>
Francois Gougetfaf05df2006-08-07 21:52:36 +02006062 #ifdef HAVE_ASM_TYPES_H
6063 # include <asm/types.h>
6064 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006065 #ifdef HAVE_SYS_SOCKET_H
Francois Gougetfaf05df2006-08-07 21:52:36 +02006066 # include <sys/socket.h>
6067 #endif
Francois Gougetda1a3522008-12-28 10:35:02 +01006068 #ifdef HAVE_LINUX_TYPES_H
6069 # include <linux/types.h>
6070 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006071"
Juan Lang0ce420d2009-08-12 09:14:16 -07006072eval as_val=\$$as_ac_Header
6073 if test "x$as_val" = x""yes; then :
Francois Gougetfaf05df2006-08-07 21:52:36 +02006074 cat >>confdefs.h <<_ACEOF
Juan Lang0ce420d2009-08-12 09:14:16 -07006075#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Francois Gougetfaf05df2006-08-07 21:52:36 +02006076_ACEOF
6077
6078fi
6079
6080done
6081
6082
Austin English2d7ccb32009-06-13 18:01:24 -05006083for ac_header in mach-o/dyld_images.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006084do :
6085 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 -05006086 # include <stdbool.h>
6087 #endif
6088 #ifdef HAVE_STDINT_H
6089 # include <stdint.h>
6090 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006091"
6092if test "x$ac_cv_header_mach_o_dyld_images_h" = x""yes; then :
Austin English2d7ccb32009-06-13 18:01:24 -05006093 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006094#define HAVE_MACH_O_DYLD_IMAGES_H 1
Austin English2d7ccb32009-06-13 18:01:24 -05006095_ACEOF
6096
6097fi
6098
6099done
6100
6101
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006102for ac_header in resolv.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006103do :
6104 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 +01006105 #ifdef HAVE_SYS_SOCKET_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006106 # include <sys/socket.h>
6107 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006108 #ifdef HAVE_NETINET_IN_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006109 # include <netinet/in.h>
6110 #endif
Francois Gouget9e67edf2008-03-06 12:34:48 +01006111 #ifdef HAVE_ARPA_NAMESER_H
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006112 # include <arpa/nameser.h>
6113 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006114"
6115if test "x$ac_cv_header_resolv_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006116 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006117#define HAVE_RESOLV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006118_ACEOF
6119
6120fi
6121
6122done
6123
6124
Juan Lange3c0e302010-03-11 18:36:46 -08006125for ac_header in ifaddrs.h
6126do :
6127 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "#include <sys/types.h>
6128"
6129if test "x$ac_cv_header_ifaddrs_h" = x""yes; then :
6130 cat >>confdefs.h <<_ACEOF
6131#define HAVE_IFADDRS_H 1
6132_ACEOF
6133
6134fi
6135
6136done
6137
6138
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006139for ac_header in ucontext.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006140do :
6141 ac_fn_c_check_header_compile "$LINENO" "ucontext.h" "ac_cv_header_ucontext_h" "#include <signal.h>
6142"
6143if test "x$ac_cv_header_ucontext_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006144 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006145#define HAVE_UCONTEXT_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006146_ACEOF
6147
6148fi
6149
6150done
6151
6152
Tijl Coosemans60833da2007-08-08 00:25:24 +02006153for ac_header in sys/thr.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006154do :
6155 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 +01006156#ifdef HAVE_UCONTEXT_H
Tijl Coosemans60833da2007-08-08 00:25:24 +02006157#include <ucontext.h>
6158#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006159"
6160if test "x$ac_cv_header_sys_thr_h" = x""yes; then :
Tijl Coosemans60833da2007-08-08 00:25:24 +02006161 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006162#define HAVE_SYS_THR_H 1
Tijl Coosemans60833da2007-08-08 00:25:24 +02006163_ACEOF
6164
6165fi
6166
6167done
6168
6169
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006170for ac_header in pthread_np.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006171do :
6172 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 +02006173#include <pthread.h>
6174#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006175"
6176if test "x$ac_cv_header_pthread_np_h" = x""yes; then :
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006177 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006178#define HAVE_PTHREAD_NP_H 1
Gerald Pfeifer4ff90b42006-08-21 20:00:20 +02006179_ACEOF
6180
6181fi
6182
6183done
6184
6185
Francois Gougetfaf05df2006-08-07 21:52:36 +02006186for ac_header in linux/videodev.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006187do :
6188 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 +02006189#include <sys/time.h>
6190#endif
6191#include <sys/types.h>
6192#ifdef HAVE_ASM_TYPES_H
6193#include <asm/types.h>
6194#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006195"
6196if test "x$ac_cv_header_linux_videodev_h" = x""yes; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006197 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006198#define HAVE_LINUX_VIDEODEV_H 1
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02006199_ACEOF
6200
6201fi
6202
6203done
6204
6205
Alexandre Julliardb079add2006-02-24 11:46:17 +01006206for ac_header in linux/capi.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006207do :
6208 ac_fn_c_check_header_compile "$LINENO" "linux/capi.h" "ac_cv_header_linux_capi_h" "#define __user
6209"
6210if test "x$ac_cv_header_linux_capi_h" = x""yes; then :
Alexandre Julliardb079add2006-02-24 11:46:17 +01006211 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006212#define HAVE_LINUX_CAPI_H 1
Alexandre Julliardb079add2006-02-24 11:46:17 +01006213_ACEOF
6214
6215fi
6216
6217done
6218
6219
6220
Alexandre Julliarda3097622007-07-02 17:27:48 +02006221DLLEXT=""
6222
6223DLLFLAGS="-D_REENTRANT"
6224
6225LDSHARED=""
6226
6227LDDLLFLAGS=""
6228
6229LIBEXT="so"
6230
6231IMPLIBEXT="def"
6232
6233LDRPATH_INSTALL=""
6234
6235LDRPATH_LOCAL=""
6236
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006237STATIC_IMPLIBEXT="def.a"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006238# Extract the first word of "ldd", so it can be a program name with args.
6239set dummy ldd; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006241$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006242if test "${ac_cv_path_LDD+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006243 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006244else
6245 case $LDD in
6246 [\\/]* | ?:[\\/]*)
6247 ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
6248 ;;
6249 *)
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251as_dummy="/sbin:/usr/sbin:$PATH"
6252for as_dir in $as_dummy
6253do
6254 IFS=$as_save_IFS
6255 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006256 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6258 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006260 break 2
6261 fi
6262done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006263 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006264IFS=$as_save_IFS
6265
6266 test -z "$ac_cv_path_LDD" && ac_cv_path_LDD="true"
6267 ;;
6268esac
6269fi
6270LDD=$ac_cv_path_LDD
6271if test -n "$LDD"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006273$as_echo "$LDD" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006274else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006276$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006277fi
6278
6279
6280
6281case $host_os in
6282 cygwin*|mingw32*)
6283 if test -n "$ac_tool_prefix"; then
6284 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6285set dummy ${ac_tool_prefix}dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006287$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006288if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006289 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006290else
6291 if test -n "$DLLTOOL"; then
6292 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6293else
6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295for as_dir in $PATH
6296do
6297 IFS=$as_save_IFS
6298 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006299 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6301 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006303 break 2
6304 fi
6305done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006306 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006307IFS=$as_save_IFS
6308
6309fi
6310fi
6311DLLTOOL=$ac_cv_prog_DLLTOOL
6312if test -n "$DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006314$as_echo "$DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006315else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006317$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006318fi
6319
6320
6321fi
6322if test -z "$ac_cv_prog_DLLTOOL"; then
6323 ac_ct_DLLTOOL=$DLLTOOL
6324 # Extract the first word of "dlltool", so it can be a program name with args.
6325set dummy dlltool; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006327$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006328if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006329 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006330else
6331 if test -n "$ac_ct_DLLTOOL"; then
6332 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6333else
6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6335for as_dir in $PATH
6336do
6337 IFS=$as_save_IFS
6338 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006339 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006343 break 2
6344 fi
6345done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006346 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006347IFS=$as_save_IFS
6348
6349fi
6350fi
6351ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6352if test -n "$ac_ct_DLLTOOL"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006354$as_echo "$ac_ct_DLLTOOL" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006355else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006357$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006358fi
6359
6360 if test "x$ac_ct_DLLTOOL" = x; then
6361 DLLTOOL="false"
6362 else
6363 case $cross_compiling:$ac_tool_warned in
6364yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006367ac_tool_warned=yes ;;
6368esac
6369 DLLTOOL=$ac_ct_DLLTOOL
6370 fi
6371else
6372 DLLTOOL="$ac_cv_prog_DLLTOOL"
6373fi
6374
6375 if test -n "$ac_tool_prefix"; then
6376 # Extract the first word of "${ac_tool_prefix}dllwrap", so it can be a program name with args.
6377set dummy ${ac_tool_prefix}dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006379$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006380if test "${ac_cv_prog_DLLWRAP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006381 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006382else
6383 if test -n "$DLLWRAP"; then
6384 ac_cv_prog_DLLWRAP="$DLLWRAP" # Let the user override the test.
6385else
6386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6387for as_dir in $PATH
6388do
6389 IFS=$as_save_IFS
6390 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006391 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6393 ac_cv_prog_DLLWRAP="${ac_tool_prefix}dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006395 break 2
6396 fi
6397done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006398 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006399IFS=$as_save_IFS
6400
6401fi
6402fi
6403DLLWRAP=$ac_cv_prog_DLLWRAP
6404if test -n "$DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006406$as_echo "$DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006407else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006409$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006410fi
6411
6412
6413fi
6414if test -z "$ac_cv_prog_DLLWRAP"; then
6415 ac_ct_DLLWRAP=$DLLWRAP
6416 # Extract the first word of "dllwrap", so it can be a program name with args.
6417set dummy dllwrap; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006419$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006420if test "${ac_cv_prog_ac_ct_DLLWRAP+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006421 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006422else
6423 if test -n "$ac_ct_DLLWRAP"; then
6424 ac_cv_prog_ac_ct_DLLWRAP="$ac_ct_DLLWRAP" # Let the user override the test.
6425else
6426as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6427for as_dir in $PATH
6428do
6429 IFS=$as_save_IFS
6430 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006431 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02006432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433 ac_cv_prog_ac_ct_DLLWRAP="dllwrap"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02006435 break 2
6436 fi
6437done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006438 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02006439IFS=$as_save_IFS
6440
6441fi
6442fi
6443ac_ct_DLLWRAP=$ac_cv_prog_ac_ct_DLLWRAP
6444if test -n "$ac_ct_DLLWRAP"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLWRAP" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006446$as_echo "$ac_ct_DLLWRAP" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006447else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006449$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006450fi
6451
6452 if test "x$ac_ct_DLLWRAP" = x; then
6453 DLLWRAP="false"
6454 else
6455 case $cross_compiling:$ac_tool_warned in
6456yes:)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006457{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006458$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006459ac_tool_warned=yes ;;
6460esac
6461 DLLWRAP=$ac_ct_DLLWRAP
6462 fi
6463else
6464 DLLWRAP="$ac_cv_prog_DLLWRAP"
6465fi
6466
Alexandre Julliarda3097622007-07-02 17:27:48 +02006467 if test "$DLLWRAP" = "false"; then
6468 LIBEXT="a"
6469 else
6470 LIBEXT="dll"
6471 fi
6472 IMPLIBEXT="a"
Alexandre Julliard950a0f82010-01-26 21:10:14 +01006473 STATIC_IMPLIBEXT="a"
Alexandre Julliardec1ebfb2008-09-04 12:29:07 +02006474 enable_iphlpapi=${enable_iphlpapi:-no}
6475 enable_kernel32=${enable_kernel32:-no}
6476 enable_msvcrt=${enable_msvcrt:-no}
6477 enable_ntdll=${enable_ntdll:-no}
6478 enable_ws2_32=${enable_ws2_32:-no}
6479 enable_loader=${enable_loader:-no}
6480 enable_server=${enable_server:-no}
Alexandre Julliard40664c02009-02-11 20:40:58 +01006481 with_x=${with_x:-no}
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01006482 with_pthread=${with_pthread:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006483 ;;
6484 darwin*|macosx*)
6485 DLLEXT=".so"
6486 LIBEXT="dylib"
6487 DLLFLAGS="$DLLFLAGS -fPIC"
6488 LDDLLFLAGS="-bundle -multiply_defined suppress"
6489 LIBWINE_LDFLAGS="-multiply_defined suppress"
6490 LDSHARED="\$(CC) -dynamiclib"
6491 STRIP="$STRIP -x"
6492 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 +00006493 SECURITYLIB="-framework Security -framework CoreFoundation"
6494
6495 COREFOUNDATIONLIB="-framework CoreFoundation"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006496
6497 IOKITLIB="-framework IOKit -framework CoreFoundation"
6498
Alexandre Julliard691bdbd2009-06-23 20:51:37 +02006499 LDEXECFLAGS="-image_base 0x7bf00000 -Wl,-segaddr,WINE_DOS,0x00000000,-segaddr,WINE_SHAREDHEAP,0x7f000000"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006500
6501 if test "$ac_cv_header_DiskArbitration_DiskArbitration_h" = "yes"
6502 then
6503 DISKARBITRATIONLIB="-framework DiskArbitration -framework CoreFoundation"
6504
6505 fi
6506 if test "$ac_cv_header_CoreAudio_CoreAudio_h" = "yes" -a "$ac_cv_header_AudioUnit_AudioUnit_h" = "yes"
6507 then
6508 COREAUDIO="-framework CoreAudio -framework AudioUnit -framework CoreServices -framework AudioToolbox -framework CoreMIDI"
6509
6510 fi
Ken Thomases0b08f192009-09-09 22:23:35 -05006511 if test "$ac_cv_header_OpenAL_al_h" = "yes"
6512 then
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006513 FRAMEWORK_OPENAL="-framework OpenAL"
Ken Thomases0b08f192009-09-09 22:23:35 -05006514
Maarten Lankhorstd4354992009-12-09 11:52:09 +01006515
6516cat >>confdefs.h <<_ACEOF
6517#define HAVE_OPENAL 1
6518_ACEOF
6519
6520 ac_cv_lib_openal=yes
Ken Thomases0b08f192009-09-09 22:23:35 -05006521 fi
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006522 if test "$ac_cv_header_IOKit_hid_IOHIDLib_h" = "yes"
6523 then
6524 ac_save_LIBS="$LIBS"
6525 LIBS="$LIBS $IOKITLIB"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006526 for ac_func in IOHIDManagerCreate
6527do :
6528 ac_fn_c_check_func "$LINENO" "IOHIDManagerCreate" "ac_cv_func_IOHIDManagerCreate"
6529if test "x$ac_cv_func_IOHIDManagerCreate" = x""yes; then :
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006530 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006531#define HAVE_IOHIDMANAGERCREATE 1
Alexandre Julliard81f8c032009-03-11 16:49:55 +01006532_ACEOF
6533
6534fi
6535done
6536
6537 LIBS="$ac_save_LIBS"
6538 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006539 case $host_cpu in
6540 *powerpc*)
6541 LDDLLFLAGS="$LDDLLFLAGS -read_only_relocs warning" ;;
6542 esac
6543 if test "$ac_cv_header_Carbon_Carbon_h" = "yes"
6544 then
6545 CARBONLIB="-framework Carbon"
6546
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02006547 enable_winequartz_drv=${enable_winequartz_drv:-yes}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006548 fi
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006549 if test "x$enable_win16" = "xyes"
6550 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether 16-bit code can be built correctly" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006552$as_echo_n "checking whether 16-bit code can be built correctly... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006553 if test "$cross_compiling" = yes; then :
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cross-compiling, assuming yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006555$as_echo "cross-compiling, assuming yes" >&6; }
6556else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006558/* end confdefs.h. */
6559asm(".text\n"
6560 "bad:\tnop;nop\n"
6561 "good:\tnop;nop\n\t"
6562 ".globl _testfunc\n"
6563 "_testfunc:\tcallw good");
6564 extern void testfunc();
6565int
6566main ()
6567{
6568unsigned short *p = (unsigned short *)testfunc;
6569 return p[0] != 0xe866 || p[1] != 0xfffa
6570 ;
6571 return 0;
6572}
6573_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006574if ac_fn_c_try_run "$LINENO"; then :
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006576$as_echo "yes" >&6; }
6577else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006579$as_echo "no" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006580 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 +02006581fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006582rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6583 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006584fi
6585
Alexandre Julliardcc8eb6b2009-06-23 13:04:49 +02006586 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006587 ;;
6588 *)
6589 DLLFLAGS="$DLLFLAGS -fPIC"
6590 DLLEXT=".so"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006591 { $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 +01006592$as_echo_n "checking whether we can build a GNU style ELF dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006593if test "${ac_cv_c_dll_gnuelf+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006594 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006595else
6596 ac_wine_try_cflags_saved=$CFLAGS
6597CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006600void myfunc() {}
6601_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006602if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006603 ac_cv_c_dll_gnuelf="yes"
6604else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006605 ac_cv_c_dll_gnuelf="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006606fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006607rm -f core conftest.err conftest.$ac_objext \
6608 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006609CFLAGS=$ac_wine_try_cflags_saved
6610fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_gnuelf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006612$as_echo "$ac_cv_c_dll_gnuelf" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006613 if test "$ac_cv_c_dll_gnuelf" = "yes"
6614 then
6615 LDSHARED="\$(CC) -shared"
6616 LDDLLFLAGS="-shared -Wl,-Bsymbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006617 { $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 +01006618$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-soname,confest.so.1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006619if test "${ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006620 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006621else
6622 ac_wine_try_cflags_saved=$CFLAGS
6623CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006625/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006626int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006627_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006628if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006629 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=yes
6630else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006631 ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006632fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006633rm -f core conftest.err conftest.$ac_objext \
6634 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006635CFLAGS=$ac_wine_try_cflags_saved
6636fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006637{ $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 +01006638$as_echo "$ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006639if test $ac_cv_cflags__fPIC__shared__Wl__soname_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006640 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-soname,%)"
6641else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006642 { $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 +01006643$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-h,confest.so.1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006644if test "${ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006645 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006646else
6647 ac_wine_try_cflags_saved=$CFLAGS
6648CFLAGS="$CFLAGS -fPIC -shared -Wl,-h,confest.so.1"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006650/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006651int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006652_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006653if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006654 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=yes
6655else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006656 ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006657fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006658rm -f core conftest.err conftest.$ac_objext \
6659 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006660CFLAGS=$ac_wine_try_cflags_saved
6661fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006662{ $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 +01006663$as_echo "$ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006664if test $ac_cv_cflags__fPIC__shared__Wl__h_confest_so_1 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006665 LDSHARED="\$(CC) -shared \$(SONAME:%=-Wl,-h,%)"
6666fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006667fi
6668
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006669 { $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 +01006670$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,-Bsymbolic,-z,defs... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006671if test "${ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006672 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006673else
6674 ac_wine_try_cflags_saved=$CFLAGS
6675CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-z,defs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006676cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006677/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006678int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006679_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006680if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006681 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=yes
6682else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006683 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006684fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006685rm -f core conftest.err conftest.$ac_objext \
6686 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006687CFLAGS=$ac_wine_try_cflags_saved
6688fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006689{ $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 +01006690$as_echo "$ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006691if test $ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__z_defs = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006692 LDDLLFLAGS="$LDDLLFLAGS,-z,defs"
6693fi
6694
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006695 { $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 +01006696$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 +02006697if 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 +01006698 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006699else
6700 ac_wine_try_cflags_saved=$CFLAGS
6701CFLAGS="$CFLAGS -fPIC -shared -Wl,-Bsymbolic,-init,__wine_spec_init,-fini,__wine_spec_fini"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006703/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006704int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006705_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006706if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006707 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=yes
6708else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006709 ac_cv_cflags__fPIC__shared__Wl__Bsymbolic__init___wine_spec_init__fini___wine_spec_fini=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006710fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006711rm -f core conftest.err conftest.$ac_objext \
6712 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006713CFLAGS=$ac_wine_try_cflags_saved
6714fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006715{ $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 +01006716$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 +02006717if 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 +02006718 LDDLLFLAGS="$LDDLLFLAGS,-init,__wine_spec_init,-fini,__wine_spec_fini"
6719fi
6720
Alexandre Julliarda3097622007-07-02 17:27:48 +02006721 echo '{ global: *; };' >conftest.map
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006722 { $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 +01006723$as_echo_n "checking whether the compiler supports -fPIC -shared -Wl,--version-script=conftest.map... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006724if test "${ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006725 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006726else
6727 ac_wine_try_cflags_saved=$CFLAGS
6728CFLAGS="$CFLAGS -fPIC -shared -Wl,--version-script=conftest.map"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006730/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006731int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006732_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006733if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006734 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=yes
6735else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006736 ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006737fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006738rm -f core conftest.err conftest.$ac_objext \
6739 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006740CFLAGS=$ac_wine_try_cflags_saved
6741fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006742{ $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 +01006743$as_echo "$ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006744if test $ac_cv_cflags__fPIC__shared__Wl___version_script_conftest_map = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006745 LDSHARED="$LDSHARED \$(VERSCRIPT:%=-Wl,--version-script=%)"
6746fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006747 rm -f conftest.map
6748
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fPIC -Wl,--export-dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006750$as_echo_n "checking whether the compiler supports -fPIC -Wl,--export-dynamic... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006751if test "${ac_cv_cflags__fPIC__Wl___export_dynamic+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006752 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006753else
6754 ac_wine_try_cflags_saved=$CFLAGS
6755CFLAGS="$CFLAGS -fPIC -Wl,--export-dynamic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006756cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006757/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006758int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006759_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006760if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006761 ac_cv_cflags__fPIC__Wl___export_dynamic=yes
6762else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006763 ac_cv_cflags__fPIC__Wl___export_dynamic=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006764fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006765rm -f core conftest.err conftest.$ac_objext \
6766 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006767CFLAGS=$ac_wine_try_cflags_saved
6768fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fPIC__Wl___export_dynamic" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006770$as_echo "$ac_cv_cflags__fPIC__Wl___export_dynamic" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006771if test $ac_cv_cflags__fPIC__Wl___export_dynamic = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006772 LDEXECFLAGS="-Wl,--export-dynamic"
6773
6774fi
6775
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006776 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,--rpath,\\$ORIGIN/../lib" | $as_tr_sh`
6777{ $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 +01006778$as_echo_n "checking whether the compiler supports -fPIC -Wl,--rpath,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006779if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006780 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006781else
6782 ac_wine_try_cflags_saved=$CFLAGS
6783CFLAGS="$CFLAGS -fPIC -Wl,--rpath,\$ORIGIN/../lib"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006785/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006786int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006787_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006788if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006789 eval "$as_ac_var=yes"
6790else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006791 eval "$as_ac_var=no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006792fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006793rm -f core conftest.err conftest.$ac_objext \
6794 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006795CFLAGS=$ac_wine_try_cflags_saved
6796fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006797eval ac_res=\$$as_ac_var
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006799$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006800if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006801 LDRPATH_INSTALL="-Wl,--rpath,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6802 LDRPATH_LOCAL="-Wl,--rpath,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6803else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006804 as_ac_var=`$as_echo "ac_cv_cflags_-fPIC -Wl,-R,\\$ORIGIN/../lib" | $as_tr_sh`
6805{ $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 +01006806$as_echo_n "checking whether the compiler supports -fPIC -Wl,-R,\$ORIGIN/../lib... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006807if { as_var=$as_ac_var; eval "test \"\${$as_var+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,-R,\$ORIGIN/../lib"
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 eval "$as_ac_var=yes"
6818else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006819 eval "$as_ac_var=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 +02006825eval ac_res=\$$as_ac_var
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006827$as_echo "$ac_res" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006828if test `eval 'as_val=${'$as_ac_var'};$as_echo "$as_val"'` = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006829 LDRPATH_INSTALL="-Wl,-R,\\\$\$ORIGIN/\`\$(RELPATH) \$(bindir) \$(libdir)\`"
6830 LDRPATH_LOCAL="-Wl,-R,\\\$\$ORIGIN/\$(TOPOBJDIR)/libs/wine"
6831fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006832fi
6833
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wl,--enable-new-dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006835$as_echo_n "checking whether the compiler supports -Wl,--enable-new-dtags... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006836if test "${ac_cv_cflags__Wl___enable_new_dtags+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006837 $as_echo_n "(cached) " >&6
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006838else
6839 ac_wine_try_cflags_saved=$CFLAGS
6840CFLAGS="$CFLAGS -Wl,--enable-new-dtags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006842/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006843int main(int argc, char **argv) { return 0; }
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006844_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006845if ac_fn_c_try_link "$LINENO"; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006846 ac_cv_cflags__Wl___enable_new_dtags=yes
6847else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006848 ac_cv_cflags__Wl___enable_new_dtags=no
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006849fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006850rm -f core conftest.err conftest.$ac_objext \
6851 conftest$ac_exeext conftest.$ac_ext
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006852CFLAGS=$ac_wine_try_cflags_saved
6853fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___enable_new_dtags" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006855$as_echo "$ac_cv_cflags__Wl___enable_new_dtags" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006856if test $ac_cv_cflags__Wl___enable_new_dtags = yes; then :
Tomas Carneckyf4077ae2007-07-30 22:38:55 +02006857 LDRPATH_INSTALL="$LDRPATH_INSTALL -Wl,--enable-new-dtags"
6858fi
6859
Alexandre Julliarda3097622007-07-02 17:27:48 +02006860 case $host_cpu in
6861 *i[3456789]86* | x86_64)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006862 { $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 +01006863$as_echo_n "checking whether the compiler supports -Wl,--section-start,.interp=0x7bf00400... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006864if test "${ac_cv_cflags__Wl___section_start__interp_0x7bf00400+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006865 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006866else
6867 ac_wine_try_cflags_saved=$CFLAGS
6868CFLAGS="$CFLAGS -Wl,--section-start,.interp=0x7bf00400"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006870/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +01006871int main(int argc, char **argv) { return 0; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006872_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006873if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006874 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=yes
6875else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006876 ac_cv_cflags__Wl___section_start__interp_0x7bf00400=no
Alexandre Julliarda3097622007-07-02 17:27:48 +02006877fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006878rm -f core conftest.err conftest.$ac_objext \
6879 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006880CFLAGS=$ac_wine_try_cflags_saved
6881fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006883$as_echo "$ac_cv_cflags__Wl___section_start__interp_0x7bf00400" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006884if test $ac_cv_cflags__Wl___section_start__interp_0x7bf00400 = yes; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006885 LDEXECFLAGS="$LDEXECFLAGS -Wl,--section-start,.interp=0x7bf00400"
6886fi
Alexandre Julliardb5d824b2010-08-24 13:42:10 +02006887 # Extract the first word of "prelink", so it can be a program name with args.
6888set dummy prelink; ac_word=$2
6889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6890$as_echo_n "checking for $ac_word... " >&6; }
6891if test "${ac_cv_path_PRELINK+set}" = set; then :
6892 $as_echo_n "(cached) " >&6
6893else
6894 case $PRELINK in
6895 [\\/]* | ?:[\\/]*)
6896 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
6897 ;;
6898 *)
6899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6900for as_dir in /sbin /usr/sbin $PATH
6901do
6902 IFS=$as_save_IFS
6903 test -z "$as_dir" && as_dir=.
6904 for ac_exec_ext in '' $ac_executable_extensions; do
6905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6906 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
6907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6908 break 2
6909 fi
6910done
6911 done
6912IFS=$as_save_IFS
6913
6914 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
6915 ;;
6916esac
6917fi
6918PRELINK=$ac_cv_path_PRELINK
6919if test -n "$PRELINK"; then
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRELINK" >&5
6921$as_echo "$PRELINK" >&6; }
6922else
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924$as_echo "no" >&6; }
6925fi
6926
6927
6928 if test "x$PRELINK" = xfalse
6929 then
6930 as_fn_append wine_warnings "|prelink not found, base address of core dlls won't be set correctly."
6931 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02006932 ;;
6933 esac
6934
6935 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build a UnixWare (Solaris) dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006937$as_echo_n "checking whether we can build a UnixWare (Solaris) dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006938if test "${ac_cv_c_dll_unixware+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006939 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006940else
6941 ac_wine_try_cflags_saved=$CFLAGS
6942CFLAGS="$CFLAGS -fPIC -Wl,-G,-h,conftest.so.1.0,-B,symbolic"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006943cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006945void myfunc() {}
6946_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006947if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006948 ac_cv_c_dll_unixware="yes"
6949else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006950 ac_cv_c_dll_unixware="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006951fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006952rm -f core conftest.err conftest.$ac_objext \
6953 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006954CFLAGS=$ac_wine_try_cflags_saved
6955fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_unixware" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006957$as_echo "$ac_cv_c_dll_unixware" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006958 if test "$ac_cv_c_dll_unixware" = "yes"
6959 then
6960 LDSHARED="\$(CC) -Wl,-G \$(SONAME:%=-Wl,-h,%)"
6961 LDDLLFLAGS="-Wl,-G,-B,symbolic"
6962
6963 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can build an HP-UX dll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006965$as_echo_n "checking whether we can build an HP-UX dll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006966if test "${ac_cv_c_dll_hpux+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01006967 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02006968else
6969 ac_wine_try_cflags_saved=$CFLAGS
6970CFLAGS="$CFLAGS -shared"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006971cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6972/* end confdefs.h. */
Alexandre Julliarda3097622007-07-02 17:27:48 +02006973void myfunc() {}
6974_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006975if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda3097622007-07-02 17:27:48 +02006976 ac_cv_c_dll_hpux="yes"
6977else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006978 ac_cv_c_dll_hpux="no"
Alexandre Julliarda3097622007-07-02 17:27:48 +02006979fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006980rm -f core conftest.err conftest.$ac_objext \
6981 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda3097622007-07-02 17:27:48 +02006982CFLAGS=$ac_wine_try_cflags_saved
6983fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02006984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dll_hpux" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01006985$as_echo "$ac_cv_c_dll_hpux" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02006986 if test "$ac_cv_c_dll_hpux" = "yes"
6987 then
6988 LIBEXT="sl"
6989 DLLEXT=".sl"
6990 LDDLLFLAGS="-shared -fPIC"
6991 LDSHARED="\$(CC) -shared"
6992 fi
6993 fi
6994 fi
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006995 ;;
6996esac
Alexandre Julliarda3097622007-07-02 17:27:48 +02006997
Alexandre Julliard9fb81982008-10-11 21:19:53 +02006998enable_winequartz_drv=${enable_winequartz_drv:-no}
Alexandre Julliarda3097622007-07-02 17:27:48 +02006999
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007000if test "$LIBEXT" = "a"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007001 as_fn_error "could not find a way to build shared libraries.
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007002It is currently not possible to build Wine without shared library
7003(.so) support to allow transparent switch between .so and .dll files.
7004If you are using Linux, you will need a newer binutils.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007005" "$LINENO" 5
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007006fi
7007
Alexandre Julliard7d2e7722010-07-26 12:13:47 +02007008CROSSTEST_DISABLE=\#
7009
7010if test "$cross_compiling" = "no" -a "x$enable_tests" != xno -a "$LIBEXT" != "dll"
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007011then
Alexandre Julliarda91fb212009-12-07 15:36:09 +01007012 case "$host_cpu" in
7013 i[3456789]86*)
7014 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 " ;;
7015 x86_64)
7016 ac_prefix_list="x86_64-pc-mingw32-gcc x86_64-w64-mingw32-gcc " ;;
7017 *)
7018 ac_prefix_list="" ;;
7019esac
7020for ac_prog in $ac_prefix_list
Alexandre Julliarda3097622007-07-02 17:27:48 +02007021do
7022 # Extract the first word of "$ac_prog", so it can be a program name with args.
7023set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007025$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007026if test "${ac_cv_prog_CROSSCC+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007027 $as_echo_n "(cached) " >&6
Alexandre Julliarda3097622007-07-02 17:27:48 +02007028else
7029 if test -n "$CROSSCC"; then
7030 ac_cv_prog_CROSSCC="$CROSSCC" # Let the user override the test.
7031else
7032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033for as_dir in $PATH
7034do
7035 IFS=$as_save_IFS
7036 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007037 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarda3097622007-07-02 17:27:48 +02007038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7039 ac_cv_prog_CROSSCC="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarda3097622007-07-02 17:27:48 +02007041 break 2
7042 fi
7043done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007044 done
Alexandre Julliarda3097622007-07-02 17:27:48 +02007045IFS=$as_save_IFS
7046
7047fi
7048fi
7049CROSSCC=$ac_cv_prog_CROSSCC
7050if test -n "$CROSSCC"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CROSSCC" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007052$as_echo "$CROSSCC" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007053else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007055$as_echo "no" >&6; }
Alexandre Julliarda3097622007-07-02 17:27:48 +02007056fi
7057
7058
7059 test -n "$CROSSCC" && break
7060done
7061test -n "$CROSSCC" || CROSSCC="false"
7062
Alexandre Julliard9fb81982008-10-11 21:19:53 +02007063 if test "$CROSSCC" != "false"
7064 then
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007065 ac_save_CC="$CC"
7066 CC="$CROSSCC"
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CROSSCC works" >&5
7068$as_echo_n "checking whether $CROSSCC works... " >&6; }
7069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7070/* end confdefs.h. */
Alexandre Julliarda2d88ab2009-05-30 17:08:06 +02007071
Alexandre Julliardc2a29db2010-08-04 13:16:19 +02007072int
7073main ()
7074{
7075
7076 ;
7077 return 0;
7078}
7079_ACEOF
7080if ac_fn_c_try_compile "$LINENO"; then :
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7082$as_echo "yes" >&6; }
7083 set x $CROSSCC
7084 shift
7085 target=""
7086 while test $# -ge 1
7087 do
7088 case "$1" in
7089 *-gcc) target=`expr "$1" : '\(.*\)-gcc'` ;;
7090 esac
7091 shift
7092 done
7093 if test -n "$target"
7094 then
7095 CROSSTEST_DISABLE=""
7096 CROSSTARGET="$target"
7097
7098 fi
7099else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101$as_echo "no" >&6; }
7102fi
7103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 CC="$ac_save_CC"
Alexandre Julliarda3097622007-07-02 17:27:48 +02007105 fi
Alexandre Julliarda3097622007-07-02 17:27:48 +02007106fi
7107
7108
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007109if test "$ac_cv_header_pthread_h" = "yes"
7110then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007112$as_echo_n "checking for pthread_create in -lpthread... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007113if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007114 $as_echo_n "(cached) " >&6
7115else
7116 ac_check_lib_save_LIBS=$LIBS
7117LIBS="-lpthread $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007119/* end confdefs.h. */
7120
7121/* Override any GCC internal prototype to avoid an error.
7122 Use char because int might match the return type of a GCC
7123 builtin and then its argument prototype would still apply. */
7124#ifdef __cplusplus
7125extern "C"
7126#endif
7127char pthread_create ();
7128int
7129main ()
7130{
7131return pthread_create ();
7132 ;
7133 return 0;
7134}
7135_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007136if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007137 ac_cv_lib_pthread_pthread_create=yes
7138else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007139 ac_cv_lib_pthread_pthread_create=no
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007140fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007141rm -f core conftest.err conftest.$ac_objext \
7142 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007143LIBS=$ac_check_lib_save_LIBS
7144fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007146$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007147if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007148 LIBPTHREAD="-lpthread"
7149
7150fi
7151
7152fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007153if test "x$LIBPTHREAD" = "x"; then :
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007154 case "x$with_pthread" in
7155 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007156 *) as_fn_error "pthread ${notice_platform}development files not found.
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007157Wine cannot support threads without libpthread.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007158Use the --without-pthread option if you really want this." "$LINENO" 5 ;;
Alexandre Julliardc891f6b2009-02-11 20:41:50 +01007159esac
7160fi
7161
7162
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007163{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007164$as_echo_n "checking for X... " >&6; }
7165
7166
7167# Check whether --with-x was given.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007168if test "${with_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007169 withval=$with_x;
7170fi
7171
7172# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7173if test "x$with_x" = xno; then
7174 # The user explicitly disabled X.
7175 have_x=disabled
7176else
7177 case $x_includes,$x_libraries in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007178 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
7179 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007180 $as_echo_n "(cached) " >&6
7181else
7182 # One or both of the vars are not set, and there is no cached value.
7183ac_x_includes=no ac_x_libraries=no
7184rm -f -r conftest.dir
7185if mkdir conftest.dir; then
7186 cd conftest.dir
7187 cat >Imakefile <<'_ACEOF'
7188incroot:
7189 @echo incroot='${INCROOT}'
7190usrlibdir:
7191 @echo usrlibdir='${USRLIBDIR}'
7192libdir:
7193 @echo libdir='${LIBDIR}'
7194_ACEOF
7195 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7196 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7197 for ac_var in incroot usrlibdir libdir; do
7198 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7199 done
7200 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7201 for ac_extension in a so sl dylib la dll; do
7202 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7203 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7204 ac_im_usrlibdir=$ac_im_libdir; break
7205 fi
7206 done
7207 # Screen out bogus values from the imake configuration. They are
7208 # bogus both because they are the default anyway, and because
7209 # using them would break gcc on systems where it needs fixed includes.
7210 case $ac_im_incroot in
7211 /usr/include) ac_x_includes= ;;
7212 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7213 esac
7214 case $ac_im_usrlibdir in
7215 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7216 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7217 esac
7218 fi
7219 cd ..
7220 rm -f -r conftest.dir
7221fi
7222
7223# Standard set of common directories for X headers.
7224# Check X11 before X11Rn because it is often a symlink to the current release.
7225ac_x_header_dirs='
7226/usr/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007227/usr/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007228/usr/X11R6/include
7229/usr/X11R5/include
7230/usr/X11R4/include
7231
7232/usr/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007233/usr/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007234/usr/include/X11R6
7235/usr/include/X11R5
7236/usr/include/X11R4
7237
7238/usr/local/X11/include
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007239/usr/local/X11R7/include
Alexandre Julliard40664c02009-02-11 20:40:58 +01007240/usr/local/X11R6/include
7241/usr/local/X11R5/include
7242/usr/local/X11R4/include
7243
7244/usr/local/include/X11
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007245/usr/local/include/X11R7
Alexandre Julliard40664c02009-02-11 20:40:58 +01007246/usr/local/include/X11R6
7247/usr/local/include/X11R5
7248/usr/local/include/X11R4
7249
7250/usr/X386/include
7251/usr/x386/include
7252/usr/XFree86/include/X11
7253
7254/usr/include
7255/usr/local/include
7256/usr/unsupported/include
7257/usr/athena/include
7258/usr/local/x11r5/include
7259/usr/lpp/Xamples/include
7260
7261/usr/openwin/include
7262/usr/openwin/share/include'
7263
7264if test "$ac_x_includes" = no; then
7265 # Guess where to find include files, by looking for Xlib.h.
7266 # First, try using that file with no special directory specified.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007268/* end confdefs.h. */
7269#include <X11/Xlib.h>
7270_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007271if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007272 # We can compile using X headers with no special include directory.
7273ac_x_includes=
7274else
Alexandre Julliard40664c02009-02-11 20:40:58 +01007275 for ac_dir in $ac_x_header_dirs; do
7276 if test -r "$ac_dir/X11/Xlib.h"; then
7277 ac_x_includes=$ac_dir
7278 break
7279 fi
7280done
7281fi
Alexandre Julliard40664c02009-02-11 20:40:58 +01007282rm -f conftest.err conftest.$ac_ext
7283fi # $ac_x_includes = no
7284
7285if test "$ac_x_libraries" = no; then
7286 # Check for the libraries.
7287 # See if we find them without any special options.
7288 # Don't add to $LIBS permanently.
7289 ac_save_LIBS=$LIBS
7290 LIBS="-lX11 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007292/* end confdefs.h. */
7293#include <X11/Xlib.h>
7294int
7295main ()
7296{
7297XrmInitialize ()
7298 ;
7299 return 0;
7300}
7301_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007302if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007303 LIBS=$ac_save_LIBS
7304# We can link X programs with no special library path.
7305ac_x_libraries=
7306else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007307 LIBS=$ac_save_LIBS
Alexandre Julliard40664c02009-02-11 20:40:58 +01007308for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7309do
7310 # Don't even attempt the hair of trying to link an X program!
7311 for ac_extension in a so sl dylib la dll; do
7312 if test -r "$ac_dir/libX11.$ac_extension"; then
7313 ac_x_libraries=$ac_dir
7314 break 2
7315 fi
7316 done
7317done
7318fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007319rm -f core conftest.err conftest.$ac_objext \
7320 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007321fi # $ac_x_libraries = no
7322
7323case $ac_x_includes,$ac_x_libraries in #(
7324 no,* | *,no | *\'*)
7325 # Didn't find X, or a directory has "'" in its name.
7326 ac_cv_have_x="have_x=no";; #(
7327 *)
7328 # Record where we found X for the cache.
7329 ac_cv_have_x="have_x=yes\
7330 ac_x_includes='$ac_x_includes'\
7331 ac_x_libraries='$ac_x_libraries'"
7332esac
7333fi
7334;; #(
7335 *) have_x=yes;;
7336 esac
7337 eval "$ac_cv_have_x"
7338fi # $with_x != no
7339
7340if test "$have_x" != yes; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007342$as_echo "$have_x" >&6; }
7343 no_x=yes
7344else
7345 # If each of the values was on the command line, it overrides each guess.
7346 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7347 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7348 # Update the cache value to reflect the command line values.
7349 ac_cv_have_x="have_x=yes\
7350 ac_x_includes='$x_includes'\
7351 ac_x_libraries='$x_libraries'"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007353$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7354fi
7355
7356if test "$no_x" = yes; then
7357 # Not all programs may use this symbol, but it does not hurt to define it.
7358
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007359$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
Alexandre Julliard40664c02009-02-11 20:40:58 +01007360
7361 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
7362else
7363 if test -n "$x_includes"; then
7364 X_CFLAGS="$X_CFLAGS -I$x_includes"
7365 fi
7366
7367 # It would also be nice to do this for all -L options, not just this one.
7368 if test -n "$x_libraries"; then
7369 X_LIBS="$X_LIBS -L$x_libraries"
7370 # For Solaris; some versions of Sun CC require a space after -R and
7371 # others require no space. Words are not sufficient . . . .
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007373$as_echo_n "checking whether -R must be followed by a space... " >&6; }
7374 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
7375 ac_xsave_c_werror_flag=$ac_c_werror_flag
7376 ac_c_werror_flag=yes
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007378/* end confdefs.h. */
7379
7380int
7381main ()
7382{
7383
7384 ;
7385 return 0;
7386}
7387_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007388if ac_fn_c_try_link "$LINENO"; then :
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007390$as_echo "no" >&6; }
7391 X_LIBS="$X_LIBS -R$x_libraries"
7392else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007393 LIBS="$ac_xsave_LIBS -R $x_libraries"
7394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007395/* end confdefs.h. */
7396
7397int
7398main ()
7399{
7400
7401 ;
7402 return 0;
7403}
7404_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007405if ac_fn_c_try_link "$LINENO"; then :
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007407$as_echo "yes" >&6; }
7408 X_LIBS="$X_LIBS -R $x_libraries"
7409else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007411$as_echo "neither works" >&6; }
7412fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007413rm -f core conftest.err conftest.$ac_objext \
7414 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007415fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007416rm -f core conftest.err conftest.$ac_objext \
7417 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007418 ac_c_werror_flag=$ac_xsave_c_werror_flag
7419 LIBS=$ac_xsave_LIBS
7420 fi
7421
7422 # Check for system-dependent libraries X programs must link with.
7423 # Do this before checking for the system-independent R6 libraries
7424 # (-lICE), since we may need -lsocket or whatever for X linking.
7425
7426 if test "$ISC" = yes; then
7427 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
7428 else
7429 # Martyn Johnson says this is needed for Ultrix, if the X
7430 # libraries were built with DECnet support. And Karl Berry says
7431 # the Alpha needs dnet_stub (dnet does not exist).
7432 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007434/* end confdefs.h. */
7435
7436/* Override any GCC internal prototype to avoid an error.
7437 Use char because int might match the return type of a GCC
7438 builtin and then its argument prototype would still apply. */
7439#ifdef __cplusplus
7440extern "C"
7441#endif
7442char XOpenDisplay ();
7443int
7444main ()
7445{
7446return XOpenDisplay ();
7447 ;
7448 return 0;
7449}
7450_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007451if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007452
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007453else
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007455$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007456if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007457 $as_echo_n "(cached) " >&6
7458else
7459 ac_check_lib_save_LIBS=$LIBS
7460LIBS="-ldnet $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007461cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007462/* end confdefs.h. */
7463
7464/* Override any GCC internal prototype to avoid an error.
7465 Use char because int might match the return type of a GCC
7466 builtin and then its argument prototype would still apply. */
7467#ifdef __cplusplus
7468extern "C"
7469#endif
7470char dnet_ntoa ();
7471int
7472main ()
7473{
7474return dnet_ntoa ();
7475 ;
7476 return 0;
7477}
7478_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007479if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007480 ac_cv_lib_dnet_dnet_ntoa=yes
7481else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007482 ac_cv_lib_dnet_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007483fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007484rm -f core conftest.err conftest.$ac_objext \
7485 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007486LIBS=$ac_check_lib_save_LIBS
7487fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007489$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007490if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007491 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
7492fi
7493
7494 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007496$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007497if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007498 $as_echo_n "(cached) " >&6
7499else
7500 ac_check_lib_save_LIBS=$LIBS
7501LIBS="-ldnet_stub $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007502cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007503/* end confdefs.h. */
7504
7505/* Override any GCC internal prototype to avoid an error.
7506 Use char because int might match the return type of a GCC
7507 builtin and then its argument prototype would still apply. */
7508#ifdef __cplusplus
7509extern "C"
7510#endif
7511char dnet_ntoa ();
7512int
7513main ()
7514{
7515return dnet_ntoa ();
7516 ;
7517 return 0;
7518}
7519_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007520if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007521 ac_cv_lib_dnet_stub_dnet_ntoa=yes
7522else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007523 ac_cv_lib_dnet_stub_dnet_ntoa=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007524fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007525rm -f core conftest.err conftest.$ac_objext \
7526 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007527LIBS=$ac_check_lib_save_LIBS
7528fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007530$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007531if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007532 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
7533fi
7534
7535 fi
7536fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007537rm -f core conftest.err conftest.$ac_objext \
7538 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007539 LIBS="$ac_xsave_LIBS"
7540
7541 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
7542 # to get the SysV transport functions.
7543 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
7544 # needs -lnsl.
7545 # The nsl library prevents programs from opening the X display
7546 # on Irix 5.2, according to T.E. Dickey.
7547 # The functions gethostbyname, getservbyname, and inet_addr are
7548 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007549 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
7550if test "x$ac_cv_func_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007551
Alexandre Julliard40664c02009-02-11 20:40:58 +01007552fi
7553
Alexandre Julliard40664c02009-02-11 20:40:58 +01007554 if test $ac_cv_func_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007556$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007557if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007558 $as_echo_n "(cached) " >&6
7559else
7560 ac_check_lib_save_LIBS=$LIBS
7561LIBS="-lnsl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007562cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007563/* end confdefs.h. */
7564
7565/* Override any GCC internal prototype to avoid an error.
7566 Use char because int might match the return type of a GCC
7567 builtin and then its argument prototype would still apply. */
7568#ifdef __cplusplus
7569extern "C"
7570#endif
7571char gethostbyname ();
7572int
7573main ()
7574{
7575return gethostbyname ();
7576 ;
7577 return 0;
7578}
7579_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007580if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007581 ac_cv_lib_nsl_gethostbyname=yes
7582else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007583 ac_cv_lib_nsl_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007584fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007585rm -f core conftest.err conftest.$ac_objext \
7586 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007587LIBS=$ac_check_lib_save_LIBS
7588fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007590$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007591if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007592 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
7593fi
7594
7595 if test $ac_cv_lib_nsl_gethostbyname = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007597$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007598if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007599 $as_echo_n "(cached) " >&6
7600else
7601 ac_check_lib_save_LIBS=$LIBS
7602LIBS="-lbsd $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007604/* end confdefs.h. */
7605
7606/* Override any GCC internal prototype to avoid an error.
7607 Use char because int might match the return type of a GCC
7608 builtin and then its argument prototype would still apply. */
7609#ifdef __cplusplus
7610extern "C"
7611#endif
7612char gethostbyname ();
7613int
7614main ()
7615{
7616return gethostbyname ();
7617 ;
7618 return 0;
7619}
7620_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007621if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007622 ac_cv_lib_bsd_gethostbyname=yes
7623else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007624 ac_cv_lib_bsd_gethostbyname=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007625fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007626rm -f core conftest.err conftest.$ac_objext \
7627 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007628LIBS=$ac_check_lib_save_LIBS
7629fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007631$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007632if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007633 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
7634fi
7635
7636 fi
7637 fi
7638
7639 # lieder@skyler.mavd.honeywell.com says without -lsocket,
7640 # socket/setsockopt and other routines are undefined under SCO ODT
7641 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
7642 # on later versions), says Simon Leinen: it contains gethostby*
7643 # variants that don't use the name server (or something). -lsocket
7644 # must be given before -lnsl if both are needed. We assume that
7645 # if connect needs -lnsl, so does gethostbyname.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007646 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
7647if test "x$ac_cv_func_connect" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007648
Alexandre Julliard40664c02009-02-11 20:40:58 +01007649fi
7650
Alexandre Julliard40664c02009-02-11 20:40:58 +01007651 if test $ac_cv_func_connect = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007653$as_echo_n "checking for connect in -lsocket... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007654if test "${ac_cv_lib_socket_connect+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007655 $as_echo_n "(cached) " >&6
7656else
7657 ac_check_lib_save_LIBS=$LIBS
7658LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007660/* end confdefs.h. */
7661
7662/* Override any GCC internal prototype to avoid an error.
7663 Use char because int might match the return type of a GCC
7664 builtin and then its argument prototype would still apply. */
7665#ifdef __cplusplus
7666extern "C"
7667#endif
7668char connect ();
7669int
7670main ()
7671{
7672return connect ();
7673 ;
7674 return 0;
7675}
7676_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007677if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007678 ac_cv_lib_socket_connect=yes
7679else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007680 ac_cv_lib_socket_connect=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007681fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007682rm -f core conftest.err conftest.$ac_objext \
7683 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007684LIBS=$ac_check_lib_save_LIBS
7685fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007687$as_echo "$ac_cv_lib_socket_connect" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007688if test "x$ac_cv_lib_socket_connect" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007689 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
7690fi
7691
7692 fi
7693
7694 # Guillermo Gomez says -lposix is necessary on A/UX.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007695 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
7696if test "x$ac_cv_func_remove" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007697
Alexandre Julliard40664c02009-02-11 20:40:58 +01007698fi
7699
Alexandre Julliard40664c02009-02-11 20:40:58 +01007700 if test $ac_cv_func_remove = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007702$as_echo_n "checking for remove in -lposix... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007703if test "${ac_cv_lib_posix_remove+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007704 $as_echo_n "(cached) " >&6
7705else
7706 ac_check_lib_save_LIBS=$LIBS
7707LIBS="-lposix $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007709/* end confdefs.h. */
7710
7711/* Override any GCC internal prototype to avoid an error.
7712 Use char because int might match the return type of a GCC
7713 builtin and then its argument prototype would still apply. */
7714#ifdef __cplusplus
7715extern "C"
7716#endif
7717char remove ();
7718int
7719main ()
7720{
7721return remove ();
7722 ;
7723 return 0;
7724}
7725_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007726if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007727 ac_cv_lib_posix_remove=yes
7728else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007729 ac_cv_lib_posix_remove=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007730fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007731rm -f core conftest.err conftest.$ac_objext \
7732 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007733LIBS=$ac_check_lib_save_LIBS
7734fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007736$as_echo "$ac_cv_lib_posix_remove" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007737if test "x$ac_cv_lib_posix_remove" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007738 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
7739fi
7740
7741 fi
7742
7743 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007744 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
7745if test "x$ac_cv_func_shmat" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007746
Alexandre Julliard40664c02009-02-11 20:40:58 +01007747fi
7748
Alexandre Julliard40664c02009-02-11 20:40:58 +01007749 if test $ac_cv_func_shmat = no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007751$as_echo_n "checking for shmat in -lipc... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007752if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007753 $as_echo_n "(cached) " >&6
7754else
7755 ac_check_lib_save_LIBS=$LIBS
7756LIBS="-lipc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007758/* end confdefs.h. */
7759
7760/* Override any GCC internal prototype to avoid an error.
7761 Use char because int might match the return type of a GCC
7762 builtin and then its argument prototype would still apply. */
7763#ifdef __cplusplus
7764extern "C"
7765#endif
7766char shmat ();
7767int
7768main ()
7769{
7770return shmat ();
7771 ;
7772 return 0;
7773}
7774_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007775if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007776 ac_cv_lib_ipc_shmat=yes
7777else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007778 ac_cv_lib_ipc_shmat=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007779fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007780rm -f core conftest.err conftest.$ac_objext \
7781 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007782LIBS=$ac_check_lib_save_LIBS
7783fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007785$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007786if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007787 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
7788fi
7789
7790 fi
7791 fi
7792
7793 # Check for libraries that X11R6 Xt/Xaw programs need.
7794 ac_save_LDFLAGS=$LDFLAGS
7795 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
7796 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
7797 # check for ICE first), but we must link in the order -lSM -lICE or
7798 # we get undefined symbols. So assume we have SM if we have ICE.
7799 # These have to be linked with before -lX11, unlike the other
7800 # libraries we check for below, so use a different variable.
7801 # John Interrante, Karl Berry
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007803$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007804if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007805 $as_echo_n "(cached) " >&6
7806else
7807 ac_check_lib_save_LIBS=$LIBS
7808LIBS="-lICE $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007810/* end confdefs.h. */
7811
7812/* Override any GCC internal prototype to avoid an error.
7813 Use char because int might match the return type of a GCC
7814 builtin and then its argument prototype would still apply. */
7815#ifdef __cplusplus
7816extern "C"
7817#endif
7818char IceConnectionNumber ();
7819int
7820main ()
7821{
7822return IceConnectionNumber ();
7823 ;
7824 return 0;
7825}
7826_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007827if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007828 ac_cv_lib_ICE_IceConnectionNumber=yes
7829else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007830 ac_cv_lib_ICE_IceConnectionNumber=no
Alexandre Julliard40664c02009-02-11 20:40:58 +01007831fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007832rm -f core conftest.err conftest.$ac_objext \
7833 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard40664c02009-02-11 20:40:58 +01007834LIBS=$ac_check_lib_save_LIBS
7835fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
Alexandre Julliard40664c02009-02-11 20:40:58 +01007837$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007838if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
Alexandre Julliard40664c02009-02-11 20:40:58 +01007839 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
7840fi
7841
7842 LDFLAGS=$ac_save_LDFLAGS
7843
7844fi
7845
7846
Rein Klazes7ff12562004-11-09 20:16:35 +00007847if test "$have_x" = "yes"
7848then
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007849 XLIB="-lX11"
Rein Klazes7ff12562004-11-09 20:16:35 +00007850 ac_save_CPPFLAGS="$CPPFLAGS"
7851 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
7852
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007854$as_echo_n "checking for -lX11... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007855if test "${ac_cv_lib_soname_X11+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007856 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007857else
7858 ac_check_soname_save_LIBS=$LIBS
7859LIBS="-lX11 $X_LIBS $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007861/* end confdefs.h. */
7862
7863/* Override any GCC internal prototype to avoid an error.
7864 Use char because int might match the return type of a GCC
7865 builtin and then its argument prototype would still apply. */
7866#ifdef __cplusplus
7867extern "C"
7868#endif
7869char XCreateWindow ();
7870int
7871main ()
7872{
7873return XCreateWindow ();
7874 ;
7875 return 0;
7876}
7877_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007878if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007879 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007880 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 +02007881 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'` ;;
7882 *) ac_cv_lib_soname_X11=`$ac_cv_path_LDD conftest$ac_exeext | grep "libX11\\.$LIBEXT" | sed -e "s/^.*\(libX11\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7883 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007884fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007885rm -f core conftest.err conftest.$ac_objext \
7886 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007887 LIBS=$ac_check_soname_save_LIBS
7888fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007889if test "x$ac_cv_lib_soname_X11" = "x"; then :
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007891$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007892
7893else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_X11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007895$as_echo "$ac_cv_lib_soname_X11" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007896
7897cat >>confdefs.h <<_ACEOF
7898#define SONAME_LIBX11 "$ac_cv_lib_soname_X11"
7899_ACEOF
7900
7901
7902fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007904$as_echo_n "checking for -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007905if test "${ac_cv_lib_soname_Xext+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007906 $as_echo_n "(cached) " >&6
Alexandre Julliarda8518542007-07-09 22:43:45 +02007907else
7908 ac_check_soname_save_LIBS=$LIBS
7909LIBS="-lXext $X_LIBS -lX11 $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007911/* end confdefs.h. */
7912
7913/* Override any GCC internal prototype to avoid an error.
7914 Use char because int might match the return type of a GCC
7915 builtin and then its argument prototype would still apply. */
7916#ifdef __cplusplus
7917extern "C"
7918#endif
7919char XextCreateExtension ();
7920int
7921main ()
7922{
7923return XextCreateExtension ();
7924 ;
7925 return 0;
7926}
7927_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007928if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarda8518542007-07-09 22:43:45 +02007929 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01007930 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 +02007931 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'` ;;
7932 *) ac_cv_lib_soname_Xext=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXext\\.$LIBEXT" | sed -e "s/^.*\(libXext\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
7933 esac
Alexandre Julliarda8518542007-07-09 22:43:45 +02007934fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007935rm -f core conftest.err conftest.$ac_objext \
7936 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarda8518542007-07-09 22:43:45 +02007937 LIBS=$ac_check_soname_save_LIBS
7938fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007939if test "x$ac_cv_lib_soname_Xext" = "x"; then :
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007941$as_echo "not found" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007942
7943else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007945$as_echo "$ac_cv_lib_soname_Xext" >&6; }
Alexandre Julliarda8518542007-07-09 22:43:45 +02007946
7947cat >>confdefs.h <<_ACEOF
7948#define SONAME_LIBXEXT "$ac_cv_lib_soname_Xext"
7949_ACEOF
7950
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007951 XLIB="-lXext $XLIB"
Alexandre Julliarda8518542007-07-09 22:43:45 +02007952fi
7953
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007954 for ac_header in X11/Xlib.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007955 X11/XKBlib.h \
7956 X11/Xutil.h \
Andrew Riedi23e2cb12007-03-22 12:06:19 -07007957 X11/Xcursor/Xcursor.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007958 X11/extensions/shape.h \
7959 X11/extensions/XInput.h \
7960 X11/extensions/XShm.h \
Chris Robinson42584652007-09-22 18:19:08 -07007961 X11/extensions/Xcomposite.h \
Alexandre Julliard7d00b052006-10-23 13:46:34 +02007962 X11/extensions/Xinerama.h \
Alexandre Julliard73482142005-08-03 19:21:04 +00007963 X11/extensions/Xrandr.h \
7964 X11/extensions/Xrender.h \
André Hentschel7b285a42009-09-19 19:08:09 +02007965 X11/extensions/xf86vmode.h \
7966 X11/extensions/xf86vmproto.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007967do :
7968 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7969ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_X11_XLIB_H
Alexandre Julliard73482142005-08-03 19:21:04 +00007970# include <X11/Xlib.h>
7971#endif
7972#ifdef HAVE_X11_XUTIL_H
7973# include <X11/Xutil.h>
7974#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007975"
7976eval as_val=\$$as_ac_Header
7977 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007978 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01007979#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00007980_ACEOF
Alexandre Julliard255b4862003-10-15 04:09:55 +00007981
7982fi
7983
7984done
7985
7986
7987 if test "$ac_cv_header_X11_XKBlib_h" = "yes"
7988 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbQueryExtension in -lX11" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01007990$as_echo_n "checking for XkbQueryExtension in -lX11... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007991if test "${ac_cv_lib_X11_XkbQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01007992 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00007993else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007994 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02007995LIBS="-lX11 $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02007996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00007997/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00007998
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02007999/* Override any GCC internal prototype to avoid an error.
8000 Use char because int might match the return type of a GCC
8001 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008002#ifdef __cplusplus
8003extern "C"
8004#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008005char XkbQueryExtension ();
8006int
8007main ()
8008{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008009return XkbQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008010 ;
8011 return 0;
8012}
8013_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008014if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008015 ac_cv_lib_X11_XkbQueryExtension=yes
Patrik Stridvall24110281999-02-04 10:09:54 +00008016else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008017 ac_cv_lib_X11_XkbQueryExtension=no
Patrik Stridvall24110281999-02-04 10:09:54 +00008018fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008019rm -f core conftest.err conftest.$ac_objext \
8020 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008021LIBS=$ac_check_lib_save_LIBS
8022fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008024$as_echo "$ac_cv_lib_X11_XkbQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008025if test "x$ac_cv_lib_X11_XkbQueryExtension" = x""yes; then :
Patrik Stridvall24110281999-02-04 10:09:54 +00008026
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008027$as_echo "#define HAVE_XKB 1" >>confdefs.h
Patrik Stridvall24110281999-02-04 10:09:54 +00008028
Patrik Stridvall24110281999-02-04 10:09:54 +00008029fi
8030
Alexandre Julliard255b4862003-10-15 04:09:55 +00008031 fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008032
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008033 if test "$ac_cv_header_X11_Xcursor_Xcursor_h" = "yes"
8034 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008036$as_echo_n "checking for -lXcursor... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008037if test "${ac_cv_lib_soname_Xcursor+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008038 $as_echo_n "(cached) " >&6
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008039else
8040 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008041LIBS="-lXcursor $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008043/* end confdefs.h. */
8044
8045/* Override any GCC internal prototype to avoid an error.
8046 Use char because int might match the return type of a GCC
8047 builtin and then its argument prototype would still apply. */
8048#ifdef __cplusplus
8049extern "C"
8050#endif
8051char XcursorImageLoadCursor ();
8052int
8053main ()
8054{
8055return XcursorImageLoadCursor ();
8056 ;
8057 return 0;
8058}
8059_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008060if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008061 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008062 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 +02008063 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'` ;;
8064 *) ac_cv_lib_soname_Xcursor=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcursor\\.$LIBEXT" | sed -e "s/^.*\(libXcursor\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8065 esac
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008066fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008067rm -f core conftest.err conftest.$ac_objext \
8068 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008069 LIBS=$ac_check_soname_save_LIBS
8070fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008071if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008073$as_echo "not found" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008074
8075else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcursor" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008077$as_echo "$ac_cv_lib_soname_Xcursor" >&6; }
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008078
8079cat >>confdefs.h <<_ACEOF
8080#define SONAME_LIBXCURSOR "$ac_cv_lib_soname_Xcursor"
8081_ACEOF
8082
8083
8084fi
Alexandre Julliard19a988a2007-07-09 22:42:28 +02008085 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008086 if test "x$ac_cv_lib_soname_Xcursor" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008087 case "x$with_xcursor" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008088 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 +01008089 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008090 *) as_fn_error "libxcursor ${notice_platform}development files not found, the Xcursor extension won't be supported.
8091This is an error since --with-xcursor was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008092esac
8093fi
8094
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008095 if test "$ac_cv_header_X11_extensions_XInput_h" = "yes"
8096 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008098$as_echo_n "checking for -lXi... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008099if test "${ac_cv_lib_soname_Xi+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008100 $as_echo_n "(cached) " >&6
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008101else
8102 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008103LIBS="-lXi $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008105/* end confdefs.h. */
8106
8107/* Override any GCC internal prototype to avoid an error.
8108 Use char because int might match the return type of a GCC
8109 builtin and then its argument prototype would still apply. */
8110#ifdef __cplusplus
8111extern "C"
8112#endif
8113char XOpenDevice ();
8114int
8115main ()
8116{
8117return XOpenDevice ();
8118 ;
8119 return 0;
8120}
8121_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008122if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008123 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008124 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 +02008125 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'` ;;
8126 *) ac_cv_lib_soname_Xi=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXi\\.$LIBEXT" | sed -e "s/^.*\(libXi\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8127 esac
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008128fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008129rm -f core conftest.err conftest.$ac_objext \
8130 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008131 LIBS=$ac_check_soname_save_LIBS
8132fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008133if test "x$ac_cv_lib_soname_Xi" = "x"; then :
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008135$as_echo "not found" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008136
8137else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xi" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008139$as_echo "$ac_cv_lib_soname_Xi" >&6; }
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008140
8141cat >>confdefs.h <<_ACEOF
8142#define SONAME_LIBXI "$ac_cv_lib_soname_Xi"
8143_ACEOF
8144
8145
8146fi
Alexandre Julliardd68d4332007-07-09 22:42:49 +02008147 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008148 if test "x$ac_cv_lib_soname_Xi" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008149 case "x$with_xinput" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008150 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 +01008151 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008152 *) as_fn_error "libxi ${notice_platform}development files not found, the Xinput extension won't be supported.
8153This is an error since --with-xinput was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008154esac
8155fi
8156
Alexandre Julliard255b4862003-10-15 04:09:55 +00008157 if test "$ac_cv_header_X11_extensions_XShm_h" = "yes"
8158 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008160$as_echo_n "checking for XShmQueryExtension in -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008161if test "${ac_cv_lib_Xext_XShmQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008162 $as_echo_n "(cached) " >&6
Francois Jacques5b6879c2000-07-28 23:04:54 +00008163else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008164 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008165LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008166cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008167/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008168
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008169/* Override any GCC internal prototype to avoid an error.
8170 Use char because int might match the return type of a GCC
8171 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008172#ifdef __cplusplus
8173extern "C"
8174#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008175char XShmQueryExtension ();
8176int
8177main ()
8178{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008179return XShmQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008180 ;
8181 return 0;
8182}
8183_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008184if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008185 ac_cv_lib_Xext_XShmQueryExtension=yes
Francois Jacques5b6879c2000-07-28 23:04:54 +00008186else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008187 ac_cv_lib_Xext_XShmQueryExtension=no
Francois Jacques5b6879c2000-07-28 23:04:54 +00008188fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008189rm -f core conftest.err conftest.$ac_objext \
8190 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008191LIBS=$ac_check_lib_save_LIBS
8192fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008194$as_echo "$ac_cv_lib_Xext_XShmQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008195if test "x$ac_cv_lib_Xext_XShmQueryExtension" = x""yes; then :
Francois Jacques5b6879c2000-07-28 23:04:54 +00008196
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008197$as_echo "#define HAVE_LIBXXSHM 1" >>confdefs.h
Francois Jacques5b6879c2000-07-28 23:04:54 +00008198
Francois Jacques5b6879c2000-07-28 23:04:54 +00008199fi
8200
Alexandre Julliard255b4862003-10-15 04:09:55 +00008201 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008202 if test "$ac_cv_lib_Xext_XShmQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008203 case "x$with_xshm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008204 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 +01008205 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008206 *) as_fn_error "XShm ${notice_platform}development files not found, X Shared Memory won't be supported.
8207This is an error since --with-xshm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008208esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008209fi
8210
Alexandre Julliard255b4862003-10-15 04:09:55 +00008211 if test "$ac_cv_header_X11_extensions_shape_h" = "yes"
8212 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008214$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008215if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008216 $as_echo_n "(cached) " >&6
Ove Kaavenc90fb252001-01-02 22:39:14 +00008217else
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008218 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008219LIBS="-lXext $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008221/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008222
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008223/* Override any GCC internal prototype to avoid an error.
8224 Use char because int might match the return type of a GCC
8225 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008226#ifdef __cplusplus
8227extern "C"
8228#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008229char XShapeQueryExtension ();
8230int
8231main ()
8232{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008233return XShapeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008234 ;
8235 return 0;
8236}
8237_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008238if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008239 ac_cv_lib_Xext_XShapeQueryExtension=yes
Ove Kaavenc90fb252001-01-02 22:39:14 +00008240else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008241 ac_cv_lib_Xext_XShapeQueryExtension=no
Ove Kaavenc90fb252001-01-02 22:39:14 +00008242fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008243rm -f core conftest.err conftest.$ac_objext \
8244 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008245LIBS=$ac_check_lib_save_LIBS
8246fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008248$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008249if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
Ove Kaavenc90fb252001-01-02 22:39:14 +00008250
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008251$as_echo "#define HAVE_LIBXSHAPE 1" >>confdefs.h
Ove Kaavenc90fb252001-01-02 22:39:14 +00008252
Ove Kaavenc90fb252001-01-02 22:39:14 +00008253fi
8254
Alexandre Julliard255b4862003-10-15 04:09:55 +00008255 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008256 if test "$ac_cv_lib_Xext_XShapeQueryExtension" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008257 case "x$with_xshape" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008258 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 +01008259 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008260 *) as_fn_error "XShape ${notice_platform}development files not found, XShape won't be supported.
8261This is an error since --with-xshape was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008262esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008263fi
8264
André Hentschel7b285a42009-09-19 19:08:09 +02008265 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 +00008266 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008268$as_echo_n "checking for -lXxf86vm... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008269if test "${ac_cv_lib_soname_Xxf86vm+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008270 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008271else
Francois Gougeta49beb42008-06-26 14:02:17 +02008272 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008273LIBS="-lXxf86vm $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008275/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008276
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008277/* Override any GCC internal prototype to avoid an error.
8278 Use char because int might match the return type of a GCC
8279 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008280#ifdef __cplusplus
8281extern "C"
8282#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008283char XF86VidModeQueryExtension ();
8284int
8285main ()
8286{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008287return XF86VidModeQueryExtension ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008288 ;
8289 return 0;
8290}
8291_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008292if ac_fn_c_try_link "$LINENO"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008293 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008294 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 +02008295 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'` ;;
8296 *) ac_cv_lib_soname_Xxf86vm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXxf86vm\\.$LIBEXT" | sed -e "s/^.*\(libXxf86vm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8297 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008298fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008299rm -f core conftest.err conftest.$ac_objext \
8300 conftest$ac_exeext conftest.$ac_ext
Francois Gougeta49beb42008-06-26 14:02:17 +02008301 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008302fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008303if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008305$as_echo "not found" >&6; }
Patrik Stridvall24110281999-02-04 10:09:54 +00008306
Francois Gougeta49beb42008-06-26 14:02:17 +02008307else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xxf86vm" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008309$as_echo "$ac_cv_lib_soname_Xxf86vm" >&6; }
Francois Gougeta49beb42008-06-26 14:02:17 +02008310
8311cat >>confdefs.h <<_ACEOF
8312#define SONAME_LIBXXF86VM "$ac_cv_lib_soname_Xxf86vm"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008313_ACEOF
John R. Sheetsf2b77cc2000-05-23 21:18:51 +00008314
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008315
Patrik Stridvall24110281999-02-04 10:09:54 +00008316fi
Alexandre Julliard255b4862003-10-15 04:09:55 +00008317 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008318 if test "x$ac_cv_lib_soname_Xxf86vm" = "x"; then :
Francois Gougeta49beb42008-06-26 14:02:17 +02008319 case "x$with_xxf86vm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008320 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 +01008321 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008322 *) as_fn_error "libXxf86vm ${notice_platform}development files not found, XFree86 Vidmode won't be supported.
8323This is an error since --with-xxf86vm was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008324esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008325fi
8326
Alexandre Julliarda8518542007-07-09 22:43:45 +02008327 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 +02008328 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008330$as_echo_n "checking for -lXrender... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008331if test "${ac_cv_lib_soname_Xrender+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008332 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008333else
8334 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008335LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008337/* end confdefs.h. */
8338
8339/* Override any GCC internal prototype to avoid an error.
8340 Use char because int might match the return type of a GCC
8341 builtin and then its argument prototype would still apply. */
8342#ifdef __cplusplus
8343extern "C"
8344#endif
8345char XRenderQueryExtension ();
8346int
8347main ()
8348{
8349return XRenderQueryExtension ();
8350 ;
8351 return 0;
8352}
8353_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008354if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008355 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008356 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 +02008357 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'` ;;
8358 *) ac_cv_lib_soname_Xrender=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrender\\.$LIBEXT" | sed -e "s/^.*\(libXrender\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8359 esac
Alexandre Julliard629639e2007-07-04 12:47:57 +02008360fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008361rm -f core conftest.err conftest.$ac_objext \
8362 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008363 LIBS=$ac_check_soname_save_LIBS
8364fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008365if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008367$as_echo "not found" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008368
8369else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008371$as_echo "$ac_cv_lib_soname_Xrender" >&6; }
Alexandre Julliard629639e2007-07-04 12:47:57 +02008372
8373cat >>confdefs.h <<_ACEOF
8374#define SONAME_LIBXRENDER "$ac_cv_lib_soname_Xrender"
8375_ACEOF
8376
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderSetPictureTransform in -lXrender" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008378$as_echo_n "checking for XRenderSetPictureTransform in -lXrender... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008379if test "${ac_cv_lib_Xrender_XRenderSetPictureTransform+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008380 $as_echo_n "(cached) " >&6
Alexandre Julliard629639e2007-07-04 12:47:57 +02008381else
8382 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008383LIBS="-lXrender $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008385/* end confdefs.h. */
8386
8387/* Override any GCC internal prototype to avoid an error.
8388 Use char because int might match the return type of a GCC
8389 builtin and then its argument prototype would still apply. */
8390#ifdef __cplusplus
8391extern "C"
8392#endif
8393char XRenderSetPictureTransform ();
8394int
8395main ()
8396{
8397return XRenderSetPictureTransform ();
8398 ;
8399 return 0;
8400}
8401_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008402if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008403 ac_cv_lib_Xrender_XRenderSetPictureTransform=yes
8404else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008405 ac_cv_lib_Xrender_XRenderSetPictureTransform=no
Alexandre Julliard629639e2007-07-04 12:47:57 +02008406fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008407rm -f core conftest.err conftest.$ac_objext \
8408 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard629639e2007-07-04 12:47:57 +02008409LIBS=$ac_check_lib_save_LIBS
8410fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderSetPictureTransform" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008412$as_echo "$ac_cv_lib_Xrender_XRenderSetPictureTransform" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008413if test "x$ac_cv_lib_Xrender_XRenderSetPictureTransform" = x""yes; then :
Alexandre Julliard629639e2007-07-04 12:47:57 +02008414
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008415$as_echo "#define HAVE_XRENDERSETPICTURETRANSFORM 1" >>confdefs.h
Alexandre Julliard629639e2007-07-04 12:47:57 +02008416
8417fi
8418
8419fi
8420
Alexandre Julliard629639e2007-07-04 12:47:57 +02008421 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008422 if test "x$ac_cv_lib_soname_Xrender" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008423 case "x$with_xrender" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008424 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 +01008425 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008426 *) as_fn_error "libxrender ${notice_platform}development files not found, XRender won't be supported.
8427This is an error since --with-xrender was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008428esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008429fi
8430
Alexandre Julliard629639e2007-07-04 12:47:57 +02008431 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 +00008432 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008434/* end confdefs.h. */
Mike McCormackc7c9f932004-04-07 03:57:35 +00008435#include <X11/Xlib.h>
8436#include <X11/extensions/Xrandr.h>
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008437int
8438main ()
8439{
Mike McCormackc7c9f932004-04-07 03:57:35 +00008440static typeof(XRRSetScreenConfigAndRate) * func;
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008441 ;
8442 return 0;
8443}
8444_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008445if ac_fn_c_try_compile "$LINENO"; then :
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008447$as_echo_n "checking for -lXrandr... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008448if test "${ac_cv_lib_soname_Xrandr+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008449 $as_echo_n "(cached) " >&6
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008450else
8451 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008452LIBS="-lXrandr $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008454/* end confdefs.h. */
8455
8456/* Override any GCC internal prototype to avoid an error.
8457 Use char because int might match the return type of a GCC
8458 builtin and then its argument prototype would still apply. */
8459#ifdef __cplusplus
8460extern "C"
8461#endif
8462char XRRQueryExtension ();
8463int
8464main ()
8465{
8466return XRRQueryExtension ();
8467 ;
8468 return 0;
8469}
8470_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008471if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008472 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008473 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 +02008474 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'` ;;
8475 *) ac_cv_lib_soname_Xrandr=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXrandr\\.$LIBEXT" | sed -e "s/^.*\(libXrandr\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8476 esac
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008477fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008478rm -f core conftest.err conftest.$ac_objext \
8479 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008480 LIBS=$ac_check_soname_save_LIBS
8481fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008482if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008484$as_echo "not found" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008485
8486else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xrandr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008488$as_echo "$ac_cv_lib_soname_Xrandr" >&6; }
Alexandre Julliardaf928ec2007-07-04 12:45:03 +02008489
8490cat >>confdefs.h <<_ACEOF
8491#define SONAME_LIBXRANDR "$ac_cv_lib_soname_Xrandr"
8492_ACEOF
8493
8494
8495fi
Alex Pasadyn8f174bc2003-10-15 03:28:04 +00008496fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliard255b4862003-10-15 04:09:55 +00008498 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008499 if test "x$ac_cv_lib_soname_Xrandr" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008500 case "x$with_xrandr" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008501 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 +01008502 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008503 *) as_fn_error "libxrandr ${notice_platform}development files not found, XRandr won't be supported.
8504This is an error since --with-xrandr was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008505esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008506fi
8507
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008508 if test "$ac_cv_header_X11_extensions_Xinerama_h" = "yes"
8509 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008511/* end confdefs.h. */
8512#include <X11/Xlib.h>
8513#include <X11/extensions/Xinerama.h>
8514int
8515main ()
8516{
8517static typeof(XineramaQueryScreens) * func;
8518 ;
8519 return 0;
8520}
8521_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008522if ac_fn_c_try_compile "$LINENO"; then :
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008524$as_echo_n "checking for -lXinerama... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008525if test "${ac_cv_lib_soname_Xinerama+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008526 $as_echo_n "(cached) " >&6
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008527else
8528 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008529LIBS="-lXinerama $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008531/* end confdefs.h. */
8532
8533/* Override any GCC internal prototype to avoid an error.
8534 Use char because int might match the return type of a GCC
8535 builtin and then its argument prototype would still apply. */
8536#ifdef __cplusplus
8537extern "C"
8538#endif
8539char XineramaQueryScreens ();
8540int
8541main ()
8542{
8543return XineramaQueryScreens ();
8544 ;
8545 return 0;
8546}
8547_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008548if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008549 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008550 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 +02008551 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'` ;;
8552 *) ac_cv_lib_soname_Xinerama=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXinerama\\.$LIBEXT" | sed -e "s/^.*\(libXinerama\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8553 esac
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008554fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008555rm -f core conftest.err conftest.$ac_objext \
8556 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008557 LIBS=$ac_check_soname_save_LIBS
8558fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008559if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008561$as_echo "not found" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008562
8563else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xinerama" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008565$as_echo "$ac_cv_lib_soname_Xinerama" >&6; }
Alexandre Julliard35d2fd72007-07-04 12:48:50 +02008566
8567cat >>confdefs.h <<_ACEOF
8568#define SONAME_LIBXINERAMA "$ac_cv_lib_soname_Xinerama"
8569_ACEOF
8570
8571
8572fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008573fi
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8575 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008576 if test "x$ac_cv_lib_soname_Xinerama" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008577 case "x$with_xinerama" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008578 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 +01008579 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008580 *) as_fn_error "libxinerama ${notice_platform}development files not found, multi-monitor setups won't be supported.
8581This is an error since --with-xinerama was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008582esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008583fi
8584
Chris Robinson42584652007-09-22 18:19:08 -07008585 if test "$ac_cv_header_X11_extensions_Xcomposite_h" = "yes"
8586 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lXcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008588$as_echo_n "checking for -lXcomposite... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008589if test "${ac_cv_lib_soname_Xcomposite+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008590 $as_echo_n "(cached) " >&6
Chris Robinson42584652007-09-22 18:19:08 -07008591else
8592 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008593LIBS="-lXcomposite $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008595/* end confdefs.h. */
8596
8597/* Override any GCC internal prototype to avoid an error.
8598 Use char because int might match the return type of a GCC
8599 builtin and then its argument prototype would still apply. */
8600#ifdef __cplusplus
8601extern "C"
8602#endif
8603char XCompositeRedirectWindow ();
8604int
8605main ()
8606{
8607return XCompositeRedirectWindow ();
8608 ;
8609 return 0;
8610}
8611_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008612if ac_fn_c_try_link "$LINENO"; then :
Chris Robinson42584652007-09-22 18:19:08 -07008613 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008614 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 -07008615 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'` ;;
8616 *) ac_cv_lib_soname_Xcomposite=`$ac_cv_path_LDD conftest$ac_exeext | grep "libXcomposite\\.$LIBEXT" | sed -e "s/^.*\(libXcomposite\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8617 esac
Chris Robinson42584652007-09-22 18:19:08 -07008618fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008619rm -f core conftest.err conftest.$ac_objext \
8620 conftest$ac_exeext conftest.$ac_ext
Chris Robinson42584652007-09-22 18:19:08 -07008621 LIBS=$ac_check_soname_save_LIBS
8622fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008623if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008625$as_echo "not found" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008626
8627else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_Xcomposite" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008629$as_echo "$ac_cv_lib_soname_Xcomposite" >&6; }
Chris Robinson42584652007-09-22 18:19:08 -07008630
8631cat >>confdefs.h <<_ACEOF
8632#define SONAME_LIBXCOMPOSITE "$ac_cv_lib_soname_Xcomposite"
8633_ACEOF
8634
8635
8636fi
Chris Robinson42584652007-09-22 18:19:08 -07008637 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008638 if test "x$ac_cv_lib_soname_Xcomposite" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008639 case "x$with_xcomposite" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008640 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 +01008641 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008642 *) as_fn_error "libxcomposite ${notice_platform}development files not found, Xcomposite won't be supported.
8643This is an error since --with-xcomposite was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008644esac
Chris Robinson42584652007-09-22 18:19:08 -07008645fi
8646
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008647 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 +09008648#include <X11/Xlib.h>
8649#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008650"
8651if test "x$ac_cv_member_XICCallback_callback" = x""yes; then :
Kusanagi Kouichi75e40222008-04-16 00:34:54 +09008652
8653cat >>confdefs.h <<_ACEOF
8654#define HAVE_XICCALLBACK_CALLBACK 1
8655_ACEOF
8656
8657
8658fi
8659
8660
Alexandre Julliard7d00b052006-10-23 13:46:34 +02008661
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008662 opengl_msg=""
8663 if test "x$with_opengl" != "xno"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008664 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008665 for ac_header in GL/gl.h GL/glx.h GL/glu.h
8666do :
8667 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8668ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_GL_GLX_H
Alexandre Julliard73482142005-08-03 19:21:04 +00008669# include <GL/glx.h>
8670#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008671"
8672eval as_val=\$$as_ac_Header
8673 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008674 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01008675#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +00008676_ACEOF
8677
8678fi
8679
8680done
8681
Alexandre Julliard73482142005-08-03 19:21:04 +00008682 if test "$ac_cv_header_GL_gl_h" = "yes" -a "$ac_cv_header_GL_glx_h" = "yes"
8683 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for up-to-date OpenGL version" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008685$as_echo_n "checking for up-to-date OpenGL version... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008686if test "${wine_cv_opengl_header_version_OK+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008687 $as_echo_n "(cached) " >&6
Lionel Ulmer5c085701999-02-28 19:48:53 +00008688else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008690/* end confdefs.h. */
Lionel Ulmer5c085701999-02-28 19:48:53 +00008691#include <GL/gl.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008692int
8693main ()
8694{
Lionel Ulmer5c085701999-02-28 19:48:53 +00008695GLenum test = GL_UNSIGNED_SHORT_5_6_5;
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008696 ;
8697 return 0;
8698}
8699_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008700if ac_fn_c_try_compile "$LINENO"; then :
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008701 wine_cv_opengl_header_version_OK="yes"
Lionel Ulmer5c085701999-02-28 19:48:53 +00008702else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008703 wine_cv_opengl_header_version_OK="no"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008704fi
Jeremy White0ebeb532006-06-20 13:18:41 +02008705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008706fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_opengl_header_version_OK" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008708$as_echo "$wine_cv_opengl_header_version_OK" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008709
Alexandre Julliardcc6a08c2006-08-24 14:34:22 +02008710 if test "$wine_cv_opengl_header_version_OK" = "yes"
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008711 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008713$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008714if test "${ac_cv_lib_soname_GL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008715 $as_echo_n "(cached) " >&6
Patrik Stridvall24110281999-02-04 10:09:54 +00008716else
Alexandre Julliard31353e12007-07-04 12:44:12 +02008717 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008718LIBS="-lGL $X_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008720/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008721
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008722/* Override any GCC internal prototype to avoid an error.
8723 Use char because int might match the return type of a GCC
8724 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008725#ifdef __cplusplus
8726extern "C"
8727#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008728char glXCreateContext ();
8729int
8730main ()
8731{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008732return glXCreateContext ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008733 ;
8734 return 0;
8735}
8736_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008737if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard31353e12007-07-04 12:44:12 +02008738 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008739 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 +02008740 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'` ;;
8741 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8742 esac
Patrik Stridvall24110281999-02-04 10:09:54 +00008743fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008744rm -f core conftest.err conftest.$ac_objext \
8745 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard31353e12007-07-04 12:44:12 +02008746 LIBS=$ac_check_soname_save_LIBS
Patrik Stridvall24110281999-02-04 10:09:54 +00008747fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008748if test "x$ac_cv_lib_soname_GL" = "x"; then :
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008750$as_echo "not found" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008752$as_echo_n "checking for -lGL... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008753if test "${ac_cv_lib_soname_GL+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008754 $as_echo_n "(cached) " >&6
Francois Gougetd701ee22007-12-18 10:17:20 +01008755else
8756 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008757LIBS="-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 +02008758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008759/* end confdefs.h. */
8760
8761/* Override any GCC internal prototype to avoid an error.
8762 Use char because int might match the return type of a GCC
8763 builtin and then its argument prototype would still apply. */
8764#ifdef __cplusplus
8765extern "C"
8766#endif
8767char glXCreateContext ();
8768int
8769main ()
8770{
8771return glXCreateContext ();
8772 ;
8773 return 0;
8774}
8775_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008776if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetd701ee22007-12-18 10:17:20 +01008777 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008778 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 +01008779 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'` ;;
8780 *) ac_cv_lib_soname_GL=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGL\\.$LIBEXT" | sed -e "s/^.*\(libGL\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8781 esac
Francois Gougetd701ee22007-12-18 10:17:20 +01008782fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008783rm -f core conftest.err conftest.$ac_objext \
8784 conftest$ac_exeext conftest.$ac_ext
Francois Gougetd701ee22007-12-18 10:17:20 +01008785 LIBS=$ac_check_soname_save_LIBS
8786fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008787if test "x$ac_cv_lib_soname_GL" = "x"; then :
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008789$as_echo "not found" >&6; }
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008790 if test -f /usr/X11R6/lib/libGL.a
Francois Gougetd701ee22007-12-18 10:17:20 +01008791 then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008792 opengl_msg="/usr/X11R6/lib/libGL.a is present on your system.
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008793This probably prevents linking to OpenGL. Try deleting the file and restarting configure."
Francois Gougetd701ee22007-12-18 10:17:20 +01008794 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008795 opengl_msg="No OpenGL library found on this system."
Francois Gougetd701ee22007-12-18 10:17:20 +01008796 fi
8797else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008799$as_echo "$ac_cv_lib_soname_GL" >&6; }
Francois Gougetd701ee22007-12-18 10:17:20 +01008800
8801cat >>confdefs.h <<_ACEOF
8802#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8803_ACEOF
8804
8805 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 +01008806
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008807$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Francois Gougetd701ee22007-12-18 10:17:20 +01008808
8809fi
Alexandre Julliard31353e12007-07-04 12:44:12 +02008810else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GL" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008812$as_echo "$ac_cv_lib_soname_GL" >&6; }
Alexandre Julliard31353e12007-07-04 12:44:12 +02008813
8814cat >>confdefs.h <<_ACEOF
8815#define SONAME_LIBGL "$ac_cv_lib_soname_GL"
8816_ACEOF
8817
8818 OPENGL_LIBS="-lGL"
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008819
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008820$as_echo "#define HAVE_OPENGL 1" >>confdefs.h
Marcus Meissner6bb6d4c2000-08-09 22:21:08 +00008821
Alexandre Julliardc84c4782006-09-22 09:36:12 +02008822fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008823 if test "$ac_cv_header_GL_glu_h" = "yes"
8824 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lGLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008826$as_echo_n "checking for -lGLU... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008827if test "${ac_cv_lib_soname_GLU+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008828 $as_echo_n "(cached) " >&6
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008829else
Alexandre Julliardad798732008-05-01 13:29:02 +02008830 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008831LIBS="-lGLU $OPENGL_LIBS $X_LIBS $X_PRE_LIBS $XLIB -lm $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008833/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008834
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008835/* Override any GCC internal prototype to avoid an error.
8836 Use char because int might match the return type of a GCC
8837 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008838#ifdef __cplusplus
8839extern "C"
8840#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008841char gluLookAt ();
8842int
8843main ()
8844{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008845return gluLookAt ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008846 ;
8847 return 0;
8848}
8849_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008850if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008851 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01008852 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 +02008853 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'` ;;
8854 *) ac_cv_lib_soname_GLU=`$ac_cv_path_LDD conftest$ac_exeext | grep "libGLU\\.$LIBEXT" | sed -e "s/^.*\(libGLU\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
8855 esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008856fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008857rm -f core conftest.err conftest.$ac_objext \
8858 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardad798732008-05-01 13:29:02 +02008859 LIBS=$ac_check_soname_save_LIBS
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008860fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008861if test "x$ac_cv_lib_soname_GLU" = "x"; then :
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008863$as_echo "not found" >&6; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +00008864
Alexandre Julliardad798732008-05-01 13:29:02 +02008865else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_GLU" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008867$as_echo "$ac_cv_lib_soname_GLU" >&6; }
Alexandre Julliardad798732008-05-01 13:29:02 +02008868
8869cat >>confdefs.h <<_ACEOF
8870#define SONAME_LIBGLU "$ac_cv_lib_soname_GLU"
8871_ACEOF
8872
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02008873
Alexandre Julliardad798732008-05-01 13:29:02 +02008874fi
Alexandre Julliardad798732008-05-01 13:29:02 +02008875 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008876 if test "x$ac_cv_lib_soname_GLU" = "x"; then :
Alexandre Julliardad798732008-05-01 13:29:02 +02008877 case "x$with_glu" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008878 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 +02008879 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008880 *) as_fn_error "libGLU ${notice_platform}development files not found, GLU won't be supported.
8881This is an error since --with-glu was requested." "$LINENO" 5 ;;
Alexandre Julliardad798732008-05-01 13:29:02 +02008882esac
Marcus Meissnerb63ab442001-06-08 19:02:57 +00008883fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +02008884 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008885 opengl_msg="Old Mesa headers detected. Consider upgrading your Mesa libraries."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008886 fi
Roderick Colenbranderbc66d7e2006-08-24 01:11:27 +02008887 else
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008888 opengl_msg="OpenGL development headers not found."
Lionel Ulmerfbc15b12000-04-29 14:23:22 +00008889 fi
Alexandre Julliard8e9504d2008-09-24 13:11:11 +02008890 test -n "$opengl_msg" && enable_opengl32=${enable_opengl32:-no}
8891 test "x$ac_cv_lib_soname_GLU" = "x" && enable_glu32=${enable_glu32:-no}
8892 else
8893 enable_opengl32=${enable_opengl32:-no}
8894 enable_glu32=${enable_glu32:-no}
Patrik Stridvall24110281999-02-04 10:09:54 +00008895 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008896 if test -n "$opengl_msg"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008897 case "x$with_opengl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01008898 x) as_fn_append wine_warnings "|$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008899OpenGL and Direct3D won't be supported." ;;
8900 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008901 *) as_fn_error "$opengl_msg
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008902OpenGL and Direct3D won't be supported.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008903This is an error since --with-opengl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01008904esac
8905fi
8906
Francois Gouget6f670b12002-10-10 17:54:27 +00008907 NASLIBS=""
8908
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008909 for ac_header in audio/audiolib.h
8910do :
8911 ac_fn_c_check_header_mongrel "$LINENO" "audio/audiolib.h" "ac_cv_header_audio_audiolib_h" "$ac_includes_default"
8912if test "x$ac_cv_header_audio_audiolib_h" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008913 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008914#define HAVE_AUDIO_AUDIOLIB_H 1
Francois Gouget6f670b12002-10-10 17:54:27 +00008915_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008916 for ac_header in audio/soundlib.h
8917do :
8918 ac_fn_c_check_header_compile "$LINENO" "audio/soundlib.h" "ac_cv_header_audio_soundlib_h" "#include <audio/audiolib.h>
8919"
8920if test "x$ac_cv_header_audio_soundlib_h" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008921 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008922#define HAVE_AUDIO_SOUNDLIB_H 1
Francois Gouget6f670b12002-10-10 17:54:27 +00008923_ACEOF
8924
8925fi
8926
8927done
8928
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AuCreateFlow in -laudio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008930$as_echo_n "checking for AuCreateFlow in -laudio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008931if test "${ac_cv_lib_audio_AuCreateFlow+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008932 $as_echo_n "(cached) " >&6
Francois Gouget6f670b12002-10-10 17:54:27 +00008933else
8934 ac_check_lib_save_LIBS=$LIBS
Alexandre Julliardfd03c502009-08-17 15:11:08 +02008935LIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008936cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00008937/* end confdefs.h. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008938
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008939/* Override any GCC internal prototype to avoid an error.
8940 Use char because int might match the return type of a GCC
8941 builtin and then its argument prototype would still apply. */
Francois Gouget6f670b12002-10-10 17:54:27 +00008942#ifdef __cplusplus
8943extern "C"
8944#endif
Francois Gouget6f670b12002-10-10 17:54:27 +00008945char AuCreateFlow ();
8946int
8947main ()
8948{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02008949return AuCreateFlow ();
Francois Gouget6f670b12002-10-10 17:54:27 +00008950 ;
8951 return 0;
8952}
8953_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008954if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008955 ac_cv_lib_audio_AuCreateFlow=yes
8956else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008957 ac_cv_lib_audio_AuCreateFlow=no
Francois Gouget6f670b12002-10-10 17:54:27 +00008958fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008959rm -f core conftest.err conftest.$ac_objext \
8960 conftest$ac_exeext conftest.$ac_ext
Francois Gouget6f670b12002-10-10 17:54:27 +00008961LIBS=$ac_check_lib_save_LIBS
8962fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audio_AuCreateFlow" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008964$as_echo "$ac_cv_lib_audio_AuCreateFlow" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008965if test "x$ac_cv_lib_audio_AuCreateFlow" = x""yes; then :
Francois Gouget6f670b12002-10-10 17:54:27 +00008966
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008967$as_echo "#define HAVE_NAS 1" >>confdefs.h
Francois Gouget6f670b12002-10-10 17:54:27 +00008968
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XauGetBestAuthByAddr in -lXau" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01008970$as_echo_n "checking for XauGetBestAuthByAddr in -lXau... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008971if test "${ac_cv_lib_Xau_XauGetBestAuthByAddr+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01008972 $as_echo_n "(cached) " >&6
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008973else
8974 ac_check_lib_save_LIBS=$LIBS
8975LIBS="-lXau $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008977/* end confdefs.h. */
8978
8979/* Override any GCC internal prototype to avoid an error.
8980 Use char because int might match the return type of a GCC
8981 builtin and then its argument prototype would still apply. */
8982#ifdef __cplusplus
8983extern "C"
8984#endif
8985char XauGetBestAuthByAddr ();
8986int
8987main ()
8988{
8989return XauGetBestAuthByAddr ();
8990 ;
8991 return 0;
8992}
8993_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008994if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008995 ac_cv_lib_Xau_XauGetBestAuthByAddr=yes
8996else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008997 ac_cv_lib_Xau_XauGetBestAuthByAddr=no
Gerald Pfeifer575d8942007-03-25 00:44:50 +01008998fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02008999rm -f core conftest.err conftest.$ac_objext \
9000 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009001LIBS=$ac_check_lib_save_LIBS
9002fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xau_XauGetBestAuthByAddr" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009004$as_echo "$ac_cv_lib_Xau_XauGetBestAuthByAddr" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009005if test "x$ac_cv_lib_Xau_XauGetBestAuthByAddr" = x""yes; then :
Alexandre Julliardfd03c502009-08-17 15:11:08 +02009006 NASLIBS="-lXau -laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009007else
Alexandre Julliardfd03c502009-08-17 15:11:08 +02009008 NASLIBS="-laudio -lXt $X_LIBS $XLIB $X_EXTRA_LIBS"
Gerald Pfeifer575d8942007-03-25 00:44:50 +01009009fi
9010
9011
Francois Gouget6f670b12002-10-10 17:54:27 +00009012fi
9013
9014fi
9015
9016done
9017
9018
Ove Kaaven1eb593c1999-02-14 09:34:46 +00009019 CPPFLAGS="$ac_save_CPPFLAGS"
Patrik Stridvallea584721998-11-01 16:22:07 +00009020else
9021 XLIB=""
9022 X_CFLAGS=""
9023 X_LIBS=""
Alexandre Julliarddbb535e2008-08-25 12:12:28 +02009024 enable_winex11_drv=${enable_winex11_drv:-no}
9025 enable_opengl32=${enable_opengl32:-no}
9026 enable_glu32=${enable_glu32:-no}
Patrik Stridvallea584721998-11-01 16:22:07 +00009027fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009028if test "x$XLIB" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009029 case "x$with_x" in
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009030 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009031 *) as_fn_error "X ${notice_platform}development files not found. Wine will be built
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009032without X support, which probably isn't what you want. You will need to install
Alexandre Julliardd2c8bfb2008-11-24 13:45:25 +01009033${notice_platform}development packages of Xlib/Xfree86 at the very least.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009034Use the --without-x option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009035esac
9036fi
9037
Alexandre Julliard902da691995-11-05 14:39:02 +00009038
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009039XML2LIBS=""
9040
9041XML2INCL=""
9042
Mike McCormackf3719a82005-09-03 09:39:38 +00009043XSLTINCL=""
9044
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009045if test "x$with_xml" != "xno"
Mike McCormack90c75bd2005-08-08 18:36:53 +00009046then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009047 ac_save_CPPFLAGS="$CPPFLAGS"
9048 if test "$PKG_CONFIG" != "false"
9049 then
9050 ac_xml_libs="`$PKG_CONFIG --libs libxml-2.0 2>/dev/null`"
9051 ac_xml_cflags="`$PKG_CONFIG --cflags libxml-2.0 2>/dev/null`"
9052 else
9053 ac_xml_libs="`xml2-config --libs 2>/dev/null`"
9054 ac_xml_cflags="`xml2-config --cflags 2>/dev/null`"
9055 fi
9056 CPPFLAGS="$CPPFLAGS $ac_xml_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009057 for ac_header in libxml/parser.h
9058do :
9059 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
9060if test "x$ac_cv_header_libxml_parser_h" = x""yes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009061 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009062#define HAVE_LIBXML_PARSER_H 1
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009063_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009065$as_echo_n "checking for xmlParseMemory in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009066if test "${ac_cv_lib_xml2_xmlParseMemory+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009067 $as_echo_n "(cached) " >&6
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009068else
9069 ac_check_lib_save_LIBS=$LIBS
Mike McCormack90c75bd2005-08-08 18:36:53 +00009070LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009072/* end confdefs.h. */
9073
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009074/* Override any GCC internal prototype to avoid an error.
9075 Use char because int might match the return type of a GCC
9076 builtin and then its argument prototype would still apply. */
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009077#ifdef __cplusplus
9078extern "C"
9079#endif
Mike McCormack90c75bd2005-08-08 18:36:53 +00009080char xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009081int
9082main ()
9083{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009084return xmlParseMemory ();
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009085 ;
9086 return 0;
9087}
9088_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009089if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack90c75bd2005-08-08 18:36:53 +00009090 ac_cv_lib_xml2_xmlParseMemory=yes
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009091else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009092 ac_cv_lib_xml2_xmlParseMemory=no
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009093fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009094rm -f core conftest.err conftest.$ac_objext \
9095 conftest$ac_exeext conftest.$ac_ext
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009096LIBS=$ac_check_lib_save_LIBS
9097fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009099$as_echo "$ac_cv_lib_xml2_xmlParseMemory" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009100if test "x$ac_cv_lib_xml2_xmlParseMemory" = x""yes; then :
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009101
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009102$as_echo "#define HAVE_LIBXML2 1" >>confdefs.h
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009103
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009104 XML2LIBS="$ac_xml_libs"
9105 XML2INCL="$ac_xml_cflags"
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009106fi
9107
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlReadMemory in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009109$as_echo_n "checking for xmlReadMemory in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009110if test "${ac_cv_lib_xml2_xmlReadMemory+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009111 $as_echo_n "(cached) " >&6
Mike McCormack70adb8f2005-08-12 10:35:17 +00009112else
9113 ac_check_lib_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009114LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009116/* end confdefs.h. */
9117
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009118/* Override any GCC internal prototype to avoid an error.
9119 Use char because int might match the return type of a GCC
9120 builtin and then its argument prototype would still apply. */
Mike McCormack70adb8f2005-08-12 10:35:17 +00009121#ifdef __cplusplus
9122extern "C"
9123#endif
Mike McCormack70adb8f2005-08-12 10:35:17 +00009124char xmlReadMemory ();
9125int
9126main ()
9127{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009128return xmlReadMemory ();
Mike McCormack70adb8f2005-08-12 10:35:17 +00009129 ;
9130 return 0;
9131}
9132_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009133if ac_fn_c_try_link "$LINENO"; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009134 ac_cv_lib_xml2_xmlReadMemory=yes
9135else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009136 ac_cv_lib_xml2_xmlReadMemory=no
Mike McCormack70adb8f2005-08-12 10:35:17 +00009137fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009138rm -f core conftest.err conftest.$ac_objext \
9139 conftest$ac_exeext conftest.$ac_ext
Mike McCormack70adb8f2005-08-12 10:35:17 +00009140LIBS=$ac_check_lib_save_LIBS
9141fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlReadMemory" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009143$as_echo "$ac_cv_lib_xml2_xmlReadMemory" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009144if test "x$ac_cv_lib_xml2_xmlReadMemory" = x""yes; then :
Mike McCormack70adb8f2005-08-12 10:35:17 +00009145
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009146$as_echo "#define HAVE_XMLREADMEMORY 1" >>confdefs.h
Mike McCormack70adb8f2005-08-12 10:35:17 +00009147
9148fi
9149
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlNewDocPI in -lxml2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009151$as_echo_n "checking for xmlNewDocPI in -lxml2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009152if test "${ac_cv_lib_xml2_xmlNewDocPI+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009153 $as_echo_n "(cached) " >&6
Lei Zhang6a530ab2006-11-29 15:59:03 -08009154else
9155 ac_check_lib_save_LIBS=$LIBS
9156LIBS="-lxml2 $ac_xml_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009157cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009158/* end confdefs.h. */
9159
9160/* Override any GCC internal prototype to avoid an error.
9161 Use char because int might match the return type of a GCC
9162 builtin and then its argument prototype would still apply. */
9163#ifdef __cplusplus
9164extern "C"
9165#endif
9166char xmlNewDocPI ();
9167int
9168main ()
9169{
9170return xmlNewDocPI ();
9171 ;
9172 return 0;
9173}
9174_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009175if ac_fn_c_try_link "$LINENO"; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009176 ac_cv_lib_xml2_xmlNewDocPI=yes
9177else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009178 ac_cv_lib_xml2_xmlNewDocPI=no
Lei Zhang6a530ab2006-11-29 15:59:03 -08009179fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009180rm -f core conftest.err conftest.$ac_objext \
9181 conftest$ac_exeext conftest.$ac_ext
Lei Zhang6a530ab2006-11-29 15:59:03 -08009182LIBS=$ac_check_lib_save_LIBS
9183fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlNewDocPI" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009185$as_echo "$ac_cv_lib_xml2_xmlNewDocPI" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009186if test "x$ac_cv_lib_xml2_xmlNewDocPI" = x""yes; then :
Lei Zhang6a530ab2006-11-29 15:59:03 -08009187
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009188$as_echo "#define HAVE_XMLNEWDOCPI 1" >>confdefs.h
Lei Zhang6a530ab2006-11-29 15:59:03 -08009189
9190fi
9191
Mike McCormack70adb8f2005-08-12 10:35:17 +00009192
Mike McCormackdcc2d6c2005-08-02 11:29:04 +00009193fi
9194
9195done
9196
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009197 CPPFLAGS="$ac_save_CPPFLAGS"
9198fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009199if test "$ac_cv_lib_xml2_xmlParseMemory" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009200 case "x$with_xml" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009201 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 +01009202 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009203 *) as_fn_error "libxml2 ${notice_platform}development files not found, XML won't be supported.
9204This is an error since --with-xml was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009205esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009206fi
9207
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009208if test "x$with_xslt" != "xno"
Emmanuel Maillard2a98b402007-06-22 02:58:39 +02009209then
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009210 if test "$PKG_CONFIG" != "false"
9211 then
9212 ac_xslt_libs="`$PKG_CONFIG --libs libxslt 2>/dev/null`"
9213 ac_xslt_cflags="`$PKG_CONFIG --cflags libxslt 2>/dev/null`"
9214 else
9215 ac_xslt_libs="`xslt-config --libs 2>/dev/null`"
9216 ac_xslt_cflags="`xslt-config --cflags 2>/dev/null`"
9217 fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009218 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009219 CPPFLAGS="$CPPFLAGS $ac_xslt_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009220 for ac_header in libxslt/pattern.h libxslt/transform.h
9221do :
9222 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9223ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LIBXSLT_PATTERN_H
Vincent Bérond7f64242005-09-15 09:39:09 +00009224# include <libxslt/pattern.h>
9225#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009226"
9227eval as_val=\$$as_ac_Header
9228 if test "x$as_val" = x""yes; then :
Mike McCormackf3719a82005-09-03 09:39:38 +00009229 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009230#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Mike McCormackf3719a82005-09-03 09:39:38 +00009231_ACEOF
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009232
9233fi
9234
9235done
9236
9237 CPPFLAGS="$ac_save_CPPFLAGS"
9238 if test "$ac_cv_header_libxslt_transform_h" = "yes"
9239 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lxslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009241$as_echo_n "checking for -lxslt... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009242if test "${ac_cv_lib_soname_xslt+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009243 $as_echo_n "(cached) " >&6
Mike McCormackf3719a82005-09-03 09:39:38 +00009244else
Francois Gouget3d384f12008-11-17 19:29:32 +01009245 ac_check_soname_save_LIBS=$LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009246LIBS="-lxslt $ac_xslt_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackf3719a82005-09-03 09:39:38 +00009248/* end confdefs.h. */
9249
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009250/* Override any GCC internal prototype to avoid an error.
9251 Use char because int might match the return type of a GCC
9252 builtin and then its argument prototype would still apply. */
Mike McCormackf3719a82005-09-03 09:39:38 +00009253#ifdef __cplusplus
9254extern "C"
9255#endif
Mike McCormackf3719a82005-09-03 09:39:38 +00009256char xsltCompilePattern ();
9257int
9258main ()
9259{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009260return xsltCompilePattern ();
Mike McCormackf3719a82005-09-03 09:39:38 +00009261 ;
9262 return 0;
9263}
9264_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009265if ac_fn_c_try_link "$LINENO"; then :
Francois Gouget3d384f12008-11-17 19:29:32 +01009266 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009267 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 +01009268 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'` ;;
9269 *) ac_cv_lib_soname_xslt=`$ac_cv_path_LDD conftest$ac_exeext | grep "libxslt\\.$LIBEXT" | sed -e "s/^.*\(libxslt\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9270 esac
Mike McCormackf3719a82005-09-03 09:39:38 +00009271fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009272rm -f core conftest.err conftest.$ac_objext \
9273 conftest$ac_exeext conftest.$ac_ext
Francois Gouget3d384f12008-11-17 19:29:32 +01009274 LIBS=$ac_check_soname_save_LIBS
Mike McCormackf3719a82005-09-03 09:39:38 +00009275fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009276if test "x$ac_cv_lib_soname_xslt" = "x"; then :
9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009278$as_echo "not found" >&6; }
Mike McCormackf3719a82005-09-03 09:39:38 +00009279
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009280else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_xslt" >&5
Francois Gouget3d384f12008-11-17 19:29:32 +01009282$as_echo "$ac_cv_lib_soname_xslt" >&6; }
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009283
Francois Gouget3d384f12008-11-17 19:29:32 +01009284cat >>confdefs.h <<_ACEOF
9285#define SONAME_LIBXSLT "$ac_cv_lib_soname_xslt"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009286_ACEOF
Mike McCormackf3719a82005-09-03 09:39:38 +00009287
Francois Gouget3d384f12008-11-17 19:29:32 +01009288 XSLTINCL="$ac_xslt_cflags"
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009289fi
Lei Zhang9d7f7bf2008-04-17 13:00:22 -07009290 fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009291fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009292if test "x$ac_cv_lib_soname_xslt" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009293 case "x$with_xslt" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009294 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 +01009295 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009296 *) as_fn_error "libxslt ${notice_platform}development files not found, xslt won't be supported.
9297This is an error since --with-xslt was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009298esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009299fi
9300
Alexandre Julliard00068982006-04-18 16:47:53 +02009301HALINCL=""
9302
Francois Gouget295a0cd2009-01-09 20:22:22 +01009303if test "x$with_hal" != "xno"
Alexandre Julliard00068982006-04-18 16:47:53 +02009304then
9305 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009306 if test "$PKG_CONFIG" != "false"
9307 then
9308 ac_hal_libs="`$PKG_CONFIG --libs hal 2>/dev/null`"
9309 ac_hal_cflags="`$PKG_CONFIG --cflags hal 2>/dev/null`"
9310 CPPFLAGS="$CPPFLAGS $ac_hal_cflags"
9311 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009312 for ac_header in dbus/dbus.h hal/libhal.h
9313do :
9314 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9315ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9316eval as_val=\$$as_ac_Header
9317 if test "x$as_val" = x""yes; then :
Alexandre Julliard00068982006-04-18 16:47:53 +02009318 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +01009319#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliard00068982006-04-18 16:47:53 +02009320_ACEOF
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009321
9322fi
9323
9324done
9325
9326 if test "$ac_cv_header_dbus_dbus_h" = "yes" -a "$ac_cv_header_hal_libhal_h" = "yes"
9327 then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus_connection_close in -ldbus-1" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009329$as_echo_n "checking for dbus_connection_close in -ldbus-1... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009330if test "${ac_cv_lib_dbus_1_dbus_connection_close+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009331 $as_echo_n "(cached) " >&6
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009332else
9333 ac_check_lib_save_LIBS=$LIBS
9334LIBS="-ldbus-1 $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009336/* end confdefs.h. */
9337
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009338/* Override any GCC internal prototype to avoid an error.
9339 Use char because int might match the return type of a GCC
9340 builtin and then its argument prototype would still apply. */
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009341#ifdef __cplusplus
9342extern "C"
9343#endif
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009344char dbus_connection_close ();
9345int
9346main ()
9347{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009348return dbus_connection_close ();
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009349 ;
9350 return 0;
9351}
9352_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009353if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009354 ac_cv_lib_dbus_1_dbus_connection_close=yes
9355else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009356 ac_cv_lib_dbus_1_dbus_connection_close=no
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009357fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009358rm -f core conftest.err conftest.$ac_objext \
9359 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009360LIBS=$ac_check_lib_save_LIBS
9361fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbus_1_dbus_connection_close" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009363$as_echo "$ac_cv_lib_dbus_1_dbus_connection_close" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009364if test "x$ac_cv_lib_dbus_1_dbus_connection_close" = x""yes; then :
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lhal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009366$as_echo_n "checking for -lhal... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009367if test "${ac_cv_lib_soname_hal+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009368 $as_echo_n "(cached) " >&6
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009369else
9370 ac_check_soname_save_LIBS=$LIBS
9371LIBS="-lhal $ac_hal_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009373/* end confdefs.h. */
Alexandre Julliard00068982006-04-18 16:47:53 +02009374
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009375/* Override any GCC internal prototype to avoid an error.
9376 Use char because int might match the return type of a GCC
9377 builtin and then its argument prototype would still apply. */
9378#ifdef __cplusplus
9379extern "C"
9380#endif
9381char libhal_ctx_new ();
9382int
9383main ()
9384{
9385return libhal_ctx_new ();
9386 ;
9387 return 0;
9388}
9389_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009390if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009391 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009392 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 +02009393 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'` ;;
9394 *) ac_cv_lib_soname_hal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libhal\\.$LIBEXT" | sed -e "s/^.*\(libhal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9395 esac
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009396fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009397rm -f core conftest.err conftest.$ac_objext \
9398 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009399 LIBS=$ac_check_soname_save_LIBS
9400fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009401if test "x$ac_cv_lib_soname_hal" = "x"; then :
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009403$as_echo "not found" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009404
9405else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_hal" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009407$as_echo "$ac_cv_lib_soname_hal" >&6; }
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009408
9409cat >>confdefs.h <<_ACEOF
9410#define SONAME_LIBHAL "$ac_cv_lib_soname_hal"
Alexandre Julliard00068982006-04-18 16:47:53 +02009411_ACEOF
9412
Alexandre Julliardc1099bb2007-07-02 17:28:33 +02009413 HALINCL="$ac_hal_cflags"
Alexandre Julliard00068982006-04-18 16:47:53 +02009414fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009415fi
9416
Alexandre Julliardb18b9f32006-04-18 19:10:59 +02009417 fi
Alexandre Julliard00068982006-04-18 16:47:53 +02009418 CPPFLAGS="$ac_save_CPPFLAGS"
9419fi
Alexandre Julliardd8062732010-04-26 06:57:49 -05009420if 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 +01009421 case "x$with_hal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009422 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 +01009423 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009424 *) as_fn_error "libhal/libdbus ${notice_platform}development files not found, no dynamic device support.
9425This is an error since --with-hal was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009426esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009427fi
9428
Francois Gouget295a0cd2009-01-09 20:22:22 +01009429if test "x$with_gnutls" != "xno"
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009430then
9431 ac_save_CPPFLAGS="$CPPFLAGS"
Francois Gouget295a0cd2009-01-09 20:22:22 +01009432 if test "$PKG_CONFIG" != "false"
9433 then
9434 ac_gnutls_libs="`$PKG_CONFIG --libs gnutls 2>/dev/null`"
9435 ac_gnutls_cflags="`$PKG_CONFIG --cflags gnutls 2>/dev/null`"
9436 CPPFLAGS="$CPPFLAGS $ac_gnutls_cflags"
9437 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009438 ac_fn_c_check_header_mongrel "$LINENO" "gnutls/gnutls.h" "ac_cv_header_gnutls_gnutls_h" "$ac_includes_default"
9439if test "x$ac_cv_header_gnutls_gnutls_h" = x""yes; then :
9440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gouget3aae9542008-10-24 11:24:58 +02009441/* end confdefs.h. */
9442#include <gnutls/gnutls.h>
9443int
9444main ()
9445{
Henri Verbeet8c4a2972008-12-30 09:45:20 +01009446typeof(gnutls_mac_get_key_size) *pfunc;
Francois Gouget3aae9542008-10-24 11:24:58 +02009447 ;
9448 return 0;
9449}
9450_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009451if ac_fn_c_try_compile "$LINENO"; then :
9452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009453$as_echo_n "checking for -lgnutls... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009454if test "${ac_cv_lib_soname_gnutls+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009455 $as_echo_n "(cached) " >&6
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009456else
9457 ac_check_soname_save_LIBS=$LIBS
9458LIBS="-lgnutls $ac_gnutls_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009460/* end confdefs.h. */
9461
9462/* Override any GCC internal prototype to avoid an error.
9463 Use char because int might match the return type of a GCC
9464 builtin and then its argument prototype would still apply. */
9465#ifdef __cplusplus
9466extern "C"
9467#endif
9468char gnutls_global_init ();
9469int
9470main ()
9471{
9472return gnutls_global_init ();
9473 ;
9474 return 0;
9475}
9476_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009477if ac_fn_c_try_link "$LINENO"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009478 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009479 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 +02009480 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'` ;;
9481 *) ac_cv_lib_soname_gnutls=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgnutls\\.$LIBEXT" | sed -e "s/^.*\(libgnutls\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9482 esac
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009483fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009484rm -f core conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009486 LIBS=$ac_check_soname_save_LIBS
9487fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009488if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
9489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009490$as_echo "not found" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009491
9492else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gnutls" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009494$as_echo "$ac_cv_lib_soname_gnutls" >&6; }
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009495
9496cat >>confdefs.h <<_ACEOF
9497#define SONAME_LIBGNUTLS "$ac_cv_lib_soname_gnutls"
9498_ACEOF
9499
9500 GNUTLSINCL="$ac_gnutls_cflags"
9501
9502fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009503fi
Francois Gouget3aae9542008-10-24 11:24:58 +02009504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009505fi
9506
9507
9508 CPPFLAGS="$ac_save_CPPFLAGS"
9509fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009510if test "x$ac_cv_lib_soname_gnutls" = "x"; then :
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009511 case "x$with_gnutls" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009512 x) as_fn_append wine_notices "|libgnutls ${notice_platform}development files not found, no schannel support." ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009513 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009514 *) as_fn_error "libgnutls ${notice_platform}development files not found, no schannel support.
9515This is an error since --with-gnutls was requested." "$LINENO" 5 ;;
Henri Verbeet874c9ef2008-09-22 22:13:19 +02009516esac
9517fi
9518
Alexandre Julliard48957682001-12-26 23:08:31 +00009519CURSESLIBS=""
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009520if test "$ac_cv_header_ncurses_h" = "yes"
Patrik Stridvall5e5ad532000-04-23 20:02:46 +00009521then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009523$as_echo_n "checking for -lncurses... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009524if test "${ac_cv_lib_soname_ncurses+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009525 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009526else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009527 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009528LIBS="-lncurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009530/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009531
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009532/* Override any GCC internal prototype to avoid an error.
9533 Use char because int might match the return type of a GCC
9534 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009535#ifdef __cplusplus
9536extern "C"
9537#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009538char waddch ();
9539int
9540main ()
9541{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009542return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009543 ;
9544 return 0;
9545}
9546_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009547if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009548 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009549 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 +02009550 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'` ;;
9551 *) ac_cv_lib_soname_ncurses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libncurses\\.$LIBEXT" | sed -e "s/^.*\(libncurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9552 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009553fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009554rm -f core conftest.err conftest.$ac_objext \
9555 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009556 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009557fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009558if test "x$ac_cv_lib_soname_ncurses" = "x"; then :
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009560$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009561
9562else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ncurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009564$as_echo "$ac_cv_lib_soname_ncurses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009565
9566cat >>confdefs.h <<_ACEOF
9567#define SONAME_LIBNCURSES "$ac_cv_lib_soname_ncurses"
9568_ACEOF
9569
9570 CURSESLIBS="-lncurses"
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009571fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009572elif test "$ac_cv_header_curses_h" = "yes"
9573then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcurses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009575$as_echo_n "checking for -lcurses... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009576if test "${ac_cv_lib_soname_curses+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009577 $as_echo_n "(cached) " >&6
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009578else
Alexandre Julliardd0783772007-07-02 17:28:50 +02009579 ac_check_soname_save_LIBS=$LIBS
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009580LIBS="-lcurses $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +00009582/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009583
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009584/* Override any GCC internal prototype to avoid an error.
9585 Use char because int might match the return type of a GCC
9586 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009587#ifdef __cplusplus
9588extern "C"
9589#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009590char waddch ();
9591int
9592main ()
9593{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009594return waddch ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009595 ;
9596 return 0;
9597}
9598_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009599if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0783772007-07-02 17:28:50 +02009600 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009601 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 +02009602 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'` ;;
9603 *) ac_cv_lib_soname_curses=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcurses\\.$LIBEXT" | sed -e "s/^.*\(libcurses\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9604 esac
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009605fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009606rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0783772007-07-02 17:28:50 +02009608 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliardf5818d22002-02-14 19:47:29 +00009609fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009610if test "x$ac_cv_lib_soname_curses" = "x"; then :
9611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009612$as_echo "not found" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009613
9614else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_curses" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009616$as_echo "$ac_cv_lib_soname_curses" >&6; }
Alexandre Julliardd0783772007-07-02 17:28:50 +02009617
9618cat >>confdefs.h <<_ACEOF
9619#define SONAME_LIBCURSES "$ac_cv_lib_soname_curses"
9620_ACEOF
9621
9622 CURSESLIBS="-lcurses"
Joseph Praneviche884f9c1999-01-03 16:14:34 +00009623fi
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009624fi
9625ac_save_LIBS="$LIBS"
9626LIBS="$LIBS $CURSESLIBS"
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009627for ac_func in mousemask
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009628do :
9629 ac_fn_c_check_func "$LINENO" "mousemask" "ac_cv_func_mousemask"
9630if test "x$ac_cv_func_mousemask" = x""yes; then :
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009631 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009632#define HAVE_MOUSEMASK 1
Alexandre Julliardf5f37a82006-06-27 16:41:43 +02009633_ACEOF
9634
9635fi
9636done
9637
Alexandre Julliard8f1d42e2006-12-16 17:01:37 +01009638LIBS="$ac_save_LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009639if test "x$ac_cv_lib_soname_curses$ac_cv_lib_soname_ncurses" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009640 case "x$with_curses" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009641 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 +01009642 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009643 *) as_fn_error "lib(n)curses ${notice_platform}development files not found, curses won't be supported.
9644This is an error since --with-curses was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009645esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009646fi
9647
Francois Gouget3fe5d802009-01-14 14:16:06 +01009648if test "x$with_sane" != "xno"
9649then
9650 ac_save_CPPFLAGS="$CPPFLAGS"
9651 # Extract the first word of "sane-config", so it can be a program name with args.
Shi Quan He6b0720f2002-03-21 02:58:39 +00009652set dummy sane-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009654$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009655if test "${ac_cv_prog_sane_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009656 $as_echo_n "(cached) " >&6
Shi Quan He6b0720f2002-03-21 02:58:39 +00009657else
9658 if test -n "$sane_devel"; then
9659 ac_cv_prog_sane_devel="$sane_devel" # Let the user override the test.
9660else
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9662for as_dir in $PATH
9663do
9664 IFS=$as_save_IFS
9665 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009666 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009667 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 +00009668 ac_cv_prog_sane_devel="sane-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009670 break 2
9671 fi
9672done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009673 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009674IFS=$as_save_IFS
Shi Quan He6b0720f2002-03-21 02:58:39 +00009675
9676 test -z "$ac_cv_prog_sane_devel" && ac_cv_prog_sane_devel="no"
9677fi
9678fi
9679sane_devel=$ac_cv_prog_sane_devel
9680if test -n "$sane_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sane_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009682$as_echo "$sane_devel" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009683else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009685$as_echo "no" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009686fi
9687
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009688
Francois Gouget3fe5d802009-01-14 14:16:06 +01009689 if test "$sane_devel" != "no"
9690 then
9691 ac_sane_incl="`$sane_devel --cflags`"
9692 ac_sane_libs="`$sane_devel --ldflags`"
9693 CPPFLAGS="$CPPFLAGS $ac_sane_incl"
9694 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009695 ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
9696if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lsane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009698$as_echo_n "checking for -lsane... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009699if test "${ac_cv_lib_soname_sane+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009700 $as_echo_n "(cached) " >&6
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009701else
9702 ac_check_soname_save_LIBS=$LIBS
Francois Gougeta9d7bab2008-07-20 22:41:41 +02009703LIBS="-lsane $ac_sane_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009705/* end confdefs.h. */
9706
9707/* Override any GCC internal prototype to avoid an error.
9708 Use char because int might match the return type of a GCC
9709 builtin and then its argument prototype would still apply. */
9710#ifdef __cplusplus
9711extern "C"
9712#endif
9713char sane_init ();
9714int
9715main ()
9716{
9717return sane_init ();
9718 ;
9719 return 0;
9720}
9721_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009722if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009723 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009724 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 +02009725 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'` ;;
9726 *) ac_cv_lib_soname_sane=`$ac_cv_path_LDD conftest$ac_exeext | grep "libsane\\.$LIBEXT" | sed -e "s/^.*\(libsane\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9727 esac
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009728fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009729rm -f core conftest.err conftest.$ac_objext \
9730 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009731 LIBS=$ac_check_soname_save_LIBS
9732fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009733if test "x$ac_cv_lib_soname_sane" = "x"; then :
9734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009735$as_echo "not found" >&6; }
Shi Quan He6b0720f2002-03-21 02:58:39 +00009736
9737else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_sane" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009739$as_echo "$ac_cv_lib_soname_sane" >&6; }
Alexandre Julliard418e74b2007-07-02 19:42:13 +02009740
9741cat >>confdefs.h <<_ACEOF
9742#define SONAME_LIBSANE "$ac_cv_lib_soname_sane"
9743_ACEOF
9744
9745 SANEINCL="$ac_sane_incl"
9746
9747fi
Shi Quan He6b0720f2002-03-21 02:58:39 +00009748fi
9749
Alexandre Julliarddaa28862002-04-11 21:54:01 +00009750
Shi Quan He6b0720f2002-03-21 02:58:39 +00009751 CPPFLAGS="$ac_save_CPPFLAGS"
9752fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009753if test "x$ac_cv_lib_soname_sane" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009754 case "x$with_sane" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009755 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 +01009756 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009757 *) as_fn_error "libsane ${notice_platform}development files not found, scanners won't be supported.
9758This is an error since --with-sane was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009759esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009760fi
9761
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009762if test "x$with_v4l" != "xno"
9763then
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lv4l1" >&5
9765$as_echo_n "checking for -lv4l1... " >&6; }
9766if test "${ac_cv_lib_soname_v4l1+set}" = set; then :
9767 $as_echo_n "(cached) " >&6
9768else
9769 ac_check_soname_save_LIBS=$LIBS
9770LIBS="-lv4l1 $LIBS"
9771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9772/* end confdefs.h. */
9773
9774/* Override any GCC internal prototype to avoid an error.
9775 Use char because int might match the return type of a GCC
9776 builtin and then its argument prototype would still apply. */
9777#ifdef __cplusplus
9778extern "C"
9779#endif
9780char v4l1_open ();
9781int
9782main ()
9783{
9784return v4l1_open ();
9785 ;
9786 return 0;
9787}
9788_ACEOF
9789if ac_fn_c_try_link "$LINENO"; then :
9790 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +01009791 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 +01009792 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'` ;;
9793 *) ac_cv_lib_soname_v4l1=`$ac_cv_path_LDD conftest$ac_exeext | grep "libv4l1\\.$LIBEXT" | sed -e "s/^.*\(libv4l1\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
9794 esac
9795fi
9796rm -f core conftest.err conftest.$ac_objext \
9797 conftest$ac_exeext conftest.$ac_ext
9798 LIBS=$ac_check_soname_save_LIBS
9799fi
9800if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
9802$as_echo "not found" >&6; }
9803
9804else
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_v4l1" >&5
9806$as_echo "$ac_cv_lib_soname_v4l1" >&6; }
9807
9808cat >>confdefs.h <<_ACEOF
9809#define SONAME_LIBV4L1 "$ac_cv_lib_soname_v4l1"
9810_ACEOF
9811
9812
9813fi
9814fi
9815if test "x$ac_cv_lib_soname_v4l1" = "x"; then :
9816 case "x$with_v4l" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009817 x) as_fn_append wine_notices "|libv4l ${notice_platform}development files not found." ;;
Maarten Lankhorstbf6f0752010-01-28 23:27:12 +01009818 xno) ;;
9819 *) as_fn_error "libv4l ${notice_platform}development files not found.
9820This is an error since --with-v4l was requested." "$LINENO" 5 ;;
9821esac
9822fi
9823
Francois Gouget3fe5d802009-01-14 14:16:06 +01009824if test "x$with_gphoto" != "xno"
9825then
9826 ac_save_CPPFLAGS="$CPPFLAGS"
9827 # Extract the first word of "gphoto2-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009828set dummy gphoto2-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009830$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009831if test "${ac_cv_prog_gphoto2_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009832 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009833else
9834 if test -n "$gphoto2_devel"; then
9835 ac_cv_prog_gphoto2_devel="$gphoto2_devel" # Let the user override the test.
9836else
9837as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838for as_dir in $PATH
9839do
9840 IFS=$as_save_IFS
9841 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009842 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009843 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 +02009844 ac_cv_prog_gphoto2_devel="gphoto2-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009846 break 2
9847 fi
9848done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009849 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009850IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009851
9852 test -z "$ac_cv_prog_gphoto2_devel" && ac_cv_prog_gphoto2_devel="no"
9853fi
9854fi
9855gphoto2_devel=$ac_cv_prog_gphoto2_devel
9856if test -n "$gphoto2_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009858$as_echo "$gphoto2_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009859else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009861$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009862fi
9863
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009864
Francois Gouget3fe5d802009-01-14 14:16:06 +01009865 # Extract the first word of "gphoto2-port-config", so it can be a program name with args.
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009866set dummy gphoto2-port-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009868$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009869if test "${ac_cv_prog_gphoto2port_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009870 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009871else
9872 if test -n "$gphoto2port_devel"; then
9873 ac_cv_prog_gphoto2port_devel="$gphoto2port_devel" # Let the user override the test.
9874else
9875as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9876for as_dir in $PATH
9877do
9878 IFS=$as_save_IFS
9879 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009880 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +01009881 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 +02009882 ac_cv_prog_gphoto2port_devel="gphoto2-port-config"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009884 break 2
9885 fi
9886done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009887 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009888IFS=$as_save_IFS
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009889
9890 test -z "$ac_cv_prog_gphoto2port_devel" && ac_cv_prog_gphoto2port_devel="no"
9891fi
9892fi
9893gphoto2port_devel=$ac_cv_prog_gphoto2port_devel
9894if test -n "$gphoto2port_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gphoto2port_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009896$as_echo "$gphoto2port_devel" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009897else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009899$as_echo "no" >&6; }
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009900fi
9901
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009902
Francois Gouget3fe5d802009-01-14 14:16:06 +01009903 if test "$gphoto2_devel" != "no" -a "$gphoto2port_devel" != "no"
9904 then
9905 ac_gphoto2_incl="`$gphoto2_devel --cflags` `$gphoto2port_devel --cflags`"
9906 ac_gphoto2_libs=""
9907 for i in `$gphoto2_devel --libs` `$gphoto2port_devel --libs`
9908 do
9909 case "$i" in
9910 -L/usr/lib|-L/usr/lib64) ;;
9911 -L*|-l*) ac_gphoto2_libs="$ac_gphoto2_libs $i";;
9912 esac
9913 done
9914 CPPFLAGS="$CPPFLAGS $ac_gphoto2_incl"
9915 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +09009916 ac_gphoto2_libs=${ac_gphoto2_libs:-"-lgphoto2"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009917 ac_fn_c_check_header_mongrel "$LINENO" "gphoto2-camera.h" "ac_cv_header_gphoto2_camera_h" "$ac_includes_default"
9918if test "x$ac_cv_header_gphoto2_camera_h" = x""yes; then :
9919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gp_camera_new in -lgphoto2" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009920$as_echo_n "checking for gp_camera_new in -lgphoto2... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009921if test "${ac_cv_lib_gphoto2_gp_camera_new+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +01009922 $as_echo_n "(cached) " >&6
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009923else
9924 ac_check_lib_save_LIBS=$LIBS
Francois Gouget4bc03fe2008-07-21 17:10:45 +02009925LIBS="-lgphoto2 $ac_gphoto2_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009926cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009927/* end confdefs.h. */
9928
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009929/* Override any GCC internal prototype to avoid an error.
9930 Use char because int might match the return type of a GCC
9931 builtin and then its argument prototype would still apply. */
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009932#ifdef __cplusplus
9933extern "C"
9934#endif
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009935char gp_camera_new ();
9936int
9937main ()
9938{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +02009939return gp_camera_new ();
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009940 ;
9941 return 0;
9942}
9943_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009944if ac_fn_c_try_link "$LINENO"; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009945 ac_cv_lib_gphoto2_gp_camera_new=yes
9946else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009947 ac_cv_lib_gphoto2_gp_camera_new=no
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009948fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009949rm -f core conftest.err conftest.$ac_objext \
9950 conftest$ac_exeext conftest.$ac_ext
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009951LIBS=$ac_check_lib_save_LIBS
9952fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gphoto2_gp_camera_new" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +01009954$as_echo "$ac_cv_lib_gphoto2_gp_camera_new" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009955if test "x$ac_cv_lib_gphoto2_gp_camera_new" = x""yes; then :
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009956
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009957$as_echo "#define HAVE_GPHOTO2 1" >>confdefs.h
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009958
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009959 GPHOTO2LIBS="$ac_gphoto2_libs"
9960
9961 GPHOTO2INCL="$ac_gphoto2_incl"
9962
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009963fi
9964
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009965fi
9966
9967
Marcus Meissner40e7ef32006-05-08 20:09:37 +02009968 CPPFLAGS="$ac_save_CPPFLAGS"
9969fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009970if test "$ac_cv_lib_gphoto2_gp_camera_new" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009971 case "x$with_gphoto" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +01009972 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 +01009973 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009974 *) as_fn_error "libgphoto2 ${notice_platform}development files not found, digital cameras won't be supported.
9975This is an error since --with-gphoto was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +01009976esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +02009977fi
9978
9979
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009980RESOLVLIBS=""
9981
9982if test "$ac_cv_header_resolv_h" = "yes"
9983then
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +01009984 ac_save_LIBS="$LIBS"
9985 LIBS="$LIBS -lresolv"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +02009986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009987/* end confdefs.h. */
Rob Shearmanba349212009-01-02 12:12:06 +00009988#ifdef HAVE_NETINET_IN_H
9989#include <netinet/in.h>
9990#endif
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +01009991#include <resolv.h>
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009992int
9993main ()
9994{
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +01009995res_init();
Hans Leidekker2d6d4e92006-04-09 18:36:01 +02009996 ;
9997 return 0;
9998}
9999_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010000if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010001
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010002$as_echo "#define HAVE_RESOLV 1" >>confdefs.h
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010003
10004 RESOLVLIBS="-lresolv"
10005fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010006rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard4a9a3d72008-12-26 19:36:27 +010010008 LIBS="$ac_save_LIBS"
Hans Leidekker2d6d4e92006-04-09 18:36:01 +020010009fi
10010
Hans Leidekkerd3447022005-07-15 10:09:43 +000010011LCMSLIBS=""
10012
10013if test "$ac_cv_header_lcms_h" = "yes" -o "$ac_cv_header_lcms_lcms_h" = "yes"
10014then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsOpenProfileFromFile in -llcms" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010016$as_echo_n "checking for cmsOpenProfileFromFile in -llcms... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010017if test "${ac_cv_lib_lcms_cmsOpenProfileFromFile+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010018 $as_echo_n "(cached) " >&6
Hans Leidekkerd3447022005-07-15 10:09:43 +000010019else
10020 ac_check_lib_save_LIBS=$LIBS
10021LIBS="-llcms $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010023/* end confdefs.h. */
10024
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010025/* Override any GCC internal prototype to avoid an error.
10026 Use char because int might match the return type of a GCC
10027 builtin and then its argument prototype would still apply. */
Hans Leidekkerd3447022005-07-15 10:09:43 +000010028#ifdef __cplusplus
10029extern "C"
10030#endif
Hans Leidekkerd3447022005-07-15 10:09:43 +000010031char cmsOpenProfileFromFile ();
10032int
10033main ()
10034{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010035return cmsOpenProfileFromFile ();
Hans Leidekkerd3447022005-07-15 10:09:43 +000010036 ;
10037 return 0;
10038}
10039_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010040if ac_fn_c_try_link "$LINENO"; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010041 ac_cv_lib_lcms_cmsOpenProfileFromFile=yes
10042else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010043 ac_cv_lib_lcms_cmsOpenProfileFromFile=no
Hans Leidekkerd3447022005-07-15 10:09:43 +000010044fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010045rm -f core conftest.err conftest.$ac_objext \
10046 conftest$ac_exeext conftest.$ac_ext
Hans Leidekkerd3447022005-07-15 10:09:43 +000010047LIBS=$ac_check_lib_save_LIBS
10048fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsOpenProfileFromFile" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010050$as_echo "$ac_cv_lib_lcms_cmsOpenProfileFromFile" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010051if test "x$ac_cv_lib_lcms_cmsOpenProfileFromFile" = x""yes; then :
Hans Leidekkerd3447022005-07-15 10:09:43 +000010052
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010053$as_echo "#define HAVE_LCMS 1" >>confdefs.h
Hans Leidekkerd3447022005-07-15 10:09:43 +000010054
10055 LCMSLIBS="-llcms"
10056fi
10057
10058fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010059if test "$ac_cv_lib_lcms_cmsOpenProfileFromFile" != "yes"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010060 case "x$with_cms" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010061 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 +010010062 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010063 *) as_fn_error "liblcms ${notice_platform}development files not found, Color Management won't be supported.
10064This is an error since --with-cms was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010065esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010066fi
10067
Francois Gouget3fe5d802009-01-14 14:16:06 +010010068if test "x$with_freetype" != "xno"
10069then
10070 for ac_prog in freetype-config freetype2-config
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010071do
10072 # Extract the first word of "$ac_prog", so it can be a program name with args.
10073set dummy $ac_prog; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010075$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010076if test "${ac_cv_prog_ft_devel+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010077 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010078else
10079 if test -n "$ft_devel"; then
10080 ac_cv_prog_ft_devel="$ft_devel" # Let the user override the test.
10081else
10082as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10083for as_dir in $PATH
10084do
10085 IFS=$as_save_IFS
10086 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010087 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010088 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 +020010089 ac_cv_prog_ft_devel="$ac_prog"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010091 break 2
10092 fi
10093done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010094 done
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010095IFS=$as_save_IFS
10096
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010097fi
10098fi
10099ft_devel=$ac_cv_prog_ft_devel
10100if test -n "$ft_devel"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_devel" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010102$as_echo "$ft_devel" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010103else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010105$as_echo "no" >&6; }
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010106fi
10107
10108
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010109 test -n "$ft_devel" && break
10110done
Francois Gouget3fe5d802009-01-14 14:16:06 +010010111test -n "$ft_devel" || ft_devel="no"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010112
Francois Gouget3fe5d802009-01-14 14:16:06 +010010113 if test "$ft_devel" != "no"
10114 then
10115 ac_freetype_incl=`$ft_devel --cflags`
10116 ac_freetype_libs=`$ft_devel --libs`
10117 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010118 ac_freetype_libs=${ac_freetype_libs:-"-lfreetype"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfreetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010120$as_echo_n "checking for -lfreetype... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010121if test "${ac_cv_lib_soname_freetype+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010122 $as_echo_n "(cached) " >&6
Mike McCormackd9ef88c2006-07-24 15:24:44 +090010123else
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010124 ac_check_soname_save_LIBS=$LIBS
10125LIBS="-lfreetype $ac_freetype_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010127/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010128
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010129/* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010132#ifdef __cplusplus
10133extern "C"
10134#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010135char FT_Init_FreeType ();
10136int
10137main ()
10138{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010139return FT_Init_FreeType ();
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010140 ;
10141 return 0;
10142}
10143_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010144if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010145 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010146 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 +020010147 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'` ;;
10148 *) ac_cv_lib_soname_freetype=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfreetype\\.$LIBEXT" | sed -e "s/^.*\(libfreetype\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10149 esac
Ian Pilcher563598d2001-05-16 20:56:05 +000010150fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010151rm -f core conftest.err conftest.$ac_objext \
10152 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010153 LIBS=$ac_check_soname_save_LIBS
Ian Pilcher563598d2001-05-16 20:56:05 +000010154fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010155if test "x$ac_cv_lib_soname_freetype" = "x"; then :
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010157$as_echo "not found" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010158 ft_lib=no
Ian Pilcher563598d2001-05-16 20:56:05 +000010159else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_freetype" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010161$as_echo "$ac_cv_lib_soname_freetype" >&6; }
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010162
10163cat >>confdefs.h <<_ACEOF
10164#define SONAME_LIBFREETYPE "$ac_cv_lib_soname_freetype"
10165_ACEOF
10166
10167 ft_lib=yes
Ian Pilcher563598d2001-05-16 20:56:05 +000010168fi
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010169 if test "$ft_lib" = "yes"
Marcus Meissnerd28955d2001-05-31 21:35:15 +000010170 then
Ian Pilcher40432fe2001-06-06 21:05:23 +000010171 ac_save_CPPFLAGS="$CPPFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010172 CPPFLAGS="$ac_freetype_incl $CPPFLAGS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010173 for ac_header in ft2build.h \
Rein Klazese617a9c2003-11-19 02:18:13 +000010174 freetype/freetype.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010175 freetype/ftglyph.h \
Dmitry Timoshkovb0d15902007-09-20 19:10:31 +090010176 freetype/fttypes.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010177 freetype/tttables.h \
Ian Pilcher40432fe2001-06-06 21:05:23 +000010178 freetype/ftsnames.h \
Huw D M Davies814654e2001-09-12 20:21:06 +000010179 freetype/ttnameid.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010180 freetype/ftoutln.h \
Huw Daviesc2217182004-06-16 20:06:26 +000010181 freetype/ftwinfnt.h \
Huw Davies603d21c2006-01-24 10:57:35 +010010182 freetype/ftmodapi.h \
ByeongSik Jeon028617b2008-12-10 23:50:44 +090010183 freetype/ftlcdfil.h \
Huw D M Davies4e2024e2001-10-23 20:06:32 +000010184 freetype/internal/sfnt.h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010185do :
10186 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10187ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_FT2BUILD_H
Francois Gouget9e67edf2008-03-06 12:34:48 +010010188 # include <ft2build.h>
Rein Klazes9c269172003-11-20 04:17:33 +000010189 #endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010190"
10191eval as_val=\$$as_ac_Header
10192 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010193 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010194#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000010195_ACEOF
10196
10197fi
10198
Ian Pilcher40432fe2001-06-06 21:05:23 +000010199done
10200
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010202/* end confdefs.h. */
Alexandre Julliard18d75732002-01-29 03:02:50 +000010203#include <ft2build.h>
10204 #include <freetype/fttrigon.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010205_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010206if ac_fn_c_try_cpp "$LINENO"; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010207
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010208$as_echo "#define HAVE_FREETYPE_FTTRIGON_H 1" >>confdefs.h
Alexandre Julliard18d75732002-01-29 03:02:50 +000010209
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010210 wine_cv_fttrigon=yes
Alexandre Julliard18d75732002-01-29 03:02:50 +000010211else
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010212 wine_cv_fttrigon=no
Alexandre Julliard18d75732002-01-29 03:02:50 +000010213fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010214rm -f conftest.err conftest.$ac_ext
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010215 ac_fn_c_check_type "$LINENO" "FT_TrueTypeEngineType" "ac_cv_type_FT_TrueTypeEngineType" "#include <freetype/ftmodapi.h>
10216"
10217if test "x$ac_cv_type_FT_TrueTypeEngineType" = x""yes; then :
Huw Daviesd8a6c272006-02-22 12:24:25 +000010218
10219cat >>confdefs.h <<_ACEOF
10220#define HAVE_FT_TRUETYPEENGINETYPE 1
10221_ACEOF
10222
10223
10224fi
10225
Huw Davies35bca772006-04-12 12:14:27 +010010226 ac_save_CFLAGS="$CFLAGS"
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010227 CFLAGS="$CFLAGS $ac_freetype_libs"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010228 for ac_func in FT_Load_Sfnt_Table
10229do :
10230 ac_fn_c_check_func "$LINENO" "FT_Load_Sfnt_Table" "ac_cv_func_FT_Load_Sfnt_Table"
10231if test "x$ac_cv_func_FT_Load_Sfnt_Table" = x""yes; then :
Huw Davies35bca772006-04-12 12:14:27 +010010232 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010233#define HAVE_FT_LOAD_SFNT_TABLE 1
Huw Davies35bca772006-04-12 12:14:27 +010010234_ACEOF
10235
10236fi
10237done
10238
10239 CFLAGS="$ac_save_CFLAGS"
Ian Pilcher40432fe2001-06-06 21:05:23 +000010240 CPPFLAGS="$ac_save_CPPFLAGS"
Huw D M Daviesc1d38132002-02-08 17:09:50 +000010241 if test "$ac_cv_header_freetype_freetype_h" = "yes" -a "$wine_cv_fttrigon" = "yes"
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010242 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010243
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010244$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010245
Alexandre Julliard24a55f32007-07-09 22:43:20 +020010246 FREETYPELIBS="$ac_freetype_libs"
10247
10248 FREETYPEINCL="$ac_freetype_incl"
10249
Huw D M Davies9b1d3722002-01-29 17:09:28 +000010250 fi
Ian Pilcher563598d2001-05-16 20:56:05 +000010251 fi
10252fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010253if test "x$FREETYPELIBS" = "x"; then :
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010254 case "x$with_freetype" in
10255 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010256 *) as_fn_error "FreeType ${notice_platform}development files not found. Fonts will not be built.
10257Use the --without-freetype option if you really want this." "$LINENO" 5 ;;
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010258esac
Huw Davies00acb5f2004-08-17 22:33:14 +000010259fi
Alexandre Julliard6de0af12008-08-25 14:41:03 +020010260test "x$FREETYPELIBS" = "x" && enable_fonts=${enable_fonts:-no}
Alexandre Julliarda20c0e12008-05-21 14:55:53 +020010261
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for parport header/ppdev.h" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010263$as_echo_n "checking for parport header/ppdev.h... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010264if test "${ac_cv_c_ppdev+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010265 $as_echo_n "(cached) " >&6
Pavel Roskin94d99641998-12-26 11:52:51 +000010266else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010268/* end confdefs.h. */
Yann Droneauddd33ee92010-03-08 14:46:46 +010010269#ifdef HAVE_SYS_IOCTL_H
10270# include <sys/ioctl.h>
10271#endif
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010272#include <linux/ppdev.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010273int
10274main ()
10275{
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010276ioctl (1,PPCLAIM,0)
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010277 ;
10278 return 0;
10279}
10280_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010281if ac_fn_c_try_compile "$LINENO"; then :
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010282 ac_cv_c_ppdev="yes"
10283else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010284 ac_cv_c_ppdev="no"
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010285fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010286rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010287fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_ppdev" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010289$as_echo "$ac_cv_c_ppdev" >&6; }
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010290if test "$ac_cv_c_ppdev" = "yes"
10291then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000010292
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010293$as_echo "#define HAVE_PPDEV 1" >>confdefs.h
Uwe Bonnes6509fa92001-06-26 21:06:07 +000010294
10295fi
10296
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010297ac_wine_check_funcs_save_LIBS="$LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010298LIBS="$LIBS $LIBPTHREAD"
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010299for ac_func in \
Tijl Coosemansfc8172f2006-08-05 23:31:07 +020010300 pthread_attr_get_np \
Emmanuel Maillardd110e1f2004-07-21 03:06:03 +000010301 pthread_getattr_np \
10302 pthread_get_stackaddr_np \
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010303 pthread_get_stacksize_np
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010304do :
10305 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10306ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10307eval as_val=\$$as_ac_var
10308 if test "x$as_val" = x""yes; then :
Alexandre Julliard821ab862003-11-12 22:44:56 +000010309 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010010310#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliard821ab862003-11-12 22:44:56 +000010311_ACEOF
10312
10313fi
10314done
10315
Alexandre Julliard2d1a6272006-02-11 20:54:06 +010010316LIBS="$ac_wine_check_funcs_save_LIBS"
Alexandre Julliard821ab862003-11-12 22:44:56 +000010317
Jacek Caban11ca05f2009-05-29 23:35:13 +020010318if test "$ac_cv_header_zlib_h" = "yes"
10319then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010321$as_echo_n "checking for inflate in -lz... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010322if test "${ac_cv_lib_z_inflate+set}" = set; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010323 $as_echo_n "(cached) " >&6
10324else
10325 ac_check_lib_save_LIBS=$LIBS
10326LIBS="-lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010328/* end confdefs.h. */
10329
10330/* Override any GCC internal prototype to avoid an error.
10331 Use char because int might match the return type of a GCC
10332 builtin and then its argument prototype would still apply. */
10333#ifdef __cplusplus
10334extern "C"
10335#endif
10336char inflate ();
10337int
10338main ()
10339{
10340return inflate ();
10341 ;
10342 return 0;
10343}
10344_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010345if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010346 ac_cv_lib_z_inflate=yes
10347else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010348 ac_cv_lib_z_inflate=no
Jacek Caban11ca05f2009-05-29 23:35:13 +020010349fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010350rm -f core conftest.err conftest.$ac_objext \
10351 conftest$ac_exeext conftest.$ac_ext
Jacek Caban11ca05f2009-05-29 23:35:13 +020010352LIBS=$ac_check_lib_save_LIBS
10353fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
Jacek Caban11ca05f2009-05-29 23:35:13 +020010355$as_echo "$ac_cv_lib_z_inflate" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010356if test "x$ac_cv_lib_z_inflate" = x""yes; then :
Jacek Caban11ca05f2009-05-29 23:35:13 +020010357
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010358$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
Jacek Caban11ca05f2009-05-29 23:35:13 +020010359
10360 ZLIB="-lz"
10361
10362fi
10363
10364fi
10365
Francois Gouget3fe5d802009-01-14 14:16:06 +010010366if test "x$with_esd" != xno
10367then
10368 save_CFLAGS="$CFLAGS"
10369 # Extract the first word of "esd-config", so it can be a program name with args.
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010370set dummy esd-config; ac_word=$2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010372$as_echo_n "checking for $ac_word... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010373if test "${ac_cv_path_ESDCONFIG+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010374 $as_echo_n "(cached) " >&6
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010375else
10376 case $ESDCONFIG in
10377 [\\/]* | ?:[\\/]*)
10378 ac_cv_path_ESDCONFIG="$ESDCONFIG" # Let the user override the test with a path.
10379 ;;
10380 *)
10381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10382for as_dir in $PATH
10383do
10384 IFS=$as_save_IFS
10385 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010386 for ac_exec_ext in '' $ac_executable_extensions; do
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010010387 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 +000010388 ac_cv_path_ESDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010390 break 2
10391 fi
10392done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010393 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010394IFS=$as_save_IFS
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010395
Francois Gouget3fe5d802009-01-14 14:16:06 +010010396 test -z "$ac_cv_path_ESDCONFIG" && ac_cv_path_ESDCONFIG="no"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010397 ;;
10398esac
10399fi
10400ESDCONFIG=$ac_cv_path_ESDCONFIG
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010401if test -n "$ESDCONFIG"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESDCONFIG" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010403$as_echo "$ESDCONFIG" >&6; }
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010404else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010406$as_echo "no" >&6; }
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010407fi
10408
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010409
Francois Gouget3fe5d802009-01-14 14:16:06 +010010410 if test "x$ESDCONFIG" != "xno"
10411 then
10412 ac_esd_incl=""
10413 for i in `$ESDCONFIG --cflags`
10414 do
10415 case "$i" in
10416 -I*) ac_esd_incl="$ac_esd_incl $i";;
10417 esac
10418 done
10419 ac_esd_libs=`$ESDCONFIG --libs`
10420 CFLAGS="$CFLAGS $ac_esd_incl"
10421 fi
Shunichi Fuji4bf77d62009-01-20 15:24:46 +090010422 ac_esd_libs=${ac_esd_libs:-"-lesd"}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010423 ac_fn_c_check_header_mongrel "$LINENO" "esd.h" "ac_cv_header_esd_h" "$ac_includes_default"
10424if test "x$ac_cv_header_esd_h" = x""yes; then :
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for esd_open_sound in -lesd" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010426$as_echo_n "checking for esd_open_sound in -lesd... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010427if test "${ac_cv_lib_esd_esd_open_sound+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010428 $as_echo_n "(cached) " >&6
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010429else
10430 ac_check_lib_save_LIBS=$LIBS
Francois Gougete9b1a402008-07-21 23:41:21 +020010431LIBS="-lesd $ac_esd_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010433/* end confdefs.h. */
10434
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010435/* Override any GCC internal prototype to avoid an error.
10436 Use char because int might match the return type of a GCC
10437 builtin and then its argument prototype would still apply. */
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010438#ifdef __cplusplus
10439extern "C"
10440#endif
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010441char esd_open_sound ();
10442int
10443main ()
10444{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010445return esd_open_sound ();
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010446 ;
10447 return 0;
10448}
10449_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010450if ac_fn_c_try_link "$LINENO"; then :
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010451 ac_cv_lib_esd_esd_open_sound=yes
10452else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010453 ac_cv_lib_esd_esd_open_sound=no
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010454fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010455rm -f core conftest.err conftest.$ac_objext \
10456 conftest$ac_exeext conftest.$ac_ext
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010457LIBS=$ac_check_lib_save_LIBS
10458fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esd_esd_open_sound" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010460$as_echo "$ac_cv_lib_esd_esd_open_sound" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010461if test "x$ac_cv_lib_esd_esd_open_sound" = x""yes; then :
Francois Gougete9b1a402008-07-21 23:41:21 +020010462 ESDINCL="$ac_esd_incl"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010463
Francois Gouget3fe5d802009-01-14 14:16:06 +010010464 ESDLIBS="$ac_esd_libs"
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010465
10466
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010467$as_echo "#define HAVE_ESD 1" >>confdefs.h
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010468
10469fi
10470
Francois Gouget3fe5d802009-01-14 14:16:06 +010010471fi
10472
10473
Peter Åstrand7a15eb92005-08-03 15:53:26 +000010474 CFLAGS="$save_CFLAGS"
10475fi
10476
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010477ALSALIBS=""
10478
Marco Pietrobono0e79a412002-08-29 01:51:31 +000010479if test "$ac_cv_header_sys_asoundlib_h" = "yes" -o "$ac_cv_header_alsa_asoundlib_h" = "yes"
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010480then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010481 { $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 +010010482$as_echo_n "checking for snd_pcm_hw_params_get_access in -lasound... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010483if test "${ac_cv_lib_asound_snd_pcm_hw_params_get_access+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010484 $as_echo_n "(cached) " >&6
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010485else
10486 ac_check_lib_save_LIBS=$LIBS
10487LIBS="-lasound $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010488cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010489/* end confdefs.h. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010490
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010491/* Override any GCC internal prototype to avoid an error.
10492 Use char because int might match the return type of a GCC
10493 builtin and then its argument prototype would still apply. */
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010494#ifdef __cplusplus
10495extern "C"
10496#endif
Vincent Béron151015f2005-01-10 13:26:33 +000010497char snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010498int
10499main ()
10500{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010501return snd_pcm_hw_params_get_access ();
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010502 ;
10503 return 0;
10504}
10505_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010506if ac_fn_c_try_link "$LINENO"; then :
Vincent Béron151015f2005-01-10 13:26:33 +000010507 ac_cv_lib_asound_snd_pcm_hw_params_get_access=yes
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010508else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010509 ac_cv_lib_asound_snd_pcm_hw_params_get_access=no
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010510fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010511rm -f core conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010513LIBS=$ac_check_lib_save_LIBS
10514fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010515{ $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 +010010516$as_echo "$ac_cv_lib_asound_snd_pcm_hw_params_get_access" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010517if test "x$ac_cv_lib_asound_snd_pcm_hw_params_get_access" = x""yes; then :
10518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Vincent Béron151015f2005-01-10 13:26:33 +000010519/* end confdefs.h. */
10520#ifdef HAVE_ALSA_ASOUNDLIB_H
10521#include <alsa/asoundlib.h>
10522#elif defined(HAVE_SYS_ASOUNDLIB_H)
10523#include <sys/asoundlib.h>
10524#endif
10525int
10526main ()
10527{
10528int ret = snd_pcm_hw_params_get_access(NULL, NULL)
10529 ;
10530 return 0;
10531}
10532_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010533if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010534
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010535$as_echo "#define HAVE_ALSA 1" >>confdefs.h
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010536
Vincent Béron151015f2005-01-10 13:26:33 +000010537 ALSALIBS="-lasound"
Vincent Béron151015f2005-01-10 13:26:33 +000010538fi
Jeremy White0ebeb532006-06-20 13:18:41 +020010539rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardf92b7c02002-06-28 18:31:01 +000010540fi
10541
10542fi
10543
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010544AUDIOIOLIBS=""
10545
Alexandre Julliard73482142005-08-03 19:21:04 +000010546if test "$ac_cv_header_libaudioio_h" = "yes"
10547then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AudioIOGetVersion in -laudioio" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010549$as_echo_n "checking for AudioIOGetVersion in -laudioio... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010550if test "${ac_cv_lib_audioio_AudioIOGetVersion+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010551 $as_echo_n "(cached) " >&6
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010552else
10553 ac_check_lib_save_LIBS=$LIBS
10554LIBS="-laudioio $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010555cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000010556/* end confdefs.h. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010557
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010558/* Override any GCC internal prototype to avoid an error.
10559 Use char because int might match the return type of a GCC
10560 builtin and then its argument prototype would still apply. */
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010561#ifdef __cplusplus
10562extern "C"
10563#endif
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010564char AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010565int
10566main ()
10567{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010568return AudioIOGetVersion ();
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010569 ;
10570 return 0;
10571}
10572_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010573if ac_fn_c_try_link "$LINENO"; then :
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010574 ac_cv_lib_audioio_AudioIOGetVersion=yes
10575else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010576 ac_cv_lib_audioio_AudioIOGetVersion=no
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010577fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010578rm -f core conftest.err conftest.$ac_objext \
10579 conftest$ac_exeext conftest.$ac_ext
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010580LIBS=$ac_check_lib_save_LIBS
10581fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_audioio_AudioIOGetVersion" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010583$as_echo "$ac_cv_lib_audioio_AudioIOGetVersion" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010584if test "x$ac_cv_lib_audioio_AudioIOGetVersion" = x""yes; then :
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010585 AUDIOIOLIBS="-laudioio"
10586
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010587$as_echo "#define HAVE_LIBAUDIOIO 1" >>confdefs.h
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010588
10589fi
10590
10591fi
10592
Robert Lunnon2a91e3f2002-08-01 18:22:38 +000010593
Alexandre Julliard73482142005-08-03 19:21:04 +000010594if test "$ac_cv_header_capi20_h" = "yes" -a "$ac_cv_header_linux_capi_h" = "yes"
10595then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcapi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010597$as_echo_n "checking for -lcapi20... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010598if test "${ac_cv_lib_soname_capi20+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010599 $as_echo_n "(cached) " >&6
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010600else
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010601 ac_check_soname_save_LIBS=$LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010602LIBS="-lcapi20 $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010604/* end confdefs.h. */
10605
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010606/* Override any GCC internal prototype to avoid an error.
10607 Use char because int might match the return type of a GCC
10608 builtin and then its argument prototype would still apply. */
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010609#ifdef __cplusplus
10610extern "C"
10611#endif
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010612char capi20_register ();
10613int
10614main ()
10615{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020010616return capi20_register ();
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010617 ;
10618 return 0;
10619}
10620_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010621if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010622 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010623 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 +020010624 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'` ;;
10625 *) ac_cv_lib_soname_capi20=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcapi20\\.$LIBEXT" | sed -e "s/^.*\(libcapi20\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10626 esac
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010627fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010628rm -f core conftest.err conftest.$ac_objext \
10629 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010630 LIBS=$ac_check_soname_save_LIBS
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010631fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010632if test "x$ac_cv_lib_soname_capi20" = "x"; then :
10633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010634$as_echo "not found" >&6; }
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010635
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010636else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_capi20" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010638$as_echo "$ac_cv_lib_soname_capi20" >&6; }
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010639
10640cat >>confdefs.h <<_ACEOF
10641#define SONAME_LIBCAPI20 "$ac_cv_lib_soname_capi20"
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010642_ACEOF
10643
Alexandre Julliard3336e9b2007-07-02 17:29:17 +020010644
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010645fi
Alexandre Julliard00fdd9f2003-11-06 00:26:43 +000010646fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010647if test "x$ac_cv_lib_soname_capi20" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010648 case "x$with_capi" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010649 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 +010010650 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010651 *) as_fn_error "libcapi20 ${notice_platform}development files not found, ISDN won't be supported.
10652This is an error since --with-capi was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010653esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010654fi
10655
Francois Gouget289ea332008-07-24 16:09:07 +020010656CUPSINCL=""
10657
10658if test "x$with_cups" != "xno"
Alexandre Julliard702d3552007-07-02 17:30:44 +020010659then
Francois Gouget289ea332008-07-24 16:09:07 +020010660 ac_save_CPPFLAGS="$CPPFLAGS"
10661 ac_cups_cflags=`cups-config --cflags 2>/dev/null`
Alexandre Julliarda991a562008-07-28 12:04:46 +020010662 ac_cups_libs=`cups-config --ldflags 2>/dev/null`
Francois Gouget289ea332008-07-24 16:09:07 +020010663 CPPFLAGS="$CPPFLAGS $ac_cups_cflags"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010664 for ac_header in cups/cups.h
10665do :
10666 ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
10667if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
Francois Gouget289ea332008-07-24 16:09:07 +020010668 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010669#define HAVE_CUPS_CUPS_H 1
Francois Gouget289ea332008-07-24 16:09:07 +020010670_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010672$as_echo_n "checking for -lcups... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010673if test "${ac_cv_lib_soname_cups+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010674 $as_echo_n "(cached) " >&6
Alexandre Julliard702d3552007-07-02 17:30:44 +020010675else
10676 ac_check_soname_save_LIBS=$LIBS
Francois Gouget289ea332008-07-24 16:09:07 +020010677LIBS="-lcups $ac_cups_libs $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020010679/* end confdefs.h. */
10680
10681/* Override any GCC internal prototype to avoid an error.
10682 Use char because int might match the return type of a GCC
10683 builtin and then its argument prototype would still apply. */
10684#ifdef __cplusplus
10685extern "C"
10686#endif
10687char cupsGetDefault ();
10688int
10689main ()
10690{
10691return cupsGetDefault ();
10692 ;
10693 return 0;
10694}
10695_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010696if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard702d3552007-07-02 17:30:44 +020010697 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010698 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 +020010699 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'` ;;
10700 *) ac_cv_lib_soname_cups=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcups\\.$LIBEXT" | sed -e "s/^.*\(libcups\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10701 esac
Alexandre Julliard702d3552007-07-02 17:30:44 +020010702fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010703rm -f core conftest.err conftest.$ac_objext \
10704 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard702d3552007-07-02 17:30:44 +020010705 LIBS=$ac_check_soname_save_LIBS
10706fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010707if test "x$ac_cv_lib_soname_cups" = "x"; then :
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010709$as_echo "not found" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020010710
10711else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_cups" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010713$as_echo "$ac_cv_lib_soname_cups" >&6; }
Alexandre Julliard702d3552007-07-02 17:30:44 +020010714
10715cat >>confdefs.h <<_ACEOF
10716#define SONAME_LIBCUPS "$ac_cv_lib_soname_cups"
10717_ACEOF
10718
Francois Gouget289ea332008-07-24 16:09:07 +020010719 CUPSINCL="$ac_cups_cflags"
10720fi
Alexandre Julliard702d3552007-07-02 17:30:44 +020010721fi
10722
Francois Gouget289ea332008-07-24 16:09:07 +020010723done
10724
10725 CPPFLAGS="$ac_save_CPPFLAGS"
Alexandre Julliard702d3552007-07-02 17:30:44 +020010726fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010727if test "x$ac_cv_lib_soname_cups" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010728 case "x$with_cups" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010729 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 +010010730 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010731 *) as_fn_error "libcups ${notice_platform}development files not found, CUPS won't be supported.
10732This is an error since --with-cups was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010733esac
Alexandre Julliardf9dec942007-07-10 15:14:15 +020010734fi
10735
Alexandre Julliard34200c32007-07-02 17:31:19 +020010736if test "$ac_cv_header_jack_jack_h" = "yes"
10737then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljack" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010739$as_echo_n "checking for -ljack... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010740if test "${ac_cv_lib_soname_jack+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010741 $as_echo_n "(cached) " >&6
Alexandre Julliard34200c32007-07-02 17:31:19 +020010742else
10743 ac_check_soname_save_LIBS=$LIBS
10744LIBS="-ljack $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard34200c32007-07-02 17:31:19 +020010746/* end confdefs.h. */
10747
10748/* Override any GCC internal prototype to avoid an error.
10749 Use char because int might match the return type of a GCC
10750 builtin and then its argument prototype would still apply. */
10751#ifdef __cplusplus
10752extern "C"
10753#endif
10754char jack_client_new ();
10755int
10756main ()
10757{
10758return jack_client_new ();
10759 ;
10760 return 0;
10761}
10762_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010763if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard34200c32007-07-02 17:31:19 +020010764 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010765 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 +020010766 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'` ;;
10767 *) 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 +020010768 esac
Alexandre Julliard34200c32007-07-02 17:31:19 +020010769fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010770rm -f core conftest.err conftest.$ac_objext \
10771 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard34200c32007-07-02 17:31:19 +020010772 LIBS=$ac_check_soname_save_LIBS
10773fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010774if test "x$ac_cv_lib_soname_jack" = "x"; then :
10775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010776$as_echo "not found" >&6; }
Alexandre Julliard34200c32007-07-02 17:31:19 +020010777
10778else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jack" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010780$as_echo "$ac_cv_lib_soname_jack" >&6; }
Alexandre Julliard34200c32007-07-02 17:31:19 +020010781
10782cat >>confdefs.h <<_ACEOF
10783#define SONAME_LIBJACK "$ac_cv_lib_soname_jack"
10784_ACEOF
10785
10786
10787fi
Alexandre Julliard34200c32007-07-02 17:31:19 +020010788fi
10789
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010790if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10791then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010793$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010794if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010795 $as_echo_n "(cached) " >&6
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010796else
10797 ac_check_soname_save_LIBS=$LIBS
10798LIBS="-lfontconfig $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010800/* end confdefs.h. */
10801
10802/* Override any GCC internal prototype to avoid an error.
10803 Use char because int might match the return type of a GCC
10804 builtin and then its argument prototype would still apply. */
10805#ifdef __cplusplus
10806extern "C"
10807#endif
10808char FcInit ();
10809int
10810main ()
10811{
10812return FcInit ();
10813 ;
10814 return 0;
10815}
10816_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010817if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010818 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010819 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 +020010820 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'` ;;
10821 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10822 esac
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010823fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010824rm -f core conftest.err conftest.$ac_objext \
10825 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010826 LIBS=$ac_check_soname_save_LIBS
10827fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010828if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010830$as_echo "not found" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010831
10832else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010834$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010835
10836cat >>confdefs.h <<_ACEOF
10837#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10838_ACEOF
10839
10840
10841fi
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010842elif test -n "$X_CFLAGS" -a "x$with_fontconfig" != "xno"
Alexandre Julliard5c076732007-10-17 17:04:01 +020010843then
10844 ac_save_CPPFLAGS="$CPPFLAGS"
10845 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
10846 $as_unset ac_cv_header_fontconfig_fontconfig_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010847 for ac_header in fontconfig/fontconfig.h
10848do :
10849 ac_fn_c_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
10850if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020010851 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010852#define HAVE_FONTCONFIG_FONTCONFIG_H 1
Alexandre Julliard5c076732007-10-17 17:04:01 +020010853_ACEOF
10854
10855fi
10856
10857done
10858
10859 CPPFLAGS="$ac_save_CPPFLAGS"
10860 if test "$ac_cv_header_fontconfig_fontconfig_h" = "yes"
10861 then
10862 FONTCONFIGINCL="$X_CFLAGS"
10863
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lfontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010865$as_echo_n "checking for -lfontconfig... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010866if test "${ac_cv_lib_soname_fontconfig+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010867 $as_echo_n "(cached) " >&6
Alexandre Julliard5c076732007-10-17 17:04:01 +020010868else
10869 ac_check_soname_save_LIBS=$LIBS
10870LIBS="-lfontconfig $X_LIBS $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020010872/* end confdefs.h. */
10873
10874/* Override any GCC internal prototype to avoid an error.
10875 Use char because int might match the return type of a GCC
10876 builtin and then its argument prototype would still apply. */
10877#ifdef __cplusplus
10878extern "C"
10879#endif
10880char FcInit ();
10881int
10882main ()
10883{
10884return FcInit ();
10885 ;
10886 return 0;
10887}
10888_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010889if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard5c076732007-10-17 17:04:01 +020010890 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010891 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 +020010892 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'` ;;
10893 *) ac_cv_lib_soname_fontconfig=`$ac_cv_path_LDD conftest$ac_exeext | grep "libfontconfig\\.$LIBEXT" | sed -e "s/^.*\(libfontconfig\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10894 esac
Alexandre Julliard5c076732007-10-17 17:04:01 +020010895fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010896rm -f core conftest.err conftest.$ac_objext \
10897 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard5c076732007-10-17 17:04:01 +020010898 LIBS=$ac_check_soname_save_LIBS
10899fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010900if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010902$as_echo "not found" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020010903
10904else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_fontconfig" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010906$as_echo "$ac_cv_lib_soname_fontconfig" >&6; }
Alexandre Julliard5c076732007-10-17 17:04:01 +020010907
10908cat >>confdefs.h <<_ACEOF
10909#define SONAME_LIBFONTCONFIG "$ac_cv_lib_soname_fontconfig"
10910_ACEOF
10911
10912
10913fi
Alexandre Julliard5c076732007-10-17 17:04:01 +020010914 fi
Alexandre Julliardccd5f282007-07-02 17:31:48 +020010915fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010916if test "x$ac_cv_lib_soname_fontconfig" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010917 case "x$with_fontconfig" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010010918 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 +010010919 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010920 *) as_fn_error "fontconfig ${notice_platform}development files not found, fontconfig won't be supported.
10921This is an error since --with-fontconfig was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010010922esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020010923fi
10924
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010925if test "$ac_cv_header_openssl_err_h" = "yes" -a "$ac_cv_header_openssl_ssl_h" = "yes"
10926then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010928$as_echo_n "checking for -lssl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010929if test "${ac_cv_lib_soname_ssl+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010930 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010931else
10932 ac_check_soname_save_LIBS=$LIBS
10933LIBS="-lssl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010935/* end confdefs.h. */
10936
10937/* Override any GCC internal prototype to avoid an error.
10938 Use char because int might match the return type of a GCC
10939 builtin and then its argument prototype would still apply. */
10940#ifdef __cplusplus
10941extern "C"
10942#endif
10943char SSL_library_init ();
10944int
10945main ()
10946{
10947return SSL_library_init ();
10948 ;
10949 return 0;
10950}
10951_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010952if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010953 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010010954 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 +020010955 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'` ;;
10956 *) ac_cv_lib_soname_ssl=`$ac_cv_path_LDD conftest$ac_exeext | grep "libssl\\.$LIBEXT" | sed -e "s/^.*\(libssl\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
10957 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010958fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010959rm -f core conftest.err conftest.$ac_objext \
10960 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010961 LIBS=$ac_check_soname_save_LIBS
10962fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010963if test "x$ac_cv_lib_soname_ssl" = "x"; then :
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010965$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010966
10967else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_ssl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010969$as_echo "$ac_cv_lib_soname_ssl" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010970
10971cat >>confdefs.h <<_ACEOF
10972#define SONAME_LIBSSL "$ac_cv_lib_soname_ssl"
10973_ACEOF
10974
10975
10976fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lcrypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010010978$as_echo_n "checking for -lcrypto... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010979if test "${ac_cv_lib_soname_crypto+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010010980 $as_echo_n "(cached) " >&6
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010981else
10982 ac_check_soname_save_LIBS=$LIBS
10983LIBS="-lcrypto $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020010984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020010985/* end confdefs.h. */
10986
10987/* Override any GCC internal prototype to avoid an error.
10988 Use char because int might match the return type of a GCC
10989 builtin and then its argument prototype would still apply. */
10990#ifdef __cplusplus
10991extern "C"
10992#endif
10993char BIO_new_socket ();
10994int
10995main ()
10996{
10997return BIO_new_socket ();
10998 ;
10999 return 0;
11000}
11001_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011002if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011003 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011004 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 +020011005 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'` ;;
11006 *) ac_cv_lib_soname_crypto=`$ac_cv_path_LDD conftest$ac_exeext | grep "libcrypto\\.$LIBEXT" | sed -e "s/^.*\(libcrypto\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11007 esac
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011008fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011009rm -f core conftest.err conftest.$ac_objext \
11010 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011011 LIBS=$ac_check_soname_save_LIBS
11012fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011013if test "x$ac_cv_lib_soname_crypto" = "x"; then :
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011015$as_echo "not found" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011016
11017else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_crypto" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011019$as_echo "$ac_cv_lib_soname_crypto" >&6; }
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011020
11021cat >>confdefs.h <<_ACEOF
11022#define SONAME_LIBCRYPTO "$ac_cv_lib_soname_crypto"
11023_ACEOF
11024
11025
11026fi
Alexandre Julliardf91909b2007-07-02 17:32:09 +020011027fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011028if test "x$ac_cv_lib_soname_ssl" = "x" -o "x$ac_cv_lib_soname_crypto" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011029 case "x$with_openssl" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011030 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 +010011031 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011032 *) as_fn_error "OpenSSL ${notice_platform}development files not found, SSL won't be supported.
11033This is an error since --with-openssl was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011034esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011035fi
11036
Maarten Lankhorstc186d8a2009-08-05 11:35:50 +020011037if test "$ac_cv_header_gsm_h" = "yes" -o "$ac_cv_header_gsm_gsm_h" = "yes"
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011038then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lgsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011040$as_echo_n "checking for -lgsm... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011041if test "${ac_cv_lib_soname_gsm+set}" = set; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011042 $as_echo_n "(cached) " >&6
11043else
11044 ac_check_soname_save_LIBS=$LIBS
11045LIBS="-lgsm $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011047/* end confdefs.h. */
11048
11049/* Override any GCC internal prototype to avoid an error.
11050 Use char because int might match the return type of a GCC
11051 builtin and then its argument prototype would still apply. */
11052#ifdef __cplusplus
11053extern "C"
11054#endif
11055char gsm_create ();
11056int
11057main ()
11058{
11059return gsm_create ();
11060 ;
11061 return 0;
11062}
11063_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011064if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011065 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011066 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 +020011067 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'` ;;
11068 *) ac_cv_lib_soname_gsm=`$ac_cv_path_LDD conftest$ac_exeext | grep "libgsm\\.$LIBEXT" | sed -e "s/^.*\(libgsm\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11069 esac
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011070fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011071rm -f core conftest.err conftest.$ac_objext \
11072 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011073 LIBS=$ac_check_soname_save_LIBS
11074fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011075if test "x$ac_cv_lib_soname_gsm" = "x"; then :
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011077$as_echo "not found" >&6; }
11078
11079else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_gsm" >&5
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011081$as_echo "$ac_cv_lib_soname_gsm" >&6; }
11082
11083cat >>confdefs.h <<_ACEOF
11084#define SONAME_LIBGSM "$ac_cv_lib_soname_gsm"
11085_ACEOF
11086
11087
11088fi
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011089fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011090if test "x$ac_cv_lib_soname_gsm" = "x"; then :
Alexandre Julliard6ce32e02009-08-19 15:53:04 +020011091 case "x$with_gsm" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011092 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 +020011093 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011094 *) 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 +020011095This is an error since --with-gsm was requested." "$LINENO" 5 ;;
Maarten Lankhorst58b5a3f2009-08-03 15:48:32 +020011096esac
11097fi
11098
Damjan Jovanovicebee1972010-08-22 19:12:45 +020011099if test "$ac_cv_header_icns_h" = "yes"
11100then
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -licns" >&5
11102$as_echo_n "checking for -licns... " >&6; }
11103if test "${ac_cv_lib_soname_icns+set}" = set; then :
11104 $as_echo_n "(cached) " >&6
11105else
11106 ac_check_soname_save_LIBS=$LIBS
11107LIBS="-licns $LIBS"
11108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109/* end confdefs.h. */
11110
11111/* Override any GCC internal prototype to avoid an error.
11112 Use char because int might match the return type of a GCC
11113 builtin and then its argument prototype would still apply. */
11114#ifdef __cplusplus
11115extern "C"
11116#endif
11117char icns_write_family_to_file ();
11118int
11119main ()
11120{
11121return icns_write_family_to_file ();
11122 ;
11123 return 0;
11124}
11125_ACEOF
11126if ac_fn_c_try_link "$LINENO"; then :
11127 case "$LIBEXT" in
11128 dll) ac_cv_lib_soname_icns=`$ac_cv_path_LDD conftest.exe | grep "icns" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11129 dylib) ac_cv_lib_soname_icns=`otool -L conftest$ac_exeext | grep "libicns\\.[0-9A-Za-z.]*dylib" | sed -e "s/^.*\/\(libicns\.[0-9A-Za-z.]*dylib\).*$/\1/"';2,$d'` ;;
11130 *) ac_cv_lib_soname_icns=`$ac_cv_path_LDD conftest$ac_exeext | grep "libicns\\.$LIBEXT" | sed -e "s/^.*\(libicns\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11131 esac
11132fi
11133rm -f core conftest.err conftest.$ac_objext \
11134 conftest$ac_exeext conftest.$ac_ext
11135 LIBS=$ac_check_soname_save_LIBS
11136fi
11137if test "x$ac_cv_lib_soname_icns" = "x"; then :
11138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11139$as_echo "not found" >&6; }
11140
11141else
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_icns" >&5
11143$as_echo "$ac_cv_lib_soname_icns" >&6; }
11144
11145cat >>confdefs.h <<_ACEOF
11146#define SONAME_LIBICNS "$ac_cv_lib_soname_icns"
11147_ACEOF
11148
11149
11150fi
11151fi
11152case $host_os in
11153 darwin*|macosx*)
11154 if test "x$ac_cv_lib_soname_icns" = "x"; then :
11155 case "x$with_icns" in
11156 x) as_fn_append wine_notices "|libicns ${notice_platform}development files not found, ICNS icons won't be supported." ;;
11157 xno) ;;
11158 *) as_fn_error "libicns ${notice_platform}development files not found, ICNS icons won't be supported.
11159This is an error since --with-icns was requested." "$LINENO" 5 ;;
11160esac
11161fi ;;
11162esac
11163
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011164if test "$ac_cv_header_jpeglib_h" = "yes"
11165then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ljpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011167$as_echo_n "checking for -ljpeg... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011168if test "${ac_cv_lib_soname_jpeg+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011169 $as_echo_n "(cached) " >&6
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011170else
11171 ac_check_soname_save_LIBS=$LIBS
11172LIBS="-ljpeg $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011174/* end confdefs.h. */
11175
11176/* Override any GCC internal prototype to avoid an error.
11177 Use char because int might match the return type of a GCC
11178 builtin and then its argument prototype would still apply. */
11179#ifdef __cplusplus
11180extern "C"
11181#endif
11182char jpeg_start_decompress ();
11183int
11184main ()
11185{
11186return jpeg_start_decompress ();
11187 ;
11188 return 0;
11189}
11190_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011191if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011192 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011193 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 +020011194 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'` ;;
11195 *) ac_cv_lib_soname_jpeg=`$ac_cv_path_LDD conftest$ac_exeext | grep "libjpeg\\.$LIBEXT" | sed -e "s/^.*\(libjpeg\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11196 esac
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011197fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011198rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011200 LIBS=$ac_check_soname_save_LIBS
11201fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011202if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011204$as_echo "not found" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011205
11206else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_jpeg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011208$as_echo "$ac_cv_lib_soname_jpeg" >&6; }
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011209
11210cat >>confdefs.h <<_ACEOF
11211#define SONAME_LIBJPEG "$ac_cv_lib_soname_jpeg"
11212_ACEOF
11213
11214
11215fi
Alexandre Julliardd0fddf42007-07-02 19:53:14 +020011216fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011217if test "x$ac_cv_lib_soname_jpeg" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011218 case "x$with_jpeg" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011219 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 +010011220 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011221 *) as_fn_error "libjpeg ${notice_platform}development files not found, JPEG won't be supported.
11222This is an error since --with-jpeg was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011223esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011224fi
11225
Alexandre Julliard00302152007-07-02 19:54:00 +020011226if test "$ac_cv_header_png_h" = "yes"
11227then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011229$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011230if test "${ac_cv_lib_soname_png+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011231 $as_echo_n "(cached) " >&6
Alexandre Julliard00302152007-07-02 19:54:00 +020011232else
11233 ac_check_soname_save_LIBS=$LIBS
Austin Englishfe8879e2008-12-28 19:10:19 -060011234LIBS="-lpng -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011236/* end confdefs.h. */
11237
11238/* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11241#ifdef __cplusplus
11242extern "C"
11243#endif
11244char png_create_read_struct ();
11245int
11246main ()
11247{
11248return png_create_read_struct ();
11249 ;
11250 return 0;
11251}
11252_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011253if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard00302152007-07-02 19:54:00 +020011254 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011255 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 +020011256 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'` ;;
11257 *) 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'` ;;
11258 esac
Alexandre Julliard00302152007-07-02 19:54:00 +020011259fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011260rm -f core conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard00302152007-07-02 19:54:00 +020011262 LIBS=$ac_check_soname_save_LIBS
11263fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011264if test "x$ac_cv_lib_soname_png" = "x"; then :
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011266$as_echo "not found" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011267
11268else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_png" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011270$as_echo "$ac_cv_lib_soname_png" >&6; }
Alexandre Julliard00302152007-07-02 19:54:00 +020011271
11272cat >>confdefs.h <<_ACEOF
11273#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11274_ACEOF
11275
11276
11277fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11279$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11280if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11281 $as_echo_n "(cached) " >&6
11282else
11283 ac_check_lib_save_LIBS=$LIBS
11284LIBS="-lpng -lm -lz $LIBS"
11285cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286/* end confdefs.h. */
11287
11288/* Override any GCC internal prototype to avoid an error.
11289 Use char because int might match the return type of a GCC
11290 builtin and then its argument prototype would still apply. */
11291#ifdef __cplusplus
11292extern "C"
11293#endif
11294char png_set_expand_gray_1_2_4_to_8 ();
11295int
11296main ()
11297{
11298return png_set_expand_gray_1_2_4_to_8 ();
11299 ;
11300 return 0;
11301}
11302_ACEOF
11303if ac_fn_c_try_link "$LINENO"; then :
11304 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11305else
11306 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11307fi
11308rm -f core conftest.err conftest.$ac_objext \
11309 conftest$ac_exeext conftest.$ac_ext
11310LIBS=$ac_check_lib_save_LIBS
11311fi
11312{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11313$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11314if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11315
11316$as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11317
11318
11319fi
11320
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011321elif test -n "$X_CFLAGS" -a "x$with_png" != "xno"
11322then
11323 ac_save_CPPFLAGS="$CPPFLAGS"
11324 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
11325 $as_unset ac_cv_header_png_h
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011326 for ac_header in png.h
11327do :
11328 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
11329if test "x$ac_cv_header_png_h" = x""yes; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011330 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011331#define HAVE_PNG_H 1
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011332_ACEOF
11333
11334fi
11335
11336done
11337
11338 CPPFLAGS="$ac_save_CPPFLAGS"
11339 if test "$ac_cv_header_png_h" = "yes"
11340 then
11341 PNGINCL="$X_CFLAGS"
11342
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lpng" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011344$as_echo_n "checking for -lpng... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011345if test "${ac_cv_lib_soname_png+set}" = set; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011346 $as_echo_n "(cached) " >&6
11347else
11348 ac_check_soname_save_LIBS=$LIBS
11349LIBS="-lpng $X_LIBS -lm -lz $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011351/* end confdefs.h. */
11352
11353/* Override any GCC internal prototype to avoid an error.
11354 Use char because int might match the return type of a GCC
11355 builtin and then its argument prototype would still apply. */
11356#ifdef __cplusplus
11357extern "C"
11358#endif
11359char png_create_read_struct ();
11360int
11361main ()
11362{
11363return png_create_read_struct ();
11364 ;
11365 return 0;
11366}
11367_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011368if ac_fn_c_try_link "$LINENO"; then :
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011369 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011370 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 +020011371 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'` ;;
11372 *) 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'` ;;
11373 esac
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011374fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011375rm -f core conftest.err conftest.$ac_objext \
11376 conftest$ac_exeext conftest.$ac_ext
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011377 LIBS=$ac_check_soname_save_LIBS
11378fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011379if test "x$ac_cv_lib_soname_png" = "x"; then :
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011381$as_echo "not found" >&6; }
11382
11383else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011384 { $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 +020011385$as_echo "$ac_cv_lib_soname_png" >&6; }
11386
11387cat >>confdefs.h <<_ACEOF
11388#define SONAME_LIBPNG "$ac_cv_lib_soname_png"
11389_ACEOF
11390
11391
11392fi
Marcus Meissner615e0e62010-02-27 23:13:21 +010011393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_set_expand_gray_1_2_4_to_8 in -lpng" >&5
11394$as_echo_n "checking for png_set_expand_gray_1_2_4_to_8 in -lpng... " >&6; }
11395if test "${ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
11397else
11398 ac_check_lib_save_LIBS=$LIBS
11399LIBS="-lpng $X_LIBS -lm -lz $LIBS"
11400cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11401/* end confdefs.h. */
11402
11403/* Override any GCC internal prototype to avoid an error.
11404 Use char because int might match the return type of a GCC
11405 builtin and then its argument prototype would still apply. */
11406#ifdef __cplusplus
11407extern "C"
11408#endif
11409char png_set_expand_gray_1_2_4_to_8 ();
11410int
11411main ()
11412{
11413return png_set_expand_gray_1_2_4_to_8 ();
11414 ;
11415 return 0;
11416}
11417_ACEOF
11418if ac_fn_c_try_link "$LINENO"; then :
11419 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=yes
11420else
11421 ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8=no
11422fi
11423rm -f core conftest.err conftest.$ac_objext \
11424 conftest$ac_exeext conftest.$ac_ext
11425LIBS=$ac_check_lib_save_LIBS
11426fi
11427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&5
11428$as_echo "$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" >&6; }
11429if test "x$ac_cv_lib_png_png_set_expand_gray_1_2_4_to_8" = x""yes; then :
11430 $as_echo "#define HAVE_PNG_SET_EXPAND_GRAY_1_2_4_TO_8 1" >>confdefs.h
11431
11432fi
11433
Joerg-Cyril.Hoehle@t-systems.com85b61892009-05-23 12:39:50 +020011434 fi
Alexandre Julliard00302152007-07-02 19:54:00 +020011435fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011436if test "x$ac_cv_lib_soname_png" = "x"; then :
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011437 case "x$with_png" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011438 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 +010011439 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011440 *) as_fn_error "libpng ${notice_platform}development files not found, PNG won't be supported.
11441This is an error since --with-png was requested." "$LINENO" 5 ;;
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011442esac
Alexandre Julliard7f674962007-07-10 15:22:18 +020011443fi
11444
Vincent Povirk73cd5692010-03-08 17:07:29 -060011445if test "$ac_cv_header_tiffio_h" = "yes"
11446then
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -ltiff" >&5
11448$as_echo_n "checking for -ltiff... " >&6; }
11449if test "${ac_cv_lib_soname_tiff+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11451else
11452 ac_check_soname_save_LIBS=$LIBS
11453LIBS="-ltiff $LIBS"
11454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11455/* end confdefs.h. */
11456
11457/* Override any GCC internal prototype to avoid an error.
11458 Use char because int might match the return type of a GCC
11459 builtin and then its argument prototype would still apply. */
11460#ifdef __cplusplus
11461extern "C"
11462#endif
11463char TIFFClientOpen ();
11464int
11465main ()
11466{
11467return TIFFClientOpen ();
11468 ;
11469 return 0;
11470}
11471_ACEOF
11472if ac_fn_c_try_link "$LINENO"; then :
11473 case "$LIBEXT" in
11474 dll) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest.exe | grep "tiff" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11475 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'` ;;
11476 *) ac_cv_lib_soname_tiff=`$ac_cv_path_LDD conftest$ac_exeext | grep "libtiff\\.$LIBEXT" | sed -e "s/^.*\(libtiff\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11477 esac
11478fi
11479rm -f core conftest.err conftest.$ac_objext \
11480 conftest$ac_exeext conftest.$ac_ext
11481 LIBS=$ac_check_soname_save_LIBS
11482fi
11483if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11485$as_echo "not found" >&6; }
11486
11487else
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_tiff" >&5
11489$as_echo "$ac_cv_lib_soname_tiff" >&6; }
11490
11491cat >>confdefs.h <<_ACEOF
11492#define SONAME_LIBTIFF "$ac_cv_lib_soname_tiff"
11493_ACEOF
11494
11495
11496fi
11497fi
11498if test "x$ac_cv_lib_soname_tiff" = "x"; then :
11499 case "x$with_tiff" in
11500 x) as_fn_append wine_notices "|libtiff ${notice_platform}development files not found, TIFF won't be supported." ;;
11501 xno) ;;
11502 *) as_fn_error "libtiff ${notice_platform}development files not found, TIFF won't be supported.
11503This is an error since --with-tiff was requested." "$LINENO" 5 ;;
11504esac
11505fi
11506
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011507if test "$ac_cv_header_mpg123_h" = "yes"
11508then
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mpg123_feed in -lmpg123" >&5
11510$as_echo_n "checking for mpg123_feed in -lmpg123... " >&6; }
11511if test "${ac_cv_lib_mpg123_mpg123_feed+set}" = set; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011512 $as_echo_n "(cached) " >&6
11513else
11514 ac_check_lib_save_LIBS=$LIBS
11515LIBS="-lmpg123 $LIBS"
11516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517/* end confdefs.h. */
11518
11519/* Override any GCC internal prototype to avoid an error.
11520 Use char because int might match the return type of a GCC
11521 builtin and then its argument prototype would still apply. */
11522#ifdef __cplusplus
11523extern "C"
11524#endif
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011525char mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011526int
11527main ()
11528{
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011529return mpg123_feed ();
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011530 ;
11531 return 0;
11532}
11533_ACEOF
11534if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011535 ac_cv_lib_mpg123_mpg123_feed=yes
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011536else
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011537 ac_cv_lib_mpg123_mpg123_feed=no
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011538fi
11539rm -f core conftest.err conftest.$ac_objext \
11540 conftest$ac_exeext conftest.$ac_ext
11541LIBS=$ac_check_lib_save_LIBS
11542fi
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mpg123_mpg123_feed" >&5
11544$as_echo "$ac_cv_lib_mpg123_mpg123_feed" >&6; }
11545if test "x$ac_cv_lib_mpg123_mpg123_feed" = x""yes; then :
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011546 LIBMPG123="-lmpg123"
11547
11548fi
11549
11550fi
Aric Stewart4430ab42010-03-17 10:58:32 -050011551if 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 -050011552 case "x$with_mpg123" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011553 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 -050011554 xno) ;;
Alexandre Julliard7bf8d052009-08-29 12:20:25 +020011555 *) 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 -050011556This is an error since --with-mpg123 was requested." "$LINENO" 5 ;;
11557esac
11558fi
Kristofer Henrikssonc58eff62010-05-24 15:04:42 -040011559test "x$ac_cv_lib_mpg123_mpg123_feed" = xyes -o "x$ac_cv_header_AudioToolbox_AudioConverter_h" = xyes || enable_winemp3_acm=${enable_winemp3_acm:-no}
Aric Stewartdb71d7c2009-08-19 09:37:48 -050011560
Chris Robinson862965f2009-08-25 03:26:35 -070011561if test "$ac_cv_header_AL_al_h" = "yes"
11562then
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lopenal" >&5
11564$as_echo_n "checking for -lopenal... " >&6; }
11565if test "${ac_cv_lib_soname_openal+set}" = set; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011566 $as_echo_n "(cached) " >&6
11567else
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011568 ac_check_soname_save_LIBS=$LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011569LIBS="-lopenal $LIBS"
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Chris Robinson862965f2009-08-25 03:26:35 -070011571/* end confdefs.h. */
11572
11573/* Override any GCC internal prototype to avoid an error.
11574 Use char because int might match the return type of a GCC
11575 builtin and then its argument prototype would still apply. */
11576#ifdef __cplusplus
11577extern "C"
11578#endif
11579char alGetSource3i ();
11580int
11581main ()
11582{
11583return alGetSource3i ();
11584 ;
11585 return 0;
11586}
11587_ACEOF
11588if ac_fn_c_try_link "$LINENO"; then :
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011589 case "$LIBEXT" in
11590 dll) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest.exe | grep "openal" | sed -e "s/dll.*/dll/"';2,$d'` ;;
11591 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'` ;;
11592 *) ac_cv_lib_soname_openal=`$ac_cv_path_LDD conftest$ac_exeext | grep "libopenal\\.$LIBEXT" | sed -e "s/^.*\(libopenal\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11593 esac
Chris Robinson862965f2009-08-25 03:26:35 -070011594fi
11595rm -f core conftest.err conftest.$ac_objext \
11596 conftest$ac_exeext conftest.$ac_ext
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011597 LIBS=$ac_check_soname_save_LIBS
Chris Robinson862965f2009-08-25 03:26:35 -070011598fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011599if test "x$ac_cv_lib_soname_openal" = "x"; then :
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
11601$as_echo "not found" >&6; }
11602
11603else
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_openal" >&5
11605$as_echo "$ac_cv_lib_soname_openal" >&6; }
11606
11607cat >>confdefs.h <<_ACEOF
11608#define SONAME_LIBOPENAL "$ac_cv_lib_soname_openal"
11609_ACEOF
11610
11611 LIBOPENAL="-lopenal"
11612
11613 ac_cv_lib_openal=yes
11614
11615cat >>confdefs.h <<_ACEOF
11616#define HAVE_OPENAL 1
11617_ACEOF
Chris Robinson862965f2009-08-25 03:26:35 -070011618
11619fi
Chris Robinson862965f2009-08-25 03:26:35 -070011620fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011621if test "x$ac_cv_lib_openal" != xyes; then :
Chris Robinson862965f2009-08-25 03:26:35 -070011622 case "x$with_openal" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011623 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 -070011624 xno) ;;
11625 *) as_fn_error "libopenal ${notice_platform}development files not found (or too old), OpenAL won't be supported.
11626This is an error since --with-openal was requested." "$LINENO" 5 ;;
11627esac
11628fi
Maarten Lankhorstd4354992009-12-09 11:52:09 +010011629test "x$ac_cv_lib_openal" = xyes || enable_openal32=${enable_openal32:-no}
Chris Robinson862965f2009-08-25 03:26:35 -070011630
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011631if test "$ac_cv_header_kstat_h" = "yes"
11632then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011634$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011635if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011636 $as_echo_n "(cached) " >&6
11637else
11638 ac_check_lib_save_LIBS=$LIBS
11639LIBS="-lkstat $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011641/* end confdefs.h. */
11642
11643/* Override any GCC internal prototype to avoid an error.
11644 Use char because int might match the return type of a GCC
11645 builtin and then its argument prototype would still apply. */
11646#ifdef __cplusplus
11647extern "C"
11648#endif
11649char kstat_open ();
11650int
11651main ()
11652{
11653return kstat_open ();
11654 ;
11655 return 0;
11656}
11657_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011658if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011659 ac_cv_lib_kstat_kstat_open=yes
11660else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011661 ac_cv_lib_kstat_kstat_open=no
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011662fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011663rm -f core conftest.err conftest.$ac_objext \
11664 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011665LIBS=$ac_check_lib_save_LIBS
11666fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011668$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011669if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011670
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011671$as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
Alexandre Julliardde1d7fb2009-03-05 18:45:32 +010011672
11673 LIBKSTAT="-lkstat"
11674
11675fi
11676
11677fi
11678
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -lodbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011680$as_echo_n "checking for -lodbc... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011681if test "${ac_cv_lib_soname_odbc+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011682 $as_echo_n "(cached) " >&6
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011683else
11684 ac_check_soname_save_LIBS=$LIBS
11685LIBS="-lodbc $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011687/* end confdefs.h. */
11688
11689/* Override any GCC internal prototype to avoid an error.
11690 Use char because int might match the return type of a GCC
11691 builtin and then its argument prototype would still apply. */
11692#ifdef __cplusplus
11693extern "C"
11694#endif
11695char SQLConnect ();
11696int
11697main ()
11698{
11699return SQLConnect ();
11700 ;
11701 return 0;
11702}
11703_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011704if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011705 case "$LIBEXT" in
Alexandre Goujon2b05c842010-03-01 21:39:39 +010011706 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 +010011707 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'` ;;
11708 *) ac_cv_lib_soname_odbc=`$ac_cv_path_LDD conftest$ac_exeext | grep "libodbc\\.$LIBEXT" | sed -e "s/^.*\(libodbc\.$LIBEXT[^ ]*\).*$/\1/"';2,$d'` ;;
11709 esac
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011710fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011711rm -f core conftest.err conftest.$ac_objext \
11712 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011713 LIBS=$ac_check_soname_save_LIBS
11714fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011715if test "x$ac_cv_lib_soname_odbc" = "x"; then :
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011717$as_echo "not found" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011718 cat >>confdefs.h <<_ACEOF
11719#define SONAME_LIBODBC "libodbc.$LIBEXT"
11720_ACEOF
11721
11722else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_soname_odbc" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011724$as_echo "$ac_cv_lib_soname_odbc" >&6; }
Alexandre Julliard84f8ab62008-01-07 17:16:29 +010011725
11726cat >>confdefs.h <<_ACEOF
11727#define SONAME_LIBODBC "$ac_cv_lib_soname_odbc"
11728_ACEOF
11729
11730
11731fi
11732
Francois Gouget3089a9f2008-07-31 18:59:50 +020011733if test "x$ALSALIBS$AUDIOIOLIBS$COREAUDIO$NASLIBS$ESDLIBS$ac_cv_lib_soname_jack" = "x" -a \
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010011734 "$ac_cv_header_sys_soundcard_h" != "yes" -a \
11735 "$ac_cv_header_machine_soundcard_h" != "yes" -a \
11736 "$ac_cv_header_soundcard_h" != "yes" -a \
11737 "x$with_alsa$with_audioio$with_coreaudio$with_nas$with_esd$with_jack$with_oss" != xnonononononono
11738then
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010011739 as_fn_append wine_warnings "|No sound system was found. Windows applications will be silent."
Alexandre Julliardf9dec942007-07-10 15:14:15 +020011740fi
11741
11742
Alexandre Julliardfc094232003-04-14 21:46:41 +000011743EXTRACFLAGS=""
11744
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011745if test "x${GCC}" = "xyes"
11746then
Hans Leidekkerd17b2322004-01-06 21:37:44 +000011747 EXTRACFLAGS="-Wall -pipe"
Mike McCormackc509bc42003-02-25 04:01:58 +000011748
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc strength-reduce bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011750$as_echo_n "checking for gcc strength-reduce bug... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011751if test "${ac_cv_c_gcc_strength_bug+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011752 $as_echo_n "(cached) " >&6
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011753else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011754 if test "$cross_compiling" = yes; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011755 ac_cv_c_gcc_strength_bug="yes"
11756else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000011758/* end confdefs.h. */
Alexandre Julliardad356de2007-06-08 20:23:16 +020011759int L[4] = {0,1,2,3};
11760int
11761main ()
11762{
11763static int Array[3];
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011764 unsigned int B = 3;
11765 int i;
Alexandre Julliardd2e1c1a1996-03-09 16:12:43 +000011766 for(i=0; i<B; i++) Array[i] = i - 3;
Eric Pouech5aee80f2000-11-11 00:31:39 +000011767 for(i=0; i<4 - 1; i++) L[i] = L[i + 1];
11768 L[i] = 4;
Alexandre Julliard95251a72009-02-16 12:46:58 +010011769 return (Array[1] != -2 || L[2] != 3)
Alexandre Julliardad356de2007-06-08 20:23:16 +020011770 ;
11771 return 0;
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011772}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000011773_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011774if ac_fn_c_try_run "$LINENO"; then :
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011775 ac_cv_c_gcc_strength_bug="no"
11776else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011777 ac_cv_c_gcc_strength_bug="yes"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011778fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011779rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11780 conftest.$ac_objext conftest.beam conftest.$ac_ext
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011781fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020011782
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011783fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_gcc_strength_bug" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011785$as_echo "$ac_cv_c_gcc_strength_bug" >&6; }
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011786 if test "$ac_cv_c_gcc_strength_bug" = "yes"
11787 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011788 EXTRACFLAGS="$EXTRACFLAGS -fno-strength-reduce"
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000011789 fi
Alexandre Julliardf9b94cb2000-12-06 03:50:22 +000011790
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011792$as_echo_n "checking whether the compiler supports -fno-builtin... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011793if test "${ac_cv_cflags__fno_builtin+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011794 $as_echo_n "(cached) " >&6
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011795else
11796 ac_wine_try_cflags_saved=$CFLAGS
11797CFLAGS="$CFLAGS -fno-builtin"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011799/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011800int main(int argc, char **argv) { return 0; }
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011801_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011802if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011803 ac_cv_cflags__fno_builtin=yes
11804else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011805 ac_cv_cflags__fno_builtin=no
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011806fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011807rm -f core conftest.err conftest.$ac_objext \
11808 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011809CFLAGS=$ac_wine_try_cflags_saved
11810fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_builtin" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011812$as_echo "$ac_cv_cflags__fno_builtin" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011813if test $ac_cv_cflags__fno_builtin = yes; then :
Alexandre Julliard6538cb42008-09-22 11:51:02 +020011814 BUILTINFLAG="-fno-builtin"
11815
11816fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fno-strict-aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011818$as_echo_n "checking whether the compiler supports -fno-strict-aliasing... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011819if test "${ac_cv_cflags__fno_strict_aliasing+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011820 $as_echo_n "(cached) " >&6
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011821else
11822 ac_wine_try_cflags_saved=$CFLAGS
11823CFLAGS="$CFLAGS -fno-strict-aliasing"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011824cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011825/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011826int main(int argc, char **argv) { return 0; }
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011827_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011828if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011829 ac_cv_cflags__fno_strict_aliasing=yes
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011830else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011831 ac_cv_cflags__fno_strict_aliasing=no
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011832fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011833rm -f core conftest.err conftest.$ac_objext \
11834 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardefca0f62003-07-24 00:09:51 +000011835CFLAGS=$ac_wine_try_cflags_saved
11836fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__fno_strict_aliasing" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011838$as_echo "$ac_cv_cflags__fno_strict_aliasing" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011839if test $ac_cv_cflags__fno_strict_aliasing = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011840 EXTRACFLAGS="$EXTRACFLAGS -fno-strict-aliasing"
11841fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wdeclaration-after-statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011843$as_echo_n "checking whether the compiler supports -Wdeclaration-after-statement... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011844if test "${ac_cv_cflags__Wdeclaration_after_statement+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011845 $as_echo_n "(cached) " >&6
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011846else
11847 ac_wine_try_cflags_saved=$CFLAGS
11848CFLAGS="$CFLAGS -Wdeclaration-after-statement"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011850/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011851int main(int argc, char **argv) { return 0; }
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011852_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011853if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011854 ac_cv_cflags__Wdeclaration_after_statement=yes
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011855else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011856 ac_cv_cflags__Wdeclaration_after_statement=no
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011857fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011858rm -f core conftest.err conftest.$ac_objext \
11859 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf8cb48b2005-09-12 10:14:00 +000011860CFLAGS=$ac_wine_try_cflags_saved
11861fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wdeclaration_after_statement" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011863$as_echo "$ac_cv_cflags__Wdeclaration_after_statement" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011864if test $ac_cv_cflags__Wdeclaration_after_statement = yes; then :
Alexandre Julliard182d1502006-08-25 13:22:33 +020011865 EXTRACFLAGS="$EXTRACFLAGS -Wdeclaration-after-statement"
11866fi
Alexandre Julliard295806f2009-10-07 13:46:06 +020011867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wstrict-prototypes" >&5
11868$as_echo_n "checking whether the compiler supports -Wstrict-prototypes... " >&6; }
11869if test "${ac_cv_cflags__Wstrict_prototypes+set}" = set; then :
11870 $as_echo_n "(cached) " >&6
11871else
11872 ac_wine_try_cflags_saved=$CFLAGS
11873CFLAGS="$CFLAGS -Wstrict-prototypes"
11874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11875/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011876int main(int argc, char **argv) { return 0; }
Alexandre Julliard295806f2009-10-07 13:46:06 +020011877_ACEOF
11878if ac_fn_c_try_link "$LINENO"; then :
11879 ac_cv_cflags__Wstrict_prototypes=yes
11880else
11881 ac_cv_cflags__Wstrict_prototypes=no
11882fi
11883rm -f core conftest.err conftest.$ac_objext \
11884 conftest$ac_exeext conftest.$ac_ext
11885CFLAGS=$ac_wine_try_cflags_saved
11886fi
11887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wstrict_prototypes" >&5
11888$as_echo "$ac_cv_cflags__Wstrict_prototypes" >&6; }
11889if test $ac_cv_cflags__Wstrict_prototypes = yes; then :
11890 EXTRACFLAGS="$EXTRACFLAGS -Wstrict-prototypes"
11891fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wtype-limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011893$as_echo_n "checking whether the compiler supports -Wtype-limits... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011894if test "${ac_cv_cflags__Wtype_limits+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011895 $as_echo_n "(cached) " >&6
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011896else
11897 ac_wine_try_cflags_saved=$CFLAGS
11898CFLAGS="$CFLAGS -Wtype-limits"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011900/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011901int main(int argc, char **argv) { return 0; }
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011902_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011903if ac_fn_c_try_link "$LINENO"; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011904 ac_cv_cflags__Wtype_limits=yes
11905else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011906 ac_cv_cflags__Wtype_limits=no
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011907fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011908rm -f core conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011910CFLAGS=$ac_wine_try_cflags_saved
11911fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wtype_limits" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011913$as_echo "$ac_cv_cflags__Wtype_limits" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011914if test $ac_cv_cflags__Wtype_limits = yes; then :
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011915 EXTRACFLAGS="$EXTRACFLAGS -Wtype-limits"
11916fi
Gerald Pfeifereae58292010-01-02 15:13:43 +010011917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wwrite-strings" >&5
11918$as_echo_n "checking whether the compiler supports -Wwrite-strings... " >&6; }
11919if test "${ac_cv_cflags__Wwrite_strings+set}" = set; then :
11920 $as_echo_n "(cached) " >&6
11921else
11922 ac_wine_try_cflags_saved=$CFLAGS
11923CFLAGS="$CFLAGS -Wwrite-strings"
11924cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010011926int main(int argc, char **argv) { return 0; }
Gerald Pfeifereae58292010-01-02 15:13:43 +010011927_ACEOF
11928if ac_fn_c_try_link "$LINENO"; then :
11929 ac_cv_cflags__Wwrite_strings=yes
11930else
11931 ac_cv_cflags__Wwrite_strings=no
11932fi
11933rm -f core conftest.err conftest.$ac_objext \
11934 conftest$ac_exeext conftest.$ac_ext
11935CFLAGS=$ac_wine_try_cflags_saved
11936fi
11937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wwrite_strings" >&5
11938$as_echo "$ac_cv_cflags__Wwrite_strings" >&6; }
11939if test $ac_cv_cflags__Wwrite_strings = yes; then :
11940 EXTRACFLAGS="$EXTRACFLAGS -Wwrite-strings"
11941fi
Gerald Pfeifer701ef1d2008-01-28 01:28:59 +010011942
Alexandre Julliard4d52d372003-03-24 19:33:20 +000011943 saved_CFLAGS="$CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000011944 CFLAGS="$CFLAGS -Wpointer-arith -Werror"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken string.h that generates warnings" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011946$as_echo_n "checking for broken string.h that generates warnings... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011947if test "${ac_cv_c_string_h_warnings+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010011948 $as_echo_n "(cached) " >&6
Mike McCormackc509bc42003-02-25 04:01:58 +000011949else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000011951/* end confdefs.h. */
11952#include <string.h>
11953int
11954main ()
11955{
11956
11957 ;
11958 return 0;
11959}
11960_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011961if ac_fn_c_try_compile "$LINENO"; then :
Mike McCormackc509bc42003-02-25 04:01:58 +000011962 ac_cv_c_string_h_warnings=no
11963else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011964 ac_cv_c_string_h_warnings=yes
Mike McCormackc509bc42003-02-25 04:01:58 +000011965fi
Jeremy White0ebeb532006-06-20 13:18:41 +020011966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Mike McCormackc509bc42003-02-25 04:01:58 +000011967fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020011968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_string_h_warnings" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010011969$as_echo "$ac_cv_c_string_h_warnings" >&6; }
Alexandre Julliard4d52d372003-03-24 19:33:20 +000011970 CFLAGS="$saved_CFLAGS"
Mike McCormackc509bc42003-02-25 04:01:58 +000011971 if test "$ac_cv_c_string_h_warnings" = "no"
11972 then
Alexandre Julliardfc094232003-04-14 21:46:41 +000011973 EXTRACFLAGS="$EXTRACFLAGS -Wpointer-arith"
Mike McCormackc509bc42003-02-25 04:01:58 +000011974 fi
Alexandre Julliard12753c52009-10-02 14:39:49 +020011975
Alexandre Julliard83676d72010-07-24 11:42:59 +020011976 saved_CFLAGS="$CFLAGS"
11977 CFLAGS="$CFLAGS -Werror"
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken unused result warnings" >&5
11979$as_echo_n "checking for broken unused result warnings... " >&6; }
11980if test "${ac_cv_c_unused_result_warnings+set}" = set; then :
11981 $as_echo_n "(cached) " >&6
11982else
11983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11984/* end confdefs.h. */
11985#include <unistd.h>
11986int
11987main ()
11988{
11989write(2,"a",1)
11990 ;
11991 return 0;
11992}
11993_ACEOF
11994if ac_fn_c_try_compile "$LINENO"; then :
11995 ac_cv_c_unused_result_warnings=no
11996else
11997 ac_cv_c_unused_result_warnings=yes
11998fi
11999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12000fi
12001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_unused_result_warnings" >&5
12002$as_echo "$ac_cv_c_unused_result_warnings" >&6; }
12003 CFLAGS="$saved_CFLAGS"
12004 if test "$ac_cv_c_unused_result_warnings" = "yes"
12005 then
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Wno-unused-result" >&5
12007$as_echo_n "checking whether the compiler supports -Wno-unused-result... " >&6; }
12008if test "${ac_cv_cflags__Wno_unused_result+set}" = set; then :
12009 $as_echo_n "(cached) " >&6
12010else
12011 ac_wine_try_cflags_saved=$CFLAGS
12012CFLAGS="$CFLAGS -Wno-unused-result"
12013cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014/* end confdefs.h. */
12015int main(int argc, char **argv) { return 0; }
12016_ACEOF
12017if ac_fn_c_try_link "$LINENO"; then :
12018 ac_cv_cflags__Wno_unused_result=yes
12019else
12020 ac_cv_cflags__Wno_unused_result=no
12021fi
12022rm -f core conftest.err conftest.$ac_objext \
12023 conftest$ac_exeext conftest.$ac_ext
12024CFLAGS=$ac_wine_try_cflags_saved
12025fi
12026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Wno_unused_result" >&5
12027$as_echo "$ac_cv_cflags__Wno_unused_result" >&6; }
12028if test $ac_cv_cflags__Wno_unused_result = yes; then :
12029 EXTRACFLAGS="$EXTRACFLAGS -Wno-unused-result"
12030fi
12031 fi
12032
Andrew Nguyen2eda9c72010-05-25 22:20:14 -050012033 if test "x$enable_maintainer_mode" = "xyes"
Alexandre Julliard12753c52009-10-02 14:39:49 +020012034 then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -Werror" >&5
12036$as_echo_n "checking whether the compiler supports -Werror... " >&6; }
12037if test "${ac_cv_cflags__Werror+set}" = set; then :
12038 $as_echo_n "(cached) " >&6
12039else
12040 ac_wine_try_cflags_saved=$CFLAGS
12041CFLAGS="$CFLAGS -Werror"
12042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12043/* end confdefs.h. */
Yann Droneaud5d3eacd2010-03-04 11:43:17 +010012044int main(int argc, char **argv) { return 0; }
Alexandre Julliard12753c52009-10-02 14:39:49 +020012045_ACEOF
12046if ac_fn_c_try_link "$LINENO"; then :
12047 ac_cv_cflags__Werror=yes
12048else
12049 ac_cv_cflags__Werror=no
12050fi
12051rm -f core conftest.err conftest.$ac_objext \
12052 conftest$ac_exeext conftest.$ac_ext
12053CFLAGS=$ac_wine_try_cflags_saved
12054fi
12055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags__Werror" >&5
12056$as_echo "$ac_cv_cflags__Werror" >&6; }
12057if test $ac_cv_cflags__Werror = yes; then :
12058 EXTRACFLAGS="$EXTRACFLAGS -Werror"
12059fi
12060 fi
Stefan Dösingerfdac5e52009-09-12 14:08:53 +020012061
12062 saved_CFLAGS="$CFLAGS"
12063 CFLAGS="$CFLAGS -Werror"
12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ms_hook_prologue attribute" >&5
12065$as_echo_n "checking for ms_hook_prologue attribute... " >&6; }
12066if test "${ac_cv_have_ms_hook_prologue+set}" = set; then :
12067 $as_echo_n "(cached) " >&6
12068else
12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070/* end confdefs.h. */
12071int __attribute__((__ms_hook_prologue__)) test(void) { return 0; }
12072int
12073main ()
12074{
12075
12076 ;
12077 return 0;
12078}
12079_ACEOF
12080if ac_fn_c_try_compile "$LINENO"; then :
12081 ac_cv_have_ms_hook_prologue="yes"
12082else
12083 ac_cv_have_ms_hook_prologue="no"
12084fi
12085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12086fi
12087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_ms_hook_prologue" >&5
12088$as_echo "$ac_cv_have_ms_hook_prologue" >&6; }
12089 CFLAGS="$saved_CFLAGS"
12090 if test "$ac_cv_have_ms_hook_prologue" = "yes"
12091 then
12092
12093$as_echo "#define DECLSPEC_HOTPATCH __attribute__((__ms_hook_prologue__))" >>confdefs.h
12094
12095 else
12096 $as_echo "#define DECLSPEC_HOTPATCH /* */" >>confdefs.h
12097
12098 fi
Alexandre Julliard4f8c37b1996-01-14 18:12:01 +000012099fi
12100
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012101
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need an underscore prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012103$as_echo_n "checking whether external symbols need an underscore prefix... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012104if test "${ac_cv_c_extern_prefix+set}" = set; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012105 $as_echo_n "(cached) " >&6
12106else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012108/* end confdefs.h. */
12109extern int ac_test;
12110int
12111main ()
12112{
12113asm(".globl _ac_test\n_ac_test:\t.long 0"); if (ac_test) return 1
12114 ;
12115 return 0;
12116}
12117_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012118if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012119 ac_cv_c_extern_prefix="yes"
12120else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012121 ac_cv_c_extern_prefix="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012122fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012123rm -f core conftest.err conftest.$ac_objext \
12124 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012125fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_extern_prefix" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012127$as_echo "$ac_cv_c_extern_prefix" >&6; }
12128
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012129case $host_cpu in
12130 *i[3456789]86*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether external symbols need stdcall decoration" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012132$as_echo_n "checking whether external symbols need stdcall decoration... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012133if test "${ac_cv_c_stdcall_suffix+set}" = set; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012134 $as_echo_n "(cached) " >&6
12135else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012137/* end confdefs.h. */
12138#ifndef _MSC_VER
12139#define __stdcall __attribute__((__stdcall__))
12140#endif
12141int __stdcall ac_test(int i) { return i; }
12142int
12143main ()
12144{
12145asm("jmp _ac_test@4"); if (ac_test(1)) return 1
12146 ;
12147 return 0;
12148}
12149_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012150if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012151 ac_cv_c_stdcall_suffix="yes"
12152else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012153 ac_cv_c_stdcall_suffix="no"
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012154fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012155rm -f core conftest.err conftest.$ac_objext \
12156 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012157fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stdcall_suffix" >&5
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012159$as_echo "$ac_cv_c_stdcall_suffix" >&6; } ;;
12160 *) ac_cv_c_stdcall_suffix="no" ;;
12161esac
12162
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012163
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012164if test "$ac_cv_c_extern_prefix" = "yes"
12165then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012166 $as_echo "#define __ASM_NAME(name) \"_\" name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012167
12168 asm_name_prefix="_"
12169else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012170 $as_echo "#define __ASM_NAME(name) name" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012171
12172 asm_name_prefix=""
12173fi
12174
12175
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012176if test "$ac_cv_c_stdcall_suffix" = "yes"
12177then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012178 $as_echo "#define __ASM_STDCALL(args) \"@\" #args" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012179
12180else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012181 $as_echo "#define __ASM_STDCALL(args) \"\"" >>confdefs.h
Alexandre Julliard9cebf092009-06-14 11:24:20 +020012182
12183fi
12184
12185
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a function in assembly code" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012187$as_echo_n "checking how to define a function in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012188if test "${ac_cv_asm_func_def+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012189 $as_echo_n "(cached) " >&6
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012190else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012192/* end confdefs.h. */
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012193
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012194int
12195main ()
12196{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012197asm("\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 +000012198 ;
12199 return 0;
12200}
12201_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012202if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012203 ac_cv_asm_func_def=".def"
Dimitrie O. Paunc77cbbc2000-11-27 23:32:55 +000012204else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012206/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012207
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012208int
12209main ()
12210{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012211asm("\t.globl _ac_test\n\t.type _ac_test,@function\n_ac_test:\t.long 0");
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012212 ;
12213 return 0;
12214}
12215_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012216if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012217 ac_cv_asm_func_def=".type @function"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012218else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012220/* end confdefs.h. */
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012221
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012222int
12223main ()
12224{
Alexandre Julliardad356de2007-06-08 20:23:16 +020012225asm("\t.globl _ac_test\n\t.type _ac_test,2\n_ac_test:\t.long 0");
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012226 ;
12227 return 0;
12228}
12229_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012230if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012231 ac_cv_asm_func_def=".type 2"
12232else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012233 ac_cv_asm_func_def="unknown"
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012234fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012235rm -f core conftest.err conftest.$ac_objext \
12236 conftest$ac_exeext conftest.$ac_ext
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012237fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012238rm -f core conftest.err conftest.$ac_objext \
12239 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012240fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012241rm -f core conftest.err conftest.$ac_objext \
12242 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012243fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_asm_func_def" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012245$as_echo "$ac_cv_asm_func_def" >&6; }
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012246
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012247
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012248case "$ac_cv_asm_func_def" in
12249 ".def")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012250 $as_echo "#define __ASM_FUNC(name) \".def \" __ASM_NAME(name) \"; .scl 2; .type 32; .endef\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012251
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012252 asm_func_header=".def $asm_name_prefix\" #name suffix \"; .scl 2; .type 32; .endef" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012253 ".type @function")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012254 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",@function\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012255
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012256 asm_func_header=".type $asm_name_prefix\" #name suffix \",@function" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012257 ".type 2")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012258 $as_echo "#define __ASM_FUNC(name) \".type \" __ASM_NAME(name) \",2\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012259
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012260 asm_func_header=".type $asm_name_prefix\" #name suffix \",2" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012261 *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012262 $as_echo "#define __ASM_FUNC(name) \"\"" >>confdefs.h
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012263
12264 asm_func_header="" ;;
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012265esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000012266
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm() works outside of functions" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012268$as_echo_n "checking whether asm() works outside of functions... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012269if test "${ac_cv_c_asm_outside_funcs+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012270 $as_echo_n "(cached) " >&6
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012271else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012273/* end confdefs.h. */
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012274asm(".text\n\t.long 0");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012275int
12276main ()
12277{
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012278
12279 ;
12280 return 0;
12281}
12282_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012283if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012284 ac_cv_c_asm_outside_funcs="yes"
12285else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012286 ac_cv_c_asm_outside_funcs="no"
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012287fi
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012288rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12289fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_asm_outside_funcs" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012291$as_echo "$ac_cv_c_asm_outside_funcs" >&6; }
12292
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether .previous is supported in assembly code" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012294$as_echo_n "checking whether .previous is supported in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012295if test "${ac_cv_c_dot_previous+set}" = set; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012296 $as_echo_n "(cached) " >&6
12297else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012299/* end confdefs.h. */
12300
12301int
12302main ()
12303{
12304asm(".text\nac_test:\t.long 0\n\t.previous");
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012305 ;
12306 return 0;
12307}
12308_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012309if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012310 ac_cv_c_dot_previous="yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012311else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012312 ac_cv_c_dot_previous="no"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012313fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012314rm -f core conftest.err conftest.$ac_objext \
12315 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012316fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_dot_previous" >&5
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012318$as_echo "$ac_cv_c_dot_previous" >&6; }
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012319
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFI directives are supported in assembly code" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012321$as_echo_n "checking whether CFI directives are supported in assembly code... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012322if test "${ac_cv_c_cfi_support+set}" = set; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012323 $as_echo_n "(cached) " >&6
12324else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012326/* end confdefs.h. */
12327asm(".text\nac_test:\t.cfi_startproc\n\t.long 0\n\t.cfi_endproc");
12328int
12329main ()
12330{
12331
12332 ;
12333 return 0;
12334}
12335_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012336if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012337 ac_cv_c_cfi_support="yes"
12338else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012339 ac_cv_c_cfi_support="no"
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012340fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12342fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_cfi_support" >&5
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012344$as_echo "$ac_cv_c_cfi_support" >&6; }
12345
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012346asm_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 +020012347asm_func_trailer=""
12348if test "$ac_cv_c_dot_previous" = "yes"
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012349then
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012350 asm_func_trailer="\\n\\t.previous"
12351fi
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012352if test "$ac_cv_c_cfi_support" = "yes"
12353then
12354 asm_func_header="$asm_func_header.cfi_startproc\\n\\t"
12355 asm_func_trailer="\\n\\t.cfi_endproc$asm_func_trailer"
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012356
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012357$as_echo "#define __ASM_CFI(str) str" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012358
Alexandre Julliard6c142382010-04-11 12:47:30 +020012359 UNWINDFLAGS=-fasynchronous-unwind-tables
12360
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012361else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012362 $as_echo "#define __ASM_CFI(str) \"\"" >>confdefs.h
Alexandre Julliarde1f0a0d2009-06-25 11:49:21 +020012363
Alexandre Julliardccea0ae2009-06-11 19:46:19 +020012364fi
12365
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012366asm_func_code="$asm_func_header\" code \"$asm_func_trailer"
12367
12368
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012369if test "$ac_cv_c_asm_outside_funcs" = "yes"
12370then
12371 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012372#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 +000012373_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012374
Alexandre Julliard84555cc2002-07-22 20:51:02 +000012375else
Alexandre Julliard857f1e02009-06-11 16:32:42 +020012376 cat >>confdefs.h <<_ACEOF
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012377#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 +000012378_ACEOF
Alexandre Julliard8cc3a5e1996-08-11 15:49:51 +000012379
12380fi
12381
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012382$as_echo "#define __ASM_GLOBAL_FUNC(name,code) __ASM_DEFINE_FUNC(name,\"\",code)" >>confdefs.h
Alexandre Julliardea9cf9e2009-06-14 16:03:46 +020012383
12384
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012385$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 +020012386
12387
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012388
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012389LDPATH=""
12390
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012391case $build_os in
12392 cygwin*|mingw32*)
Alexandre Julliardb860c4a2009-09-01 22:36:13 +020012393 TOOLSEXT=".exe"
12394
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012395 LDPATH="PATH=\"\$(TOOLSDIR)/libs/wine:\$\$PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012396 ;;
Pierre d'Herbemont794bf0f2003-11-25 03:31:26 +000012397 darwin*|macosx*)
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012398 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012399 *)
Alexandre Julliardeb8a40c2006-07-11 19:33:22 +020012400 LDPATH="LD_LIBRARY_PATH=\"\$(TOOLSDIR)/libs/wine:\$\$LD_LIBRARY_PATH\""
Alexandre Julliard3a0233d2007-07-02 14:38:04 +020012401 ;;
Alexandre Julliardfc01b722002-05-12 03:16:39 +000012402esac
12403
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012404case $host_os in
12405 mingw32*)
Alexandre Julliard546839f2003-11-11 00:48:21 +000012406 CRTLIBS="-lmsvcrt"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012407
Alexandre Julliarddc1a9f12008-12-22 17:36:18 +010012408 SOCKETLIBS="-L\$(TOPOBJDIR)/dlls/ws2_32 -lws2_32"
Steven Edwardsc91ae452004-09-03 18:57:19 +000012409
12410 ;;
Alexandre Julliard546839f2003-11-11 00:48:21 +000012411esac
12412
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012413MAIN_BINARY="wine"
12414
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020012415test "x$enable_win64" != "xyes" || MAIN_BINARY="wine64"
Alexandre Julliard3e6eab32009-08-13 19:54:31 +020012416
Alexandre Julliardf4a19c82009-03-10 18:22:38 +010012417case $host_cpu in
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010012418 *i[3456789]86*)
12419 case $host_os in
Austin English5e185962009-10-28 19:51:17 -050012420 linux*)
Alexandre Julliardf4a19c82009-03-10 18:22:38 +010012421 EXTRA_BINARIES="wine-preloader"
Tijl Coosemans9f5c69c2007-08-24 15:46:36 +020012422 ;;
Alexandre Julliard2cdfd4d2006-02-18 15:03:51 +010012423 esac
Emmanuel Maillard3bc8d2e2004-07-19 20:11:10 +000012424 ;;
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000012425esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012426
12427
Alexandre Julliard95251a72009-02-16 12:46:58 +010012428ac_save_CFLAGS="$CFLAGS"
12429CFLAGS="$CFLAGS $BUILTINFLAG"
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012430for ac_func in \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012431 _pclose \
12432 _popen \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012433 _snprintf \
Alexandre Julliardc45bbad2003-04-01 00:12:02 +000012434 _spawnvp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012435 _strdup \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012436 _stricmp \
12437 _strnicmp \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012438 _strtoi64 \
12439 _strtoui64 \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012440 _vsnprintf \
Alexandre Julliardf9e5b0f2006-01-14 17:22:03 +010012441 asctime_r \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012442 chsize \
Alexandre Julliarde533e972006-08-15 12:11:30 +020012443 dlopen \
Alexandre Julliard969f57c2004-09-23 04:48:24 +000012444 epoll_create \
Hans Leidekkerc3de6ef2004-10-19 23:53:26 +000012445 ffs \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012446 finite \
Alexandre Julliard7d5e5652009-06-01 12:51:54 +020012447 fnmatch \
Hans Leidekkerbed38422004-10-14 03:08:57 +000012448 fork \
Jon Griffithsd6deb6d2000-11-27 01:37:28 +000012449 fpclass \
Alexandre Julliarde77c9be2004-04-06 03:33:25 +000012450 fstatfs \
12451 fstatvfs \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012452 ftruncate \
Alexandre Julliarda1fe8b42004-03-27 01:48:52 +000012453 futimes \
Robert Lunnonc0cb4d32005-05-07 14:53:38 +000012454 futimesat \
Alexandre Julliarda9f214c2006-11-13 15:42:48 +010012455 getdirentries \
Dimitrie O. Paun647c1a32002-12-10 19:16:24 +000012456 getopt_long \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012457 getpagesize \
Alexandre Julliard142dab82002-07-01 18:17:30 +000012458 getpwuid \
Alexandre Julliardb2d937d2003-11-12 03:16:00 +000012459 gettid \
Alexandre Julliard8d7b8e52003-03-23 20:11:45 +000012460 gettimeofday \
Steven Edwardse7c3ab12004-10-04 20:45:49 +000012461 getuid \
Alexandre Julliardc8278922006-08-04 22:11:00 +020012462 kqueue \
Alexandre Julliard27bb3112000-11-29 17:48:06 +000012463 lstat \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012464 memmove \
Hidenori Takeshimaa85b0a62000-11-25 23:54:12 +000012465 mmap \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012466 pclose \
Alexandre Julliard6f68b772009-07-01 12:13:34 +020012467 pipe2 \
Alexandre Julliard10892602006-08-15 11:41:59 +020012468 poll \
Patrik Stridvall81ecb522002-03-11 05:08:14 +000012469 popen \
Albert Lee01b972d2009-11-20 18:35:26 -050012470 port_create \
Alexandre Julliard9603ee02006-04-06 11:57:37 +020012471 prctl \
Steven Edwardsb9627c12002-05-05 21:03:44 +000012472 pread \
Alexandre Julliardf1a0de92002-01-07 21:00:27 +000012473 pwrite \
Rob Shearman87175c62008-10-03 12:55:21 +010012474 readdir \
Alexandre Julliarde2930742004-01-08 05:07:05 +000012475 readlink \
Juan Lang474b2e42009-09-29 09:17:30 -070012476 sched_setaffinity \
Jeremy White08c0f692004-10-09 02:26:29 +000012477 sched_yield \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012478 select \
Gerald Pfeifer39f67272008-01-20 21:23:08 +010012479 setproctitle \
Paul Millardf10b7d2006-07-16 15:06:28 +010012480 setrlimit \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012481 settimeofday \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012482 sigaltstack \
Paul Millar10a6c562004-12-07 17:19:54 +000012483 sigprocmask \
Steven Edwards0a8e15a2002-05-10 01:33:40 +000012484 snprintf \
Pavel Roskin7add08a2003-09-24 18:54:40 +000012485 spawnvp \
Patrik Stridvallb9010211999-11-13 22:23:35 +000012486 statfs \
Alexandre Julliard13af4892004-03-05 21:03:46 +000012487 statvfs \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012488 strcasecmp \
Bang Jun-youngff96bd62007-10-15 17:09:12 +090012489 strdup \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012490 strerror \
Alexandre Julliard3b96efc1999-09-04 14:36:02 +000012491 strncasecmp \
Louis Lenders6c04a182006-12-17 17:56:50 +000012492 strtold \
Rob Shearmane9f5bce2008-03-03 21:48:18 +000012493 strtoll \
12494 strtoull \
Alexandre Julliard0fbd5562008-12-22 10:47:16 +010012495 symlink \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012496 tcgetattr \
Tijl Coosemans0c4f1522007-08-23 14:12:37 +020012497 thr_kill2 \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012498 timegm \
12499 usleep \
Steven Edwardsbe514b92003-01-14 19:35:03 +000012500 vsnprintf \
Patrik Stridvall1bb94031999-05-08 15:47:44 +000012501 wait4 \
12502 waitpid \
12503
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012504do :
12505 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12506ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12507eval as_val=\$$as_ac_var
12508 if test "x$as_val" = x""yes; then :
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012509 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012510#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012511_ACEOF
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000012512
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012513fi
12514done
12515
Alexandre Julliard95251a72009-02-16 12:46:58 +010012516CFLAGS="$ac_save_CFLAGS"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012517
Alexandre Julliarde533e972006-08-15 12:11:30 +020012518if test "$ac_cv_func_dlopen" = no
12519then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012521$as_echo_n "checking for dlopen in -ldl... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012522if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012523 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012524else
12525 ac_check_lib_save_LIBS=$LIBS
12526LIBS="-ldl $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012527cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012528/* end confdefs.h. */
12529
12530/* Override any GCC internal prototype to avoid an error.
12531 Use char because int might match the return type of a GCC
12532 builtin and then its argument prototype would still apply. */
12533#ifdef __cplusplus
12534extern "C"
12535#endif
12536char dlopen ();
12537int
12538main ()
12539{
12540return dlopen ();
12541 ;
12542 return 0;
12543}
12544_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012545if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012546 ac_cv_lib_dl_dlopen=yes
12547else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012548 ac_cv_lib_dl_dlopen=no
Alexandre Julliarde533e972006-08-15 12:11:30 +020012549fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012550rm -f core conftest.err conftest.$ac_objext \
12551 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012552LIBS=$ac_check_lib_save_LIBS
12553fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012555$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012556if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12557 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
Alexandre Julliarde533e972006-08-15 12:11:30 +020012558 LIBDL="-ldl"
12559
12560fi
12561
12562fi
12563ac_wine_check_funcs_save_LIBS="$LIBS"
12564LIBS="$LIBS $LIBDL"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012565for ac_func in dladdr
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012566do :
12567 ac_fn_c_check_func "$LINENO" "dladdr" "ac_cv_func_dladdr"
12568if test "x$ac_cv_func_dladdr" = x""yes; then :
Alexandre Julliarde533e972006-08-15 12:11:30 +020012569 cat >>confdefs.h <<_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012570#define HAVE_DLADDR 1
Alexandre Julliarde533e972006-08-15 12:11:30 +020012571_ACEOF
12572
12573fi
12574done
12575
12576LIBS="$ac_wine_check_funcs_save_LIBS"
12577
Alexandre Julliard10892602006-08-15 11:41:59 +020012578if test "$ac_cv_func_poll" = no
12579then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for poll in -lpoll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012581$as_echo_n "checking for poll in -lpoll... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012582if test "${ac_cv_lib_poll_poll+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012583 $as_echo_n "(cached) " >&6
Alexandre Julliard10892602006-08-15 11:41:59 +020012584else
12585 ac_check_lib_save_LIBS=$LIBS
12586LIBS="-lpoll $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012588/* end confdefs.h. */
12589
12590/* Override any GCC internal prototype to avoid an error.
12591 Use char because int might match the return type of a GCC
12592 builtin and then its argument prototype would still apply. */
12593#ifdef __cplusplus
12594extern "C"
12595#endif
12596char poll ();
12597int
12598main ()
12599{
12600return poll ();
12601 ;
12602 return 0;
12603}
12604_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012605if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard10892602006-08-15 11:41:59 +020012606 ac_cv_lib_poll_poll=yes
12607else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012608 ac_cv_lib_poll_poll=no
Alexandre Julliard10892602006-08-15 11:41:59 +020012609fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012610rm -f core conftest.err conftest.$ac_objext \
12611 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliard10892602006-08-15 11:41:59 +020012612LIBS=$ac_check_lib_save_LIBS
12613fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_poll_poll" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012615$as_echo "$ac_cv_lib_poll_poll" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012616if test "x$ac_cv_lib_poll_poll" = x""yes; then :
12617 $as_echo "#define HAVE_POLL 1" >>confdefs.h
Alexandre Julliard10892602006-08-15 11:41:59 +020012618 LIBPOLL="-lpoll"
12619
12620fi
12621
12622fi
Alexandre Julliarddaa28862002-04-11 21:54:01 +000012623
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012625$as_echo_n "checking for library containing gethostbyname... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012626if test "${ac_cv_search_gethostbyname+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012627 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012628else
Alexandre Julliard28710412007-04-23 16:31:58 +020012629 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012631/* end confdefs.h. */
12632
12633/* Override any GCC internal prototype to avoid an error.
12634 Use char because int might match the return type of a GCC
12635 builtin and then its argument prototype would still apply. */
12636#ifdef __cplusplus
12637extern "C"
12638#endif
12639char gethostbyname ();
12640int
12641main ()
12642{
12643return gethostbyname ();
12644 ;
12645 return 0;
12646}
12647_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012648for ac_lib in '' nsl; do
12649 if test -z "$ac_lib"; then
12650 ac_res="none required"
12651 else
12652 ac_res=-l$ac_lib
12653 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12654 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012655 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012656 ac_cv_search_gethostbyname=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012657fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012658rm -f core conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext
12660 if test "${ac_cv_search_gethostbyname+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012661 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012662fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012663done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012664if test "${ac_cv_search_gethostbyname+set}" = set; then :
12665
Alexandre Julliard28710412007-04-23 16:31:58 +020012666else
12667 ac_cv_search_gethostbyname=no
12668fi
12669rm conftest.$ac_ext
12670LIBS=$ac_func_search_save_LIBS
12671fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012672{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012673$as_echo "$ac_cv_search_gethostbyname" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012674ac_res=$ac_cv_search_gethostbyname
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012675if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012676 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012677
12678fi
12679
Alexandre Julliarde533e972006-08-15 12:11:30 +020012680
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012682$as_echo_n "checking for library containing connect... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012683if test "${ac_cv_search_connect+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012684 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012685else
Alexandre Julliard28710412007-04-23 16:31:58 +020012686 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012687cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012688/* end confdefs.h. */
12689
12690/* Override any GCC internal prototype to avoid an error.
12691 Use char because int might match the return type of a GCC
12692 builtin and then its argument prototype would still apply. */
12693#ifdef __cplusplus
12694extern "C"
12695#endif
12696char connect ();
12697int
12698main ()
12699{
12700return connect ();
12701 ;
12702 return 0;
12703}
12704_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012705for ac_lib in '' socket; do
12706 if test -z "$ac_lib"; then
12707 ac_res="none required"
12708 else
12709 ac_res=-l$ac_lib
12710 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12711 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012712 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012713 ac_cv_search_connect=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012714fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012715rm -f core conftest.err conftest.$ac_objext \
12716 conftest$ac_exeext
12717 if test "${ac_cv_search_connect+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012718 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012719fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012720done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012721if test "${ac_cv_search_connect+set}" = set; then :
12722
Alexandre Julliard28710412007-04-23 16:31:58 +020012723else
12724 ac_cv_search_connect=no
12725fi
12726rm conftest.$ac_ext
12727LIBS=$ac_func_search_save_LIBS
12728fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_connect" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012730$as_echo "$ac_cv_search_connect" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012731ac_res=$ac_cv_search_connect
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012732if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012733 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012734
12735fi
12736
Alexandre Julliarde533e972006-08-15 12:11:30 +020012737
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012739$as_echo_n "checking for library containing inet_aton... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012740if test "${ac_cv_search_inet_aton+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012741 $as_echo_n "(cached) " >&6
Alexandre Julliarde533e972006-08-15 12:11:30 +020012742else
Alexandre Julliard28710412007-04-23 16:31:58 +020012743 ac_func_search_save_LIBS=$LIBS
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde533e972006-08-15 12:11:30 +020012745/* end confdefs.h. */
12746
12747/* Override any GCC internal prototype to avoid an error.
12748 Use char because int might match the return type of a GCC
12749 builtin and then its argument prototype would still apply. */
12750#ifdef __cplusplus
12751extern "C"
12752#endif
12753char inet_aton ();
12754int
12755main ()
12756{
12757return inet_aton ();
12758 ;
12759 return 0;
12760}
12761_ACEOF
Alexandre Julliard28710412007-04-23 16:31:58 +020012762for ac_lib in '' resolv; do
12763 if test -z "$ac_lib"; then
12764 ac_res="none required"
12765 else
12766 ac_res=-l$ac_lib
12767 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12768 fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012769 if ac_fn_c_try_link "$LINENO"; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012770 ac_cv_search_inet_aton=$ac_res
Alexandre Julliarde533e972006-08-15 12:11:30 +020012771fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012772rm -f core conftest.err conftest.$ac_objext \
12773 conftest$ac_exeext
12774 if test "${ac_cv_search_inet_aton+set}" = set; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012775 break
Alexandre Julliarde533e972006-08-15 12:11:30 +020012776fi
Alexandre Julliard28710412007-04-23 16:31:58 +020012777done
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012778if test "${ac_cv_search_inet_aton+set}" = set; then :
12779
Alexandre Julliard28710412007-04-23 16:31:58 +020012780else
12781 ac_cv_search_inet_aton=no
12782fi
12783rm conftest.$ac_ext
12784LIBS=$ac_func_search_save_LIBS
12785fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_aton" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012787$as_echo "$ac_cv_search_inet_aton" >&6; }
Alexandre Julliard28710412007-04-23 16:31:58 +020012788ac_res=$ac_cv_search_inet_aton
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012789if test "$ac_res" != no; then :
Alexandre Julliard28710412007-04-23 16:31:58 +020012790 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
Alexandre Julliarde533e972006-08-15 12:11:30 +020012791
12792fi
12793
Alexandre Julliarde533e972006-08-15 12:11:30 +020012794
Ben Taylor41c59962007-04-23 13:41:42 +000012795for ac_func in \
12796 getaddrinfo \
12797 getnameinfo \
12798 getnetbyname \
12799 getprotobyname \
12800 getprotobynumber \
12801 getservbyport \
12802 inet_network \
Austin English06566912009-03-28 00:13:09 -050012803 inet_ntop \
12804 inet_pton \
Ben Taylor41c59962007-04-23 13:41:42 +000012805 sendmsg \
Alexandre Julliard98bec052009-03-26 11:07:28 +010012806 socketpair \
Ben Taylor41c59962007-04-23 13:41:42 +000012807
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012808do :
12809 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12810ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12811eval as_val=\$$as_ac_var
12812 if test "x$as_val" = x""yes; then :
Ben Taylor41c59962007-04-23 13:41:42 +000012813 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012814#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Ben Taylor41c59962007-04-23 13:41:42 +000012815_ACEOF
12816
12817fi
12818done
12819
12820
Francois Gougetbcba2702008-07-10 12:36:06 +020012821LDAPLIBS=""
12822
12823if test "$ac_cv_header_ldap_h" = "yes" -a "$ac_cv_header_lber_h" = "yes"
12824then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012825 ac_fn_c_check_type "$LINENO" "LDAPSortKey" "ac_cv_type_LDAPSortKey" "#include <ldap.h>
12826"
12827if test "x$ac_cv_type_LDAPSortKey" = x""yes; then :
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap_r" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012829$as_echo_n "checking for ldap_initialize in -lldap_r... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012830if test "${ac_cv_lib_ldap_r_ldap_initialize+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012831 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020012832else
12833 ac_check_lib_save_LIBS=$LIBS
12834LIBS="-lldap_r $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012836/* end confdefs.h. */
12837
12838/* Override any GCC internal prototype to avoid an error.
12839 Use char because int might match the return type of a GCC
12840 builtin and then its argument prototype would still apply. */
12841#ifdef __cplusplus
12842extern "C"
12843#endif
12844char ldap_initialize ();
12845int
12846main ()
12847{
12848return ldap_initialize ();
12849 ;
12850 return 0;
12851}
12852_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012853if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012854 ac_cv_lib_ldap_r_ldap_initialize=yes
12855else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012856 ac_cv_lib_ldap_r_ldap_initialize=no
Francois Gougetbcba2702008-07-10 12:36:06 +020012857fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012858rm -f core conftest.err conftest.$ac_objext \
12859 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012860LIBS=$ac_check_lib_save_LIBS
12861fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_r_ldap_initialize" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012863$as_echo "$ac_cv_lib_ldap_r_ldap_initialize" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012864if test "x$ac_cv_lib_ldap_r_ldap_initialize" = x""yes; then :
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_init in -llber" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012866$as_echo_n "checking for ber_init in -llber... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012867if test "${ac_cv_lib_lber_ber_init+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012868 $as_echo_n "(cached) " >&6
Francois Gougetbcba2702008-07-10 12:36:06 +020012869else
12870 ac_check_lib_save_LIBS=$LIBS
12871LIBS="-llber $LIBPTHREAD $LIBS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012873/* end confdefs.h. */
12874
12875/* Override any GCC internal prototype to avoid an error.
12876 Use char because int might match the return type of a GCC
12877 builtin and then its argument prototype would still apply. */
12878#ifdef __cplusplus
12879extern "C"
12880#endif
12881char ber_init ();
12882int
12883main ()
12884{
12885return ber_init ();
12886 ;
12887 return 0;
12888}
12889_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012890if ac_fn_c_try_link "$LINENO"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012891 ac_cv_lib_lber_ber_init=yes
12892else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012893 ac_cv_lib_lber_ber_init=no
Francois Gougetbcba2702008-07-10 12:36:06 +020012894fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012895rm -f core conftest.err conftest.$ac_objext \
12896 conftest$ac_exeext conftest.$ac_ext
Francois Gougetbcba2702008-07-10 12:36:06 +020012897LIBS=$ac_check_lib_save_LIBS
12898fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lber_ber_init" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012900$as_echo "$ac_cv_lib_lber_ber_init" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012901if test "x$ac_cv_lib_lber_ber_init" = x""yes; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012902
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012903$as_echo "#define HAVE_LDAP 1" >>confdefs.h
Francois Gougetbcba2702008-07-10 12:36:06 +020012904
12905 LDAPLIBS="-lldap_r -llber"
12906fi
12907
12908fi
12909
12910fi
12911
12912 ac_wine_check_funcs_save_LIBS="$LIBS"
12913LIBS="$LIBS $LDAPLIBS $LIBPTHREAD"
Francois Gougetbcba2702008-07-10 12:36:06 +020012914for ac_func in \
12915 ldap_count_references \
12916 ldap_first_reference \
12917 ldap_next_reference \
12918 ldap_parse_reference \
12919 ldap_parse_sort_control \
12920 ldap_parse_sortresponse_control \
12921 ldap_parse_vlv_control \
12922 ldap_parse_vlvresponse_control
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012923do :
12924 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12925ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12926eval as_val=\$$as_ac_var
12927 if test "x$as_val" = x""yes; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012928 cat >>confdefs.h <<_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010012929#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Francois Gougetbcba2702008-07-10 12:36:06 +020012930_ACEOF
12931
12932fi
12933done
12934
12935LIBS="$ac_wine_check_funcs_save_LIBS"
12936fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012937if test "x$LDAPLIBS" = "x"; then :
Francois Gougetbcba2702008-07-10 12:36:06 +020012938 case "x$with_ldap" in
Alexandre Julliard0dc503b2010-02-11 20:25:47 +010012939 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 +020012940 xno) ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012941 *) as_fn_error "libldap (OpenLDAP) ${notice_platform}development files not found, LDAP won't be supported.
12942This is an error since --with-ldap was requested." "$LINENO" 5 ;;
Francois Gougetbcba2702008-07-10 12:36:06 +020012943esac
12944fi
12945
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mkdir takes only one argument" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010012947$as_echo_n "checking whether mkdir takes only one argument... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012948if test "${wine_cv_one_arg_mkdir+set}" = set; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010012949 $as_echo_n "(cached) " >&6
12950else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliard921e6622008-12-22 10:39:11 +010012952/* end confdefs.h. */
12953#include <sys/stat.h>
12954int
12955main ()
12956{
12957mkdir("foo");
12958 ;
12959 return 0;
12960}
12961_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012962if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliard921e6622008-12-22 10:39:11 +010012963 wine_cv_one_arg_mkdir=yes
12964else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012965 wine_cv_one_arg_mkdir=no
Alexandre Julliard921e6622008-12-22 10:39:11 +010012966fi
Alexandre Julliard921e6622008-12-22 10:39:11 +010012967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12968fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_one_arg_mkdir" >&5
Alexandre Julliard921e6622008-12-22 10:39:11 +010012970$as_echo "$wine_cv_one_arg_mkdir" >&6; }
12971if test "$wine_cv_one_arg_mkdir" = "yes"
12972then
12973
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012974$as_echo "#define HAVE_ONE_ARG_MKDIR 1" >>confdefs.h
Alexandre Julliard921e6622008-12-22 10:39:11 +010012975
12976fi
12977
Ben Taylor41c59962007-04-23 13:41:42 +000012978
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010012980$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012981if test "${ac_cv_c_const+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010012982 $as_echo_n "(cached) " >&6
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012983else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020012984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000012985/* end confdefs.h. */
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000012986
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012987int
12988main ()
12989{
12990/* FIXME: Include the comments suggested by Paul. */
12991#ifndef __cplusplus
12992 /* Ultrix mips cc rejects this. */
12993 typedef int charset[2];
Phil Krylovf0ca5862006-11-05 23:03:46 +030012994 const charset cs;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012995 /* SunOS 4.1.1 cc rejects this. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030012996 char const *const *pcpcc;
12997 char **ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000012998 /* NEC SVR4.0.2 mips cc rejects this. */
12999 struct point {int x, y;};
13000 static struct point const zero = {0,0};
13001 /* AIX XL C 1.02.0.0 rejects this.
13002 It does not let you subtract one const X* pointer from another in
13003 an arm of an if-expression whose if-part is not a constant
13004 expression */
13005 const char *g = "string";
Phil Krylovf0ca5862006-11-05 23:03:46 +030013006 pcpcc = &g + (g ? g-g : 0);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013007 /* HPUX 7.0 cc rejects these. */
Phil Krylovf0ca5862006-11-05 23:03:46 +030013008 ++pcpcc;
13009 ppc = (char**) pcpcc;
13010 pcpcc = (char const *const *) ppc;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013011 { /* SCO 3.2v4 cc rejects this. */
13012 char *t;
13013 char const *s = 0 ? (char *) 0 : (char const *) 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013014
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013015 *t++ = 0;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013016 if (s) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013017 }
13018 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13019 int x[] = {25, 17};
13020 const int *foo = &x[0];
13021 ++foo;
13022 }
13023 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13024 typedef const int *iptr;
13025 iptr p = 0;
13026 ++p;
13027 }
13028 { /* AIX XL C 1.02.0.0 rejects this saying
13029 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13030 struct s { int j; const int *ap[3]; };
13031 struct s *b; b->j = 5;
13032 }
13033 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13034 const int foo = 10;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013035 if (!foo) return 0;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013036 }
Phil Krylovf0ca5862006-11-05 23:03:46 +030013037 return !cs[0] && !zero.x;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013038#endif
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013039
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013040 ;
13041 return 0;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013042}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013043_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013044if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013045 ac_cv_c_const=yes
13046else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013047 ac_cv_c_const=no
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013048fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013049rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013050fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013052$as_echo "$ac_cv_c_const" >&6; }
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013053if test $ac_cv_c_const = no; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013054
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013055$as_echo "#define const /**/" >>confdefs.h
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013056
13057fi
13058
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013060$as_echo_n "checking for inline... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013061if test "${ac_cv_c_inline+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013062 $as_echo_n "(cached) " >&6
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013063else
13064 ac_cv_c_inline=no
13065for ac_kw in inline __inline__ __inline; do
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013067/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013068#ifndef __cplusplus
Alexandre Julliard11af04e2002-10-10 03:48:04 +000013069typedef int foo_t;
13070static $ac_kw foo_t static_foo () {return 0; }
13071$ac_kw foo_t foo () {return 0; }
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013072#endif
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013073
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013074_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013075if ac_fn_c_try_compile "$LINENO"; then :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013076 ac_cv_c_inline=$ac_kw
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013077fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013078rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020013079 test "$ac_cv_c_inline" != no && break
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013080done
13081
13082fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013084$as_echo "$ac_cv_c_inline" >&6; }
Alexandre Julliard875927f2004-01-02 01:55:29 +000013085
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013086case $ac_cv_c_inline in
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013087 inline | yes) ;;
Alexandre Julliard875927f2004-01-02 01:55:29 +000013088 *)
13089 case $ac_cv_c_inline in
13090 no) ac_val=;;
13091 *) ac_val=$ac_cv_c_inline;;
13092 esac
13093 cat >>confdefs.h <<_ACEOF
13094#ifndef __cplusplus
13095#define inline $ac_val
13096#endif
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013097_ACEOF
Alexandre Julliard875927f2004-01-02 01:55:29 +000013098 ;;
Marcus Meissner1a8bbd71999-04-26 14:58:58 +000013099esac
13100
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013101ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
13102if test "x$ac_cv_type_mode_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013103
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013104cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013105#define HAVE_MODE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013106_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013107
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013108
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013109fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013110ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
13111if test "x$ac_cv_type_off_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013112
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013113cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013114#define HAVE_OFF_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013115_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013116
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013117
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013118fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013119ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13120if test "x$ac_cv_type_pid_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013121
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013122cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013123#define HAVE_PID_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013124_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013125
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013126
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013127fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013128ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
13129if test "x$ac_cv_type_size_t" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013130
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013131cat >>confdefs.h <<_ACEOF
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013132#define HAVE_SIZE_T 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013133_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013134
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013135
13136fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013137ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
13138if test "x$ac_cv_type_ssize_t" = x""yes; then :
Alexandre Julliard5769d1d2002-04-26 19:05:15 +000013139
13140cat >>confdefs.h <<_ACEOF
13141#define HAVE_SSIZE_T 1
13142_ACEOF
13143
13144
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000013145fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013146ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
13147if test "x$ac_cv_type_long_long" = x""yes; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013148
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013149cat >>confdefs.h <<_ACEOF
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013150#define HAVE_LONG_LONG 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013151_ACEOF
Alexandre Julliardc7c217b1998-04-13 12:21:30 +000013152
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013153
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013154fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013155ac_fn_c_check_type "$LINENO" "fsblkcnt_t" "ac_cv_type_fsblkcnt_t" "$ac_includes_default"
13156if test "x$ac_cv_type_fsblkcnt_t" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013157
13158cat >>confdefs.h <<_ACEOF
13159#define HAVE_FSBLKCNT_T 1
13160_ACEOF
13161
13162
13163fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013164ac_fn_c_check_type "$LINENO" "fsfilcnt_t" "ac_cv_type_fsfilcnt_t" "$ac_includes_default"
13165if test "x$ac_cv_type_fsfilcnt_t" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013166
13167cat >>confdefs.h <<_ACEOF
13168#define HAVE_FSFILCNT_T 1
13169_ACEOF
13170
13171
13172fi
Dimitrie O. Paunf41c2b22004-03-02 02:23:26 +000013173
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013174ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "#include <sys/types.h>
Alexandre Julliardabf50482008-10-31 12:56:53 +010013175#include <signal.h>
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013176"
13177if test "x$ac_cv_type_sigset_t" = x""yes; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013178
13179cat >>confdefs.h <<_ACEOF
13180#define HAVE_SIGSET_T 1
13181_ACEOF
13182
13183
13184fi
13185
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013186ac_fn_c_check_type "$LINENO" "request_sense" "ac_cv_type_request_sense" "#include <linux/cdrom.h>
13187"
13188if test "x$ac_cv_type_request_sense" = x""yes; then :
Gerald Pfeiferb8b15f32005-07-10 17:42:46 +000013189
13190cat >>confdefs.h <<_ACEOF
13191#define HAVE_REQUEST_SENSE 1
13192_ACEOF
13193
13194
13195fi
13196
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013197
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013198ac_fn_c_check_type "$LINENO" "struct xinpgen" "ac_cv_type_struct_xinpgen" "#include <sys/types.h>
Austin English68f2db22009-01-29 08:28:37 -060013199#ifdef HAVE_SYS_SOCKET_H
13200#include <sys/socket.h>
13201#endif
13202#ifdef HAVE_SYS_SOCKETVAR_H
13203#include <sys/socketvar.h>
13204#endif
13205#ifdef HAVE_NET_ROUTE_H
13206#include <net/route.h>
13207#endif
13208#ifdef HAVE_NETINET_IN_H
13209#include <netinet/in.h>
13210#endif
13211#ifdef HAVE_NETINET_IN_SYSTM_H
13212#include <netinet/in_systm.h>
13213#endif
13214#ifdef HAVE_NETINET_IP_H
13215#include <netinet/ip.h>
13216#endif
13217#ifdef HAVE_NETINET_IN_PCB_H
13218#include <netinet/in_pcb.h>
13219#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013220"
13221if test "x$ac_cv_type_struct_xinpgen" = x""yes; then :
Austin English68f2db22009-01-29 08:28:37 -060013222
13223cat >>confdefs.h <<_ACEOF
13224#define HAVE_STRUCT_XINPGEN 1
13225_ACEOF
13226
13227
13228fi
13229
13230
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013231ac_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 +000013232#include <linux/input.h>
13233#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013234"
13235if test "x$ac_cv_member_struct_ff_effect_direction" = x""yes; then :
Daniel Remenake491e8f2005-07-29 14:18:58 +000013236
13237cat >>confdefs.h <<_ACEOF
13238#define HAVE_STRUCT_FF_EFFECT_DIRECTION 1
13239_ACEOF
13240
13241
13242fi
13243
13244
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013246$as_echo_n "checking for sigaddset... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013247if test "${wine_cv_have_sigaddset+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013248 $as_echo_n "(cached) " >&6
Paul Millar10a6c562004-12-07 17:19:54 +000013249else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013251/* end confdefs.h. */
13252#include <signal.h>
13253int
13254main ()
13255{
13256sigset_t set; sigaddset(&set,SIGTERM);
13257 ;
13258 return 0;
13259}
13260_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013261if ac_fn_c_try_link "$LINENO"; then :
Paul Millar10a6c562004-12-07 17:19:54 +000013262 wine_cv_have_sigaddset=yes
13263else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013264 wine_cv_have_sigaddset=no
Paul Millar10a6c562004-12-07 17:19:54 +000013265fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013266rm -f core conftest.err conftest.$ac_objext \
13267 conftest$ac_exeext conftest.$ac_ext
Paul Millar10a6c562004-12-07 17:19:54 +000013268fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_have_sigaddset" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013270$as_echo "$wine_cv_have_sigaddset" >&6; }
Paul Millar10a6c562004-12-07 17:19:54 +000013271if test "$wine_cv_have_sigaddset" = "yes"
13272then
13273
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013274$as_echo "#define HAVE_SIGADDSET 1" >>confdefs.h
Paul Millar10a6c562004-12-07 17:19:54 +000013275
13276fi
13277
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013278
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013279{ $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 +010013280$as_echo_n "checking whether we can use re-entrant gethostbyname_r Linux style... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013281if test "${wine_cv_linux_gethostbyname_r_6+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013282 $as_echo_n "(cached) " >&6
Rein Klazesff7a61f2000-09-24 19:41:57 +000013283else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013285/* end confdefs.h. */
Rein Klazesff7a61f2000-09-24 19:41:57 +000013286#include <netdb.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013287int
13288main ()
13289{
Rein Klazesff7a61f2000-09-24 19:41:57 +000013290
Ken Thomases20d9bad2007-10-19 16:18:51 -050013291 char *name=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013292 struct hostent he;
13293 struct hostent *result;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013294 char *buf=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013295 int bufsize=0;
13296 int res,errnr;
Ken Thomases20d9bad2007-10-19 16:18:51 -050013297 char *addr=0;
Rein Klazesff7a61f2000-09-24 19:41:57 +000013298 int addrlen=0;
13299 int addrtype=0;
13300 res=gethostbyname_r(name,&he,buf,bufsize,&result,&errnr);
13301 res=gethostbyaddr_r(addr, addrlen, addrtype,&he,buf,bufsize,&result,&errnr);
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013302
13303 ;
13304 return 0;
13305}
13306_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013307if ac_fn_c_try_link "$LINENO"; then :
Rein Klazesff7a61f2000-09-24 19:41:57 +000013308 wine_cv_linux_gethostbyname_r_6=yes
13309else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013310 wine_cv_linux_gethostbyname_r_6=no
Rein Klazesff7a61f2000-09-24 19:41:57 +000013311
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013312fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013313rm -f core conftest.err conftest.$ac_objext \
13314 conftest$ac_exeext conftest.$ac_ext
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013315
13316fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_gethostbyname_r_6" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013318$as_echo "$wine_cv_linux_gethostbyname_r_6" >&6; }
Rein Klazesff7a61f2000-09-24 19:41:57 +000013319 if test "$wine_cv_linux_gethostbyname_r_6" = "yes"
13320 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013321
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013322$as_echo "#define HAVE_LINUX_GETHOSTBYNAME_R_6 1" >>confdefs.h
Rein Klazesff7a61f2000-09-24 19:41:57 +000013323
13324 fi
13325
Marcus Meissner028e9a11999-08-04 15:07:56 +000013326if test "$ac_cv_header_linux_joystick_h" = "yes"
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013327then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013328 { $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 +010013329$as_echo_n "checking whether linux/joystick.h uses the Linux 2.2+ API... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013330if test "${wine_cv_linux_joystick_22_api+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013331 $as_echo_n "(cached) " >&6
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013332else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013334/* end confdefs.h. */
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013335
Marcus Meissner028e9a11999-08-04 15:07:56 +000013336 #include <sys/ioctl.h>
Marcus Meissner7c434992007-04-12 12:12:05 +020013337 #include <sys/types.h>
Marcus Meissner028e9a11999-08-04 15:07:56 +000013338 #include <linux/joystick.h>
13339
13340 struct js_event blub;
Marcus Meissner605a9c31999-11-04 02:04:01 +000013341 #if !defined(JS_EVENT_AXIS) || !defined(JS_EVENT_BUTTON)
13342 #error "no 2.2 header"
13343 #endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013344
13345int
13346main ()
13347{
Marcus Meissner028e9a11999-08-04 15:07:56 +000013348/*empty*/
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013349 ;
13350 return 0;
13351}
13352_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013353if ac_fn_c_try_compile "$LINENO"; then :
Marcus Meissner028e9a11999-08-04 15:07:56 +000013354 wine_cv_linux_joystick_22_api=yes
13355else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013356 wine_cv_linux_joystick_22_api=no
Marcus Meissner028e9a11999-08-04 15:07:56 +000013357fi
Jeremy White0ebeb532006-06-20 13:18:41 +020013358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Marcus Meissner028e9a11999-08-04 15:07:56 +000013359
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013360fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $wine_cv_linux_joystick_22_api" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013362$as_echo "$wine_cv_linux_joystick_22_api" >&6; }
Rein Klazes87d224a2000-04-24 17:33:49 +000013363 if test "$wine_cv_linux_joystick_22_api" = "yes"
Marcus Meissner028e9a11999-08-04 15:07:56 +000013364 then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013365
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013366$as_echo "#define HAVE_LINUX_22_JOYSTICK_API 1" >>confdefs.h
Marcus Meissner028e9a11999-08-04 15:07:56 +000013367
13368 fi
13369fi
13370
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013371
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013372ac_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 +000013373#ifdef HAVE_SYS_PARAM_H
13374# include <sys/param.h>
13375#endif
Robert Millan55b74482006-02-06 21:53:27 +010013376#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013377# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013378#endif
13379#ifdef HAVE_SYS_VFS_H
13380# include <sys/vfs.h>
13381#endif
13382#ifdef HAVE_SYS_STATFS_H
13383# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013384#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013385"
13386if test "x$ac_cv_member_struct_statfs_f_bfree" = x""yes; then :
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013387
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013388cat >>confdefs.h <<_ACEOF
13389#define HAVE_STRUCT_STATFS_F_BFREE 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013390_ACEOF
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013391
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013392
Alexandre Julliarddadf78f1998-05-17 17:13:43 +000013393fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013394ac_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 +000013395#ifdef HAVE_SYS_PARAM_H
13396# include <sys/param.h>
13397#endif
Robert Millan55b74482006-02-06 21:53:27 +010013398#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013399# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013400#endif
13401#ifdef HAVE_SYS_VFS_H
13402# include <sys/vfs.h>
13403#endif
13404#ifdef HAVE_SYS_STATFS_H
13405# include <sys/statfs.h>
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013406#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013407"
13408if test "x$ac_cv_member_struct_statfs_f_bavail" = x""yes; then :
Patrik Stridvall09da9662001-07-08 22:30:50 +000013409
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013410cat >>confdefs.h <<_ACEOF
13411#define HAVE_STRUCT_STATFS_F_BAVAIL 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013412_ACEOF
Patrik Stridvall09da9662001-07-08 22:30:50 +000013413
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013414
Patrik Stridvall09da9662001-07-08 22:30:50 +000013415fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013416ac_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 +000013417#ifdef HAVE_SYS_PARAM_H
13418# include <sys/param.h>
13419#endif
Robert Millan55b74482006-02-06 21:53:27 +010013420#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013421# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013422#endif
13423#ifdef HAVE_SYS_VFS_H
13424# include <sys/vfs.h>
13425#endif
13426#ifdef HAVE_SYS_STATFS_H
13427# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013428#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013429"
13430if test "x$ac_cv_member_struct_statfs_f_frsize" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013431
13432cat >>confdefs.h <<_ACEOF
13433#define HAVE_STRUCT_STATFS_F_FRSIZE 1
13434_ACEOF
13435
13436
13437fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013438ac_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 +000013439#ifdef HAVE_SYS_PARAM_H
13440# include <sys/param.h>
13441#endif
Robert Millan55b74482006-02-06 21:53:27 +010013442#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013443# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013444#endif
13445#ifdef HAVE_SYS_VFS_H
13446# include <sys/vfs.h>
13447#endif
13448#ifdef HAVE_SYS_STATFS_H
13449# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013450#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013451"
13452if test "x$ac_cv_member_struct_statfs_f_ffree" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013453
13454cat >>confdefs.h <<_ACEOF
13455#define HAVE_STRUCT_STATFS_F_FFREE 1
13456_ACEOF
13457
13458
13459fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013460ac_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 +000013461#ifdef HAVE_SYS_PARAM_H
13462# include <sys/param.h>
13463#endif
Robert Millan55b74482006-02-06 21:53:27 +010013464#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliard13af4892004-03-05 21:03:46 +000013465# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013466#endif
13467#ifdef HAVE_SYS_VFS_H
13468# include <sys/vfs.h>
13469#endif
13470#ifdef HAVE_SYS_STATFS_H
13471# include <sys/statfs.h>
Alexandre Julliard13af4892004-03-05 21:03:46 +000013472#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013473"
13474if test "x$ac_cv_member_struct_statfs_f_favail" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013475
13476cat >>confdefs.h <<_ACEOF
13477#define HAVE_STRUCT_STATFS_F_FAVAIL 1
13478_ACEOF
13479
13480
13481fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013482ac_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 +000013483#ifdef HAVE_SYS_PARAM_H
13484# include <sys/param.h>
13485#endif
Robert Millan55b74482006-02-06 21:53:27 +010013486#ifdef HAVE_SYS_MOUNT_H
Alexandre Julliardb859a682004-03-07 03:16:43 +000013487# include <sys/mount.h>
Robert Millan55b74482006-02-06 21:53:27 +010013488#endif
13489#ifdef HAVE_SYS_VFS_H
13490# include <sys/vfs.h>
13491#endif
13492#ifdef HAVE_SYS_STATFS_H
13493# include <sys/statfs.h>
Alexandre Julliardb859a682004-03-07 03:16:43 +000013494#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013495"
13496if test "x$ac_cv_member_struct_statfs_f_namelen" = x""yes; then :
Alexandre Julliardb859a682004-03-07 03:16:43 +000013497
13498cat >>confdefs.h <<_ACEOF
13499#define HAVE_STRUCT_STATFS_F_NAMELEN 1
13500_ACEOF
13501
13502
13503fi
Alexandre Julliard13af4892004-03-05 21:03:46 +000013504
13505
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013506ac_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 +000013507#include <sys/statvfs.h>
13508#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013509"
13510if test "x$ac_cv_member_struct_statvfs_f_blocks" = x""yes; then :
Alexandre Julliard13af4892004-03-05 21:03:46 +000013511
13512cat >>confdefs.h <<_ACEOF
13513#define HAVE_STRUCT_STATVFS_F_BLOCKS 1
13514_ACEOF
13515
13516
13517fi
Patrik Stridvall09da9662001-07-08 22:30:50 +000013518
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013519
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013520ac_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 +000013521#ifdef HAVE_SYS_SOCKET_H
13522# include <sys/socket.h>
13523#endif
13524#ifdef HAVE_SYS_UN_H
13525# include <sys/un.h>
13526#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013527"
13528if test "x$ac_cv_member_struct_msghdr_msg_accrights" = x""yes; then :
Juergen Lock2d33ab92000-02-13 16:03:29 +000013529
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013530cat >>confdefs.h <<_ACEOF
13531#define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS 1
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013532_ACEOF
Juergen Lock2d33ab92000-02-13 16:03:29 +000013533
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013534
13535fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013536ac_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 +000013537#ifdef HAVE_SYS_SOCKET_H
13538# include <sys/socket.h>
13539#endif
13540#ifdef HAVE_SYS_UN_H
13541# include <sys/un.h>
13542#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013543"
13544if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013545
13546cat >>confdefs.h <<_ACEOF
13547#define HAVE_STRUCT_SOCKADDR_SA_LEN 1
13548_ACEOF
13549
13550
13551fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013552ac_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 +000013553#ifdef HAVE_SYS_SOCKET_H
13554# include <sys/socket.h>
13555#endif
13556#ifdef HAVE_SYS_UN_H
13557# include <sys/un.h>
13558#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013559"
13560if test "x$ac_cv_member_struct_sockaddr_un_sun_len" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013561
13562cat >>confdefs.h <<_ACEOF
13563#define HAVE_STRUCT_SOCKADDR_UN_SUN_LEN 1
13564_ACEOF
13565
13566
Juergen Lock2d33ab92000-02-13 16:03:29 +000013567fi
13568
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013569
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013570ac_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 +000013571#ifdef HAVE_SCSI_SG_H
13572#include <scsi/sg.h>
13573#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013574"
13575if test "x$ac_cv_member_scsireq_t_cmd" = x""yes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013576
13577cat >>confdefs.h <<_ACEOF
13578#define HAVE_SCSIREQ_T_CMD 1
13579_ACEOF
13580
13581
13582fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013583ac_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 +000013584#ifdef HAVE_SCSI_SG_H
13585#include <scsi/sg.h>
13586#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013587"
13588if test "x$ac_cv_member_sg_io_hdr_t_interface_id" = x""yes; then :
Dmitry Timoshkovea64a362005-06-27 12:07:49 +000013589
13590cat >>confdefs.h <<_ACEOF
13591#define HAVE_SG_IO_HDR_T_INTERFACE_ID 1
13592_ACEOF
13593
13594
13595fi
13596
13597
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013598ac_fn_c_check_member "$LINENO" "siginfo_t" "si_fd" "ac_cv_member_siginfo_t_si_fd" "#include <signal.h>
13599"
13600if test "x$ac_cv_member_siginfo_t_si_fd" = x""yes; then :
Alexandre Julliard5537dbb2003-03-28 00:36:12 +000013601
13602cat >>confdefs.h <<_ACEOF
13603#define HAVE_SIGINFO_T_SI_FD 1
13604_ACEOF
13605
13606
13607fi
13608
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013609
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013610ac_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 +010013611#ifdef HAVE_SYS_MTIO_H
13612#include <sys/mtio.h>
13613#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013614"
13615if test "x$ac_cv_member_struct_mtget_mt_blksiz" = x""yes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013616
13617cat >>confdefs.h <<_ACEOF
13618#define HAVE_STRUCT_MTGET_MT_BLKSIZ 1
13619_ACEOF
13620
13621
13622fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013623ac_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 +010013624#ifdef HAVE_SYS_MTIO_H
13625#include <sys/mtio.h>
13626#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013627"
13628if test "x$ac_cv_member_struct_mtget_mt_gstat" = x""yes; then :
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013629
13630cat >>confdefs.h <<_ACEOF
13631#define HAVE_STRUCT_MTGET_MT_GSTAT 1
13632_ACEOF
13633
13634
13635fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013636ac_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 +010013637#ifdef HAVE_SYS_MTIO_H
13638#include <sys/mtio.h>
13639#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013640"
13641if test "x$ac_cv_member_struct_mtget_mt_blkno" = x""yes; then :
Gerald Pfeifer571d9fb2006-02-06 20:59:44 +010013642
13643cat >>confdefs.h <<_ACEOF
13644#define HAVE_STRUCT_MTGET_MT_BLKNO 1
13645_ACEOF
13646
13647
13648fi
Gerald Pfeifer36bdc642006-02-05 13:51:03 +010013649
13650
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013651ac_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 +000013652#include <getopt.h>
13653#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013654"
13655if test "x$ac_cv_member_struct_option_name" = x""yes; then :
Alexandre Julliarddb89a542003-04-20 02:56:14 +000013656
13657cat >>confdefs.h <<_ACEOF
13658#define HAVE_STRUCT_OPTION_NAME 1
13659_ACEOF
13660
13661
13662fi
13663
13664
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013665ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
13666if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
Pavel Roskind6507192003-10-03 03:28:40 +000013667
13668cat >>confdefs.h <<_ACEOF
13669#define HAVE_STRUCT_STAT_ST_BLOCKS 1
13670_ACEOF
13671
13672
13673fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013674ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "$ac_includes_default"
13675if test "x$ac_cv_member_struct_stat_st_mtim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013676
13677cat >>confdefs.h <<_ACEOF
13678#define HAVE_STRUCT_STAT_ST_MTIM 1
13679_ACEOF
13680
13681
13682fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013683ac_fn_c_check_member "$LINENO" "struct stat" "st_ctim" "ac_cv_member_struct_stat_st_ctim" "$ac_includes_default"
13684if test "x$ac_cv_member_struct_stat_st_ctim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013685
13686cat >>confdefs.h <<_ACEOF
13687#define HAVE_STRUCT_STAT_ST_CTIM 1
13688_ACEOF
13689
13690
13691fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013692ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
13693if test "x$ac_cv_member_struct_stat_st_atim" = x""yes; then :
Michael Karcheraf2d2742008-08-17 19:03:44 +020013694
13695cat >>confdefs.h <<_ACEOF
13696#define HAVE_STRUCT_STAT_ST_ATIM 1
13697_ACEOF
13698
13699
13700fi
Pavel Roskind6507192003-10-03 03:28:40 +000013701
13702
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013703ac_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 +030013704#include <sys/types.h>
13705#endif
13706#ifdef HAVE_NETINET_IN_H
13707#include <netinet/in.h>
13708#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013709"
13710if test "x$ac_cv_member_struct_sockaddr_in6_sin6_scope_id" = x""yes; then :
Vitaly Lipatov40a6a742006-02-20 15:33:09 +030013711
13712cat >>confdefs.h <<_ACEOF
13713#define HAVE_STRUCT_SOCKADDR_IN6_SIN6_SCOPE_ID 1
13714_ACEOF
13715
13716
13717fi
13718
13719
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013720ac_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 +020013721#include <sys/types.h>
13722#endif
13723#ifdef HAVE_NETINET_IN_H
13724# include <netinet/in.h>
13725#endif
13726#ifdef HAVE_ARPA_NAMESER_H
13727# include <arpa/nameser.h>
13728#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013729"
13730if test "x$ac_cv_member_ns_msg__msg_ptr" = x""yes; then :
Alexandre Julliard788e30f2006-05-31 14:43:21 +020013731
13732cat >>confdefs.h <<_ACEOF
13733#define HAVE_NS_MSG__MSG_PTR 1
13734_ACEOF
13735
13736
13737fi
13738
13739
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013740ac_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 -060013741#include <sys/types.h>
13742#endif
13743#ifdef HAVE_ALIAS_H
13744#include <alias.h>
13745#endif
13746#ifdef HAVE_SYS_SOCKET_H
13747#include <sys/socket.h>
13748#endif
13749#ifdef HAVE_SYS_SOCKETVAR_H
13750#include <sys/socketvar.h>
13751#endif
13752#ifdef HAVE_SYS_TIMEOUT_H
13753#include <sys/timeout.h>
13754#endif
13755#ifdef HAVE_NETINET_IN_H
13756#include <netinet/in.h>
13757#endif
13758#ifdef HAVE_NETINET_IN_SYSTM_H
13759#include <netinet/in_systm.h>
13760#endif
13761#ifdef HAVE_NETINET_IP_H
13762#include <netinet/ip.h>
13763#endif
13764#ifdef HAVE_NETINET_IP_VAR_H
13765#include <netinet/ip_var.h>
13766#endif
13767#ifdef HAVE_NETINET_IP_ICMP_H
13768#include <netinet/ip_icmp.h>
13769#endif
13770#ifdef HAVE_NETINET_ICMP_VAR
13771#include <netinet/icmp_var.h>
13772#endif
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013773"
13774if test "x$ac_cv_member_struct_icmpstat_icps_outhist" = x""yes; then :
Austin Englishac0252d2009-01-30 10:18:10 -060013775
13776cat >>confdefs.h <<_ACEOF
13777#define HAVE_STRUCT_ICMPSTAT_ICPS_OUTHIST 1
13778_ACEOF
13779
13780
13781fi
13782
13783
Juan Lang984c3b22010-03-12 10:38:46 -080013784ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "#ifdef HAVE_SYS_TYPES_H
13785#include <sys/types.h>
13786#endif
13787#ifdef HAVE_NET_IF_H
13788# include <net/if.h>
13789#endif
13790"
13791if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
13792
13793cat >>confdefs.h <<_ACEOF
13794#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
13795_ACEOF
13796
13797
13798fi
13799
13800
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013802$as_echo_n "checking for timezone variable... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013803if test "${ac_cv_have_timezone+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013804 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000013805else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013807/* end confdefs.h. */
13808#include <time.h>
13809int
13810main ()
13811{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020013812timezone = 1
Phil Krylov6618b032005-05-24 11:52:46 +000013813 ;
13814 return 0;
13815}
13816_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013817if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000013818 ac_cv_have_timezone="yes"
13819else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013820 ac_cv_have_timezone="no"
Phil Krylov6618b032005-05-24 11:52:46 +000013821fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013822rm -f core conftest.err conftest.$ac_objext \
13823 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013824fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_timezone" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013826$as_echo "$ac_cv_have_timezone" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000013827if test "$ac_cv_have_timezone" = "yes"
13828then
13829
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013830$as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000013831
13832fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight variable" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013834$as_echo_n "checking for daylight variable... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013835if test "${ac_cv_have_daylight+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013836 $as_echo_n "(cached) " >&6
Phil Krylov6618b032005-05-24 11:52:46 +000013837else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013839/* end confdefs.h. */
13840#include <time.h>
13841int
13842main ()
13843{
Alexandre Julliardff2bd662006-08-25 13:23:29 +020013844daylight = 1
Phil Krylov6618b032005-05-24 11:52:46 +000013845 ;
13846 return 0;
13847}
13848_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013849if ac_fn_c_try_link "$LINENO"; then :
Phil Krylov6618b032005-05-24 11:52:46 +000013850 ac_cv_have_daylight="yes"
13851else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013852 ac_cv_have_daylight="no"
Phil Krylov6618b032005-05-24 11:52:46 +000013853fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013854rm -f core conftest.err conftest.$ac_objext \
13855 conftest$ac_exeext conftest.$ac_ext
Phil Krylov6618b032005-05-24 11:52:46 +000013856fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_daylight" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013858$as_echo "$ac_cv_have_daylight" >&6; }
Phil Krylov6618b032005-05-24 11:52:46 +000013859if test "$ac_cv_have_daylight" = "yes"
13860then
13861
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013862$as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
Phil Krylov6618b032005-05-24 11:52:46 +000013863
13864fi
13865
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013867$as_echo_n "checking for isinf... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013868if test "${ac_cv_have_isinf+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013869 $as_echo_n "(cached) " >&6
Petr Sumbera4992b652008-04-29 17:08:53 +020013870else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020013872/* end confdefs.h. */
13873#include <math.h>
13874int
13875main ()
13876{
Francois Gouget2fef93a2008-06-26 15:59:05 +020013877float f = 0.0; int i=isinf(f)
Petr Sumbera4992b652008-04-29 17:08:53 +020013878 ;
13879 return 0;
13880}
13881_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013882if ac_fn_c_try_link "$LINENO"; then :
Petr Sumbera4992b652008-04-29 17:08:53 +020013883 ac_cv_have_isinf="yes"
13884else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013885 ac_cv_have_isinf="no"
Petr Sumbera4992b652008-04-29 17:08:53 +020013886fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013887rm -f core conftest.err conftest.$ac_objext \
13888 conftest$ac_exeext conftest.$ac_ext
Petr Sumbera4992b652008-04-29 17:08:53 +020013889fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isinf" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013891$as_echo "$ac_cv_have_isinf" >&6; }
Petr Sumbera4992b652008-04-29 17:08:53 +020013892if test "$ac_cv_have_isinf" = "yes"
13893then
13894
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013895$as_echo "#define HAVE_ISINF 1" >>confdefs.h
Petr Sumbera4992b652008-04-29 17:08:53 +020013896
13897fi
13898
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013900$as_echo_n "checking for isnan... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013901if test "${ac_cv_have_isnan+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013902 $as_echo_n "(cached) " >&6
Jacek Caban1715dcb2008-10-14 16:06:49 -050013903else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050013905/* end confdefs.h. */
13906#include <math.h>
13907int
13908main ()
13909{
13910float f = 0.0; int i=isnan(f)
13911 ;
13912 return 0;
13913}
13914_ACEOF
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013915if ac_fn_c_try_link "$LINENO"; then :
Jacek Caban1715dcb2008-10-14 16:06:49 -050013916 ac_cv_have_isnan="yes"
13917else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013918 ac_cv_have_isnan="no"
Jacek Caban1715dcb2008-10-14 16:06:49 -050013919fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013920rm -f core conftest.err conftest.$ac_objext \
13921 conftest$ac_exeext conftest.$ac_ext
Jacek Caban1715dcb2008-10-14 16:06:49 -050013922fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_isnan" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013924$as_echo "$ac_cv_have_isnan" >&6; }
Jacek Caban1715dcb2008-10-14 16:06:49 -050013925if test "$ac_cv_have_isnan" = "yes"
13926then
13927
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013928$as_echo "#define HAVE_ISNAN 1" >>confdefs.h
Jacek Caban1715dcb2008-10-14 16:06:49 -050013929
13930fi
13931
Alexandre Julliarddaa28862002-04-11 21:54:01 +000013932
Alexandre Julliardfc01b722002-05-12 03:16:39 +000013933case $host_cpu in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013934 *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 +010013935$as_echo_n "checking whether we need to define __i386__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013936if test "${ac_cv_cpp_def___i386__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013937 $as_echo_n "(cached) " >&6
Juergen Lock2d33ab92000-02-13 16:03:29 +000013938else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013940/* end confdefs.h. */
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013941#ifndef __i386__
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013942yes
13943#endif
Alexandre Julliardf5818d22002-02-14 19:47:29 +000013944_ACEOF
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013946 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013947 ac_cv_cpp_def___i386__=yes
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013948else
Alexandre Julliard05783b52002-12-11 00:21:55 +000013949 ac_cv_cpp_def___i386__=no
Alexandre Julliard51d46ba1999-05-08 16:05:27 +000013950fi
13951rm -f conftest*
13952
13953fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___i386__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013955$as_echo "$ac_cv_cpp_def___i386__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013956if test $ac_cv_cpp_def___i386__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013957 CFLAGS="$CFLAGS -D__i386__"
13958 LINTFLAGS="$LINTFLAGS -D__i386__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013959fi ;;
13960 *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 +010013961$as_echo_n "checking whether we need to define __x86_64__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013962if test "${ac_cv_cpp_def___x86_64__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013963 $as_echo_n "(cached) " >&6
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013964else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013966/* end confdefs.h. */
13967#ifndef __x86_64__
13968yes
13969#endif
13970_ACEOF
13971if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013972 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013973 ac_cv_cpp_def___x86_64__=yes
13974else
13975 ac_cv_cpp_def___x86_64__=no
13976fi
13977rm -f conftest*
13978
13979fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___x86_64__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013981$as_echo "$ac_cv_cpp_def___x86_64__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013982if test $ac_cv_cpp_def___x86_64__ = yes; then :
Alexandre Julliarde3be5642005-09-09 09:30:02 +000013983 CFLAGS="$CFLAGS -D__x86_64__"
13984 LINTFLAGS="$LINTFLAGS -D__x86_64__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013985fi ;;
13986 *alpha*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __ALPHA__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010013987$as_echo_n "checking whether we need to define __ALPHA__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013988if test "${ac_cv_cpp_def___ALPHA__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010013989 $as_echo_n "(cached) " >&6
Steven Edwards69b67862002-12-10 22:48:48 +000013990else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000013992/* end confdefs.h. */
Steven Edwards69b67862002-12-10 22:48:48 +000013993#ifndef __ALPHA__
13994yes
13995#endif
13996_ACEOF
13997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020013998 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000013999 ac_cv_cpp_def___ALPHA__=yes
Steven Edwards69b67862002-12-10 22:48:48 +000014000else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014001 ac_cv_cpp_def___ALPHA__=no
Steven Edwards69b67862002-12-10 22:48:48 +000014002fi
14003rm -f conftest*
14004
14005fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___ALPHA__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014007$as_echo "$ac_cv_cpp_def___ALPHA__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014008if test $ac_cv_cpp_def___ALPHA__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014009 CFLAGS="$CFLAGS -D__ALPHA__"
14010 LINTFLAGS="$LINTFLAGS -D__ALPHA__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014011fi ;;
14012 *sparc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014013$as_echo_n "checking whether we need to define __sparc__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014014if test "${ac_cv_cpp_def___sparc__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014015 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014016else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014018/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014019#ifndef __sparc__
14020yes
14021#endif
14022_ACEOF
14023if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014024 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014025 ac_cv_cpp_def___sparc__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014026else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014027 ac_cv_cpp_def___sparc__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014028fi
14029rm -f conftest*
14030
14031fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sparc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014033$as_echo "$ac_cv_cpp_def___sparc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014034if test $ac_cv_cpp_def___sparc__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014035 CFLAGS="$CFLAGS -D__sparc__"
14036 LINTFLAGS="$LINTFLAGS -D__sparc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014037fi ;;
14038 *powerpc*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014039$as_echo_n "checking whether we need to define __powerpc__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014040if test "${ac_cv_cpp_def___powerpc__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014041 $as_echo_n "(cached) " >&6
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014042else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014044/* end confdefs.h. */
14045#ifndef __powerpc__
14046yes
14047#endif
14048_ACEOF
14049if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014050 $EGREP "yes" >/dev/null 2>&1; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014051 ac_cv_cpp_def___powerpc__=yes
14052else
14053 ac_cv_cpp_def___powerpc__=no
14054fi
14055rm -f conftest*
14056
14057fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___powerpc__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014059$as_echo "$ac_cv_cpp_def___powerpc__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014060if test $ac_cv_cpp_def___powerpc__ = yes; then :
Pierre d'Herbemontb64b7de2003-07-16 23:37:22 +000014061 CFLAGS="$CFLAGS -D__powerpc__"
14062 LINTFLAGS="$LINTFLAGS -D__powerpc__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014063fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014064esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014065
14066case $host_vendor in
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014067 *sun*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we need to define __sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014068$as_echo_n "checking whether we need to define __sun__... " >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014069if test "${ac_cv_cpp_def___sun__+set}" = set; then :
Alexandre Julliardabf50482008-10-31 12:56:53 +010014070 $as_echo_n "(cached) " >&6
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014071else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000014073/* end confdefs.h. */
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014074#ifndef __sun__
14075yes
14076#endif
14077_ACEOF
14078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014079 $EGREP "yes" >/dev/null 2>&1; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014080 ac_cv_cpp_def___sun__=yes
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014081else
Alexandre Julliard05783b52002-12-11 00:21:55 +000014082 ac_cv_cpp_def___sun__=no
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014083fi
14084rm -f conftest*
14085
14086fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cpp_def___sun__" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010014088$as_echo "$ac_cv_cpp_def___sun__" >&6; }
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014089if test $ac_cv_cpp_def___sun__ = yes; then :
Alexandre Julliard05783b52002-12-11 00:21:55 +000014090 CFLAGS="$CFLAGS -D__sun__"
14091 LINTFLAGS="$LINTFLAGS -D__sun__"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020014092fi ;;
Alexandre Julliard05783b52002-12-11 00:21:55 +000014093esac
Gregg Mattinson57807fa2002-07-20 20:17:13 +000014094
14095
Alexandre Julliarda360e932008-08-20 16:02:37 +020014096
Alexandre Julliard7d831152010-03-20 15:07:45 +010014097
Alexandre Julliard6c142382010-04-11 12:47:30 +020014098
Alexandre Julliard7d831152010-03-20 15:07:45 +010014099ac_config_commands="$ac_config_commands include/stamp-h"
14100
Alexandre Julliard03642412010-03-20 15:24:22 +010014101
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014102ALL_MAKEFILE_DEPENDS="
14103# Rules automatically generated by configure
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014104
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014105.INIT: Makefile
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014106.MAKEFILEDEPS:
Alexandre Julliardbd3110d2010-05-23 10:34:36 +020014107all: Makefile
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010014108Makefile: Makefile.in Make.rules config.status
14109 @./config.status Make.tmp Makefile"
Alexandre Julliarda360e932008-08-20 16:02:37 +020014110
Alexandre Julliardd5addea2010-02-08 21:27:54 +010014111ALL_WINETEST_DEPENDS="# Test binaries"
14112
Alexandre Julliard454fb3c2010-02-08 21:29:13 +010014113ALL_TEST_BINARIES=""
14114
Alexandre Julliard49163da2008-08-25 12:02:27 +020014115
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014116wine_fn_append_file ()
14117{
14118 as_fn_append $1 " \\$as_nl $2"
14119}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014120
Alexandre Julliard2de10c42010-02-11 23:23:45 +010014121wine_fn_append_rule ()
14122{
14123 as_fn_append $1 "$as_nl$2"
14124}
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014125
Alexandre Julliard943cd732010-03-25 21:52:56 +010014126wine_fn_all_dir_rules ()
14127{
14128 wine_fn_append_file ALL_DIRS $1
14129 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014130"__clean__: $1/__clean__
14131.PHONY: $1/__clean__
Alexandre Julliard3cc14dc2010-03-25 22:12:12 +010014132$1/__clean__: $1/Makefile
14133 @cd $1 && \$(MAKE) clean
14134 \$(RM) $1/Makefile
Alexandre Julliard18e53132010-03-25 22:00:00 +010014135$1/Makefile: $1/Makefile.in config.status $2
14136 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014137depend: $1/__depend__
14138.PHONY: $1/__depend__
Alexandre Julliard18e53132010-03-25 22:00:00 +010014139$1/__depend__: \$(MAKEDEP) dummy
Alexandre Julliard943cd732010-03-25 21:52:56 +010014140 @./config.status --file $1/Makefile && cd $1 && \$(MAKE) depend"
14141}
14142
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014143wine_fn_config_makefile ()
14144{
14145 ac_dir=$1
Alexandre Julliard03642412010-03-20 15:24:22 +010014146 ac_enable=$2
Alexandre Julliard03642412010-03-20 15:24:22 +010014147 eval as_val=\$$ac_enable
14148 if test "x$as_val" = x""no; then :
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014149 return 0
14150fi
Alexandre Julliard03642412010-03-20 15:24:22 +010014151
Alexandre Julliard9bdd0272010-06-30 17:34:20 +020014152 wine_fn_all_dir_rules $ac_dir "Make.rules \$(MAKEDEP)"
14153 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014154"all: $ac_dir
14155.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014156$ac_dir: $ac_dir/Makefile dummy
14157 @cd $ac_dir && \$(MAKE)
Alexandre Julliarde84063b2010-03-25 21:46:41 +010014158install:: $ac_dir
14159 @cd $ac_dir && \$(MAKE) install
14160install-lib:: $ac_dir
14161 @cd $ac_dir && \$(MAKE) install-lib
14162install-dev:: $ac_dir
14163 @cd $ac_dir && \$(MAKE) install-dev
14164uninstall:: $ac_dir/Makefile
14165 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014166}
14167
14168wine_fn_config_lib ()
14169{
14170 ac_name=$1
Alexandre Julliardb8fb1d52010-03-20 14:50:53 +010014171 ac_dir=dlls/$ac_name
Alexandre Julliard943cd732010-03-25 21:52:56 +010014172 wine_fn_all_dir_rules $ac_dir "dlls/Makeimplib.rules \$(MAKEDEP)"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014173 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014174"all __builddeps__: $ac_dir
Alexandre Julliard7d2e7722010-07-26 12:13:47 +020014175$ac_dir: $ac_dir/Makefile tools/widl tools/winebuild tools/winegcc include dummy
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014176 @cd $ac_dir && \$(MAKE)
Alexandre Julliardc2c3c212010-03-25 11:13:07 +010014177install install-dev:: $ac_dir
14178 @cd $ac_dir && \$(MAKE) install
14179uninstall:: $ac_dir/Makefile
14180 @cd $ac_dir && \$(MAKE) uninstall"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014181}
14182
Alexandre Julliard50231942010-03-16 22:00:02 +010014183wine_fn_config_dll ()
14184{
14185 ac_dir=$1
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014186 ac_enable=$2
14187 ac_implib=$3
14188 ac_implibsrc=$4
Alexandre Julliard50231942010-03-16 22:00:02 +010014189 ac_file="dlls/$ac_dir/lib$ac_implib"
14190 ac_deps="tools/widl tools/winebuild tools/winegcc include"
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014191 ac_implibflags=""
14192
14193 case $ac_dir in
14194 *16) ac_implibflags=" -m16" ;;
14195 esac
Alexandre Julliard50231942010-03-16 22:00:02 +010014196
Alexandre Julliard943cd732010-03-25 21:52:56 +010014197 wine_fn_all_dir_rules dlls/$ac_dir "dlls/Makedll.rules \$(MAKEDEP)"
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014198
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014199 eval as_val=\$$ac_enable
14200 if test "x$as_val" = x""no; then :
14201 test "$ac_enable" != enable_win16 || return 0
14202else
Alexandre Julliard60a05ad2010-03-25 12:05:44 +010014203 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014204"all: dlls/$ac_dir
14205.PHONY: dlls/$ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014206dlls/$ac_dir: dlls/$ac_dir/Makefile __builddeps__ dummy
14207 @cd dlls/$ac_dir && \$(MAKE)
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014208install:: dlls/$ac_dir/Makefile __builddeps__
14209 @cd dlls/$ac_dir && \$(MAKE) install
14210install-lib:: dlls/$ac_dir/Makefile __builddeps__
14211 @cd dlls/$ac_dir && \$(MAKE) install-lib
Alexandre Julliard60a05ad2010-03-25 12:05:44 +010014212uninstall manpages htmlpages sgmlpages xmlpages:: dlls/$ac_dir/Makefile
14213 @cd dlls/$ac_dir && \$(MAKE) \$@"
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014214fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014215
14216 if test -n "$ac_implibsrc"
14217 then
14218 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014219"__builddeps__: $ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014220$ac_file.$IMPLIBEXT $ac_file.$STATIC_IMPLIBEXT $ac_file.cross.a: $ac_deps
Alexandre Julliard50231942010-03-16 22:00:02 +010014221$ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014222 @cd dlls/$ac_dir && \$(MAKE) lib$ac_implib.def
14223$ac_file.$STATIC_IMPLIBEXT: dlls/$ac_dir/Makefile dummy
14224 @cd dlls/$ac_dir && \$(MAKE) lib$ac_implib.$STATIC_IMPLIBEXT
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014225install-dev:: dlls/$ac_dir/Makefile __builddeps__
14226 @cd dlls/$ac_dir && \$(MAKE) install-dev"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014227 if test "x$CROSSTEST_DISABLE" = x
14228 then
14229 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14230"__builddeps__: $ac_file.cross.a
14231$ac_file.cross.a: dlls/$ac_dir/Makefile dummy
14232 @cd dlls/$ac_dir && \$(MAKE) lib$ac_implib.cross.a"
14233 fi
14234
Alexandre Julliard50231942010-03-16 22:00:02 +010014235 elif test -n "$ac_implib"
14236 then
14237 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014238"__builddeps__: $ac_file.$IMPLIBEXT
Alexandre Julliardf56dd182010-07-31 11:15:33 +020014239$ac_file.def: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile \$(WINEBUILD)
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014240 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --def -o \$@ --export \$(SRCDIR)/dlls/$ac_dir/$ac_dir.spec
Alexandre Julliardf56dd182010-07-31 11:15:33 +020014241$ac_file.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile \$(WINEBUILD)
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014242 \$(WINEBUILD) \$(TARGETFLAGS)$ac_implibflags -w --implib -o \$@ --export \$(SRCDIR)/dlls/$ac_dir/$ac_dir.spec
Alexandre Julliard82b743f2010-03-25 11:15:32 +010014243install-dev:: dlls/$ac_dir/Makefile __builddeps__
14244 @cd dlls/$ac_dir && \$(MAKE) install-dev"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014245 if test "x$CROSSTEST_DISABLE" = x
14246 then
14247 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14248"__builddeps__: $ac_file.cross.a
Alexandre Julliardf56dd182010-07-31 11:15:33 +020014249$ac_file.cross.a: dlls/$ac_dir/$ac_dir.spec dlls/$ac_dir/Makefile \$(WINEBUILD)
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014250 \$(WINEBUILD) \$(CROSSTARGET:%=-b %)$ac_implibflags -w --implib -o \$@ --export \$(SRCDIR)/dlls/$ac_dir/$ac_dir.spec"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014251 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014252
14253 if test "$ac_dir" != "$ac_implib"
14254 then
14255 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014256"__builddeps__: dlls/lib$ac_implib.$IMPLIBEXT
Alexandre Julliarde55ff7f2010-03-25 11:02:52 +010014257dlls/lib$ac_implib.$IMPLIBEXT: $ac_file.$IMPLIBEXT
Alexandre Julliard50231942010-03-16 22:00:02 +010014258 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.$IMPLIBEXT \$@
Alexandre Julliard50231942010-03-16 22:00:02 +010014259clean::
14260 \$(RM) dlls/lib$ac_implib.$IMPLIBEXT"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014261 if test "x$CROSSTEST_DISABLE" = x
14262 then
14263 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14264"__builddeps__: dlls/lib$ac_implib.cross.a
14265dlls/lib$ac_implib.cross.a: $ac_file.cross.a
14266 \$(RM) \$@ && \$(LN_S) $ac_dir/lib$ac_implib.cross.a \$@"
14267 fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014268 fi
14269 fi
14270}
14271
14272wine_fn_config_program ()
14273{
14274 ac_dir=$1
Alexandre Julliardd394e042010-03-20 14:53:39 +010014275 ac_enable=$2
14276 ac_install=$3
Alexandre Julliard943cd732010-03-25 21:52:56 +010014277 wine_fn_all_dir_rules programs/$ac_dir "programs/Makeprog.rules \$(MAKEDEP)"
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014278
Alexandre Julliardd394e042010-03-20 14:53:39 +010014279 eval as_val=\$$ac_enable
14280 if test "x$as_val" = x""no; then :
14281
14282else
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014283 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014284"all: programs/$ac_dir
14285.PHONY: programs/$ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014286programs/$ac_dir: programs/$ac_dir/Makefile __builddeps__ dummy
14287 @cd programs/$ac_dir && \$(MAKE)"
14288
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014289 test -n "$ac_install" || return
14290 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014291"install install-lib:: programs/$ac_dir/Makefile __builddeps__
14292 @cd programs/$ac_dir && \$(MAKE) install
14293uninstall:: programs/$ac_dir/Makefile
14294 @cd programs/$ac_dir && \$(MAKE) uninstall"
Alexandre Julliard718ea422010-03-26 09:29:10 +010014295 if test "$ac_install" = installbin -a -n "$DLLEXT" -a "x$enable_tools" != xno
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014296 then
14297 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard718ea422010-03-26 09:29:10 +010014298"install install-lib:: tools \$(DESTDIR)\$(bindir)
14299 \$(INSTALL_SCRIPT) tools/wineapploader \$(DESTDIR)\$(bindir)/$ac_dir
Alexandre Julliard2fb30212010-03-26 09:24:33 +010014300uninstall::
14301 \$(RM) \$(DESTDIR)\$(bindir)/$ac_dir"
Alexandre Julliardd7b387d2010-03-25 11:11:34 +010014302 fi
Alexandre Julliardd394e042010-03-20 14:53:39 +010014303fi
Alexandre Julliard50231942010-03-16 22:00:02 +010014304}
14305
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014306wine_fn_config_test ()
14307{
14308 ac_dir=$1
14309 ac_name=$2
14310 wine_fn_append_file ALL_TEST_BINARIES $ac_name.exe
14311 wine_fn_append_rule ALL_WINETEST_DEPENDS \
14312"$ac_name.exe: \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT
14313 cp \$(TOPOBJDIR)/$ac_dir/$ac_name.exe$DLLEXT \$@ && \$(STRIP) \$@
14314$ac_name.rc:
14315 echo \"$ac_name.exe TESTRES \\\"$ac_name.exe\\\"\" >\$@ || (\$(RM) \$@ && false)
14316$ac_name.res: $ac_name.rc $ac_name.exe"
Alexandre Julliard943cd732010-03-25 21:52:56 +010014317 wine_fn_all_dir_rules $ac_dir "Maketest.rules \$(MAKEDEP)"
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014318
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014319 if test "x$enable_tests" = x""no; then :
14320
14321else
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014322 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014323"all programs/winetest: $ac_dir
14324.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014325$ac_dir: $ac_dir/Makefile __builddeps__ dummy
14326 @cd $ac_dir && \$(MAKE)
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014327test: $ac_dir/__test__
14328.PHONY: $ac_dir/__test__
Alexandre Julliardeab7efd2010-03-25 21:42:54 +010014329$ac_dir/__test__: dummy
Alexandre Julliard44cff7e2010-03-25 11:06:37 +010014330 @cd $ac_dir && \$(MAKE) test
14331testclean::
14332 \$(RM) $ac_dir/*.ok"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014333
14334 if test "x$CROSSTEST_DISABLE" = x
14335 then
14336 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14337"crosstest: $ac_dir/__crosstest__
14338.PHONY: $ac_dir/__crosstest__
14339$ac_dir/__crosstest__: $ac_dir/Makefile __builddeps__ dummy
14340 @cd $ac_dir && \$(MAKE) crosstest"
Alexandre Julliardfaa7eae2010-07-26 12:38:11 +020014341 fi
Alexandre Julliarddc3afa12010-03-20 14:51:52 +010014342fi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014343}
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014344
14345wine_fn_config_tool ()
14346{
14347 ac_dir=$1
14348 ac_deps="Make.rules"
14349 if test "$ac_dir" != tools
14350 then
14351 ac_deps="$ac_deps \$(MAKEDEP)"
14352 fi
Alexandre Julliard943cd732010-03-25 21:52:56 +010014353 wine_fn_all_dir_rules $ac_dir "$ac_deps"
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014354
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014355 if test "x$enable_tools" = x""no; then :
14356
14357else
Alexandre Julliard6dbe7a02010-03-25 11:51:24 +010014358 case $ac_dir in
14359 tools) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14360"install:: $ac_dir
14361 @cd $ac_dir && \$(MAKE) install
14362install-lib:: $ac_dir
14363 @cd $ac_dir && \$(MAKE) install-lib
14364install-dev:: $ac_dir
14365 @cd $ac_dir && \$(MAKE) install-dev" ;;
14366 *) wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14367"install install-dev:: $ac_dir
14368 @cd $ac_dir && \$(MAKE) install" ;;
14369 esac
14370 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14371"uninstall:: $ac_dir/Makefile
14372 @cd $ac_dir && \$(MAKE) uninstall
Alexandre Julliard764d4c22010-05-23 09:27:33 +020014373all __tooldeps__: $ac_dir
14374.PHONY: $ac_dir
Alexandre Julliard6c90aea2010-03-25 21:47:29 +010014375$ac_dir: $ac_dir/Makefile libs/port dummy
14376 @cd $ac_dir && \$(MAKE)"
Alexandre Julliardb0e48e12010-07-26 21:06:28 +020014377 case $ac_dir in
14378 tools/winebuild) wine_fn_append_rule ALL_MAKEFILE_DEPENDS "\$(WINEBUILD): $ac_dir" ;;
14379 esac
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010014380fi
14381}
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014382
14383wine_fn_config_makerules ()
14384{
14385 ac_rules=$1
14386 ac_deps=$2
14387 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14388"$ac_rules: $ac_rules.in $ac_deps config.status
14389 @./config.status $ac_rules
14390distclean::
14391 \$(RM) $ac_rules"
14392}
14393
14394wine_fn_config_symlink ()
14395{
14396 ac_link=$1
14397 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14398"$ac_link:
14399 @./config.status $ac_link
14400distclean::
14401 \$(RM) $ac_link"
14402}
Alexandre Julliarda070f9b2010-07-26 20:53:12 +020014403
14404if test "x$CROSSTEST_DISABLE" != x
14405then
14406 wine_fn_append_rule ALL_MAKEFILE_DEPENDS \
14407"crosstest:
14408 @echo \"crosstest is not supported (mingw not installed?)\" && false"
14409fi
Alexandre Julliarda6320522010-02-03 13:14:03 +010014410ac_config_links="$ac_config_links dlls/wineps.drv/generic.ppd:dlls/wineps.drv/generic.ppd"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014411test "$srcdir" = "." || wine_fn_config_symlink dlls/wineps.drv/generic.ppd
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014412if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014413ac_config_links="$ac_config_links fonts/marlett.ttf:fonts/marlett.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014414test "$srcdir" = "." || wine_fn_config_symlink fonts/marlett.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014415fi
14416if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014417ac_config_links="$ac_config_links fonts/symbol.ttf:fonts/symbol.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014418test "$srcdir" = "." || wine_fn_config_symlink fonts/symbol.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014419fi
14420if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014421ac_config_links="$ac_config_links fonts/tahoma.ttf:fonts/tahoma.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014422test "$srcdir" = "." || wine_fn_config_symlink fonts/tahoma.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014423fi
14424if test "x$enable_fonts" != xno; then
Alexandre Julliardce122962010-02-03 13:13:16 +010014425ac_config_links="$ac_config_links fonts/tahomabd.ttf:fonts/tahomabd.ttf"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014426test "$srcdir" = "." || wine_fn_config_symlink fonts/tahomabd.ttf
Alexandre Julliard0ef63e12010-03-27 11:44:13 +010014427fi
Alexandre Julliard321d3882010-05-06 20:51:53 +020014428ac_config_links="$ac_config_links tools/l_intl.nls:tools/l_intl.nls"
14429test "$srcdir" = "." || wine_fn_config_symlink tools/l_intl.nls
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014430ac_config_links="$ac_config_links wine:tools/winewrapper"
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014431wine_fn_config_symlink wine
Alexandre Julliard7d020c92010-02-03 13:12:12 +010014432
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014433ac_config_commands="$ac_config_commands dlls/gdi32/enhmfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014434
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020014435ac_config_commands="$ac_config_commands dlls/gdi32/mfdrv"
Alexandre Julliard89118562002-03-27 21:13:40 +000014436
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020014437ac_config_commands="$ac_config_commands dlls/kernel32/nls"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014438
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010014439ac_config_commands="$ac_config_commands dlls/user32/resources"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014440
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014441ac_config_commands="$ac_config_commands dlls/wineps.drv/data"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014442
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020014443ac_config_commands="$ac_config_commands include/wine"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000014444
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000014445
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014446wine_fn_config_makerules Make.rules
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000014447MAKE_RULES=Make.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014448ac_config_files="$ac_config_files Make.rules"
14449
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014450wine_fn_config_makerules Maketest.rules Make.rules
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010014451MAKE_TEST_RULES=Maketest.rules
14452ac_config_files="$ac_config_files Maketest.rules"
14453
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014454wine_fn_config_makerules dlls/Makedll.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014455MAKE_DLL_RULES=dlls/Makedll.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014456ac_config_files="$ac_config_files dlls/Makedll.rules"
14457
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014458wine_fn_config_makerules dlls/Makeimplib.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014459MAKE_IMPLIB_RULES=dlls/Makeimplib.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014460ac_config_files="$ac_config_files dlls/Makeimplib.rules"
14461
Alexandre Julliardabfb11e2010-03-25 22:12:49 +010014462wine_fn_config_makerules programs/Makeprog.rules Make.rules
Alexandre Julliarda360e932008-08-20 16:02:37 +020014463MAKE_PROG_RULES=programs/Makeprog.rules
Marcus Meissnerfbc80d72007-02-27 07:48:58 +010014464ac_config_files="$ac_config_files programs/Makeprog.rules"
14465
Alexandre Julliarda360e932008-08-20 16:02:37 +020014466
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014467wine_fn_config_dll acledit enable_acledit
14468wine_fn_config_dll aclui enable_aclui aclui
14469wine_fn_config_dll activeds enable_activeds activeds
14470wine_fn_config_dll actxprxy enable_actxprxy
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014471wine_fn_config_lib adsiid
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014472wine_fn_config_dll advapi32 enable_advapi32 advapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014473wine_fn_config_test dlls/advapi32/tests advapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014474wine_fn_config_dll advpack enable_advpack advpack
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014475wine_fn_config_test dlls/advpack/tests advpack_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014476wine_fn_config_dll amstream enable_amstream
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014477wine_fn_config_test dlls/amstream/tests amstream_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014478wine_fn_config_dll appwiz.cpl enable_appwiz_cpl
14479wine_fn_config_dll atl enable_atl atl
Marcus Meissnerb3f04252010-06-15 11:04:33 +020014480wine_fn_config_test dlls/atl/tests atl_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014481wine_fn_config_dll authz enable_authz
14482wine_fn_config_dll avicap32 enable_avicap32 avicap32
14483wine_fn_config_dll avifil32 enable_avifil32 avifil32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014484wine_fn_config_test dlls/avifil32/tests avifil32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014485wine_fn_config_dll avifile.dll16 enable_win16
14486wine_fn_config_dll avrt enable_avrt avrt
14487wine_fn_config_dll bcrypt enable_bcrypt
14488wine_fn_config_dll browseui enable_browseui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014489wine_fn_config_test dlls/browseui/tests browseui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014490wine_fn_config_dll cabinet enable_cabinet cabinet
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014491wine_fn_config_test dlls/cabinet/tests cabinet_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014492wine_fn_config_dll capi2032 enable_capi2032 capi2032
14493wine_fn_config_dll cards enable_cards cards
14494wine_fn_config_dll cfgmgr32 enable_cfgmgr32 cfgmgr32
14495wine_fn_config_dll clusapi enable_clusapi clusapi
14496wine_fn_config_dll comcat enable_comcat
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014497wine_fn_config_test dlls/comcat/tests comcat_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014498wine_fn_config_dll comctl32 enable_comctl32 comctl32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014499wine_fn_config_test dlls/comctl32/tests comctl32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014500wine_fn_config_dll comdlg32 enable_comdlg32 comdlg32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014501wine_fn_config_test dlls/comdlg32/tests comdlg32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014502wine_fn_config_dll comm.drv16 enable_win16
14503wine_fn_config_dll commdlg.dll16 enable_win16
14504wine_fn_config_dll compobj.dll16 enable_win16
14505wine_fn_config_dll compstui enable_compstui compstui
14506wine_fn_config_dll credui enable_credui credui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014507wine_fn_config_test dlls/credui/tests credui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014508wine_fn_config_dll crtdll enable_crtdll crtdll
14509wine_fn_config_dll crypt32 enable_crypt32 crypt32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014510wine_fn_config_test dlls/crypt32/tests crypt32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014511wine_fn_config_dll cryptdlg enable_cryptdlg
14512wine_fn_config_dll cryptdll enable_cryptdll cryptdll
14513wine_fn_config_dll cryptnet enable_cryptnet cryptnet
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014514wine_fn_config_test dlls/cryptnet/tests cryptnet_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014515wine_fn_config_dll cryptui enable_cryptui cryptui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014516wine_fn_config_test dlls/cryptui/tests cryptui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014517wine_fn_config_dll ctapi32 enable_ctapi32
14518wine_fn_config_dll ctl3d.dll16 enable_win16
14519wine_fn_config_dll ctl3d32 enable_ctl3d32 ctl3d32
14520wine_fn_config_dll ctl3dv2.dll16 enable_win16
14521wine_fn_config_dll d3d10 enable_d3d10 d3d10
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014522wine_fn_config_test dlls/d3d10/tests d3d10_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014523wine_fn_config_dll d3d10core enable_d3d10core d3d10core
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014524wine_fn_config_test dlls/d3d10core/tests d3d10core_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014525wine_fn_config_dll d3d8 enable_d3d8 d3d8
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014526wine_fn_config_test dlls/d3d8/tests d3d8_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014527wine_fn_config_dll d3d9 enable_d3d9 d3d9
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014528wine_fn_config_test dlls/d3d9/tests d3d9_test
Matteo Bruni0ac336f2010-07-29 01:53:54 +020014529wine_fn_config_dll d3dcompiler_33 enable_d3dcompiler_33
Matteo Bruni66d44992010-07-29 01:47:13 +020014530wine_fn_config_dll d3dcompiler_34 enable_d3dcompiler_34
Matteo Bruni8ea75832010-07-28 16:44:37 +020014531wine_fn_config_dll d3dcompiler_35 enable_d3dcompiler_35
Matteo Bruni458eb082010-07-28 16:37:28 +020014532wine_fn_config_dll d3dcompiler_36 enable_d3dcompiler_36
Matteo Bruni3c59b9c2010-07-28 16:22:11 +020014533wine_fn_config_dll d3dcompiler_37 enable_d3dcompiler_37
Matteo Brunifbf1e832010-07-28 16:13:40 +020014534wine_fn_config_dll d3dcompiler_38 enable_d3dcompiler_38
Matteo Bruni99491462010-07-28 04:31:18 +020014535wine_fn_config_dll d3dcompiler_39 enable_d3dcompiler_39
Matteo Brunifd4efcd2010-07-28 04:09:13 +020014536wine_fn_config_dll d3dcompiler_40 enable_d3dcompiler_40
Matteo Bruni79c1bc42010-08-03 18:44:25 +020014537wine_fn_config_dll d3dcompiler_41 enable_d3dcompiler_41
Matteo Brunife050702010-08-03 18:44:25 +020014538wine_fn_config_dll d3dcompiler_42 enable_d3dcompiler_42
Matteo Bruni70962ee2010-07-30 16:21:43 +020014539wine_fn_config_dll d3dcompiler_43 enable_d3dcompiler_43 d3dcompiler
Rico Schüller5ad7f7b2010-08-19 21:33:43 +020014540wine_fn_config_test dlls/d3dcompiler_43/tests d3dcompiler_43_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014541wine_fn_config_dll d3dim enable_d3dim d3dim
14542wine_fn_config_dll d3drm enable_d3drm d3drm
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014543wine_fn_config_test dlls/d3drm/tests d3drm_test
Owen Rudge9870c042010-08-18 16:02:22 -050014544wine_fn_config_dll d3dx10_33 enable_d3dx10_33
Owen Rudge49dbdc12010-08-18 16:02:20 -050014545wine_fn_config_dll d3dx10_34 enable_d3dx10_34
Owen Rudge955b8442010-08-18 16:02:18 -050014546wine_fn_config_dll d3dx10_35 enable_d3dx10_35
Owen Rudgef44830e2010-08-18 16:02:16 -050014547wine_fn_config_dll d3dx10_36 enable_d3dx10_36
Owen Rudge4196ba22010-08-18 16:02:10 -050014548wine_fn_config_dll d3dx10_37 enable_d3dx10_37
Owen Rudge199ff9b2010-08-18 16:02:08 -050014549wine_fn_config_dll d3dx10_38 enable_d3dx10_38
Owen Rudgefb8d7cd2010-08-18 16:02:06 -050014550wine_fn_config_dll d3dx10_39 enable_d3dx10_39
Owen Rudge662cbb12010-08-18 16:02:03 -050014551wine_fn_config_dll d3dx10_40 enable_d3dx10_40
Owen Rudge17591cc2010-08-18 16:01:59 -050014552wine_fn_config_dll d3dx10_41 enable_d3dx10_41
Owen Rudgee5d9e122010-08-18 16:01:57 -050014553wine_fn_config_dll d3dx10_42 enable_d3dx10_42
Owen Rudge3c5b2e62010-08-18 16:01:53 -050014554wine_fn_config_dll d3dx10_43 enable_d3dx10_43
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014555wine_fn_config_dll d3dx9_24 enable_d3dx9_24
14556wine_fn_config_dll d3dx9_25 enable_d3dx9_25
14557wine_fn_config_dll d3dx9_26 enable_d3dx9_26
14558wine_fn_config_dll d3dx9_27 enable_d3dx9_27
14559wine_fn_config_dll d3dx9_28 enable_d3dx9_28
14560wine_fn_config_dll d3dx9_29 enable_d3dx9_29
14561wine_fn_config_dll d3dx9_30 enable_d3dx9_30
14562wine_fn_config_dll d3dx9_31 enable_d3dx9_31
14563wine_fn_config_dll d3dx9_32 enable_d3dx9_32
14564wine_fn_config_dll d3dx9_33 enable_d3dx9_33
14565wine_fn_config_dll d3dx9_34 enable_d3dx9_34
14566wine_fn_config_dll d3dx9_35 enable_d3dx9_35
14567wine_fn_config_dll d3dx9_36 enable_d3dx9_36 d3dx9
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014568wine_fn_config_test dlls/d3dx9_36/tests d3dx9_36_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014569wine_fn_config_dll d3dx9_37 enable_d3dx9_37
14570wine_fn_config_dll d3dx9_38 enable_d3dx9_38
14571wine_fn_config_dll d3dx9_39 enable_d3dx9_39
14572wine_fn_config_dll d3dx9_40 enable_d3dx9_40
14573wine_fn_config_dll d3dx9_41 enable_d3dx9_41
14574wine_fn_config_dll d3dx9_42 enable_d3dx9_42
Matteo Bruni90c615a2010-08-25 17:12:51 +020014575wine_fn_config_dll d3dx9_43 enable_d3dx9_43
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014576wine_fn_config_dll d3dxof enable_d3dxof d3dxof
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014577wine_fn_config_test dlls/d3dxof/tests d3dxof_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014578wine_fn_config_dll dbghelp enable_dbghelp dbghelp
14579wine_fn_config_dll dciman32 enable_dciman32 dciman32
14580wine_fn_config_dll ddeml.dll16 enable_win16
14581wine_fn_config_dll ddraw enable_ddraw ddraw
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014582wine_fn_config_test dlls/ddraw/tests ddraw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014583wine_fn_config_dll ddrawex enable_ddrawex
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014584wine_fn_config_test dlls/ddrawex/tests ddrawex_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014585wine_fn_config_dll devenum enable_devenum
14586wine_fn_config_dll dinput enable_dinput dinput "data_formats.c"
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014587wine_fn_config_test dlls/dinput/tests dinput_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014588wine_fn_config_dll dinput8 enable_dinput8 dinput8
14589wine_fn_config_dll dispdib.dll16 enable_win16
14590wine_fn_config_dll dispex enable_dispex
Huw Daviesdf075612010-03-19 13:34:53 +000014591wine_fn_config_test dlls/dispex/tests dispex_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014592wine_fn_config_dll display.drv16 enable_win16
14593wine_fn_config_dll dmband enable_dmband
14594wine_fn_config_dll dmcompos enable_dmcompos
14595wine_fn_config_dll dmime enable_dmime
Austin Lund203272e2010-08-06 17:50:49 +100014596wine_fn_config_test dlls/dmime/tests dmime_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014597wine_fn_config_dll dmloader enable_dmloader
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014598wine_fn_config_test dlls/dmloader/tests dmloader_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014599wine_fn_config_dll dmscript enable_dmscript
14600wine_fn_config_dll dmstyle enable_dmstyle
14601wine_fn_config_dll dmsynth enable_dmsynth
14602wine_fn_config_dll dmusic enable_dmusic
14603wine_fn_config_dll dmusic32 enable_dmusic32 dmusic32
14604wine_fn_config_dll dnsapi enable_dnsapi dnsapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014605wine_fn_config_test dlls/dnsapi/tests dnsapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014606wine_fn_config_dll dplay enable_dplay dplay
14607wine_fn_config_dll dplayx enable_dplayx dplayx
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014608wine_fn_config_test dlls/dplayx/tests dplayx_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014609wine_fn_config_dll dpnaddr enable_dpnaddr
14610wine_fn_config_dll dpnet enable_dpnet dpnet
14611wine_fn_config_dll dpnhpast enable_dpnhpast
14612wine_fn_config_dll dpnlobby enable_dpnlobby
14613wine_fn_config_dll dpwsockx enable_dpwsockx
14614wine_fn_config_dll drmclien enable_drmclien
14615wine_fn_config_dll dsound enable_dsound dsound
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014616wine_fn_config_test dlls/dsound/tests dsound_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014617wine_fn_config_dll dssenh enable_dssenh
14618wine_fn_config_dll dswave enable_dswave
14619wine_fn_config_dll dwmapi enable_dwmapi dwmapi
14620wine_fn_config_dll dxdiagn enable_dxdiagn
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014621wine_fn_config_test dlls/dxdiagn/tests dxdiagn_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014622wine_fn_config_lib dxerr8
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014623wine_fn_config_lib dxerr9
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014624wine_fn_config_dll dxgi enable_dxgi dxgi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014625wine_fn_config_test dlls/dxgi/tests dxgi_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014626wine_fn_config_lib dxguid
David Hedberge2cf9ad2010-07-31 20:02:45 +020014627wine_fn_config_dll explorerframe enable_explorerframe
David Hedberg87212d52010-07-31 20:02:49 +020014628wine_fn_config_test dlls/explorerframe/tests explorerframe_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014629wine_fn_config_dll faultrep enable_faultrep
14630wine_fn_config_dll fltlib enable_fltlib
14631wine_fn_config_dll fusion enable_fusion
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014632wine_fn_config_test dlls/fusion/tests fusion_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014633wine_fn_config_dll fwpuclnt enable_fwpuclnt
Mariusz Plucińskib3a9ce42010-07-22 23:59:34 +020014634wine_fn_config_dll gameux enable_gameux
Mariusz Plucińskicb886f42010-08-03 11:58:01 +020014635wine_fn_config_test dlls/gameux/tests gameux_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014636wine_fn_config_dll gdi.exe16 enable_win16
14637wine_fn_config_dll gdi32 enable_gdi32 gdi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014638wine_fn_config_test dlls/gdi32/tests gdi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014639wine_fn_config_dll gdiplus enable_gdiplus gdiplus
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014640wine_fn_config_test dlls/gdiplus/tests gdiplus_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014641wine_fn_config_dll glu32 enable_glu32 glu32
14642wine_fn_config_dll gphoto2.ds enable_gphoto2_ds
14643wine_fn_config_dll gpkcsp enable_gpkcsp
14644wine_fn_config_dll hal enable_hal
14645wine_fn_config_dll hhctrl.ocx enable_hhctrl_ocx
14646wine_fn_config_dll hid enable_hid hid
14647wine_fn_config_dll hlink enable_hlink hlink
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014648wine_fn_config_test dlls/hlink/tests hlink_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014649wine_fn_config_dll hnetcfg enable_hnetcfg
14650wine_fn_config_dll httpapi enable_httpapi
14651wine_fn_config_dll iccvid enable_iccvid
14652wine_fn_config_dll icmp enable_icmp
14653wine_fn_config_dll ifsmgr.vxd enable_win16
14654wine_fn_config_dll imaadp32.acm enable_imaadp32_acm
14655wine_fn_config_dll imagehlp enable_imagehlp imagehlp
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014656wine_fn_config_test dlls/imagehlp/tests imagehlp_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014657wine_fn_config_dll imm.dll16 enable_win16
14658wine_fn_config_dll imm32 enable_imm32 imm32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014659wine_fn_config_test dlls/imm32/tests imm32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014660wine_fn_config_dll inetcomm enable_inetcomm inetcomm
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014661wine_fn_config_test dlls/inetcomm/tests inetcomm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014662wine_fn_config_dll inetmib1 enable_inetmib1
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014663wine_fn_config_test dlls/inetmib1/tests inetmib1_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014664wine_fn_config_dll infosoft enable_infosoft
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014665wine_fn_config_test dlls/infosoft/tests infosoft_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014666wine_fn_config_dll initpki enable_initpki
14667wine_fn_config_dll inkobj enable_inkobj
14668wine_fn_config_dll inseng enable_inseng
14669wine_fn_config_dll iphlpapi enable_iphlpapi iphlpapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014670wine_fn_config_test dlls/iphlpapi/tests iphlpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014671wine_fn_config_dll itircl enable_itircl
14672wine_fn_config_dll itss enable_itss
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014673wine_fn_config_test dlls/itss/tests itss_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014674wine_fn_config_dll jscript enable_jscript
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014675wine_fn_config_test dlls/jscript/tests jscript_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014676wine_fn_config_dll kernel32 enable_kernel32 kernel32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014677wine_fn_config_test dlls/kernel32/tests kernel32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014678wine_fn_config_dll keyboard.drv16 enable_win16
14679wine_fn_config_dll krnl386.exe16 enable_win16 kernel
14680wine_fn_config_dll loadperf enable_loadperf loadperf
14681wine_fn_config_dll localspl enable_localspl
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014682wine_fn_config_test dlls/localspl/tests localspl_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014683wine_fn_config_dll localui enable_localui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014684wine_fn_config_test dlls/localui/tests localui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014685wine_fn_config_dll lz32 enable_lz32 lz32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014686wine_fn_config_test dlls/lz32/tests lz32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014687wine_fn_config_dll lzexpand.dll16 enable_win16
14688wine_fn_config_dll mapi32 enable_mapi32 mapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014689wine_fn_config_test dlls/mapi32/tests mapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014690wine_fn_config_dll mapistub enable_mapistub
14691wine_fn_config_dll mciavi32 enable_mciavi32
14692wine_fn_config_dll mcicda enable_mcicda
14693wine_fn_config_dll mciqtz32 enable_mciqtz32
14694wine_fn_config_dll mciseq enable_mciseq
14695wine_fn_config_dll mciwave enable_mciwave
14696wine_fn_config_dll midimap enable_midimap
14697wine_fn_config_dll mlang enable_mlang mlang
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014698wine_fn_config_test dlls/mlang/tests mlang_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014699wine_fn_config_dll mmdevapi enable_mmdevapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014700wine_fn_config_test dlls/mmdevapi/tests mmdevapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014701wine_fn_config_dll mmdevldr.vxd enable_win16
14702wine_fn_config_dll mmsystem.dll16 enable_win16
14703wine_fn_config_dll monodebg.vxd enable_win16
14704wine_fn_config_dll mountmgr.sys enable_mountmgr_sys
14705wine_fn_config_dll mouse.drv16 enable_win16
14706wine_fn_config_dll mpr enable_mpr mpr
14707wine_fn_config_dll mprapi enable_mprapi mprapi
14708wine_fn_config_dll msacm.dll16 enable_win16
14709wine_fn_config_dll msacm32.drv enable_msacm32_drv
14710wine_fn_config_dll msacm32 enable_msacm32 msacm32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014711wine_fn_config_test dlls/msacm32/tests msacm32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014712wine_fn_config_dll msadp32.acm enable_msadp32_acm
14713wine_fn_config_dll mscat32 enable_mscat32
14714wine_fn_config_dll mscms enable_mscms mscms
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014715wine_fn_config_test dlls/mscms/tests mscms_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014716wine_fn_config_dll mscoree enable_mscoree
Louis Lendersa8528702010-08-24 11:48:01 +020014717wine_fn_config_test dlls/mscoree/tests mscoree_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014718wine_fn_config_dll msctf enable_msctf
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014719wine_fn_config_test dlls/msctf/tests msctf_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014720wine_fn_config_dll msdaps enable_msdaps
14721wine_fn_config_dll msdmo enable_msdmo msdmo
14722wine_fn_config_dll msftedit enable_msftedit
14723wine_fn_config_dll msg711.acm enable_msg711_acm
14724wine_fn_config_dll msgsm32.acm enable_msgsm32_acm
14725wine_fn_config_dll mshtml.tlb enable_mshtml_tlb
14726wine_fn_config_dll mshtml enable_mshtml mshtml
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014727wine_fn_config_test dlls/mshtml/tests mshtml_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014728wine_fn_config_dll msi enable_msi msi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014729wine_fn_config_test dlls/msi/tests msi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014730wine_fn_config_dll msimg32 enable_msimg32 msimg32
14731wine_fn_config_dll msimtf enable_msimtf
14732wine_fn_config_dll msisip enable_msisip
14733wine_fn_config_dll msisys.ocx enable_msisys_ocx
14734wine_fn_config_dll msnet32 enable_msnet32
14735wine_fn_config_dll msrle32 enable_msrle32
14736wine_fn_config_dll mssign32 enable_mssign32
14737wine_fn_config_dll mssip32 enable_mssip32
14738wine_fn_config_dll mstask enable_mstask
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014739wine_fn_config_test dlls/mstask/tests mstask_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014740wine_fn_config_dll msvcirt enable_msvcirt
Piotr Caban71a49eb2010-08-23 16:36:24 +020014741wine_fn_config_dll msvcp80 enable_msvcp80
Piotr Caban9ae9d262010-07-20 23:22:16 +020014742wine_fn_config_dll msvcp90 enable_msvcp90
Piotr Caband589d952010-07-20 23:24:32 +020014743wine_fn_config_test dlls/msvcp90/tests msvcp90_test
Detlef Riekenberg1434ef42010-04-30 14:07:34 +020014744wine_fn_config_dll msvcr100 enable_msvcr100
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014745wine_fn_config_dll msvcr70 enable_msvcr70 msvcr70
14746wine_fn_config_dll msvcr71 enable_msvcr71 msvcr71
Piotr Cabanc4522492010-03-25 11:06:29 +010014747wine_fn_config_dll msvcr80 enable_msvcr80
14748wine_fn_config_dll msvcr90 enable_msvcr90
Detlef Riekenberg73e669c2010-03-20 00:32:17 +010014749wine_fn_config_test dlls/msvcr90/tests msvcr90_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014750wine_fn_config_dll msvcrt enable_msvcrt msvcrt
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014751wine_fn_config_test dlls/msvcrt/tests msvcrt_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014752wine_fn_config_dll msvcrt20 enable_msvcrt20 msvcrt20
14753wine_fn_config_dll msvcrt40 enable_msvcrt40 msvcrt40
14754wine_fn_config_dll msvcrtd enable_msvcrtd msvcrtd
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014755wine_fn_config_test dlls/msvcrtd/tests msvcrtd_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014756wine_fn_config_dll msvfw32 enable_msvfw32 msvfw32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014757wine_fn_config_test dlls/msvfw32/tests msvfw32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014758wine_fn_config_dll msvidc32 enable_msvidc32
14759wine_fn_config_dll msvideo.dll16 enable_win16
14760wine_fn_config_dll mswsock enable_mswsock mswsock
14761wine_fn_config_dll msxml3 enable_msxml3
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014762wine_fn_config_test dlls/msxml3/tests msxml3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014763wine_fn_config_dll msxml4 enable_msxml4
Nikolay Sivov25bce452010-08-30 01:31:07 +040014764wine_fn_config_dll msxml6 enable_msxml6
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014765wine_fn_config_dll nddeapi enable_nddeapi nddeapi
14766wine_fn_config_dll netapi32 enable_netapi32 netapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014767wine_fn_config_test dlls/netapi32/tests netapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014768wine_fn_config_dll newdev enable_newdev newdev
14769wine_fn_config_dll ntdll enable_ntdll ntdll
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014770wine_fn_config_test dlls/ntdll/tests ntdll_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014771wine_fn_config_dll ntdsapi enable_ntdsapi ntdsapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014772wine_fn_config_test dlls/ntdsapi/tests ntdsapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014773wine_fn_config_dll ntoskrnl.exe enable_ntoskrnl_exe ntoskrnl.exe
14774wine_fn_config_dll ntprint enable_ntprint
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014775wine_fn_config_test dlls/ntprint/tests ntprint_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014776wine_fn_config_dll objsel enable_objsel
14777wine_fn_config_dll odbc32 enable_odbc32 odbc32
14778wine_fn_config_dll odbccp32 enable_odbccp32 odbccp32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014779wine_fn_config_test dlls/odbccp32/tests odbccp32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014780wine_fn_config_dll ole2.dll16 enable_win16
14781wine_fn_config_dll ole2conv.dll16 enable_win16
14782wine_fn_config_dll ole2disp.dll16 enable_win16
14783wine_fn_config_dll ole2nls.dll16 enable_win16
14784wine_fn_config_dll ole2prox.dll16 enable_win16
14785wine_fn_config_dll ole2thk.dll16 enable_win16
14786wine_fn_config_dll ole32 enable_ole32 ole32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014787wine_fn_config_test dlls/ole32/tests ole32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014788wine_fn_config_dll oleacc enable_oleacc oleacc
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014789wine_fn_config_test dlls/oleacc/tests oleacc_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014790wine_fn_config_dll oleaut32 enable_oleaut32 oleaut32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014791wine_fn_config_test dlls/oleaut32/tests oleaut32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014792wine_fn_config_dll olecli.dll16 enable_win16
14793wine_fn_config_dll olecli32 enable_olecli32 olecli32
14794wine_fn_config_dll oledb32 enable_oledb32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014795wine_fn_config_test dlls/oledb32/tests oledb32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014796wine_fn_config_dll oledlg enable_oledlg oledlg
14797wine_fn_config_dll olepro32 enable_olepro32 olepro32
14798wine_fn_config_dll olesvr.dll16 enable_win16
14799wine_fn_config_dll olesvr32 enable_olesvr32 olesvr32
14800wine_fn_config_dll olethk32 enable_olethk32
14801wine_fn_config_dll openal32 enable_openal32
14802wine_fn_config_dll opengl32 enable_opengl32 opengl32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014803wine_fn_config_test dlls/opengl32/tests opengl32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014804wine_fn_config_dll pdh enable_pdh pdh
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014805wine_fn_config_test dlls/pdh/tests pdh_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014806wine_fn_config_dll pidgen enable_pidgen
14807wine_fn_config_dll powrprof enable_powrprof powrprof
14808wine_fn_config_dll printui enable_printui
Andrew Nguyenc50177b2010-07-25 21:57:37 -050014809wine_fn_config_dll propsys enable_propsys propsys
Andrew Nguyenc20908b2010-07-25 21:57:59 -050014810wine_fn_config_test dlls/propsys/tests propsys_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014811wine_fn_config_dll psapi enable_psapi psapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014812wine_fn_config_test dlls/psapi/tests psapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014813wine_fn_config_dll pstorec enable_pstorec
14814wine_fn_config_dll qcap enable_qcap
14815wine_fn_config_dll qedit enable_qedit
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014816wine_fn_config_test dlls/qedit/tests qedit_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014817wine_fn_config_dll qmgr enable_qmgr
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014818wine_fn_config_test dlls/qmgr/tests qmgr_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014819wine_fn_config_dll qmgrprxy enable_qmgrprxy
14820wine_fn_config_dll quartz enable_quartz quartz
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014821wine_fn_config_test dlls/quartz/tests quartz_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014822wine_fn_config_dll query enable_query
14823wine_fn_config_dll rasapi16.dll16 enable_win16
14824wine_fn_config_dll rasapi32 enable_rasapi32 rasapi32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014825wine_fn_config_test dlls/rasapi32/tests rasapi32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014826wine_fn_config_dll rasdlg enable_rasdlg rasdlg
14827wine_fn_config_dll resutils enable_resutils resutils
14828wine_fn_config_dll riched20 enable_riched20 riched20
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014829wine_fn_config_test dlls/riched20/tests riched20_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014830wine_fn_config_dll riched32 enable_riched32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014831wine_fn_config_test dlls/riched32/tests riched32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014832wine_fn_config_dll rpcrt4 enable_rpcrt4 rpcrt4
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014833wine_fn_config_test dlls/rpcrt4/tests rpcrt4_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014834wine_fn_config_dll rsabase enable_rsabase
14835wine_fn_config_dll rsaenh enable_rsaenh rsaenh
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014836wine_fn_config_test dlls/rsaenh/tests rsaenh_test
Louis Lenders85b3f292010-08-27 11:45:11 +020014837wine_fn_config_dll rstrtmgr enable_rstrtmgr
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014838wine_fn_config_dll rtutils enable_rtutils rtutils
Louis Lenders1ae673f2010-05-11 22:59:22 +020014839wine_fn_config_dll samlib enable_samlib
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014840wine_fn_config_dll sane.ds enable_sane_ds
14841wine_fn_config_dll sccbase enable_sccbase
14842wine_fn_config_dll schannel enable_schannel
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014843wine_fn_config_test dlls/schannel/tests schannel_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014844wine_fn_config_dll secur32 enable_secur32 secur32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014845wine_fn_config_test dlls/secur32/tests secur32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014846wine_fn_config_dll security enable_security
14847wine_fn_config_dll sensapi enable_sensapi sensapi
14848wine_fn_config_dll serialui enable_serialui serialui
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014849wine_fn_config_test dlls/serialui/tests serialui_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014850wine_fn_config_dll setupapi enable_setupapi setupapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014851wine_fn_config_test dlls/setupapi/tests setupapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014852wine_fn_config_dll setupx.dll16 enable_win16
14853wine_fn_config_dll sfc enable_sfc sfc
14854wine_fn_config_dll sfc_os enable_sfc_os sfc_os
14855wine_fn_config_dll shdoclc enable_shdoclc
14856wine_fn_config_dll shdocvw enable_shdocvw shdocvw
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014857wine_fn_config_test dlls/shdocvw/tests shdocvw_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014858wine_fn_config_dll shell.dll16 enable_win16
14859wine_fn_config_dll shell32 enable_shell32 shell32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014860wine_fn_config_test dlls/shell32/tests shell32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014861wine_fn_config_dll shfolder enable_shfolder shfolder
14862wine_fn_config_dll shlwapi enable_shlwapi shlwapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014863wine_fn_config_test dlls/shlwapi/tests shlwapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014864wine_fn_config_dll slbcsp enable_slbcsp
14865wine_fn_config_dll slc enable_slc slc
14866wine_fn_config_dll snmpapi enable_snmpapi snmpapi
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014867wine_fn_config_test dlls/snmpapi/tests snmpapi_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014868wine_fn_config_dll softpub enable_softpub
14869wine_fn_config_dll sound.drv16 enable_win16
14870wine_fn_config_dll spoolss enable_spoolss spoolss
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014871wine_fn_config_test dlls/spoolss/tests spoolss_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014872wine_fn_config_dll stdole2.tlb enable_stdole2_tlb
14873wine_fn_config_dll stdole32.tlb enable_stdole32_tlb
14874wine_fn_config_dll sti enable_sti sti
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014875wine_fn_config_test dlls/sti/tests sti_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014876wine_fn_config_dll storage.dll16 enable_win16
14877wine_fn_config_dll stress.dll16 enable_win16
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014878wine_fn_config_lib strmiids
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014879wine_fn_config_dll svrapi enable_svrapi
14880wine_fn_config_dll sxs enable_sxs
14881wine_fn_config_dll system.drv16 enable_win16
14882wine_fn_config_dll t2embed enable_t2embed
14883wine_fn_config_dll tapi32 enable_tapi32 tapi32
14884wine_fn_config_dll toolhelp.dll16 enable_win16
14885wine_fn_config_dll traffic enable_traffic
14886wine_fn_config_dll twain.dll16 enable_win16
14887wine_fn_config_dll twain_32 enable_twain_32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014888wine_fn_config_test dlls/twain_32/tests twain_32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014889wine_fn_config_dll typelib.dll16 enable_win16
14890wine_fn_config_dll unicows enable_unicows unicows
14891wine_fn_config_dll updspapi enable_updspapi
14892wine_fn_config_dll url enable_url url
14893wine_fn_config_dll urlmon enable_urlmon urlmon
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014894wine_fn_config_test dlls/urlmon/tests urlmon_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014895wine_fn_config_dll usbd.sys enable_usbd_sys usbd.sys
14896wine_fn_config_dll user.exe16 enable_win16
14897wine_fn_config_dll user32 enable_user32 user32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014898wine_fn_config_test dlls/user32/tests user32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014899wine_fn_config_dll userenv enable_userenv userenv
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014900wine_fn_config_test dlls/userenv/tests userenv_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014901wine_fn_config_dll usp10 enable_usp10 usp10
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014902wine_fn_config_test dlls/usp10/tests usp10_test
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014903wine_fn_config_lib uuid
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014904wine_fn_config_dll uxtheme enable_uxtheme uxtheme
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014905wine_fn_config_test dlls/uxtheme/tests uxtheme_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014906wine_fn_config_dll vdhcp.vxd enable_win16
14907wine_fn_config_dll vdmdbg enable_vdmdbg vdmdbg
14908wine_fn_config_dll ver.dll16 enable_win16
14909wine_fn_config_dll version enable_version version
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014910wine_fn_config_test dlls/version/tests version_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014911wine_fn_config_dll vmm.vxd enable_win16
14912wine_fn_config_dll vnbt.vxd enable_win16
14913wine_fn_config_dll vnetbios.vxd enable_win16
14914wine_fn_config_dll vtdapi.vxd enable_win16
14915wine_fn_config_dll vwin32.vxd enable_win16
14916wine_fn_config_dll w32skrnl enable_win16
14917wine_fn_config_dll w32sys.dll16 enable_win16
14918wine_fn_config_dll wbemprox enable_wbemprox
Louis Lenders7ab48e82010-08-27 12:46:09 +020014919wine_fn_config_dll wer enable_wer
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014920wine_fn_config_dll wiaservc enable_wiaservc
14921wine_fn_config_dll win32s16.dll16 enable_win16
14922wine_fn_config_dll win87em.dll16 enable_win16
14923wine_fn_config_dll winaspi.dll16 enable_win16
14924wine_fn_config_dll windebug.dll16 enable_win16
14925wine_fn_config_dll windowscodecs enable_windowscodecs windowscodecs
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014926wine_fn_config_test dlls/windowscodecs/tests windowscodecs_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014927wine_fn_config_dll winealsa.drv enable_winealsa_drv
14928wine_fn_config_dll wineaudioio.drv enable_wineaudioio_drv
14929wine_fn_config_dll winecoreaudio.drv enable_winecoreaudio_drv
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014930wine_fn_config_lib winecrt0
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014931wine_fn_config_dll wined3d enable_wined3d wined3d
14932wine_fn_config_dll wineesd.drv enable_wineesd_drv
14933wine_fn_config_dll winejack.drv enable_winejack_drv
14934wine_fn_config_dll winejoystick.drv enable_winejoystick_drv
14935wine_fn_config_dll winemapi enable_winemapi
14936wine_fn_config_dll winemp3.acm enable_winemp3_acm
14937wine_fn_config_dll winenas.drv enable_winenas_drv
14938wine_fn_config_dll wineoss.drv enable_wineoss_drv
14939wine_fn_config_dll wineps.drv enable_wineps_drv
14940wine_fn_config_dll wineps16.drv16 enable_win16
14941wine_fn_config_dll winequartz.drv enable_winequartz_drv
14942wine_fn_config_dll winex11.drv enable_winex11_drv
14943wine_fn_config_dll wing.dll16 enable_win16
14944wine_fn_config_dll wing32 enable_wing32
14945wine_fn_config_dll winhttp enable_winhttp winhttp
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014946wine_fn_config_test dlls/winhttp/tests winhttp_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014947wine_fn_config_dll wininet enable_wininet wininet
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014948wine_fn_config_test dlls/wininet/tests wininet_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014949wine_fn_config_dll winmm enable_winmm winmm
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014950wine_fn_config_test dlls/winmm/tests winmm_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014951wine_fn_config_dll winnls.dll16 enable_win16
14952wine_fn_config_dll winnls32 enable_winnls32 winnls32
14953wine_fn_config_dll winscard enable_winscard winscard
14954wine_fn_config_dll winsock.dll16 enable_win16
14955wine_fn_config_dll winspool.drv enable_winspool_drv winspool
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014956wine_fn_config_test dlls/winspool.drv/tests winspool.drv_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014957wine_fn_config_dll wintab.dll16 enable_win16
14958wine_fn_config_dll wintab32 enable_wintab32 wintab32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014959wine_fn_config_test dlls/wintab32/tests wintab32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014960wine_fn_config_dll wintrust enable_wintrust wintrust
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014961wine_fn_config_test dlls/wintrust/tests wintrust_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014962wine_fn_config_dll wldap32 enable_wldap32 wldap32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014963wine_fn_config_test dlls/wldap32/tests wldap32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014964wine_fn_config_dll wmi enable_wmi
14965wine_fn_config_dll wmiutils enable_wmiutils
14966wine_fn_config_dll wnaspi32 enable_wnaspi32 wnaspi32
14967wine_fn_config_dll wow32 enable_win16 wow32
14968wine_fn_config_dll ws2_32 enable_ws2_32 ws2_32
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014969wine_fn_config_test dlls/ws2_32/tests ws2_32_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014970wine_fn_config_dll wsock32 enable_wsock32 wsock32
14971wine_fn_config_dll wtsapi32 enable_wtsapi32 wtsapi32
14972wine_fn_config_dll wuapi enable_wuapi
14973wine_fn_config_dll wuaueng enable_wuaueng
14974wine_fn_config_dll xinput1_1 enable_xinput1_1
14975wine_fn_config_dll xinput1_2 enable_xinput1_2
14976wine_fn_config_dll xinput1_3 enable_xinput1_3 xinput
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014977wine_fn_config_test dlls/xinput1_3/tests xinput1_3_test
Alexandre Julliard5cdd8412010-03-20 14:52:44 +010014978wine_fn_config_dll xinput9_1_0 enable_xinput9_1_0
14979wine_fn_config_dll xmllite enable_xmllite
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014980wine_fn_config_test dlls/xmllite/tests xmllite_test
Alexandre Julliard03642412010-03-20 15:24:22 +010014981wine_fn_config_makefile documentation enable_documentation
14982wine_fn_config_makefile fonts enable_fonts
14983wine_fn_config_makefile include enable_include
14984wine_fn_config_makefile libs/port enable_libs_port
14985wine_fn_config_makefile libs/wine enable_libs_wine
14986wine_fn_config_makefile libs/wpp enable_libs_wpp
14987wine_fn_config_makefile loader enable_loader
Alexandre Julliardd394e042010-03-20 14:53:39 +010014988wine_fn_config_program attrib enable_attrib install
14989wine_fn_config_program cacls enable_cacls install
14990wine_fn_config_program clock enable_clock install
14991wine_fn_config_program cmd enable_cmd install
Alexandre Julliardfc7f1c72010-02-23 14:24:57 +010014992wine_fn_config_test programs/cmd/tests cmd.exe_test
Alexandre Julliardd394e042010-03-20 14:53:39 +010014993wine_fn_config_program cmdlgtst enable_cmdlgtst
14994wine_fn_config_program control enable_control install
14995wine_fn_config_program dxdiag enable_dxdiag install
14996wine_fn_config_program eject enable_eject install
14997wine_fn_config_program expand enable_expand install
14998wine_fn_config_program explorer enable_explorer install
14999wine_fn_config_program extrac32 enable_extrac32 install
15000wine_fn_config_program hh enable_hh install
15001wine_fn_config_program icinfo enable_icinfo install
15002wine_fn_config_program iexplore enable_iexplore install
Andrew Nguyen6919c8d2010-08-16 02:54:00 -050015003wine_fn_config_program ipconfig enable_ipconfig install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015004wine_fn_config_program lodctr enable_lodctr install
15005wine_fn_config_program mshta enable_mshta install
15006wine_fn_config_program msiexec enable_msiexec installbin
15007wine_fn_config_program net enable_net install
Vincent Povirk4d3e6f42010-04-02 10:19:18 -050015008wine_fn_config_program ngen enable_ngen install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015009wine_fn_config_program notepad enable_notepad installbin
15010wine_fn_config_program oleview enable_oleview install
15011wine_fn_config_program ping enable_ping install
15012wine_fn_config_program progman enable_progman install
15013wine_fn_config_program reg enable_reg install
15014wine_fn_config_program regedit enable_regedit installbin
Andrew Eikumf3c6c622010-07-30 16:02:34 -050015015wine_fn_config_test programs/regedit/tests regedit.exe_test
Alexandre Julliardd394e042010-03-20 14:53:39 +010015016wine_fn_config_program regsvr32 enable_regsvr32 installbin
15017wine_fn_config_program rpcss enable_rpcss install
Detlef Riekenbergdf898ea2010-07-18 19:15:57 +020015018wine_fn_config_program rundll.exe16 enable_win16 install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015019wine_fn_config_program rundll32 enable_rundll32 install
Hans Leidekker544da282010-05-03 12:56:58 +020015020wine_fn_config_program sc enable_sc install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015021wine_fn_config_program secedit enable_secedit install
15022wine_fn_config_program services enable_services install
15023wine_fn_config_program spoolsv enable_spoolsv install
15024wine_fn_config_program start enable_start install
15025wine_fn_config_program svchost enable_svchost install
15026wine_fn_config_program taskmgr enable_taskmgr install
15027wine_fn_config_program termsv enable_termsv install
15028wine_fn_config_program uninstaller enable_uninstaller install
15029wine_fn_config_program unlodctr enable_unlodctr install
15030wine_fn_config_program view enable_view
15031wine_fn_config_program wineboot enable_wineboot installbin
15032wine_fn_config_program winebrowser enable_winebrowser install
15033wine_fn_config_program winecfg enable_winecfg installbin
15034wine_fn_config_program wineconsole enable_wineconsole installbin
15035wine_fn_config_program winedbg enable_winedbg installbin
15036wine_fn_config_program winedevice enable_winedevice install
15037wine_fn_config_program winefile enable_winefile installbin
15038wine_fn_config_program winemenubuilder enable_winemenubuilder install
15039wine_fn_config_program winemine enable_winemine installbin
15040wine_fn_config_program winepath enable_winepath installbin
15041wine_fn_config_program winetest enable_winetest
15042wine_fn_config_program winevdm enable_win16 install
15043wine_fn_config_program winhelp.exe16 enable_win16 install
15044wine_fn_config_program winhlp32 enable_winhlp32 install
15045wine_fn_config_program winoldap.mod16 enable_win16 install
15046wine_fn_config_program winver enable_winver install
15047wine_fn_config_program wordpad enable_wordpad install
15048wine_fn_config_program write enable_write install
Jacek Caban16bad582010-07-27 15:51:18 +020015049wine_fn_config_program wscript enable_wscript install
Alexandre Julliardd394e042010-03-20 14:53:39 +010015050wine_fn_config_program xcopy enable_xcopy install
Alexandre Julliard03642412010-03-20 15:24:22 +010015051wine_fn_config_makefile server enable_server
Alexandre Julliardd81a8f82010-03-20 15:02:56 +010015052wine_fn_config_tool tools
15053wine_fn_config_tool tools/widl
15054wine_fn_config_tool tools/winebuild
15055wine_fn_config_tool tools/winedump
15056wine_fn_config_tool tools/winegcc
15057wine_fn_config_tool tools/wmc
15058wine_fn_config_tool tools/wrc
Alexandre Julliard626f4252000-11-10 23:35:20 +000015059
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015060ac_config_commands="$ac_config_commands Makefile"
15061
15062
15063ac_config_files="$ac_config_files Make.tmp:Makefile.in"
Alexandre Julliard92b57312010-03-22 20:25:30 +010015064
15065
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015066
15067if test -n "$with_wine64"
15068then
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020015069wine_fn_append_rule ALL_MAKEFILE_DEPENDS "all: fonts server $with_wine64/loader/wine
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015070fonts server:
15071 \$(RM) \$@ && \$(LN_S) $with_wine64/\$@ \$@
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020015072$with_wine64/loader/wine:
15073 \$(RM) \$@ && \$(LN_S) $ac_pwd/loader/wine \$@
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015074clean::
Alexandre Julliardf3831cf2010-05-16 17:01:52 +020015075 \$(RM) fonts server $with_wine64/loader/wine"
Alexandre Julliarde5c585e2010-03-29 17:54:55 +020015076fi
15077
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015078wine_fn_append_rule ALL_MAKEFILE_DEPENDS "uninstall::
15079 -rmdir \$(DESTDIR)\$(datadir)/wine \$(DESTDIR)\$(fakedlldir) \$(DESTDIR)\$(dlldir)"
15080
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015081cat >confcache <<\_ACEOF
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015082# This file is a shell script that caches the results of configure
15083# tests run on this system so they can be shared between configure
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015084# scripts and configure runs, see configure's option --config-cache.
15085# It is not useful on other systems. If it contains results you don't
15086# want to keep, you may remove or edit it.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015087#
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015088# config.status only pays attention to the cache file if you give it
15089# the --recheck option to rerun configure.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015090#
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015091# `ac_cv_env_foo' variables (set or unset) will be overridden when
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015092# loading this file, other *unset* `ac_cv_foo' will be assigned the
15093# following values.
15094
15095_ACEOF
15096
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +000015097# The following way of writing the cache mishandles newlines in values,
15098# but we know of no workaround that is simple, portable, and efficient.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015099# So, we kill variables containing newlines.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015100# Ultrix sh set writes to stderr and can't be redirected directly,
15101# and sets the high bit in the cache file unless we assign to the vars.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015102(
15103 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15104 eval ac_val=\$$ac_var
15105 case $ac_val in #(
15106 *${as_nl}*)
15107 case $ac_var in #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015108 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015109$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015110 esac
15111 case $ac_var in #(
15112 _ | IFS | as_nl) ;; #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015113 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015114 *) { eval $ac_var=; unset $ac_var;} ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015115 esac ;;
15116 esac
15117 done
15118
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015119 (set) 2>&1 |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015120 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15121 *${as_nl}ac_space=\ *)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015122 # `set' does not quote correctly, so add quotes: double-quote
15123 # substitution turns \\\\ into \\, and sed turns \\ into \.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015124 sed -n \
Alexandre Julliard875927f2004-01-02 01:55:29 +000015125 "s/'/'\\\\''/g;
15126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015127 ;; #(
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015128 *)
15129 # `set' quotes correctly as required by POSIX, so do not add quotes.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015130 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015131 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015132 esac |
15133 sort
15134) |
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015135 sed '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015136 /^ac_cv_env_/b end
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015137 t clear
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015138 :clear
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015139 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15140 t end
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015141 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15142 :end' >>confcache
Jeremy White0ebeb532006-06-20 13:18:41 +020015143if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15144 if test -w "$cache_file"; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015145 test "x$cache_file" != "x/dev/null" &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015146 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015147$as_echo "$as_me: updating cache $cache_file" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015148 cat confcache >$cache_file
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015149 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015150 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015151$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015152 fi
15153fi
15154rm -f confcache
15155
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015156test "x$prefix" = xNONE && prefix=$ac_default_prefix
15157# Let make expand exec_prefix.
15158test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15159
Alexandre Julliard18f92e71996-07-17 20:02:21 +000015160DEFS=-DHAVE_CONFIG_H
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015161
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015162ac_libobjs=
15163ac_ltlibobjs=
15164for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15165 # 1. Remove the extension, and $U if already installed.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015166 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015167 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015168 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15169 # will be set to the directory where LIBOBJS objects are built.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015170 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15171 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015172done
15173LIBOBJS=$ac_libobjs
15174
15175LTLIBOBJS=$ac_ltlibobjs
15176
15177
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015178
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015179: ${CONFIG_STATUS=./config.status}
Alexandre Julliardabf50482008-10-31 12:56:53 +010015180ac_write_fail=0
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015181ac_clean_files_save=$ac_clean_files
15182ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015183{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015184$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015185as_write_fail=0
15186cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015187#! $SHELL
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015188# Generated by $as_me.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015189# Run this file to recreate the current configuration.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015190# Compiler output produced by configure, useful for debugging
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015191# configure, is in config.log if it exists.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015192
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015193debug=false
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015194ac_cs_recheck=false
15195ac_cs_silent=false
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015196
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015197SHELL=\${CONFIG_SHELL-$SHELL}
15198export SHELL
15199_ASEOF
15200cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15201## -------------------- ##
15202## M4sh Initialization. ##
15203## -------------------- ##
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015204
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015205# Be more Bourne compatible
15206DUALCASE=1; export DUALCASE # for MKS sh
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015207if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015208 emulate sh
15209 NULLCMD=:
Alexandre Julliardabf50482008-10-31 12:56:53 +010015210 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015211 # is contrary to our usage. Disable this feature.
15212 alias -g '${1+"$@"}'='"$@"'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015213 setopt NO_GLOB_SUBST
15214else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015215 case `(set -o) 2>/dev/null` in #(
15216 *posix*) :
15217 set -o posix ;; #(
15218 *) :
15219 ;;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015220esac
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015221fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015222
15223
Alexandre Julliardabf50482008-10-31 12:56:53 +010015224as_nl='
15225'
15226export as_nl
15227# Printing a long string crashes Solaris 7 /usr/bin/printf.
15228as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15229as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15230as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015231# Prefer a ksh shell builtin over an external printf program on Solaris,
15232# but without wasting forks for bash or zsh.
15233if test -z "$BASH_VERSION$ZSH_VERSION" \
15234 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15235 as_echo='print -r --'
15236 as_echo_n='print -rn --'
15237elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015238 as_echo='printf %s\n'
15239 as_echo_n='printf %s'
15240else
15241 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15242 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15243 as_echo_n='/usr/ucb/echo -n'
15244 else
15245 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15246 as_echo_n_body='eval
15247 arg=$1;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015248 case $arg in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015249 *"$as_nl"*)
15250 expr "X$arg" : "X\\(.*\\)$as_nl";
15251 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15252 esac;
15253 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15254 '
15255 export as_echo_n_body
15256 as_echo_n='sh -c $as_echo_n_body as_echo'
15257 fi
15258 export as_echo_body
15259 as_echo='sh -c $as_echo_body as_echo'
15260fi
15261
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015262# The user is always right.
15263if test "${PATH_SEPARATOR+set}" != set; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015264 PATH_SEPARATOR=:
15265 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15266 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15267 PATH_SEPARATOR=';'
15268 }
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015269fi
15270
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015271
15272# IFS
15273# We need space, tab and new line, in precisely that order. Quoting is
15274# there to prevent editors from complaining about space-tab.
15275# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15276# splitting by setting IFS to empty value.)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015277IFS=" "" $as_nl"
15278
15279# Find who we are. Look in the path if we contain no directory separator.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015280case $0 in #((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015281 *[\\/]* ) as_myself=$0 ;;
15282 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015283for as_dir in $PATH
15284do
15285 IFS=$as_save_IFS
15286 test -z "$as_dir" && as_dir=.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015287 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15288 done
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015289IFS=$as_save_IFS
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015290
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015291 ;;
15292esac
15293# We did not find ourselves, most probably we were run as `sh COMMAND'
15294# in which case we are not to be found in the path.
15295if test "x$as_myself" = x; then
15296 as_myself=$0
15297fi
15298if test ! -f "$as_myself"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015299 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015300 exit 1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015301fi
15302
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015303# Unset variables that we do not need and which cause bugs (e.g. in
15304# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15305# suppresses any "Segmentation fault" message there. '((' could
15306# trigger a bug in pdksh 5.2.14.
15307for as_var in BASH_ENV ENV MAIL MAILPATH
15308do eval test x\${$as_var+set} = xset \
15309 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015310done
15311PS1='$ '
15312PS2='> '
15313PS4='+ '
15314
15315# NLS nuisances.
Alexandre Julliardabf50482008-10-31 12:56:53 +010015316LC_ALL=C
15317export LC_ALL
15318LANGUAGE=C
15319export LANGUAGE
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015320
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015321# CDPATH.
15322(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15323
15324
15325# as_fn_error ERROR [LINENO LOG_FD]
15326# ---------------------------------
15327# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15328# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15329# script with status $?, using 1 if that was 0.
15330as_fn_error ()
15331{
15332 as_status=$?; test $as_status -eq 0 && as_status=1
15333 if test "$3"; then
15334 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15335 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15336 fi
15337 $as_echo "$as_me: error: $1" >&2
15338 as_fn_exit $as_status
15339} # as_fn_error
15340
15341
15342# as_fn_set_status STATUS
15343# -----------------------
15344# Set $? to STATUS, without forking.
15345as_fn_set_status ()
15346{
15347 return $1
15348} # as_fn_set_status
15349
15350# as_fn_exit STATUS
15351# -----------------
15352# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15353as_fn_exit ()
15354{
15355 set +e
15356 as_fn_set_status $1
15357 exit $1
15358} # as_fn_exit
15359
15360# as_fn_unset VAR
15361# ---------------
15362# Portably unset VAR.
15363as_fn_unset ()
15364{
15365 { eval $1=; unset $1;}
15366}
15367as_unset=as_fn_unset
15368# as_fn_append VAR VALUE
15369# ----------------------
15370# Append the text in VALUE to the end of the definition contained in VAR. Take
15371# advantage of any shell optimizations that allow amortized linear growth over
15372# repeated appends, instead of the typical quadratic growth present in naive
15373# implementations.
15374if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15375 eval 'as_fn_append ()
15376 {
15377 eval $1+=\$2
15378 }'
15379else
15380 as_fn_append ()
15381 {
15382 eval $1=\$$1\$2
15383 }
15384fi # as_fn_append
15385
15386# as_fn_arith ARG...
15387# ------------------
15388# Perform arithmetic evaluation on the ARGs, and store the result in the
15389# global $as_val. Take advantage of shells that can avoid forks. The arguments
15390# must be portable across $(()) and expr.
15391if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15392 eval 'as_fn_arith ()
15393 {
15394 as_val=$(( $* ))
15395 }'
15396else
15397 as_fn_arith ()
15398 {
15399 as_val=`expr "$@" || test $? -eq 1`
15400 }
15401fi # as_fn_arith
15402
15403
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015404if expr a : '\(a\)' >/dev/null 2>&1 &&
15405 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15406 as_expr=expr
15407else
15408 as_expr=false
15409fi
15410
15411if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15412 as_basename=basename
15413else
15414 as_basename=false
15415fi
15416
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015417if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15418 as_dirname=dirname
15419else
15420 as_dirname=false
15421fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015422
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015423as_me=`$as_basename -- "$0" ||
15424$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15425 X"$0" : 'X\(//\)$' \| \
15426 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010015427$as_echo X/"$0" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015428 sed '/^.*\/\([^/][^/]*\)\/*$/{
15429 s//\1/
15430 q
15431 }
15432 /^X\/\(\/\/\)$/{
15433 s//\1/
15434 q
15435 }
15436 /^X\/\(\/\).*/{
15437 s//\1/
15438 q
15439 }
15440 s/.*/./; q'`
15441
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015442# Avoid depending upon Character Ranges.
15443as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15444as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15445as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15446as_cr_digits='0123456789'
15447as_cr_alnum=$as_cr_Letters$as_cr_digits
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015448
15449ECHO_C= ECHO_N= ECHO_T=
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015450case `echo -n x` in #(((((
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015451-n*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015452 case `echo 'xy\c'` in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015453 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015454 xy) ECHO_C='\c';;
15455 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15456 ECHO_T=' ';;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015457 esac;;
15458*)
15459 ECHO_N='-n';;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015460esac
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015461
15462rm -f conf$$ conf$$.exe conf$$.file
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015463if test -d conf$$.dir; then
15464 rm -f conf$$.dir/conf$$.file
15465else
15466 rm -f conf$$.dir
Alexandre Julliardabf50482008-10-31 12:56:53 +010015467 mkdir conf$$.dir 2>/dev/null
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015468fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010015469if (echo >conf$$.file) 2>/dev/null; then
15470 if ln -s conf$$.file conf$$ 2>/dev/null; then
15471 as_ln_s='ln -s'
15472 # ... but there are two gotchas:
15473 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15474 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15475 # In both cases, we have to default to `cp -p'.
15476 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15477 as_ln_s='cp -p'
15478 elif ln conf$$.file conf$$ 2>/dev/null; then
15479 as_ln_s=ln
15480 else
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015481 as_ln_s='cp -p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015482 fi
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015483else
15484 as_ln_s='cp -p'
15485fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015486rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15487rmdir conf$$.dir 2>/dev/null
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015488
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015489
15490# as_fn_mkdir_p
15491# -------------
15492# Create "$as_dir" as a directory, including parents if necessary.
15493as_fn_mkdir_p ()
15494{
15495
15496 case $as_dir in #(
15497 -*) as_dir=./$as_dir;;
15498 esac
15499 test -d "$as_dir" || eval $as_mkdir_p || {
15500 as_dirs=
15501 while :; do
15502 case $as_dir in #(
15503 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15504 *) as_qdir=$as_dir;;
15505 esac
15506 as_dirs="'$as_qdir' $as_dirs"
15507 as_dir=`$as_dirname -- "$as_dir" ||
15508$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15509 X"$as_dir" : 'X\(//\)[^/]' \| \
15510 X"$as_dir" : 'X\(//\)$' \| \
15511 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15512$as_echo X"$as_dir" |
15513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15514 s//\1/
15515 q
15516 }
15517 /^X\(\/\/\)[^/].*/{
15518 s//\1/
15519 q
15520 }
15521 /^X\(\/\/\)$/{
15522 s//\1/
15523 q
15524 }
15525 /^X\(\/\).*/{
15526 s//\1/
15527 q
15528 }
15529 s/.*/./; q'`
15530 test -d "$as_dir" && break
15531 done
15532 test -z "$as_dirs" || eval "mkdir $as_dirs"
15533 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15534
15535
15536} # as_fn_mkdir_p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015537if mkdir -p . 2>/dev/null; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015538 as_mkdir_p='mkdir -p "$as_dir"'
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015539else
Alexandre Julliard875927f2004-01-02 01:55:29 +000015540 test -d ./-p && rmdir ./-p
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015541 as_mkdir_p=false
15542fi
15543
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015544if test -x / >/dev/null 2>&1; then
15545 as_test_x='test -x'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015546else
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015547 if ls -dL / >/dev/null 2>&1; then
15548 as_ls_L_option=L
15549 else
15550 as_ls_L_option=
15551 fi
15552 as_test_x='
15553 eval sh -c '\''
15554 if test -d "$1"; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015555 test -d "$1/.";
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015556 else
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015557 case $1 in #(
Alexandre Julliardabf50482008-10-31 12:56:53 +010015558 -*)set "./$1";;
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015559 esac;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015560 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015561 ???[sx]*):;;*)false;;esac;fi
15562 '\'' sh
15563 '
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015564fi
Alexandre Julliarddc9f3842006-12-19 16:17:09 +010015565as_executable_p=$as_test_x
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015566
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015567# Sed expression to map a string onto a valid CPP name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000015568as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015569
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015570# Sed expression to map a string onto a valid variable name.
Alexandre Julliard875927f2004-01-02 01:55:29 +000015571as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015572
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015573
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015574exec 6>&1
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015575## ----------------------------------- ##
15576## Main body of $CONFIG_STATUS script. ##
15577## ----------------------------------- ##
15578_ASEOF
15579test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015580
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015581cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15582# Save the log message, to keep $0 and so on meaningful, and to
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015583# report actual input values of CONFIG_FILES etc. instead of their
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015584# values after options handling.
15585ac_log="
Alexandre Julliard740e4ff2010-08-20 19:23:50 +020015586This file was extended by Wine $as_me 1.3.1, which was
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015587generated by GNU Autoconf 2.65. Invocation command line was
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015588
15589 CONFIG_FILES = $CONFIG_FILES
15590 CONFIG_HEADERS = $CONFIG_HEADERS
15591 CONFIG_LINKS = $CONFIG_LINKS
15592 CONFIG_COMMANDS = $CONFIG_COMMANDS
15593 $ $0 $@
15594
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015595on `(hostname || uname -n) 2>/dev/null | sed 1q`
15596"
15597
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015598_ACEOF
15599
Alexandre Julliardabf50482008-10-31 12:56:53 +010015600case $ac_config_files in *"
15601"*) set x $ac_config_files; shift; ac_config_files=$*;;
15602esac
15603
15604case $ac_config_headers in *"
15605"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15606esac
15607
15608
15609cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015610# Files that config.status was made for.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015611config_files="$ac_config_files"
15612config_headers="$ac_config_headers"
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015613config_links="$ac_config_links"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015614config_commands="$ac_config_commands"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015615
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015616_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015617
Alexandre Julliardabf50482008-10-31 12:56:53 +010015618cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015619ac_cs_usage="\
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015620\`$as_me' instantiates files and other configuration actions
15621from templates according to the current configuration. Unless the files
15622and actions are specified as TAGs, all are instantiated by default.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015623
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015624Usage: $0 [OPTION]... [TAG]...
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015625
15626 -h, --help print this help, then exit
Alexandre Julliard78bd1942006-08-14 20:42:56 +020015627 -V, --version print version number and configuration settings, then exit
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015628 --config print configuration, then exit
Alexandre Julliardabf50482008-10-31 12:56:53 +010015629 -q, --quiet, --silent
15630 do not print progress messages
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015631 -d, --debug don't remove temporary files
15632 --recheck update $as_me by reconfiguring in the same conditions
Alexandre Julliardabf50482008-10-31 12:56:53 +010015633 --file=FILE[:TEMPLATE]
15634 instantiate the configuration file FILE
15635 --header=FILE[:TEMPLATE]
15636 instantiate the configuration header FILE
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015637
15638Configuration files:
15639$config_files
15640
15641Configuration headers:
15642$config_headers
15643
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015644Configuration links:
15645$config_links
15646
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015647Configuration commands:
15648$config_commands
15649
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015650Report bugs to <wine-devel@winehq.org>.
15651Wine home page: <http://www.winehq.org>."
Alexandre Julliardda0cfb31996-12-01 17:17:47 +000015652
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015653_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015654cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015655ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015656ac_cs_version="\\
Alexandre Julliard740e4ff2010-08-20 19:23:50 +020015657Wine config.status 1.3.1
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015658configured by $0, generated by GNU Autoconf 2.65,
15659 with options \\"\$ac_cs_config\\"
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015660
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015661Copyright (C) 2009 Free Software Foundation, Inc.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015662This config.status script is free software; the Free Software Foundation
15663gives unlimited permission to copy, distribute and modify it."
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015664
15665ac_pwd='$ac_pwd'
15666srcdir='$srcdir'
15667INSTALL='$INSTALL'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015668test -n "\$AWK" || AWK=awk
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015669_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015670
Alexandre Julliardabf50482008-10-31 12:56:53 +010015671cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15672# The default lists apply if the user does not specify any file.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015673ac_need_defaults=:
15674while test $# != 0
15675do
15676 case $1 in
15677 --*=*)
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015678 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15679 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015680 ac_shift=:
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015681 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015682 *)
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015683 ac_option=$1
15684 ac_optarg=$2
15685 ac_shift=shift
15686 ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015687 esac
15688
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015689 case $ac_option in
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015690 # Handling of the options.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015691 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15692 ac_cs_recheck=: ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015693 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Alexandre Julliardabf50482008-10-31 12:56:53 +010015694 $as_echo "$ac_cs_version"; exit ;;
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015695 --config | --confi | --conf | --con | --co | --c )
15696 $as_echo "$ac_cs_config"; exit ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015697 --debug | --debu | --deb | --de | --d | -d )
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015698 debug=: ;;
15699 --file | --fil | --fi | --f )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015700 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010015701 case $ac_optarg in
15702 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15703 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015704 as_fn_append CONFIG_FILES " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015705 ac_need_defaults=false;;
15706 --header | --heade | --head | --hea )
Alexandre Julliard11af04e2002-10-10 03:48:04 +000015707 $ac_shift
Alexandre Julliardabf50482008-10-31 12:56:53 +010015708 case $ac_optarg in
15709 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15710 esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015711 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015712 ac_need_defaults=false;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015713 --he | --h)
15714 # Conflict between --help and --header
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015715 as_fn_error "ambiguous option: \`$1'
15716Try \`$0 --help' for more information.";;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015717 --help | --hel | -h )
Alexandre Julliardabf50482008-10-31 12:56:53 +010015718 $as_echo "$ac_cs_usage"; exit ;;
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015719 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15720 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15721 ac_cs_silent=: ;;
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000015722
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015723 # This is an error.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015724 -*) as_fn_error "unrecognized option: \`$1'
15725Try \`$0 --help' for more information." ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015726
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015727 *) as_fn_append ac_config_targets " $1"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015728 ac_need_defaults=false ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015729
15730 esac
15731 shift
15732done
15733
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015734ac_configure_extra_args=
15735
15736if $ac_cs_silent; then
15737 exec 6>/dev/null
15738 ac_configure_extra_args="$ac_configure_extra_args --silent"
15739fi
15740
15741_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015742cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015743if \$ac_cs_recheck; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010015744 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15745 shift
15746 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15747 CONFIG_SHELL='$SHELL'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015748 export CONFIG_SHELL
Alexandre Julliardabf50482008-10-31 12:56:53 +010015749 exec "\$@"
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015750fi
15751
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015752_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015753cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015754exec 5>>config.log
15755{
15756 echo
15757 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15758## Running $as_me. ##
15759_ASBOX
Alexandre Julliardabf50482008-10-31 12:56:53 +010015760 $as_echo "$ac_log"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015761} >&5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015762
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015763_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015764cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015765#
15766# INIT-COMMANDS
15767#
15768wine_fn_output_makefile ()
15769{
15770 cat Make.tmp - <<\_WINE_EOF >\$tmp/makefile && mv -f \$tmp/makefile \$1 && rm -f Make.tmp && return
15771$ALL_MAKEFILE_DEPENDS
15772_WINE_EOF
15773 as_fn_error "could not create Makefile" "$LINENO" 5
15774}
15775
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015776_ACEOF
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015777
Alexandre Julliardabf50482008-10-31 12:56:53 +010015778cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015779
15780# Handling of arguments.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015781for ac_config_target in $ac_config_targets
15782do
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015783 case $ac_config_target in
15784 "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
Alexandre Julliardc4704c22006-09-22 09:33:00 +020015785 "include/stamp-h") CONFIG_COMMANDS="$CONFIG_COMMANDS include/stamp-h" ;;
Alexandre Julliarda6320522010-02-03 13:14:03 +010015786 "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 +010015787 "fonts/marlett.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/marlett.ttf:fonts/marlett.ttf" ;;
15788 "fonts/symbol.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/symbol.ttf:fonts/symbol.ttf" ;;
15789 "fonts/tahoma.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahoma.ttf:fonts/tahoma.ttf" ;;
15790 "fonts/tahomabd.ttf") CONFIG_LINKS="$CONFIG_LINKS fonts/tahomabd.ttf:fonts/tahomabd.ttf" ;;
Alexandre Julliard321d3882010-05-06 20:51:53 +020015791 "tools/l_intl.nls") CONFIG_LINKS="$CONFIG_LINKS tools/l_intl.nls:tools/l_intl.nls" ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015792 "wine") CONFIG_LINKS="$CONFIG_LINKS wine:tools/winewrapper" ;;
Alexandre Julliard7dfc4472006-10-20 12:25:29 +020015793 "dlls/gdi32/enhmfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/enhmfdrv" ;;
15794 "dlls/gdi32/mfdrv") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/gdi32/mfdrv" ;;
Alexandre Julliard1c60e3b2006-09-12 16:10:51 +020015795 "dlls/kernel32/nls") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/kernel32/nls" ;;
Alexandre Julliardb8a2e3b2006-11-16 14:49:25 +010015796 "dlls/user32/resources") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/user32/resources" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015797 "dlls/wineps.drv/data") CONFIG_COMMANDS="$CONFIG_COMMANDS dlls/wineps.drv/data" ;;
15798 "include/wine") CONFIG_COMMANDS="$CONFIG_COMMANDS include/wine" ;;
15799 "Make.rules") CONFIG_FILES="$CONFIG_FILES Make.rules" ;;
Alexandre Julliardcb1fc8f2010-02-10 11:18:58 +010015800 "Maketest.rules") CONFIG_FILES="$CONFIG_FILES Maketest.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015801 "dlls/Makedll.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makedll.rules" ;;
15802 "dlls/Makeimplib.rules") CONFIG_FILES="$CONFIG_FILES dlls/Makeimplib.rules" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015803 "programs/Makeprog.rules") CONFIG_FILES="$CONFIG_FILES programs/Makeprog.rules" ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010015804 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
15805 "Make.tmp") CONFIG_FILES="$CONFIG_FILES Make.tmp:Makefile.in" ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015806
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015807 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015808 esac
15809done
15810
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015811
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015812# If the user did not use the arguments to specify the items to instantiate,
15813# then the envvar interface is used. Set only those that are not.
15814# We use the long form for the default assignment because of an extremely
15815# bizarre bug on SunOS 4.1.3.
15816if $ac_need_defaults; then
15817 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15818 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Alexandre Julliard7d020c92010-02-03 13:12:12 +010015819 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015820 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15821fi
15822
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015823# Have a temporary directory for convenience. Make it in the build tree
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015824# simply because there is no reason against having it here, and in addition,
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015825# creating and moving files from /tmp can sometimes cause problems.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015826# Hook for its removal unless debugging.
15827# Note that there is a small window in which the directory will not be cleaned:
15828# after its creation but before its name has been assigned to `$tmp'.
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015829$debug ||
15830{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015831 tmp=
15832 trap 'exit_status=$?
15833 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15834' 0
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015835 trap 'as_fn_exit 1' 1 2 13 15
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015836}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015837# Create a (secure) tmp directory for tmp files.
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000015838
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015839{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015840 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015841 test -n "$tmp" && test -d "$tmp"
15842} ||
15843{
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015844 tmp=./conf$$-$RANDOM
15845 (umask 077 && mkdir "$tmp")
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015846} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015847
Alexandre Julliardabf50482008-10-31 12:56:53 +010015848# Set up the scripts for CONFIG_FILES section.
15849# No need to generate them if there are no CONFIG_FILES.
15850# This happens for instance with `./config.status config.h'.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015851if test -n "$CONFIG_FILES"; then
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015852
Alexandre Julliardabf50482008-10-31 12:56:53 +010015853if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15854 ac_cs_awk_getline=:
15855 ac_cs_awk_pipe_init=
15856 ac_cs_awk_read_file='
15857 while ((getline aline < (F[key])) > 0)
15858 print(aline)
15859 close(F[key])'
15860 ac_cs_awk_pipe_fini=
15861else
15862 ac_cs_awk_getline=false
15863 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15864 ac_cs_awk_read_file='
15865 print "|#_!!_#|"
15866 print "cat " F[key] " &&"
15867 '$ac_cs_awk_pipe_init
15868 # The final `:' finishes the AND list.
15869 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15870fi
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015871ac_cr=`echo X | tr X '\015'`
15872# On cygwin, bash can eat \r inside `` if the user requested igncr.
15873# But we know of no other shell where ac_cr would be empty at this
15874# point, so we can use a bashism as a fallback.
15875if test "x$ac_cr" = x; then
15876 eval ac_cr=\$\'\\r\'
15877fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010015878ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15879if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015880 ac_cs_awk_cr='\r'
Alexandre Julliardabf50482008-10-31 12:56:53 +010015881else
15882 ac_cs_awk_cr=$ac_cr
15883fi
15884
15885echo 'BEGIN {' >"$tmp/subs1.awk" &&
Alexandre Julliarddaa28862002-04-11 21:54:01 +000015886_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015887
Alexandre Julliardabf50482008-10-31 12:56:53 +010015888# Create commands to substitute file output variables.
15889{
15890 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
15891 echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' &&
15892 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15893 echo "_ACAWK" &&
15894 echo "_ACEOF"
15895} >conf$$files.sh &&
15896. ./conf$$files.sh ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015897 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015898rm -f conf$$files.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015899
Alexandre Julliardabf50482008-10-31 12:56:53 +010015900{
15901 echo "cat >conf$$subs.awk <<_ACEOF" &&
15902 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15903 echo "_ACEOF"
15904} >conf$$subs.sh ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015905 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010015906ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015907ac_delim='%!_!# '
15908for ac_last_try in false false false false false :; do
Alexandre Julliardabf50482008-10-31 12:56:53 +010015909 . ./conf$$subs.sh ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015910 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015911
Alexandre Julliardabf50482008-10-31 12:56:53 +010015912 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15913 if test $ac_delim_n = $ac_delim_num; then
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015914 break
15915 elif $ac_last_try; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020015916 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015917 else
15918 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Alexandre Julliardf5818d22002-02-14 19:47:29 +000015919 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015920done
Alexandre Julliardabf50482008-10-31 12:56:53 +010015921rm -f conf$$subs.sh
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015922
Alexandre Julliardabf50482008-10-31 12:56:53 +010015923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15924cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020015925_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010015926sed -n '
15927h
15928s/^/S["/; s/!.*/"]=/
15929p
15930g
15931s/^[^!]*!//
15932:repl
15933t repl
15934s/'"$ac_delim"'$//
15935t delim
15936:nl
15937h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015938s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010015939t more1
15940s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15941p
15942n
15943b repl
15944:more1
15945s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15946p
15947g
15948s/.\{148\}//
15949t nl
15950:delim
15951h
Alexandre Julliardfa8c4f72009-12-28 11:43:02 +010015952s/\(.\{148\}\)..*/\1/
Alexandre Julliardabf50482008-10-31 12:56:53 +010015953t more2
15954s/["\\]/\\&/g; s/^/"/; s/$/"/
15955p
15956b
15957:more2
15958s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15959p
15960g
15961s/.\{148\}//
15962t delim
15963' <conf$$subs.awk | sed '
15964/^[^""]/{
15965 N
15966 s/\n//
15967}
15968' >>$CONFIG_STATUS || ac_write_fail=1
15969rm -f conf$$subs.awk
15970cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15971_ACAWK
15972cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15973 for (key in S) S_is_set[key] = 1
15974 FS = ""
15975 \$ac_cs_awk_pipe_init
15976}
15977{
15978 line = $ 0
15979 nfields = split(line, field, "@")
15980 substed = 0
15981 len = length(field[1])
15982 for (i = 2; i < nfields; i++) {
15983 key = field[i]
15984 keylen = length(key)
15985 if (S_is_set[key]) {
15986 value = S[key]
15987 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15988 len += length(value) + length(field[++i])
15989 substed = 1
15990 } else
15991 len += 1 + keylen
15992 }
15993 if (nfields == 3 && !substed) {
15994 key = field[2]
15995 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15996 \$ac_cs_awk_read_file
15997 next
15998 }
15999 }
16000 print line
16001}
16002\$ac_cs_awk_pipe_fini
16003_ACAWK
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016004_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16006if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16007 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16008else
16009 cat
16010fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016011 || as_fn_error "could not setup config files machinery" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016012_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016013
16014# VPATH may cause trouble with some makes, so we remove $(srcdir),
16015# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16016# trailing colons and then remove the whole line if VPATH becomes empty
16017# (actually we leave an empty line to preserve line numbers).
16018if test "x$srcdir" = x.; then
16019 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16020s/:*\$(srcdir):*/:/
16021s/:*\${srcdir}:*/:/
16022s/:*@srcdir@:*/:/
16023s/^\([^=]*=[ ]*\):*/\1/
16024s/:*$//
16025s/^[^=]*=[ ]*$//
16026}'
16027fi
16028
Alexandre Julliardabf50482008-10-31 12:56:53 +010016029cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016030fi # test -n "$CONFIG_FILES"
16031
Alexandre Julliardabf50482008-10-31 12:56:53 +010016032# Set up the scripts for CONFIG_HEADERS section.
16033# No need to generate them if there are no CONFIG_HEADERS.
16034# This happens for instance with `./config.status Makefile'.
16035if test -n "$CONFIG_HEADERS"; then
16036cat >"$tmp/defines.awk" <<\_ACAWK ||
16037BEGIN {
16038_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016039
Alexandre Julliardabf50482008-10-31 12:56:53 +010016040# Transform confdefs.h into an awk script `defines.awk', embedded as
16041# here-document in config.status, that substitutes the proper values into
16042# config.h.in to produce config.h.
16043
16044# Create a delimiter string that does not exist in confdefs.h, to ease
16045# handling of long lines.
16046ac_delim='%!_!# '
16047for ac_last_try in false false :; do
16048 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16049 if test -z "$ac_t"; then
16050 break
16051 elif $ac_last_try; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016052 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016053 else
16054 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16055 fi
16056done
16057
16058# For the awk script, D is an array of macro values keyed by name,
16059# likewise P contains macro parameters if any. Preserve backslash
16060# newline sequences.
16061
16062ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16063sed -n '
16064s/.\{148\}/&'"$ac_delim"'/g
16065t rset
16066:rset
16067s/^[ ]*#[ ]*define[ ][ ]*/ /
16068t def
16069d
16070:def
16071s/\\$//
16072t bsnl
16073s/["\\]/\\&/g
16074s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16075D["\1"]=" \3"/p
16076s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16077d
16078:bsnl
16079s/["\\]/\\&/g
16080s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16081D["\1"]=" \3\\\\\\n"\\/p
16082t cont
16083s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16084t cont
16085d
16086:cont
16087n
16088s/.\{148\}/&'"$ac_delim"'/g
16089t clear
16090:clear
16091s/\\$//
16092t bsnlc
16093s/["\\]/\\&/g; s/^/"/; s/$/"/p
16094d
16095:bsnlc
16096s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16097b cont
16098' <confdefs.h | sed '
16099s/'"$ac_delim"'/"\\\
16100"/g' >>$CONFIG_STATUS || ac_write_fail=1
16101
16102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16103 for (key in D) D_is_set[key] = 1
16104 FS = ""
16105}
16106/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16107 line = \$ 0
16108 split(line, arg, " ")
16109 if (arg[1] == "#") {
16110 defundef = arg[2]
16111 mac1 = arg[3]
16112 } else {
16113 defundef = substr(arg[1], 2)
16114 mac1 = arg[2]
16115 }
16116 split(mac1, mac2, "(") #)
16117 macro = mac2[1]
16118 prefix = substr(line, 1, index(line, defundef) - 1)
16119 if (D_is_set[macro]) {
16120 # Preserve the white space surrounding the "#".
16121 print prefix "define", macro P[macro] D[macro]
16122 next
16123 } else {
16124 # Replace #undef with comments. This is necessary, for example,
16125 # in the case of _POSIX_SOURCE, which is predefined and required
16126 # on some systems where configure will not decide to define it.
16127 if (defundef == "undef") {
16128 print "/*", prefix defundef, macro, "*/"
16129 next
16130 }
16131 }
16132}
16133{ print }
16134_ACAWK
16135_ACEOF
16136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016137 as_fn_error "could not setup config headers machinery" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016138fi # test -n "$CONFIG_HEADERS"
16139
16140
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016141eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
Alexandre Julliardabf50482008-10-31 12:56:53 +010016142shift
16143for ac_tag
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016144do
16145 case $ac_tag in
16146 :[FHLC]) ac_mode=$ac_tag; continue;;
16147 esac
16148 case $ac_mode$ac_tag in
16149 :[FHL]*:*);;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016150 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016151 :[FH]-) ac_tag=-:-;;
16152 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16153 esac
16154 ac_save_IFS=$IFS
16155 IFS=:
16156 set x $ac_tag
16157 IFS=$ac_save_IFS
16158 shift
16159 ac_file=$1
16160 shift
16161
16162 case $ac_mode in
16163 :L) ac_source=$1;;
16164 :[FH])
16165 ac_file_inputs=
16166 for ac_f
16167 do
16168 case $ac_f in
16169 -) ac_f="$tmp/stdin";;
16170 *) # Look for the file first in the build tree, then in the source tree
16171 # (if the path is not absolute). The absolute path cannot be DOS-style,
16172 # because $ac_f cannot contain `:'.
16173 test -f "$ac_f" ||
16174 case $ac_f in
16175 [\\/$]*) false;;
16176 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16177 esac ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016178 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016179 esac
Alexandre Julliardabf50482008-10-31 12:56:53 +010016180 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016181 as_fn_append ac_file_inputs " '$ac_f'"
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016182 done
16183
16184 # Let's still pretend it is `configure' which instantiates (i.e., don't
16185 # use $as_me), people would be surprised to read:
16186 # /* config.h. Generated by config.status. */
Alexandre Julliardabf50482008-10-31 12:56:53 +010016187 configure_input='Generated from '`
16188 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16189 `' by configure.'
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016190 if test x"$ac_file" != x-; then
16191 configure_input="$ac_file. $configure_input"
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016192 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016193$as_echo "$as_me: creating $ac_file" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016194 fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016195 # Neutralize special characters interpreted by sed in replacement strings.
16196 case $configure_input in #(
16197 *\&* | *\|* | *\\* )
16198 ac_sed_conf_input=`$as_echo "$configure_input" |
16199 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16200 *) ac_sed_conf_input=$configure_input;;
16201 esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016202
16203 case $ac_tag in
Alexandre Julliardabf50482008-10-31 12:56:53 +010016204 *:-:* | *:-) cat >"$tmp/stdin" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016205 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016206 esac
16207 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016208 esac
16209
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016210 ac_dir=`$as_dirname -- "$ac_file" ||
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016211$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
Alexandre Julliard875927f2004-01-02 01:55:29 +000016212 X"$ac_file" : 'X\(//\)[^/]' \| \
16213 X"$ac_file" : 'X\(//\)$' \| \
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016214 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Alexandre Julliardabf50482008-10-31 12:56:53 +010016215$as_echo X"$ac_file" |
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16217 s//\1/
16218 q
16219 }
16220 /^X\(\/\/\)[^/].*/{
16221 s//\1/
16222 q
16223 }
16224 /^X\(\/\/\)$/{
16225 s//\1/
16226 q
16227 }
16228 /^X\(\/\).*/{
16229 s//\1/
16230 q
16231 }
16232 s/.*/./; q'`
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016233 as_dir="$ac_dir"; as_fn_mkdir_p
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016234 ac_builddir=.
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016235
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016236case "$ac_dir" in
16237.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16238*)
Alexandre Julliardabf50482008-10-31 12:56:53 +010016239 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016240 # A ".." for each directory in $ac_dir_suffix.
Alexandre Julliardabf50482008-10-31 12:56:53 +010016241 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016242 case $ac_top_builddir_sub in
16243 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16244 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16245 esac ;;
16246esac
16247ac_abs_top_builddir=$ac_pwd
16248ac_abs_builddir=$ac_pwd$ac_dir_suffix
16249# for backward compatibility:
16250ac_top_builddir=$ac_top_build_prefix
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016251
16252case $srcdir in
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016253 .) # We are building in place.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016254 ac_srcdir=.
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016255 ac_top_srcdir=$ac_top_builddir_sub
16256 ac_abs_top_srcdir=$ac_pwd ;;
16257 [\\/]* | ?:[\\/]* ) # Absolute name.
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016258 ac_srcdir=$srcdir$ac_dir_suffix;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016259 ac_top_srcdir=$srcdir
16260 ac_abs_top_srcdir=$srcdir ;;
16261 *) # Relative name.
16262 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16263 ac_top_srcdir=$ac_top_build_prefix$srcdir
16264 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016265esac
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016266ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Alexandre Julliard875927f2004-01-02 01:55:29 +000016267
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016268
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016269 case $ac_mode in
16270 :F)
16271 #
16272 # CONFIG_FILE
16273 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016274
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016275 case $INSTALL in
16276 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016277 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000016278 esac
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016279_ACEOF
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016280
Alexandre Julliardabf50482008-10-31 12:56:53 +010016281cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016282# If the template does not know about datarootdir, expand it.
16283# FIXME: This hack should be removed a few years after 2.60.
Jeremy White0ebeb532006-06-20 13:18:41 +020016284ac_datarootdir_hack=; ac_datarootdir_seen=
Alexandre Julliardabf50482008-10-31 12:56:53 +010016285ac_sed_dataroot='
16286/datarootdir/ {
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016287 p
16288 q
16289}
16290/@datadir@/p
16291/@docdir@/p
16292/@infodir@/p
16293/@localedir@/p
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016294/@mandir@/p'
Alexandre Julliardabf50482008-10-31 12:56:53 +010016295case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Jeremy White0ebeb532006-06-20 13:18:41 +020016296*datarootdir*) ac_datarootdir_seen=yes;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016297*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016298 { $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 +010016299$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016300_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016302 ac_datarootdir_hack='
16303 s&@datadir@&$datadir&g
16304 s&@docdir@&$docdir&g
16305 s&@infodir@&$infodir&g
16306 s&@localedir@&$localedir&g
16307 s&@mandir@&$mandir&g
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016308 s&\\\${datarootdir}&$datarootdir&g' ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016309esac
16310_ACEOF
16311
16312# Neutralize VPATH when `$srcdir' = `.'.
16313# Shell code in configure.ac might set extrasub.
16314# FIXME: do we really want to maintain this feature?
Alexandre Julliardabf50482008-10-31 12:56:53 +010016315cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16316ac_sed_extra="$ac_vpsub
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016317$extrasub
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016318_ACEOF
Alexandre Julliardabf50482008-10-31 12:56:53 +010016319cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016320:t
16321/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Alexandre Julliardabf50482008-10-31 12:56:53 +010016322s|@configure_input@|$ac_sed_conf_input|;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016323s&@top_builddir@&$ac_top_builddir_sub&;t t
Alexandre Julliardabf50482008-10-31 12:56:53 +010016324s&@top_build_prefix@&$ac_top_build_prefix&;t t
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016325s&@srcdir@&$ac_srcdir&;t t
16326s&@abs_srcdir@&$ac_abs_srcdir&;t t
16327s&@top_srcdir@&$ac_top_srcdir&;t t
16328s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16329s&@builddir@&$ac_builddir&;t t
16330s&@abs_builddir@&$ac_abs_builddir&;t t
16331s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16332s&@INSTALL@&$ac_INSTALL&;t t
16333$ac_datarootdir_hack
Alexandre Julliardabf50482008-10-31 12:56:53 +010016334"
16335eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16336if $ac_cs_awk_getline; then
16337 $AWK -f "$tmp/subs.awk"
16338else
16339 $AWK -f "$tmp/subs.awk" | $SHELL
16340fi >$tmp/out \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016341 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016342
Jeremy White0ebeb532006-06-20 13:18:41 +020016343test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16344 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
Alexandre Julliardf5f37a82006-06-27 16:41:43 +020016345 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016346 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Jeremy White0ebeb532006-06-20 13:18:41 +020016347which seems to be undefined. Please make sure it is defined." >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016348$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Jeremy White0ebeb532006-06-20 13:18:41 +020016349which seems to be undefined. Please make sure it is defined." >&2;}
16350
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016351 rm -f "$tmp/stdin"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016352 case $ac_file in
Alexandre Julliardabf50482008-10-31 12:56:53 +010016353 -) cat "$tmp/out" && rm -f "$tmp/out";;
16354 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16355 esac \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016356 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016357 ;;
16358 :H)
16359 #
16360 # CONFIG_HEADER
16361 #
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016362 if test x"$ac_file" != x-; then
Alexandre Julliardabf50482008-10-31 12:56:53 +010016363 {
16364 $as_echo "/* $configure_input */" \
16365 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16366 } >"$tmp/config.h" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016367 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016368 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016369 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016370$as_echo "$as_me: $ac_file is unchanged" >&6;}
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016371 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016372 rm -f "$ac_file"
16373 mv "$tmp/config.h" "$ac_file" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016374 || as_fn_error "could not create $ac_file" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016375 fi
16376 else
Alexandre Julliardabf50482008-10-31 12:56:53 +010016377 $as_echo "/* $configure_input */" \
16378 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016379 || as_fn_error "could not create -" "$LINENO" 5
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016380 fi
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016381 ;;
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016382 :L)
16383 #
16384 # CONFIG_LINK
16385 #
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016386
Alexandre Julliard7d020c92010-02-03 13:12:12 +010016387 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
16388 :
16389 else
16390 # Prefer the file from the source tree if names are identical.
16391 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
16392 ac_source=$srcdir/$ac_source
16393 fi
16394
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
16396$as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
16397
16398 if test ! -r "$ac_source"; then
16399 as_fn_error "$ac_source: file not found" "$LINENO" 5
16400 fi
16401 rm -f "$ac_file"
16402
16403 # Try a relative symlink, then a hard link, then a copy.
16404 case $srcdir in
16405 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
16406 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
16407 esac
16408 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
16409 ln "$ac_source" "$ac_file" 2>/dev/null ||
16410 cp -p "$ac_source" "$ac_file" ||
16411 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
16412 fi
16413 ;;
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016414 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016415$as_echo "$as_me: executing $ac_file commands" >&6;}
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016416 ;;
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016417 esac
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016418
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016419
16420 case $ac_file$ac_mode in
Alexandre Julliardc4704c22006-09-22 09:33:00 +020016421 "include/stamp-h":C) echo timestamp > include/stamp-h ;;
Alexandre Julliarda1c253e2010-02-11 20:26:35 +010016422 "dlls/gdi32/enhmfdrv":C) test -d "dlls/gdi32/enhmfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/enhmfdrv" >&5
16423$as_echo "$as_me: creating dlls/gdi32/enhmfdrv" >&6;}; as_dir="dlls/gdi32/enhmfdrv"; as_fn_mkdir_p; } ;;
16424 "dlls/gdi32/mfdrv":C) test -d "dlls/gdi32/mfdrv" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/gdi32/mfdrv" >&5
16425$as_echo "$as_me: creating dlls/gdi32/mfdrv" >&6;}; as_dir="dlls/gdi32/mfdrv"; as_fn_mkdir_p; } ;;
16426 "dlls/kernel32/nls":C) test -d "dlls/kernel32/nls" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/kernel32/nls" >&5
16427$as_echo "$as_me: creating dlls/kernel32/nls" >&6;}; as_dir="dlls/kernel32/nls"; as_fn_mkdir_p; } ;;
16428 "dlls/user32/resources":C) test -d "dlls/user32/resources" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/user32/resources" >&5
16429$as_echo "$as_me: creating dlls/user32/resources" >&6;}; as_dir="dlls/user32/resources"; as_fn_mkdir_p; } ;;
16430 "dlls/wineps.drv/data":C) test -d "dlls/wineps.drv/data" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating dlls/wineps.drv/data" >&5
16431$as_echo "$as_me: creating dlls/wineps.drv/data" >&6;}; as_dir="dlls/wineps.drv/data"; as_fn_mkdir_p; } ;;
16432 "include/wine":C) test -d "include/wine" || { { $as_echo "$as_me:${as_lineno-$LINENO}: creating include/wine" >&5
16433$as_echo "$as_me: creating include/wine" >&6;}; as_dir="include/wine"; as_fn_mkdir_p; } ;;
Alexandre Julliard39b4ba22010-03-25 22:13:03 +010016434 "Makefile":C) wine_fn_output_makefile Makefile ;;
Alexandre Julliardfc6ffb22006-05-25 20:08:12 +020016435
16436 esac
16437done # for ac_tag
16438
Alexandre Julliard87a2f8d2000-04-09 18:20:25 +000016439
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016440as_fn_exit 0
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016441_ACEOF
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016442ac_clean_files=$ac_clean_files_save
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016443
Alexandre Julliardabf50482008-10-31 12:56:53 +010016444test $ac_write_fail = 0 ||
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016445 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016446
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016447
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016448# configure is writing to config.log, and then calls config.status.
16449# config.status does its own redirection, appending to config.log.
16450# Unfortunately, on DOS this fails, as config.log is still kept open
16451# by configure, so config.status won't be able to write to it; its
16452# output is simply discarded. So we exec the FD to /dev/null,
16453# effectively closing config.log, so it can be properly (re)opened and
16454# appended to by config.status. When coming back to configure, we
16455# need to make the FD available again.
16456if test "$no_create" != yes; then
16457 ac_cs_success=:
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016458 ac_config_status_args=
16459 test "$silent" = yes &&
16460 ac_config_status_args="$ac_config_status_args --quiet"
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016461 exec 5>/dev/null
Alexandre Julliarde24bcc72002-12-24 00:35:19 +000016462 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016463 exec 5>>config.log
16464 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16465 # would make configure fail if this is the last instruction.
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016466 $ac_cs_success || as_fn_exit $?
Alexandre Julliardf5818d22002-02-14 19:47:29 +000016467fi
Alexandre Julliardabf50482008-10-31 12:56:53 +010016468if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016470$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16471fi
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016472
Alexandre Julliarddaa28862002-04-11 21:54:01 +000016473
Alexandre Julliarde3bd1112006-09-21 11:14:38 +020016474if test "$no_create" = "yes"
16475then
16476 exit 0
16477fi
16478
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016479ac_save_IFS="$IFS"
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016480if test "x$wine_notices != "x; then
16481 echo >&6
Rafał Mużyło4736c992008-10-20 21:43:21 +020016482 IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016483 for msg in $wine_notices; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020016484 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016485 if test -n "$msg"; then
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016486 { $as_echo "$as_me:${as_lineno-$LINENO}: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016487$as_echo "$as_me: $msg" >&6;}
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016488 fi
16489 done
16490fi
Rafał Mużyło4736c992008-10-20 21:43:21 +020016491IFS="|"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016492for msg in $wine_warnings; do
Rafał Mużyło4736c992008-10-20 21:43:21 +020016493 IFS="$ac_save_IFS"
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016494 if test -n "$msg"; then
16495 echo >&2
Alexandre Julliard25e9e4f2009-08-10 14:27:28 +020016496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $msg" >&5
Alexandre Julliardabf50482008-10-31 12:56:53 +010016497$as_echo "$as_me: WARNING: $msg" >&2;}
Detlef Riekenberge84a3822006-08-21 05:28:17 +020016498 fi
Alexandre Julliardf9dec942007-07-10 15:14:15 +020016499done
16500IFS="$ac_save_IFS"
Francois Gouget99d026f2005-03-19 17:08:18 +000016501
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016502echo "
Alexandre Julliard64362ac2010-02-23 13:33:52 +010016503$as_me: Finished. Do '${ac_make}' to compile Wine.
Alexandre Julliarda41f0f12008-01-07 14:51:44 +010016504" >&6
Alexandre Julliarde2991ea1995-07-29 13:09:43 +000016505